/* =========================================================
   Mirjam & Marvin — Editorial Edition
   Palette & type inspired by the mood board (olive / ivory,
   Didone display, script accents, fine rules, pill buttons)
   ========================================================= */
:root {
    --olive: #3a4027;
    --olive-deep: #2c3120;
    --olive-soft: #4a5033;
    --paper: #f1ecdd;
    --paper-deep: #e9e1cd;
    --paper-soft: #ece5d2;
    --ink: #373a29;
    --ink-soft: #5b5d47;
    --muted: #85836c;
    --line: rgba(55,58,41,0.22);
    --line-light: rgba(236,229,210,0.26);
    --gold: #9c8d5f;
    --access-black: #0b0b0a;
    --access-white: #f7f4ec;

    --serif: 'Cormorant Garamond', Georgia, serif;
    --display: 'Cormorant Garamond', Georgia, serif;
    --script: 'Pinyon Script', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 19px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; }

/* ---------- Shared type ---------- */
.kicker {
    font-family: var(--script);
    font-size: 30px;
    line-height: 1;
    color: var(--gold);
    margin: 0 0 10px;
}
.kicker--light { color: #cbb988; }

.headline {
    font-family: var(--display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    line-height: 1.04;
    font-size: clamp(32px, 5vw, 58px);
    margin: 0;
}

.lede {
    font-size: clamp(19px, 2.1vw, 23px);
    line-height: 1.75;
    color: var(--ink-soft);
    font-style: italic;
    margin: 0 auto;
    max-width: 640px;
}

.rule {
    width: 64px;
    height: 1px;
    background: var(--line);
    border: 0;
    margin: 22px auto;
}
.rule--light { background: var(--line-light); }
.rule--left { margin-left: 0; margin-right: 0; }

/* ---------- Buttons ---------- */
.pill {
    display: inline-block;
    font-family: var(--serif);
    font-size: 13px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 999px;
    border: 1px solid var(--ink);
    color: var(--ink);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.pill:hover { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.pill--light {
    border-color: rgba(236,229,210,0.55);
    color: var(--paper-soft);
}
.pill--light:hover { background: var(--paper-soft); border-color: var(--paper-soft); color: var(--olive-deep); }

/* ---------- Navigation ---------- */
.nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 40px;
    background: rgba(44,49,32,0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-light);
}
.nav__brand {
    font-family: var(--script);
    font-size: 32px;
    line-height: 1;
    color: var(--paper-soft);
    text-decoration: none;
}
.nav__links {
    display: flex;
    gap: 30px;
}
.nav__links a {
    font-family: var(--serif);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--paper-soft);
    text-decoration: none;
    opacity: 0.82;
    transition: opacity 0.2s ease;
}
.nav__links a:hover { opacity: 1; }
.nav__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.nav__rsvp {
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--paper-soft);
    text-decoration: none;
    padding: 9px 22px;
    border: 1px solid rgba(236,229,210,0.5);
    border-radius: 999px;
    transition: background 0.3s ease, color 0.3s ease;
}
.nav__rsvp:hover { background: var(--paper-soft); color: var(--olive-deep); }
.language-switch {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--paper-soft);
    font-family: var(--serif);
    font-size: 10px;
    letter-spacing: 0.12em;
    white-space: nowrap;
}
.language-switch button {
    appearance: none;
    padding: 3px 1px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    opacity: 0.55;
}
.language-switch button:hover,
.language-switch button.is-active {
    opacity: 1;
}
.language-switch button.is-active {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.language-switch--overlay {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 85;
    padding: 6px 9px;
    border: 1px solid rgba(236,229,210,0.32);
    border-radius: 999px;
    background: rgba(11,11,10,0.2);
    backdrop-filter: blur(8px);
}

/* ---------- Bands ---------- */
.band { padding: clamp(84px, 12vw, 150px) 40px; }
.band--dark { background: var(--olive); color: var(--paper-soft); }
.band--deep { background: var(--olive-deep); color: var(--paper-soft); }
.band--paper { background: var(--paper); color: var(--ink); }
.band--tone { background: var(--paper-deep); color: var(--ink); }
.wrap { max-width: 1120px; margin: 0 auto; }
.wrap--narrow { max-width: 720px; margin: 0 auto; }
.center { text-align: center; }

.band--dark .kicker { color: #cbb988; }
.band--deep .kicker { color: #cbb988; }
.band--dark .lede,
.band--deep .lede { color: var(--paper-soft); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: calc(100svh - 24px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(440px, 1fr);
    align-items: center;
    padding: 80px 0 0;
    color: var(--ink);
    background: var(--paper);
    overflow: hidden;
}
.hero__media {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    margin: 0;
    padding: clamp(26px, 4vw, 64px) 0 clamp(22px, 3vw, 46px) clamp(18px, 3vw, 52px);
    background: var(--paper);
}
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
    filter: brightness(1.04) contrast(1.01) sepia(0.04);
}
.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: clamp(48px, 7vw, 110px) clamp(24px, 3vw, 46px);
    text-align: center;
}
.hero__eyebrow {
    font-family: var(--serif);
    font-size: clamp(16px, 1.6vw, 19px);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 18px;
}
.hero__names {
    font-family: var(--script);
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1;
    font-size: clamp(46px, 5.15vw, 74px);
    white-space: nowrap;
    margin: 0;
}
.hero__amp {
    display: inline-block;
    margin: 0 0.035em;
}
.hero__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 24px 0 0;
    font-family: var(--serif);
    font-size: clamp(16px, 1.6vw, 19px);
    letter-spacing: 0.24em;
    text-transform: uppercase;
}
.hero__place {
    font-family: var(--serif);
    font-size: clamp(16px, 1.6vw, 19px);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 20px 0 0;
}
@media (min-width: 861px) {
    .hero__inner {
        padding-top: clamp(72px, 8vw, 124px);
        padding-right: clamp(14px, 1.5vw, 24px);
        padding-bottom: clamp(72px, 8vw, 124px);
        padding-left: clamp(14px, 1.5vw, 24px);
    }
    .hero__eyebrow {
        font-size: clamp(20px, 1.55vw, 22px);
        margin-bottom: 28px;
    }
    .hero__names { font-size: clamp(70px, 5.9vw, 86px); }
    .hero__meta {
        margin-top: 38px;
        font-size: clamp(20px, 1.55vw, 22px);
    }
    .hero__place {
        margin-top: 30px;
        font-size: clamp(20px, 1.55vw, 22px);
    }
}
.hero__scroll {
    position: absolute;
    left: calc(72.5% + 14%);
    bottom: 26px;
    transform: translateX(-50%);
    z-index: 2;
    width: 24px; height: 40px;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.hero__scroll span {
    position: absolute; top: 8px; left: 50%;
    width: 3px; height: 7px;
    background: var(--gold);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrolldot 1.8s ease-in-out infinite;
}
@keyframes scrolldot {
    0% { opacity: 0; transform: translate(-50%, 0); }
    40% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 13px); }
}

/* ---------- Welcome story ---------- */
.welcome-story {
    overflow: hidden;
}
.welcome-story__head {
    margin-bottom: clamp(50px, 7vw, 82px);
}
.welcome-story__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
    align-items: center;
}
.welcome-story__copy {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}
.welcome-story__copy p {
    margin: 0 0 20px;
    color: var(--ink-soft);
}
.welcome-story__copy p:last-child {
    margin-bottom: 0;
}
.welcome-story__lead {
    color: var(--ink-soft) !important;
    font-size: clamp(19px, 2.1vw, 23px);
    font-style: italic;
    line-height: 1.75;
}
.welcome-gallery {
    position: relative;
    width: min(100%, 680px);
    height: clamp(540px, 53vw, 630px);
    margin: 0 auto;
    touch-action: pan-y;
    user-select: none;
}
.welcome-gallery__photo {
    --stack-x: 0px;
    --stack-y: 0px;
    --stack-rotation: 0deg;
    --drag-x: 0px;
    --drag-y: 0px;
    --drag-rotation: 0deg;
    position: absolute;
    top: 47%;
    left: 50%;
    width: min(74%, 390px);
    height: min(84%, 520px);
    margin: 0;
    padding: 8px 8px 28px;
    background: var(--paper-soft);
    box-shadow: 0 16px 38px rgba(44,49,32,0.13);
    cursor: default;
    pointer-events: none;
    transform:
        translate(-50%, -50%)
        translate(var(--stack-x), var(--stack-y))
        translate(var(--drag-x), var(--drag-y))
        rotate(calc(var(--stack-rotation) + var(--drag-rotation)));
    transform-origin: center;
    transition: transform 300ms ease, box-shadow 260ms ease;
    will-change: transform;
}
.welcome-gallery__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
}
.welcome-gallery__photo.is-top {
    cursor: grab;
    pointer-events: auto;
}
.welcome-gallery__photo.is-top:focus-visible {
    outline: 2px solid var(--olive);
    outline-offset: 5px;
}
.welcome-gallery__photo.is-dragging {
    cursor: grabbing;
    transition: none;
}
.welcome-gallery__photo.is-exiting {
    pointer-events: none;
    transition: transform 300ms ease-in;
}
.welcome-gallery__status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.welcome-gallery__photo--formal img { object-position: center 42%; }
.welcome-gallery__photo--dive img { object-position: center 34%; }
.welcome-gallery__photo--festival img { object-position: center 38%; }
.welcome-gallery__photo--summit img {
    object-position: center 62%;
}

/* ---------- Countdown ---------- */
.countdown {
    display: flex;
    justify-content: center;
    gap: clamp(28px, 6vw, 72px);
    margin: 44px 0 0;
}
.countdown__num {
    font-family: var(--display);
    font-weight: 300;
    font-size: clamp(46px, 7vw, 78px);
    line-height: 1;
}
.countdown__label {
    display: block;
    margin-top: 12px;
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #cbb988;
}

/* ---------- Schedule rows ---------- */
.section-head { margin-bottom: clamp(48px, 7vw, 86px); }

.day {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    margin-bottom: clamp(60px, 9vw, 118px);
}
.day:last-child { margin-bottom: 0; }
.day--reverse { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); }
.day--reverse .day__media { order: 2; }
.day--solo {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.day--solo .timeline {
    max-width: 420px;
    margin: 0 auto;
    text-align: left;
}
.day--solo .day__index,
.day--solo .day__title,
.day--solo .day__sub {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
.day__media {
    position: relative;
    overflow: hidden;
    margin: 0;
    background: var(--paper);
}
.day__media img {
    width: 100%;
    height: clamp(450px, 58vw, 680px);
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: brightness(0.76) contrast(2.15) sepia(0.04);
}
.day__media--pool img {
    object-position: center bottom;
    filter: brightness(0.74) contrast(2.3) sepia(0.04);
}
.day__index {
    font-family: var(--script);
    font-size: 30px;
    color: var(--gold);
    margin: 0 0 4px;
}
.day__title {
    font-family: var(--display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: clamp(28px, 3.6vw, 42px);
    margin: 0 0 6px;
}
.day__sub {
    font-style: italic;
    color: var(--muted);
    margin: 0 0 24px;
}
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 18px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__time {
    font-family: var(--display);
    font-size: 22px;
    color: var(--olive);
}
.timeline__what {
    display: block;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 4px;
}
.timeline__desc {
    font-style: italic;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.5;
}
.timeline__desc > span { display: block; }
.day__note {
    font-style: italic;
    color: var(--ink-soft);
    margin: 18px 0 0;
}

/* ---------- Full-bleed divider ---------- */
.fullbleed {
    position: relative;
    height: clamp(320px, 52vw, 620px);
    overflow: hidden;
}
.fullbleed img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(0.55) sepia(0.24) saturate(0.82) contrast(1.03) brightness(1.03);
}
.fullbleed__quote {
    position: absolute; inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    background: linear-gradient(180deg, rgba(30,34,20,0.28), rgba(30,34,20,0.44));
    color: var(--paper-soft);
}
.fullbleed__quote p {
    font-family: var(--script);
    font-size: clamp(30px, 5vw, 60px);
    margin: 0;
    text-shadow: 0 2px 26px rgba(20,24,12,0.4);
}

/* ---------- Location / Details ---------- */
.details {
    max-width: 640px;
    margin: clamp(40px, 6vw, 72px) auto 0;
    text-align: center;
}
.details__label {
    font-family: var(--script);
    font-size: 28px;
    color: var(--gold);
    margin: 0 0 6px;
}
.details__label + .details__label { margin-top: 30px; }
.details__text { margin: 0 0 8px; color: var(--ink-soft); }
.details__text strong { color: var(--ink); font-weight: 600; }
.details .pill {
    margin-top: 30px;
    background: var(--olive);
    border-color: var(--olive);
    color: var(--paper);
}
.details .pill:hover {
    background: var(--paper-deep);
    border-color: var(--olive);
    color: var(--olive);
}

/* ---------- Civil ceremony ---------- */
.civil-ceremony .lede strong {
    color: inherit;
    font-weight: 600;
}
.civil-ceremony__button {
    margin-top: 32px;
}

/* ---------- Room booking ---------- */
.room-booking {
    border-bottom: 1px solid var(--line);
}
.room-booking__button {
    margin-top: 30px;
    background: var(--olive);
    border-color: var(--olive);
    color: var(--paper);
}
.room-booking__button:hover {
    background: var(--paper-deep);
    color: var(--olive);
}

/* ---------- Site access ---------- */
body.access-page {
    min-height: 100vh;
    background: var(--access-black);
    overflow: hidden;
}
.access-experience { min-height: 100dvh; }
.access-intro,
.access-gate {
    position: fixed;
    inset: 0;
}
.access-intro {
    z-index: 2;
    overflow-y: auto;
    background: var(--access-black);
    color: var(--access-white);
    transition: opacity 0.5s ease, transform 1.1s cubic-bezier(0.76, 0, 0.24, 1);
}
.access-intro::before,
.access-intro::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.access-intro::before {
    background: linear-gradient(90deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.18) 38%, rgba(0,0,0,0.76) 67%, rgba(0,0,0,0.94) 100%);
}
.access-intro::after {
    opacity: 0.34;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.08 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.access-intro__background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 36%;
    filter: grayscale(1) contrast(1.04);
}
.access-intro__inner {
    position: relative;
    z-index: 2;
    width: min(1280px, 100%);
    min-height: 100dvh;
    margin: 0 auto;
    padding: clamp(24px, 4vw, 52px);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.access-intro__copy {
    max-width: 520px;
    padding-right: clamp(0px, 3vw, 36px);
    text-shadow: 0 2px 20px rgba(0,0,0,0.72);
    transform: translateY(clamp(48px, 8vh, 92px));
}
.access-intro__kicker {
    margin: 0 0 16px;
    color: var(--gold);
    font-family: var(--script);
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1;
}
.access-intro__title {
    max-width: 500px;
    margin: 0;
    color: var(--access-white);
    font-family: var(--display);
    font-size: clamp(38px, 5vw, 66px);
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.04;
    text-transform: uppercase;
}
.access-intro__text {
    max-width: 510px;
    margin: 28px 0 0;
    color: var(--paper-soft);
    font-size: clamp(18px, 2vw, 22px);
    font-style: italic;
    line-height: 1.65;
}
.access-intro__button {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-top: 34px;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid var(--gold);
    background: transparent;
    color: var(--access-white);
    font-family: var(--serif);
    font-size: 13px;
    letter-spacing: 0.23em;
    text-transform: uppercase;
    cursor: pointer;
}
.access-intro__button:hover { color: var(--gold); }
.access-intro__button:disabled { cursor: default; opacity: 0.62; }
.access-intro__timer {
    width: min(270px, 100%);
    height: 1px;
    margin-top: 32px;
    overflow: hidden;
    background: rgba(247,244,236,0.2);
}
.access-intro__timer-bar {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transform-origin: left center;
    animation: access-timer 12s linear forwards;
}
.access-intro__hint {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 13px;
    letter-spacing: 0.08em;
}
@media (min-width: 601px) {
    .access-intro__background { object-position: center 10%; }
    .access-intro__inner {
        width: 100%;
        max-width: none;
        align-items: flex-end;
        padding-inline: 48px;
        padding-bottom: clamp(34px, 5vh, 52px);
    }
    .access-intro__copy {
        width: 460px;
        max-width: 100%;
        padding-right: 0;
        transform: none;
    }
    .access-intro__kicker {
        margin-bottom: 10px;
        font-size: clamp(32px, 3.2vw, 44px);
    }
    .access-intro__title {
        font-size: clamp(34px, 4vw, 54px);
    }
    .access-intro__text {
        margin-top: 18px;
        font-size: clamp(17px, 1.5vw, 20px);
        line-height: 1.55;
    }
    .access-intro__button { margin-top: 24px; }
    .access-intro__timer { margin-top: 22px; }
}
.access-gate {
    z-index: 1;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
    overflow-y: auto;
    background:
        radial-gradient(circle at 50% 22%, var(--olive-soft), transparent 54%),
        var(--olive);
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.15s ease;
}
.access-gate__monogram {
    margin: 0 0 18px;
    color: var(--gold);
    font-family: var(--script);
    font-size: 42px;
    line-height: 1;
}
.access-modal__dialog {
    width: min(480px, 100%);
    padding: 52px 48px 42px;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 24px 70px rgba(44,49,32,0.24);
    text-align: center;
    opacity: 0;
    transition: opacity 1.35s ease 0.15s;
}
.access-experience.is-revealed .access-intro {
    visibility: hidden;
    opacity: 0;
    transform: scale(1.035);
}
.access-experience.is-revealed .access-gate {
    z-index: 3;
    opacity: 1;
    pointer-events: auto;
}
.access-experience.is-revealed .access-modal__dialog { opacity: 1; }
.access-transition {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    background: var(--olive);
    pointer-events: none;
    transform: translateY(101%);
}
.access-transition__mark {
    display: inline-block;
    color: var(--gold);
    font-family: var(--script);
    font-size: clamp(46px, 8vw, 82px);
    line-height: 1.2;
    opacity: 0;
}
.access-experience.is-transitioning .access-transition {
    animation: access-wipe 2.1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}
.access-experience.is-transitioning .access-transition__mark {
    animation: access-mark 2.1s ease forwards;
}
.access-modal__title {
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 0.015em;
    line-height: 1.08;
    text-transform: uppercase;
}
.access-modal__copy {
    max-width: 360px;
    margin: 20px auto 26px;
    color: var(--ink-soft);
    font-size: 18px;
    line-height: 1.55;
}
.access-modal__form { display: grid; gap: 12px; text-align: left; }
.access-modal__form label {
    color: var(--ink-soft);
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.access-modal__form input {
    width: 100%;
    height: 52px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 0;
    outline: none;
    background: var(--paper-soft);
    color: var(--ink);
    font-family: var(--serif);
    font-size: 24px;
    letter-spacing: 0.3em;
    text-align: center;
}
.access-modal__form input:focus { border-color: var(--olive); }
.access-modal__submit {
    width: 100%;
    margin-top: 4px;
    background: var(--olive);
    border-color: var(--olive);
    color: var(--paper);
    cursor: pointer;
}
.access-modal__submit:hover { background: var(--olive-deep); border-color: var(--olive-deep); }
.access-modal__message {
    min-height: 24px;
    margin: 0;
    color: var(--olive-deep);
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}
@keyframes access-timer {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}
@keyframes access-wipe {
    0% { transform: translateY(101%); }
    38%, 62% { transform: translateY(0); }
    100% { transform: translateY(-101%); }
}
@keyframes access-mark {
    0%, 22%, 78%, 100% { opacity: 0; transform: translateY(12px); }
    38%, 62% { opacity: 1; transform: translateY(0); }
}
@media (max-width: 600px) {
    .access-transition__mark {
        padding: 0 0.24em 0 0.12em;
    }
    .access-intro::before {
        background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.1) 36%, rgba(0,0,0,0.88) 70%, rgba(0,0,0,0.98) 100%);
    }
    .access-intro__background { object-position: center 30%; }
    .access-intro__inner {
        min-height: 100dvh;
        padding: 38vh 22px 28px;
        align-items: flex-end;
    }
    .access-intro__copy {
        width: min(100%, 520px);
        padding: 0 4px;
        text-align: center;
        transform: none;
    }
    .access-intro__text { margin-left: auto; margin-right: auto; }
    .access-intro__timer { margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .access-intro,
    .access-gate,
    .access-modal__dialog { transition: none; }
    .access-intro__timer-bar { animation: none; transform: scaleX(1); }
    .welcome-gallery__photo,
    .welcome-gallery__photo.is-exiting { transition: none; }
    .access-experience.is-transitioning .access-transition,
    .access-experience.is-transitioning .access-transition__mark { animation: none; }
}

/* ---------- Travel ---------- */
.travel-copy p { margin: 0 0 14px; color: var(--ink-soft); }
.travel-copy ul { list-style: none; margin: 0 0 14px; padding: 0; }
.travel-copy li {
    padding: 10px 0 10px 20px;
    position: relative;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
}
.travel-copy li:first-child { border-top: 0; }
.travel-copy li::before {
    content: "";
    position: absolute; left: 0; top: 19px;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold);
}
.travel-copy li strong { color: var(--ink); font-weight: 600; }
.travel-recommendations__button { margin-top: 34px; }

/* ---------- Dresscode ---------- */
.dress {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 56px);
    margin-top: clamp(40px, 6vw, 68px);
}
.dress__card {
    border: 1px solid var(--line);
    padding: clamp(28px, 4vw, 44px);
    text-align: center;
    background: var(--paper);
}
.dress__day {
    font-family: var(--display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 28px;
    margin: 0;
}
.dress__code {
    font-family: var(--script);
    font-size: 26px;
    color: var(--gold);
    margin: 6px 0 26px;
}
.dress__intro {
    max-width: 420px;
    margin: -8px auto 24px;
    color: var(--ink-soft);
    font-size: 17px;
    line-height: 1.55;
}
.dress__lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    text-align: left;
    border-top: 1px solid var(--line);
    padding-top: 26px;
}
.dress__label {
    font-size: 12px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--ink);
    margin: 0 0 12px;
}
.dress__list { list-style: none; margin: 0; padding: 0; }
.dress__list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 6px 0;
    color: var(--ink-soft);
    font-size: 17px;
}
.dress__list li::before {
    flex: 0 0 14px;
    font-size: 13px;
    line-height: inherit;
}
.dress__list--do li::before { content: "\2713"; color: var(--olive); }
.dress__list--dont li::before { content: "\2715"; color: #a2705f; }

/* ---------- RSVP ---------- */
.rsvp {
    position: relative;
    text-align: center;
    color: var(--paper-soft);
    padding: clamp(96px, 14vw, 168px) 24px;
    background: var(--olive);
}
.rsvp .wrap--narrow { position: relative; z-index: 2; }
.rsvp .lede { color: var(--paper-soft); }
.rsvp .pill { margin-top: 34px; }

/* ---------- Gifts ---------- */
.gifts {
    position: relative;
    text-align: center;
    padding: clamp(88px, 12vw, 144px) 24px;
    background: var(--paper-deep);
    color: var(--ink);
}

/* ---------- Witnesses ---------- */
.witnesses {
    padding: clamp(88px, 12vw, 144px) 24px;
    background: var(--olive-deep);
    color: var(--paper-soft);
    text-align: center;
}
.witnesses .lede { color: var(--paper-soft); }
.witnesses__contacts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 42px;
}
.witness-card {
    padding: 28px 20px 24px;
    border: 1px solid var(--line-light);
}
.witness-card__name {
    margin: 0 0 8px;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.witness-card__phone {
    margin: 0;
    color: var(--paper-soft);
    font-size: 17px;
}
.witness-card__phone a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Newsletter ---------- */
.newsletter {
    padding: clamp(88px, 12vw, 144px) 24px 52px;
    background: var(--paper);
    color: var(--ink);
    text-align: center;
}
.newsletter__form {
    display: grid;
    gap: 18px;
    max-width: 760px;
    margin: 42px auto 0;
    text-align: left;
}
.newsletter__email {
    width: min(100%, 540px);
    margin: 0 auto;
}
.newsletter__names {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 440px);
    margin: 0 auto;
}
.newsletter__email label,
.newsletter__names label {
    display: grid;
    gap: 7px;
    color: var(--ink-soft);
    font-size: 14px;
}
.newsletter__email input,
.newsletter__names input {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--paper-soft);
    color: var(--ink);
    font: inherit;
    outline: none;
}
.newsletter__email input {
    min-height: 48px;
    padding-block: 9px;
    font-size: 16px;
    text-align: center;
}
.newsletter__names label {
    font-size: 12px;
}
.newsletter__names input {
    min-height: 38px;
    padding-block: 6px;
    font-size: 13px;
}
.newsletter__email input:focus,
.newsletter__names input:focus {
    border-color: var(--olive);
    box-shadow: 0 0 0 3px rgba(58, 64, 39, 0.12);
}
.newsletter__submit {
    justify-self: center;
    min-height: 48px;
    padding: 11px 28px;
    border: 1px solid var(--olive);
    border-radius: 999px;
    background: var(--olive);
    color: var(--paper-soft);
    font-family: var(--serif);
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
}
.newsletter__submit:hover:not(:disabled) {
    background: var(--olive-deep);
    border-color: var(--olive-deep);
}
.newsletter__submit:disabled {
    cursor: wait;
    opacity: 0.62;
}
.newsletter__message {
    min-height: 24px;
    margin: 0;
    text-align: center;
    font-size: 15px;
}
.newsletter__message.is-success { color: var(--olive); }
.newsletter__message.is-error { color: #a2705f; }

/* ---------- Footer ---------- */
.footer {
    background: var(--paper);
    color: var(--ink);
    text-align: center;
    padding: 22px 24px 70px;
}
.footer__divider {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(420px, 72vw);
    margin: 0 auto 48px;
}
.footer__divider::before,
.footer__divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}
.footer__divider span {
    width: 7px;
    height: 7px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
}
.footer__names {
    font-family: var(--script);
    font-size: 34px;
    margin: 0 0 8px;
    color: var(--ink);
}
.footer__meta {
    font-size: 12px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .nav { padding: 12px 20px; }
    .nav__links { display: none; }
    .nav__actions { gap: 9px; }
    .nav__rsvp {
        padding: 7px 12px;
        font-size: 10px;
        letter-spacing: 0.16em;
    }
    .band { padding: 78px 22px; }
    .welcome-story__layout {
        gap: 36px;
    }
    .welcome-story__copy {
        max-width: 640px;
        margin: 0 auto;
    }
    .welcome-gallery {
        width: min(100%, 680px);
        height: clamp(520px, 82vw, 620px);
        margin: 0 auto;
    }
    .day { grid-template-columns: 1fr; gap: 26px; }
    .day--reverse .day__media { order: 0; }
    .details { grid-template-columns: 1fr; }
    .dress { grid-template-columns: 1fr; }
    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 68px;
    }
    .hero__media {
        left: 50vw;
        transform: translateX(-50%);
        width: 100vw;
        aspect-ratio: 3 / 2;
        padding: 18px 12px 0;
    }
    .hero__inner {
        left: 50vw;
        transform: translateX(-50%);
        width: 100vw;
        max-width: none;
        padding: 42px 22px 74px;
    }
    .hero__scroll { left: 50%; bottom: 8px; }
}
@media (max-width: 540px) {
    .nav {
        padding-inline: 14px;
    }
    .nav__brand {
        font-size: 29px;
    }
    .language-switch {
        gap: 3px;
        font-size: 9px;
    }
    .nav__rsvp {
        padding: 6px 9px;
        font-size: 9px;
        letter-spacing: 0.11em;
    }
    .language-switch--overlay {
        top: 14px;
        right: 14px;
        padding: 5px 8px;
        font-size: 10px;
    }
    .welcome-story__head {
        margin-bottom: 42px;
    }
    .welcome-story__copy {
        text-align: center;
    }
    .welcome-story__copy p {
        margin-bottom: 18px;
    }
    .welcome-gallery {
        height: 470px;
    }
    .welcome-gallery__photo {
        top: 46%;
        width: min(76%, 290px);
        height: min(84%, 390px);
        padding: 5px 5px 18px;
    }
    .witnesses__contacts { grid-template-columns: 1fr; }
    .newsletter__names {
        grid-template-columns: 1fr;
        width: min(100%, 360px);
    }
    .access-gate {
        padding: 16px 14px;
    }
    .access-modal__dialog {
        padding: 36px 20px 22px;
        overflow-y: auto;
    }
    .access-modal__dialog .kicker {
        margin-bottom: 5px;
        font-size: 25px;
    }
    .access-modal__title { font-size: 29px; }
    .access-modal__copy {
        margin: 10px auto 14px;
        font-size: 16px;
        line-height: 1.4;
    }
    .access-modal__form { gap: 7px; }
    .access-modal__form label { font-size: 12px; }
    .access-modal__form input {
        height: 44px;
        font-size: 21px;
    }
    .access-modal__submit {
        margin-top: 2px;
        padding: 11px 28px;
    }
    .access-modal__message {
        min-height: 19px;
        font-size: 14px;
        line-height: 1.35;
    }
    .dress__lists { grid-template-columns: 1fr; gap: 18px; }
    .hero__meta { gap: 12px; letter-spacing: 0.24em; }
    .day { gap: 12px; }
    .day__media { height: min(106vw, 400px); }
    .day__media img {
        height: 100%;
        object-fit: contain;
    }
}
