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

:root {
    --paper: #f8f3ea;
    --ink: #2b2925;
    --muted: #7b7166;
    --accent: #b7a895;
    --accent-dark: #8c7a66;
    --white: #ffffff;
    --shadow: 0 24px 80px rgba(43, 41, 37, 0.14);
    font-family: "Inter", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    text-align: left;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--paper);
}

body.is-preloader-active {
    overflow: hidden;
}

body.is-preloader-active .wedding-page {
    opacity: 0;
    visibility: hidden;
}

body,
button,
input {
    font-family: "Inter", Arial, sans-serif;
}

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

button,
a {
    color: inherit;
}

button {
    border: 0;
}

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

.wedding-page {
    overflow: hidden;
    background: var(--paper);
}

.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 1.5rem;
    color: var(--white);
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.06), transparent 28%),
        linear-gradient(135deg, #17190f 0%, #222318 58%, #12130d 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity 700ms ease, visibility 700ms ease;
}

.preloader::before,
.preloader::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.preloader::before {
    display: none;
}

.preloader::after {
    left: 50%;
    top: 50%;
    width: min(22rem, 70vw);
    height: min(22rem, 70vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(183, 168, 149, 0.16), transparent 66%);
    transform: translate(-50%, -50%);
    animation: preloader-glow 2200ms ease-in-out infinite;
}

.preloader__inner {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    width: min(34rem, calc(100% - 2rem));
    text-align: center;
    transition: opacity 520ms ease, transform 520ms ease;
}

.preloader__monogram {
    display: none;
}

.preloader__monogram i {
    display: none;
}

.preloader__eyebrow {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.72);
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(0.66rem, 1.2vw, 0.78rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
    animation: preloader-rise 620ms 80ms ease both;
}

.preloader__names {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: clamp(0.38rem, 1.2vw, 0.64rem);
    font-family: "Cormorant Unicase", Georgia, serif;
    font-size: clamp(2.9rem, 6.3vw, 5.6rem);
    font-weight: 700;
    line-height: 0.95;
    white-space: nowrap;
    text-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
    animation: preloader-rise 680ms 130ms ease both;
}

.preloader__amp {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.58em;
    line-height: 1;
}

.preloader__bar {
    position: relative;
    width: min(17rem, 58vw);
    height: 1px;
    margin: 1.25rem 0 0.95rem;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.22);
    animation: preloader-rise 620ms 200ms ease both;
}

.preloader__bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
    transform: translateX(-100%);
    animation: preloader-line 1250ms 260ms ease-in-out infinite;
}

.preloader__date {
    color: rgba(255, 255, 255, 0.78);
    font-family: "Inter", Arial, sans-serif;
    font-size: clamp(0.82rem, 1.7vw, 0.96rem);
    font-weight: 600;
    animation: preloader-rise 620ms 190ms ease both;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader.is-hidden .preloader__inner {
    opacity: 0;
    transform: translateY(-0.8rem) scale(0.985);
}

.response-popup {
    position: fixed;
    z-index: 10002;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(43, 41, 37, 0.34);
    opacity: 0;
    backdrop-filter: blur(7px);
    pointer-events: none;
    transition: opacity 220ms ease;
}

.response-popup[hidden] {
    display: none;
}

.response-popup.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.response-popup__panel {
    position: relative;
    width: min(390px, 100%);
    padding: 2.25rem 1.75rem 1.75rem;
    border: 1px solid rgba(183, 168, 149, 0.46);
    border-radius: 18px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 28px 90px rgba(43, 41, 37, 0.24);
    text-align: center;
    transform: translateY(0.7rem) scale(0.98);
    transition: transform 220ms ease;
}

.response-popup.is-visible .response-popup__panel {
    transform: translateY(0) scale(1);
}

.response-popup__close {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: transparent;
    color: var(--accent-dark);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.response-popup__close:hover,
.response-popup__close:focus-visible {
    background: rgba(183, 168, 149, 0.16);
}

.response-popup__eyebrow {
    margin: 0 0 0.8rem;
    color: var(--accent-dark);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.response-popup__title {
    margin: 0;
    font-family: "Cormorant Unicase", Georgia, serif;
    font-size: 2rem;
    line-height: 1.15;
    text-transform: uppercase;
}

.response-popup__message {
    margin: 1rem auto 1.5rem;
    max-width: 18rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.response-popup__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 10.5rem;
    min-height: 3rem;
    padding: 0 1.25rem;
    border-radius: 5px;
    background: var(--accent);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.response-popup__button:hover,
.response-popup__button:focus-visible {
    background: var(--accent-dark);
}

.response-popup--error .response-popup__panel {
    border-color: rgba(116, 72, 58, 0.34);
}

.response-popup--error .response-popup__button {
    background: #74483a;
}

.hero {
    position: relative;
    width: 100%;
    min-height: 880px;
    height: 880px;
    max-height: none;
    overflow: hidden;
    color: var(--white);
    background: #1f1f13;
}

.hero__picture,
.hero__picture img {
    position: absolute;
}

.hero__picture {
    left: calc(50% - 739px);
    top: 0;
    width: 1564px;
    height: 880px;
}

.hero__picture img {
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    transform: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    display: none;
    pointer-events: none;
}

.hero__content {
    position: absolute;
    left: max(104px, calc(50% - 616px));
    top: 0;
    z-index: 1;
    width: 563px;
    height: 880px;
    padding: 0;
    animation: heroReveal 1100ms ease both;
}

.hero__eyebrow {
    position: absolute;
    left: 0;
    top: 101px;
    width: 307px;
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 5.76px;
    line-height: 32px;
    text-transform: uppercase;
}

.hero__title {
    position: absolute;
    left: 0;
    top: 227px;
    display: block;
    margin: 0;
    font-family: "Cormorant Unicase", Georgia, serif;
    font-size: 160px;
    font-weight: 600;
    line-height: 120px;
    white-space: nowrap;
}

.hero__title span {
    display: block;
}

.hero__amp {
    position: absolute;
    left: 0;
    top: 395px;
    font-family: "Cormorant Unicase", Georgia, serif;
    font-size: 160px;
    font-weight: 600;
    line-height: 0;
    white-space: nowrap;
}

.hero__name-second {
    margin-top: 120px;
}

.hero__line {
    position: absolute;
    left: 0;
    top: 664px;
    width: 386px;
    height: 1px;
    margin: 0;
    background: rgba(255, 255, 255, 0.9);
    transform-origin: left;
    animation: drawLine 1000ms 500ms ease both;
}

.hero__date {
    position: absolute;
    left: 0;
    top: 696px;
    display: block;
    width: 563px;
    font-size: 40px;
    font-weight: 400;
    letter-spacing: 8px;
    line-height: normal;
}

.scroll-cue {
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: 1.9rem;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 0.58rem;
    font-weight: 300;
    text-decoration: none;
    text-transform: uppercase;
}

.scroll-cue i {
    width: 7.375rem;
    height: 2.8125rem;
    background: url("/assets/scroll-arrow.svg") center / contain no-repeat;
    animation: cue 1600ms ease-in-out infinite;
}

.section-shell {
    width: min(1240px, calc(100% - 4rem));
    margin: 0 auto;
}

.intro {
    display: grid;
    grid-template-columns: 310px 300px 475px;
    gap: 5.5rem;
    align-items: center;
    min-height: 880px;
    padding: 5.5rem 0;
}

.intro__letter h2,
.section-heading h2,
.gifts__text h2,
.rsvp__intro h2,
.footer h2 {
    margin: 0;
    font-family: "Cormorant Unicase", Georgia, serif;
    font-weight: 700;
    text-transform: uppercase;
}

.intro__letter h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    line-height: 1.2;
    white-space: nowrap;
}

.intro__letter p,
.gifts__text p {
    margin: 0 0 1.5rem;
    font-size: 1.42rem;
    line-height: 2.17;
    text-align: justify;
    hyphens: auto;
    text-wrap: pretty;
}

.intro__letter p:last-child,
.gifts__text p:last-child {
    margin-bottom: 0;
}

.intro__details {
    display: grid;
    gap: 2.4rem;
}

.detail-item {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 1.5rem;
    align-items: start;
}

.detail-item h3 {
    margin: 0 0 1.1rem;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.detail-item p {
    margin: 0 0 0.8rem;
    font-size: 1.38rem;
    line-height: 1.68;
    letter-spacing: 0;
}

.detail-item__icon {
    position: relative;
    width: 2rem;
    height: 1.875rem;
    color: var(--accent);
    object-fit: contain;
}

img.detail-item__icon {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
}

.detail-item__icon--pin {
    width: 1.56rem;
    margin-left: 0.19rem;
}

.detail-item__icon--calendar {
    border: 1px solid currentColor;
    border-radius: 3px;
}

.detail-item__icon--calendar::before,
.detail-item__icon--calendar::after {
    content: "";
    position: absolute;
    top: -0.28rem;
    width: 1px;
    height: 0.5rem;
    background: currentColor;
}

.detail-item__icon--calendar::before {
    left: 0.35rem;
}

.detail-item__icon--calendar::after {
    right: 0.35rem;
}

.detail-item__icon--pin::before {
    content: "";
    position: absolute;
    inset: 0.14rem 0.28rem 0.28rem;
    border: 1px solid currentColor;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.detail-item__icon--pin::after {
    content: "";
    position: absolute;
    left: 0.64rem;
    top: 0.5rem;
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    background: currentColor;
}

.detail-item__icon--clock {
    border: 1px solid currentColor;
    border-radius: 50%;
}

.detail-item__icon--clock::before,
.detail-item__icon--clock::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: currentColor;
    transform-origin: left center;
}

.detail-item__icon--clock::before {
    width: 0.38rem;
    height: 1px;
}

.detail-item__icon--clock::after {
    width: 0.28rem;
    height: 1px;
    transform: rotate(-90deg);
}

.detail-item__icon--spark::before,
.detail-item__icon--spark::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1px;
    height: 1.35rem;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.detail-item__icon--spark::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.outline-button,
.primary-button,
.footer__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0 1.55rem;
    border-radius: 5px;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease;
    cursor: pointer;
}

.outline-button {
    width: 16.19rem;
    min-height: 3rem;
    border: 1px solid var(--accent);
    border-radius: 0.75rem;
    background: transparent;
    color: var(--ink);
    font-size: 0.94rem;
    font-weight: 400;
}

.outline-button:hover,
.outline-button:focus-visible {
    color: var(--white);
    background: var(--accent);
    transform: translateY(-2px);
}

.intro__image {
    margin: 0;
}

.intro__image img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 3.6rem;
    text-align: center;
}

.section-heading h2,
.gifts__text h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.section-heading p {
    margin: 1rem 0 1.8rem;
    font-size: 1.42rem;
    line-height: 1.6;
    hyphens: auto;
    text-wrap: pretty;
}

.palette {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
}

.palette span {
    width: 2.62rem;
    height: 2.62rem;
    border-radius: 50%;
    background: var(--swatch);
    box-shadow: 0 4px 14px rgba(43, 41, 37, 0.08);
    transform: scale(0.92);
    animation: pulseSwatch 2600ms ease-in-out infinite;
}

.palette span:nth-child(2) { animation-delay: 120ms; }
.palette span:nth-child(3) { animation-delay: 240ms; }
.palette span:nth-child(4) { animation-delay: 360ms; }
.palette span:nth-child(5) { animation-delay: 480ms; }

.dress {
    padding: 2rem 0 7rem;
}

.dress__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.6rem;
}

.dress__group h3 {
    margin: 0 0 1.25rem;
    font-family: "Cormorant Unicase", Georgia, serif;
    font-size: 2.16rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-transform: lowercase;
}

.dress__grid {
    display: grid;
    gap: 1.8rem;
}

.dress__grid--three {
    grid-template-columns: repeat(3, 1fr);
}

.dress__grid img {
    width: 100%;
    height: 412px;
    border-radius: 20px;
    background: var(--paper);
    object-fit: cover;
    box-shadow: 0 18px 50px rgba(43, 41, 37, 0.1);
    transition: transform 280ms ease, box-shadow 280ms ease;
}

.dress__grid img:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(43, 41, 37, 0.18);
}

.gifts {
    display: grid;
    grid-template-columns: 547px 1fr;
    gap: 7rem;
    align-items: center;
    min-height: 529px;
    padding-bottom: 5rem;
}

.gifts__image {
    margin: 0;
}

.gifts__image img {
    width: 100%;
    aspect-ratio: 547 / 364;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.gifts__icon {
    width: 3.7rem;
    height: 3.7rem;
    margin-bottom: 1rem;
}

.gifts__text p {
    max-width: 34rem;
}

.gifts__text h2 {
    margin-bottom: 2.1rem;
}

.rsvp {
    display: grid;
    grid-template-columns: 420px minmax(0, 817px);
    gap: 2.875rem;
    align-items: start;
    width: min(1322px, calc(100% - 2rem));
    min-height: 0;
    padding: 5.44rem 0 3rem;
}

.rsvp__intro {
    padding-top: 8.25rem;
}

.rsvp__intro h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.rsvp__intro p {
    margin: 1rem 0 3rem;
    font-size: 1.03rem;
    line-height: 1.8;
}

.rsvp__intro img {
    width: 18rem;
    max-width: none;
    margin-left: 3.31rem;
    opacity: 0.58;
}

.rsvp__form {
    display: grid;
    justify-items: start;
    gap: 3rem;
}

.rsvp__form input[type="text"] {
    width: 100%;
    max-width: 400px;
    min-height: 3.75rem;
    padding: 0 1.1rem;
    border: 1px solid var(--accent);
    border-radius: 5px;
    background: var(--white);
    color: var(--ink);
    font-size: 1rem;
    outline: none;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.rsvp__form input[type="text"],
.rsvp__form .primary-button {
    margin-left: 0.44rem;
}

.rsvp__form input[type="text"]:focus {
    border-color: var(--accent-dark);
    box-shadow: 0 0 0 4px rgba(183, 168, 149, 0.2);
}

.form-grid {
    display: grid;
    grid-template-columns: 373px 390px;
    gap: 3.2rem 3.5rem;
    width: 100%;
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

legend {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.45;
}

label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0.62rem 0;
    font-size: 1rem;
    line-height: 1.35;
    cursor: pointer;
}

input[type="radio"] {
    position: relative;
    width: 1.3rem;
    height: 1.3rem;
    margin: 0;
    appearance: none;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: transparent;
    flex: 0 0 auto;
    transition: border-color 180ms ease, background 180ms ease;
}

input[type="radio"]::after {
    content: "";
    position: absolute;
    inset: 0.27rem;
    border-radius: 50%;
    background: var(--accent-dark);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 180ms ease, transform 180ms ease;
}

input[type="radio"]:checked::after {
    opacity: 1;
    transform: scale(1);
}

.primary-button {
    width: min(100%, 400px);
    min-height: 3.75rem;
    background: var(--accent);
    color: var(--white);
}

.primary-button:hover,
.primary-button:focus-visible {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

.form-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.footer {
    position: relative;
    overflow: hidden;
    height: 168px;
    min-height: 168px;
    color: var(--white);
    background: #222118 url("/assets/footer-bg.webp") center 56% / cover no-repeat;
}

.footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(33, 33, 20, 0.46);
}

.footer__content {
    position: relative;
    z-index: 1;
    display: block;
    width: min(1440px, 100%);
    min-height: 168px;
    margin: 0 auto;
}

.footer__content > div {
    position: absolute;
    top: 1.8rem;
    left: 8.26%;
}

.footer h2 {
    margin-bottom: 0.8rem;
    font-family: "Inter", Arial, sans-serif;
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.4;
}

.footer p,
.footer a {
    margin: 0.2rem 0;
    color: inherit;
    font-size: 1.12rem;
    line-height: 1.4;
    text-decoration: none;
}

.footer__button {
    position: absolute;
    top: 3.75rem;
    left: 38.89%;
    width: 20rem;
    height: 3.125rem;
    min-height: 0;
    margin: 0;
    border: 1px solid var(--white);
    gap: 0.65rem;
    padding: 0 1rem;
    border-radius: 5px;
    font-size: 0.9rem;
}

.footer__button span {
    white-space: nowrap;
}

.footer__button img {
    width: 2.06rem;
    height: 2rem;
    object-fit: contain;
}

.footer__button:hover,
.footer__button:focus-visible {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.footer__mark {
    position: absolute;
    top: 1.69rem;
    right: 7.43%;
    width: 6.25rem;
    height: 7.125rem;
    object-fit: contain;
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 800ms ease, transform 800ms ease;
}

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

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

@keyframes drawLine {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@keyframes cue {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

@keyframes pulseSwatch {
    0%, 100% {
        transform: scale(0.92);
    }
    50% {
        transform: scale(1);
    }
}

@keyframes preloader-frame {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes preloader-orbit {
    from {
        opacity: 0;
        transform: scale(0.72);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes preloader-glow {
    0%,
    100% {
        opacity: 0.55;
        transform: translate(-50%, -50%) scale(0.96);
    }

    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.04);
    }
}

@keyframes preloader-ring {
    from {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.025);
    }

    to {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes preloader-mark {
    from {
        opacity: 0;
        transform: translateY(0.5rem) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes preloader-rise {
    from {
        opacity: 0;
        transform: translateY(0.8rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes preloader-line {
    0% {
        transform: translateX(-100%);
    }

    56%,
    100% {
        transform: translateX(100%);
    }
}

@keyframes preloader-photo {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1.04);
    }
}

@media (min-width: 901px) and (max-width: 1439px) {
    .hero {
        height: 61.111vw;
        min-height: 0;
    }

    .hero__picture {
        left: calc(50% - 51.319vw);
        width: 108.611vw;
        height: 61.111vw;
    }

    .hero__content {
        left: calc(50% - 42.778vw);
        width: 39.097vw;
        height: 61.111vw;
    }

    .hero__eyebrow {
        top: 7.014vw;
        width: 21.319vw;
        font-size: 1.111vw;
        letter-spacing: 0.4vw;
        line-height: 2.222vw;
    }

    .hero__title {
        top: 15.764vw;
        font-size: 11.111vw;
        line-height: 8.333vw;
    }

    .hero__amp {
        top: 27.431vw;
        font-size: 11.111vw;
    }

    .hero__name-second {
        margin-top: 8.333vw;
    }

    .hero__line {
        top: 46.111vw;
        width: 26.806vw;
    }

    .hero__date {
        top: 48.333vw;
        width: 39.097vw;
        font-size: 2.778vw;
        letter-spacing: 0.556vw;
    }
}

@media (max-width: 1180px) {
    .intro {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .intro__letter {
        grid-row: span 2;
    }

    .intro__image {
        grid-column: 2;
    }

    .gifts {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

@media (max-width: 900px) {
    .section-shell {
        width: min(680px, calc(100% - 3rem));
    }

    .hero {
        height: 117.692vw;
        min-height: 0;
        max-height: none;
    }

    .hero__picture {
        left: -10.256vw;
        top: -38.974vw;
        width: 120.71vw;
        height: 261.538vw;
    }

    .hero__picture img {
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center;
        transform: none;
    }

    .hero__content {
        left: 4.872vw;
        top: 0;
        width: 90.256vw;
        height: 117.692vw;
        padding: 0;
    }

    .hero__eyebrow {
        top: 5.897vw;
        width: auto;
        font-size: 2.564vw;
        letter-spacing: 0.923vw;
        line-height: 5.128vw;
    }

    .hero__title {
        top: 26.41vw;
        font-size: 12.821vw;
        line-height: 10.256vw;
    }

    .hero__amp {
        top: 41.026vw;
        font-size: 12.821vw;
    }

    .hero__name-second {
        margin-top: 10.256vw;
    }

    .hero__line {
        top: 69.231vw;
        width: 34.359vw;
    }

    .hero__date {
        top: 73.846vw;
        width: auto;
        font-size: 4.359vw;
        letter-spacing: 0.872vw;
    }

    .intro,
    .gifts,
    .rsvp {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .rsvp.section-shell {
        width: min(680px, calc(100% - 3rem));
    }

    .rsvp {
        gap: 2rem;
        padding: 4rem 0 5rem;
    }

    .rsvp__form {
        justify-items: center;
    }

    .rsvp__form input[type="text"],
    .rsvp__form .primary-button {
        margin-left: 0;
    }

    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 3rem;
        max-width: 817px;
    }

    .intro {
        padding-top: 4rem;
    }

    .intro__letter {
        grid-row: auto;
    }

    .intro__image {
        grid-column: auto;
    }

    .intro__image img {
        aspect-ratio: 16 / 10;
    }

    .dress__columns {
        grid-template-columns: 1fr;
    }

    .gifts {
        padding-top: 2rem;
    }

    .rsvp__intro {
        padding-top: 0;
        text-align: center;
    }

    .rsvp__intro img {
        margin: 0 auto;
    }

    .footer {
        height: auto;
        min-height: 250px;
    }

    .footer__content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.95rem;
        width: min(680px, calc(100% - 3rem));
        min-height: 250px;
        padding: 1.2rem 0;
        text-align: center;
    }

    .footer__content > div,
    .footer__button,
    .footer__mark {
        position: static;
    }

    .footer__button {
        width: 18rem;
        height: 2.75rem;
        min-height: 0;
    }

    .footer__mark {
        width: 4.5rem;
        height: auto;
    }
}

@media (max-width: 640px) {
    .response-popup {
        align-items: start;
        padding-top: max(4.5rem, env(safe-area-inset-top));
    }

    .response-popup__panel {
        width: min(336px, 100%);
        padding: 2rem 1.35rem 1.35rem;
        border-radius: 16px;
    }

    .response-popup__title {
        font-size: 1.56rem;
    }

    .preloader {
        padding: 1.1rem;
    }

    .preloader::before {
        display: none;
    }

    .preloader::after {
        width: 16rem;
        height: 16rem;
    }

    .preloader__eyebrow {
        margin-bottom: 0.9rem;
        font-size: 0.65rem;
    }

    .preloader__names {
        display: flex;
        gap: 0.38rem;
        font-size: clamp(2.25rem, 11vw, 3rem);
        line-height: 0.95;
        white-space: nowrap;
    }

    .preloader__amp {
        font-size: 0.58em;
    }

    .preloader__bar {
        width: 9rem;
        margin: 1.3rem 0 0.85rem;
    }

    .hero {
        height: 117.692vw;
        min-height: 0;
        max-height: none;
    }

    .hero::after {
        display: none;
    }

    .hero__picture {
        left: -10.256vw;
        top: -38.974vw;
        width: 120.71vw;
        height: 261.538vw;
    }

    .hero__picture img {
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none;
    }

    .hero__content {
        left: 4.872vw;
        top: 0;
        width: 90.256vw;
        height: 117.692vw;
        padding: 0;
    }

    .hero__eyebrow {
        top: 5.897vw;
        width: auto;
        margin: 0;
        font-size: 2.564vw;
        letter-spacing: 0.923vw;
        line-height: 5.128vw;
    }

    .hero__title {
        top: 26.41vw;
        font-size: 12.821vw;
        line-height: 10.256vw;
    }

    .hero__amp {
        top: 41.026vw;
        font-size: 12.821vw;
    }

    .hero__name-second {
        margin-top: 10.256vw;
    }

    .hero__line {
        top: 69.231vw;
        width: 34.359vw;
    }

    .hero__date {
        top: 73.846vw;
        width: auto;
        font-size: 4.359vw;
        letter-spacing: 0.872vw;
    }

    .scroll-cue {
        display: flex;
        left: 34.872vw;
        top: 99.231vw;
        bottom: auto;
        width: 30.256vw;
        gap: 0.35vw;
        font-size: 2.308vw;
        font-weight: 300;
        letter-spacing: 0.462vw;
        line-height: normal;
        transform: none;
    }

    .scroll-cue i {
        width: 30.256vw;
        height: 11.538vw;
    }

    .section-shell {
        width: min(330px, calc(100% - 2rem));
    }

    .intro {
        gap: 2rem;
        padding: 3.2rem 0 3rem;
    }

    .intro__letter {
        border-bottom: 1px solid rgba(183, 168, 149, 0.42);
        padding-bottom: 2rem;
    }

    .intro__letter h2,
    .section-heading h2,
    .gifts__text h2,
    .rsvp__intro h2 {
        font-size: 1.56rem;
        line-height: 1.4;
        text-align: center;
    }

    .intro__letter p,
    .gifts__text p {
        font-size: 1.18rem;
        line-height: 1.72;
    }

    .intro__details {
        gap: 1.2rem;
    }

    .detail-item {
        grid-template-columns: 2rem 1fr;
        border-bottom: 1px solid rgba(183, 168, 149, 0.42);
        padding-bottom: 1.2rem;
    }

    .detail-item h3 {
        font-size: 0.72rem;
    }

    .detail-item p {
        font-size: 0.82rem;
        line-height: 1.55;
    }

    .outline-button {
        min-height: 2.6rem;
        padding: 0 1rem;
        font-size: 0.68rem;
    }

    .intro__image img {
        aspect-ratio: 330 / 170;
    }

    .dress {
        padding: 1.7rem 0 3.2rem;
    }

    .section-heading {
        width: 100%;
        max-width: none;
        margin-bottom: 2rem;
    }

    .section-heading p {
        margin: 1rem auto 1.6rem;
        max-width: none;
        width: 100%;
        font-size: 1.18rem;
        line-height: 1.55;
        text-align: justify;
    }

    .palette {
        gap: 0.85rem;
    }

    .palette span {
        width: 1.9rem;
        height: 1.9rem;
    }

    .dress__columns {
        gap: 2rem;
    }

    .dress__group h3 {
        margin-bottom: 0.8rem;
        font-size: 1.1rem;
    }

    .dress__grid {
        gap: 0.75rem;
    }

    .dress__grid img {
        height: 227px;
        border-radius: 8px;
    }

    .gifts {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 0 0 3rem;
        text-align: center;
    }

    .gifts__image {
        display: none;
    }

    .gifts__text p {
        text-align: justify;
    }

    .gifts__text h2 {
        margin-bottom: 1.55rem;
    }

    .gifts__icon {
        width: 3.4rem;
        height: 3.4rem;
        margin: 1.4rem auto;
        order: 3;
    }

    .rsvp {
        gap: 1.8rem;
        border-top: 1px solid rgba(183, 168, 149, 0.42);
        padding: 2.1rem 0 2.5rem;
    }

    .rsvp__intro p {
        margin: 0.45rem 0 1.1rem;
        font-size: 0.62rem;
        line-height: 1.5;
    }

    .rsvp__intro img {
        display: none;
    }

    .rsvp__form {
        gap: 1.25rem;
    }

    .rsvp__form input[type="text"] {
        max-width: 249px;
        min-height: 2.9rem;
        font-size: 0.76rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.15rem;
        width: 249px;
    }

    legend,
    label {
        font-size: 0.74rem;
    }

    legend {
        margin-bottom: 0.6rem;
    }

    label {
        gap: 0.5rem;
        margin: 0.42rem 0;
    }

    input[type="radio"] {
        width: 1.05rem;
        height: 1.05rem;
    }

    .primary-button {
        width: 249px;
        min-height: 2.9rem;
        font-size: 0.68rem;
    }

    .footer {
        min-height: 250px;
        background-position: center;
    }

    .footer__content {
        gap: 0.85rem;
        width: min(330px, calc(100% - 2rem));
        min-height: 250px;
        padding: 1.2rem 0;
        text-align: center;
    }

    .footer h2,
    .footer p,
    .footer a {
        font-size: 0.72rem;
    }

    .footer__button {
        height: 2.2rem;
        min-height: 0;
        padding: 0 1rem;
        font-size: 0.66rem;
    }

    .footer__button img {
        width: 1.3rem;
        height: 1.3rem;
    }

    .footer__mark {
        width: 3.7rem;
        height: auto;
    }
}

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