/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    min-height: 100%;
}

body {
    overflow-x: hidden;

    background: #f4f0e7;
    color: #263d2d;

    font-family: "Manrope", sans-serif;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.cover-active {
    overflow: hidden;
}

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

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

button {
    border: 0;
}

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

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


/* =========================================================
   VARIABLES
========================================================= */

:root {
    --cream: #f4f0e7;
    --cream-light: #faf8f3;

    --green: #263d2d;
    --green-dark: #18271e;
    --green-light: #6f826c;

    --blue: #78a9d1;
    --sky: #b8d8ec;

    --sand: #c8b89e;

    --white: #ffffff;
    --black: #101410;

    --serif: "Cormorant Garamond", serif;
    --sans: "Manrope", sans-serif;

    --container: 1280px;

    --ease:
        cubic-bezier(0.22, 1, 0.36, 1);
}


/* =========================================================
   GENERAL
========================================================= */

.container {
    width: min(
        calc(100% - 80px),
        var(--container)
    );

    margin-inline: auto;
}

.section {
    position: relative;

    padding:
        clamp(110px, 12vw, 190px)
        0;
}

.section-number {
    margin: 0 0 40px;

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 0.25em;

    opacity: 0.45;
}

.eyebrow {
    margin: 0 0 24px;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.28em;

    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h2 {
    margin-bottom: 36px;

    font-family: var(--serif);

    font-size:
        clamp(55px, 7vw, 105px);

    font-weight: 400;

    line-height: 0.88;

    letter-spacing: -0.045em;
}

p {
    line-height: 1.8;
}


/* =========================================================
   COVER
========================================================= */

.cover {
    position: fixed;
    inset: 0;

    z-index: 1000;

    width: 100%;
    height: 100svh;

    overflow: hidden;

    background: var(--green-dark);

    perspective: 1200px;

    isolation: isolate;

    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}

.cover.is-hidden {
    opacity: 0;
    visibility: hidden;

    pointer-events: none;
}


/* =========================================================
   COVER BACKGROUND
========================================================= */

.cover-background {
    position: absolute;

    inset: -35px;

    overflow: hidden;

    transition:
        opacity 1.1s var(--ease),
        transform 1.3s var(--ease);
}

.cover-background-video {
    width: 100%;
    height: 100%;

    object-fit: cover;

    filter:
        blur(22px)
        saturate(0.82)
        brightness(0.76);

    transform: scale(1.06);
}

.cover-background-shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(13, 26, 17, 0.16),
            rgba(13, 26, 17, 0.04) 45%,
            rgba(13, 26, 17, 0.22)
        );

    transition:
        opacity 0.8s ease;
}

.cover-grain {
    position: absolute;
    inset: 0;

    opacity: 0.08;

    pointer-events: none;

    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");

    mix-blend-mode: soft-light;

    transition:
        opacity 0.8s ease;
}


/* =========================================================
   COVER TOP
========================================================= */

.cover-top {
    position: absolute;

    top:
        max(
            28px,
            env(safe-area-inset-top)
        );

    left: 50%;

    z-index: 5;

    display: flex;
    align-items: center;

    width:
        min(
            calc(100% - 70px),
            1160px
        );

    transform:
        translateX(-50%);

    color:
        rgba(255, 255, 255, 0.82);

    transition:
        opacity 0.65s ease,
        transform 0.8s var(--ease);
}

.cover-top span {
    flex: 0 0 auto;

    font-size: 8px;
    font-weight: 500;

    letter-spacing: 0.3em;
}

.cover-top-line {
    flex: 1;

    height: 1px;

    margin:
        0
        20px;

    background:
        rgba(255, 255, 255, 0.3);
}


/* =========================================================
   GLASS PORTAL
========================================================= */

.glass-portal {
    position: absolute;

    top: 50%;
    left: 50%;

    z-index: 4;

    width:
        clamp(
            330px,
            31vw,
            510px
        );

    height:
        min(
            78svh,
            850px
        );

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.44);

    border-radius: 42px;

    background:
        rgba(255, 255, 255, 0.06);

    box-shadow:
        0 50px 100px
        rgba(0, 0, 0, 0.2),
        inset 0 1px 0
        rgba(255, 255, 255, 0.5),
        inset 0 -1px 0
        rgba(255, 255, 255, 0.12);

    transform:
        translate(-50%, -50%);

    transform-origin:
        center;

    will-change:
        width,
        height,
        border-radius;

    animation:
        portalEntrance
        1.4s
        var(--ease)
        both;

    transition:
        width 1.25s var(--ease),
        height 1.25s var(--ease),
        border-radius 1.1s var(--ease),
        border-color 0.8s ease,
        box-shadow 0.8s ease;
}

.glass-portal::before {
    content: "";

    position: absolute;
    inset: 0;

    z-index: 8;

    border-radius: inherit;

    box-shadow:
        inset 0 0 45px
        rgba(255, 255, 255, 0.13);

    pointer-events: none;

    transition:
        opacity 0.7s ease;
}

.glass-portal::after {
    content: "";

    position: absolute;

    top: 0;
    left: 18%;

    z-index: 9;

    width: 1px;
    height: 100%;

    opacity: 0.26;

    background:
        linear-gradient(
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent
        );

    pointer-events: none;

    transition:
        opacity 0.7s ease;
}


/* =========================================================
   PORTAL VIDEO
========================================================= */

.portal-video-wrap {
    position: absolute;
    inset: 0;

    overflow: hidden;
}

.portal-video {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 100vw;
    height: 100svh;

    max-width: none;

    object-fit: cover;

    transform:
        translate(-50%, -50%);

    filter:
        saturate(1.02)
        brightness(0.97);
}

.portal-overlay {
    position: absolute;
    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            180deg,
            rgba(13, 27, 18, 0.1),
            rgba(13, 27, 18, 0.02) 40%,
            rgba(13, 27, 18, 0.3)
        );

    transition:
        opacity 0.75s ease;
}

.portal-glass {
    position: absolute;
    inset: 0;

    z-index: 3;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.18),
            rgba(255, 255, 255, 0.02) 34%,
            rgba(255, 255, 255, 0.04) 67%,
            rgba(255, 255, 255, 0.13)
        );

    pointer-events: none;

    transition:
        opacity 0.7s ease;
}

.portal-reflection {
    position: absolute;

    top: -30%;
    right: -60%;

    z-index: 4;

    width: 120%;
    height: 90%;

    border-radius: 50%;

    background:
        radial-gradient(
            ellipse,
            rgba(255, 255, 255, 0.34),
            rgba(255, 255, 255, 0.05) 45%,
            transparent 70%
        );

    transform:
        rotate(-28deg);

    filter: blur(5px);

    pointer-events: none;

    transition:
        opacity 0.7s ease;
}


/* =========================================================
   PORTAL CONTENT
========================================================= */

.portal-content {
    position: relative;

    z-index: 10;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    width: 100%;
    height: 100%;

    padding:
        clamp(45px, 5vw, 70px)
        clamp(28px, 3vw, 48px)
        clamp(32px, 4vw, 50px);

    color: white;

    text-align: center;

    transition:
        opacity 0.55s ease,
        filter 0.65s ease,
        transform 0.8s var(--ease);
}

.portal-eyebrow {
    margin: 0 0 25px;

    font-size: 8px;
    font-weight: 600;

    letter-spacing: 0.35em;
}

.portal-names {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;

    text-align: center;

    font-family: var(--serif);

    font-size:
        clamp(
            60px,
            7vw,
            95px
        );

    font-weight: 400;

    line-height: 0.7;

    letter-spacing: -0.055em;

    text-shadow:
        0 10px 35px
        rgba(0, 0, 0, 0.18);
}

.portal-names span,
.portal-names em {
    display: block;

    width: 100%;

    text-align: center;
}

.portal-names em {
    margin:
        17px
        0
        12px;

    font-size: 0.54em;
    font-weight: 400;
}

.portal-date {
    display: flex;
    align-items: center;

    margin-bottom: 20px;
}

.portal-date span {
    flex: 1;

    height: 1px;

    background:
        rgba(255, 255, 255, 0.4);
}

.portal-date p {
    margin:
        0
        15px;

    font-size: 8px;

    letter-spacing: 0.24em;

    white-space: nowrap;
}


/* =========================================================
   OPEN BUTTON
========================================================= */

.open-button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 58px;

    padding:
        0
        24px;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.38);

    border-radius: 999px;

    background:
        rgba(255, 255, 255, 0.14);

    color: white;

    cursor: pointer;

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    box-shadow:
        inset 0 1px 0
        rgba(255, 255, 255, 0.25);

    transition:
        transform 0.45s var(--ease),
        background 0.35s ease,
        border-color 0.35s ease;
}

.open-button::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.25),
            transparent
        );

    transform:
        skewX(-25deg);

    transition:
        left 0.8s var(--ease);
}

.open-button:hover::before {
    left: 150%;
}

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

    background:
        rgba(255, 255, 255, 0.22);

    border-color:
        rgba(255, 255, 255, 0.62);
}

.open-button-text {
    font-size: 9px;
    font-weight: 500;

    letter-spacing: 0.19em;

    text-transform: uppercase;
}

.open-button-arrow {
    position: absolute;

    right: 22px;

    font-size: 16px;

    transition:
        transform 0.4s var(--ease);
}

.open-button:hover
.open-button-arrow {
    transform:
        translateY(4px);
}


/* =========================================================
   SIDE TEXT
========================================================= */

.cover-side-text {
    position: absolute;

    right: 25px;
    bottom: 50%;

    z-index: 5;

    color:
        rgba(255, 255, 255, 0.52);

    font-size: 7px;

    letter-spacing: 0.35em;

    writing-mode:
        vertical-rl;

    transform:
        translateY(50%);

    transition:
        opacity 0.6s ease;
}


/* =========================================================
   OPENING COVER
========================================================= */

.cover.is-opening
.glass-portal {
    width: 102vw;
    height: 102svh;

    border-radius: 0;

    border-color: transparent;

    box-shadow: none;
}

.cover.is-opening
.glass-portal::before,
.cover.is-opening
.glass-portal::after {
    opacity: 0;
}

.cover.is-opening
.portal-content {
    opacity: 0;

    filter:
        blur(8px);

    transform:
        scale(1.05)
        translateY(-10px);
}

.cover.is-opening
.portal-glass,
.cover.is-opening
.portal-reflection,
.cover.is-opening
.portal-overlay {
    opacity: 0;
}

.cover.is-opening
.cover-background {
    opacity: 0;

    transform:
        scale(1.12);
}

.cover.is-opening
.cover-background-shade,
.cover.is-opening
.cover-top,
.cover.is-opening
.cover-side-text,
.cover.is-opening
.cover-grain {
    opacity: 0;
}


/* =========================================================
   PORTAL ANIMATION
========================================================= */

@keyframes portalEntrance {

    from {
        opacity: 0;

        transform:
            translate(-50%, -46%)
            scale(0.94);
    }

    to {
        opacity: 1;

        transform:
            translate(-50%, -50%)
            scale(1);
    }

}


/* =========================================================
   SITE
========================================================= */

.site {
    position: relative;

    width: 100%;

    background:
        var(--cream);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    width: 100%;
    height: 100svh;

    min-height: 650px;

    overflow: hidden;

    background:
        var(--green-dark);

    color: white;
}

.hero-media,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-media {
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;

    max-width: none;

    object-fit: cover;

    object-position: center center;
}

.hero-overlay {
    background:
        linear-gradient(
            180deg,
            rgba(14, 30, 19, 0.14),
            rgba(14, 30, 19, 0.02) 40%,
            rgba(14, 30, 19, 0.38)
        );
}


/*
 * hero-content занимается исключительно позиционированием.
 * На этот элемент нельзя добавлять .reveal,
 * потому что .reveal использует transform.
 */

.hero-content {
    position: absolute;

    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        70px
        20px;

    text-align: center;

    pointer-events: none;
}


/*
 * Анимация находится на отдельном внутреннем блоке.
 */

.hero-content-inner {
    width: min(
        100%,
        1100px
    );

    margin: 0 auto;

    text-align: center;

    pointer-events: auto;
}

.hero-label {
    width: 100%;

    margin:
        0
        auto
        30px;

    text-align: center;

    font-size: 9px;

    letter-spacing: 0.35em;

    text-transform: uppercase;
}

.hero-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;

    margin: 0 auto;

    text-align: center;

    font-family:
        var(--serif);

    font-size:
        clamp(
            85px,
            14vw,
            190px
        );

    font-weight: 400;

    line-height: 0.62;

    letter-spacing:
        -0.06em;
}

.hero-title span {
    display: block;

    width: 100%;

    text-align: center;
}

.hero-title em {
    display: block;

    width: 100%;

    margin:
        30px
        0
        20px;

    text-align: center;

    font-size: 0.36em;
    font-weight: 400;
}

.hero-date {
    width: 100%;

    margin:
        55px
        auto
        0;

    text-align: center;

    font-size: 10px;

    letter-spacing: 0.28em;

    text-transform: uppercase;
}

.hero-scroll {
    position: absolute;

    left: 50%;
    bottom: 28px;

    z-index: 3;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 12px;

    transform:
        translateX(-50%);

    font-size: 7px;

    letter-spacing: 0.25em;

    text-transform: uppercase;

    white-space: nowrap;
}

.hero-scroll div {
    width: 1px;
    height: 38px;

    background:
        rgba(255, 255, 255, 0.65);
}


/* =========================================================
   INTRO
========================================================= */

.intro {
    background:
        var(--cream-light);
}

.intro-container {
    display: grid;

    grid-template-columns:
        1fr
        2fr;

    gap: 80px;
}

.intro-content {
    max-width: 900px;
}

.intro-content h2 {
    max-width: 950px;
}

.intro-text {
    max-width: 580px;

    margin-left: auto;

    color:
        rgba(38, 61, 45, 0.7);

    font-size:
        clamp(
            14px,
            1.2vw,
            17px
        );
}


/* =========================================================
   PHOTO
========================================================= */

.editorial-photo {
    padding-top: 0;

    background:
        var(--cream-light);
}

.photo-frame {
    position: relative;

    overflow: hidden;

    background:
        #d8d6cf;
}

.photo-frame img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transform:
        scale(1.04);

    transition:
        transform
        1.5s
        var(--ease);
}

.editorial-photo
.photo-frame {
    height:
        min(
            78vw,
            900px
        );
}

.photo-caption {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    justify-content: space-between;

    padding:
        25px
        28px;

    color: white;

    font-size: 8px;

    letter-spacing: 0.23em;

    background:
        linear-gradient(
            transparent,
            rgba(0, 0, 0, 0.3)
        );
}


/* =========================================================
   DATE
========================================================= */

.date-section {
    background:
        var(--cream);
}

.date-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    align-items: center;

    gap:
        clamp(
            60px,
            10vw,
            150px
        );
}

.date-copy p:last-child {
    max-width: 440px;

    color:
        rgba(38, 61, 45, 0.7);
}

#dateHeading {
    white-space: pre-line;
}

.calendar {
    padding:
        clamp(
            25px,
            4vw,
            50px
        );

    border:
        1px solid
        rgba(38, 61, 45, 0.16);
}

.calendar-head {
    display: flex;
    justify-content: space-between;

    padding-bottom: 24px;

    border-bottom:
        1px solid
        rgba(38, 61, 45, 0.13);

    font-family:
        var(--serif);

    font-size:
        clamp(
            25px,
            3vw,
            40px
        );
}

.calendar-weekdays,
.calendar-days {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    text-align: center;
}

.calendar-weekdays {
    padding:
        30px
        0
        18px;

    font-size: 7px;

    letter-spacing: 0.16em;

    opacity: 0.5;
}

.calendar-days {
    gap:
        clamp(
            7px,
            1vw,
            13px
        );
}

.calendar-days span {
    display: flex;
    align-items: center;
    justify-content: center;

    aspect-ratio: 1;

    border-radius: 50%;

    font-family:
        var(--serif);

    font-size:
        clamp(
            16px,
            2vw,
            24px
        );
}

.calendar-days
.wedding-day {
    background:
        var(--green);

    color:
        white;
}


/* =========================================================
   LOCATION
========================================================= */

.location-section {
    background:
        var(--green);

    color: white;
}

.location-heading {
    margin-bottom:
        clamp(
            60px,
            8vw,
            110px
        );
}

.location-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(300px, 0.6fr);

    align-items: center;

    gap:
        clamp(
            45px,
            7vw,
            100px
        );
}

.location-image {
    height:
        min(
            70vw,
            780px
        );
}

.location-small {
    margin-bottom: 24px;

    font-size: 8px;

    letter-spacing: 0.27em;

    opacity: 0.55;
}

.location-info h3 {
    margin-bottom: 12px;

    font-family:
        var(--serif);

    font-size:
        clamp(
            40px,
            5vw,
            68px
        );

    font-weight: 400;

    line-height: 1;
}

.location-address {
    margin-bottom: 45px;

    font-size: 11px;

    letter-spacing: 0.12em;

    opacity: 0.6;
}

.location-description {
    max-width: 400px;

    margin-bottom: 40px;

    color:
        rgba(255, 255, 255, 0.68);

    font-size: 13px;
}


/* =========================================================
   GLASS BUTTONS
========================================================= */

.outline-button,
.submit-button {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 35px;

    min-height: 58px;

    padding:
        0
        28px;

    overflow: hidden;

    border:
        1px solid
        rgba(255, 255, 255, 0.3);

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, 0.09);

    color: white;

    cursor: pointer;

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);

    font-size: 9px;

    letter-spacing: 0.18em;

    text-transform: uppercase;

    transition:
        transform 0.4s var(--ease),
        background 0.35s ease,
        border-color 0.35s ease;
}

.outline-button::before,
.submit-button::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 65%;
    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.2),
            transparent
        );

    transform:
        skewX(-25deg);

    transition:
        left 0.8s var(--ease);
}

.outline-button:hover::before,
.submit-button:hover::before {
    left: 150%;
}

.outline-button:hover,
.submit-button:hover {
    transform:
        translateY(-2px);

    background:
        rgba(255, 255, 255, 0.15);

    border-color:
        rgba(255, 255, 255, 0.55);
}

.button-arrow {
    font-size: 15px;
}


/* =========================================================
   SCHEDULE
========================================================= */

.schedule-section {
    background:
        var(--cream-light);
}

.schedule-heading {
    margin-bottom:
        clamp(
            65px,
            9vw,
            120px
        );
}

.schedule-list {
    border-top:
        1px solid
        rgba(38, 61, 45, 0.15);
}

.schedule-item {
    display: grid;

    grid-template-columns:
        150px
        1fr
        2fr;

    align-items: start;

    gap: 45px;

    padding:
        45px
        0;

    border-bottom:
        1px solid
        rgba(38, 61, 45, 0.15);
}

.schedule-time {
    font-family:
        var(--serif);

    font-size:
        clamp(
            35px,
            4vw,
            54px
        );
}

.schedule-line {
    width: 100%;
    height: 1px;

    margin-top: 25px;

    background:
        rgba(38, 61, 45, 0.2);
}

.schedule-content > span {
    display: block;

    margin-bottom: 18px;

    font-size: 8px;

    letter-spacing: 0.2em;

    opacity: 0.4;
}

.schedule-content h3 {
    margin-bottom: 10px;

    font-family:
        var(--serif);

    font-size:
        clamp(
            30px,
            3vw,
            45px
        );

    font-weight: 400;
}

.schedule-content p {
    max-width: 480px;

    margin-bottom: 0;

    color:
        rgba(38, 61, 45, 0.64);

    font-size: 13px;
}


/* =========================================================
   DRESS CODE
========================================================= */

.dress-section {
    background:
        var(--sand);
}

.dress-grid {
    display: grid;

    grid-template-columns:
        0.8fr
        1.2fr;

    align-items: center;

    gap:
        clamp(
            60px,
            10vw,
            150px
        );
}

.dress-copy > p:last-child {
    max-width: 430px;

    color:
        rgba(38, 61, 45, 0.72);
}

.palette {
    display: grid;

    grid-template-columns:
        repeat(5, 1fr);

    min-height:
        clamp(
            400px,
            55vw,
            700px
        );

    overflow: hidden;
}

.palette-color {
    position: relative;
}

.palette-color span {
    position: absolute;

    bottom: 25px;
    left: 50%;

    font-size: 7px;

    letter-spacing: 0.18em;

    writing-mode:
        vertical-rl;

    transform:
        translateX(-50%);

    opacity: 0.65;
}

.color-one {
    background: #f3efe5;
}

.color-two {
    background: #263d2d;
    color: white;
}

.color-three {
    background: #9bc3df;
}

.color-four {
    background: #c8b89e;
}

.color-five {
    background: #8d9b82;
}


/* =========================================================
   DETAILS
========================================================= */

.details-section {
    background:
        var(--cream);
}

.details-heading {
    margin-bottom:
        clamp(
            60px,
            8vw,
            100px
        );
}

.details-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 1px;

    background:
        rgba(38, 61, 45, 0.15);
}

.detail-card {
    min-height: 380px;

    padding:
        clamp(
            30px,
            4vw,
            55px
        );

    background:
        var(--cream);
}

.detail-number {
    display: block;

    margin-bottom: 100px;

    font-size: 8px;

    letter-spacing: 0.2em;

    opacity: 0.4;
}

.detail-card h3 {
    margin-bottom: 20px;

    font-family:
        var(--serif);

    font-size:
        clamp(
            35px,
            4vw,
            50px
        );

    font-weight: 400;
}

.detail-card p {
    max-width: 320px;

    color:
        rgba(38, 61, 45, 0.64);

    font-size: 13px;
}


/* =========================================================
   RSVP
========================================================= */

.rsvp-section {
    min-height: 100svh;

    overflow: hidden;

    background:
        var(--green-dark);

    color: white;
}

.rsvp-background {
    position: absolute;
    inset: 0;
}

.rsvp-video {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.rsvp-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(18, 35, 23, 0.88),
            rgba(18, 35, 23, 0.6)
        );
}

.rsvp-container {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        0.8fr
        1.2fr;

    gap:
        clamp(
            70px,
            10vw,
            150px
        );
}

.rsvp-copy {
    position: sticky;

    top: 100px;

    align-self: start;
}

.rsvp-copy > p:last-child {
    max-width: 400px;

    color:
        rgba(255, 255, 255, 0.7);
}

.rsvp-form {
    padding:
        clamp(
            30px,
            5vw,
            60px
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.22);

    background:
        rgba(255, 255, 255, 0.08);

    backdrop-filter:
        blur(22px);

    -webkit-backdrop-filter:
        blur(22px);
}

.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: block;

    margin-bottom: 10px;

    font-size: 8px;

    letter-spacing: 0.2em;

    text-transform: uppercase;

    opacity: 0.7;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding:
        15px
        0;

    border: 0;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.3);

    border-radius: 0;

    outline: 0;

    background:
        transparent;

    color: white;

    resize: vertical;

    transition:
        border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color:
        rgba(255, 255, 255, 0.8);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color:
        rgba(255, 255, 255, 0.42);
}

.form-group select option {
    color:
        var(--green-dark);

    background:
        white;
}

.honeypot {
    position: absolute !important;

    left: -9999px !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
}

.submit-button {
    width: 100%;

    margin-top: 10px;
}

.submit-button:disabled {
    cursor: wait;

    opacity: 0.6;
}

.form-message {
    min-height: 24px;

    margin-top: 20px;

    font-size: 12px;

    line-height: 1.6;
}

.form-message.success {
    color:
        #dcebd8;
}

.form-message.error {
    color:
        #ffd4d4;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {
    padding:
        clamp(
            100px,
            12vw,
            170px
        )
        0
        45px;

    background:
        var(--cream-light);

    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-monogram {
    margin-bottom: 20px;

    font-family:
        var(--serif);

    font-size:
        clamp(
            65px,
            9vw,
            120px
        );

    line-height: 1;
}

.footer-date {
    margin-bottom: 30px;

    font-size: 8px;

    letter-spacing: 0.3em;
}

.footer-love {
    margin: 0;

    font-family:
        var(--serif);

    font-size:
        clamp(
            22px,
            3vw,
            32px
        );

    font-style: italic;
}


/* =========================================================
   AACREATE
========================================================= */

.aacreate-brand {
    width:
        min(
            100%,
            520px
        );

    margin-top:
        clamp(
            85px,
            10vw,
            130px
        );

    padding-top: 30px;

    border-top:
        1px solid
        rgba(38, 61, 45, 0.13);

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 15px;
}

.aacreate-brand.is-disabled {
    display: none;
}

.aacreate-created {
    color:
        rgba(38, 61, 45, 0.42);

    font-size: 7px;
    font-weight: 500;

    letter-spacing: 0.32em;

    text-transform: uppercase;
}

.aacreate-logo {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    max-width: 100%;

    opacity: 0.82;

    transition:
        opacity 0.35s ease,
        transform 0.45s var(--ease);
}

.aacreate-logo:hover {
    opacity: 1;

    transform:
        translateY(-2px);
}

.aacreate-logo img {
    display: block;

    width:
        clamp(
            150px,
            17vw,
            230px
        );

    max-width: 100%;

    height: auto;

    object-fit: contain;
}


/* =========================================================
   REVEAL
========================================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(35px);

    transition:
        opacity
        1s
        var(--ease),
        transform
        1s
        var(--ease);
}

.reveal.is-visible {
    opacity: 1;

    transform:
        translateY(0);
}


/*
 * Hero имеет отдельную систему позиционирования.
 * Reveal работает только на hero-content-inner.
 */

.hero-content-inner.reveal {
    opacity: 0;

    transform:
        translateY(28px)
        scale(0.985);
}

.hero-content-inner.reveal.is-visible {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   RESPONSIVE 1000
========================================================= */

@media (max-width: 1000px) {

    .container {
        width:
            min(
                calc(100% - 50px),
                var(--container)
            );
    }

    .intro-container,
    .date-grid,
    .dress-grid,
    .rsvp-container {
        grid-template-columns:
            1fr;

        gap: 65px;
    }

    .intro-container
    .section-number {
        margin-bottom: 0;
    }

    .location-grid {
        grid-template-columns:
            1fr;

        gap: 55px;
    }

    .location-image {
        height:
            min(
                100vw,
                720px
            );
    }

    .schedule-item {
        grid-template-columns:
            110px
            1fr;

        gap:
            25px
            35px;
    }

    .schedule-line {
        display: none;
    }

    .palette {
        min-height: 500px;
    }

    .rsvp-copy {
        position: static;
    }

}


/* =========================================================
   RESPONSIVE 700
========================================================= */

@media (max-width: 700px) {

    .container {
        width:
            calc(100% - 36px);
    }

    .section {
        padding:
            95px
            0;
    }

    h2 {
        font-size:
            clamp(
                52px,
                16vw,
                76px
            );
    }


    /* COVER */

    .cover-top {
        width:
            calc(100% - 36px);

        top:
            max(
                20px,
                env(safe-area-inset-top)
            );
    }

    .cover-top span {
        font-size: 6px;

        letter-spacing: 0.22em;
    }

    .cover-top-line {
        margin:
            0
            12px;
    }

    .glass-portal {
        width:
            min(
                calc(100% - 34px),
                430px
            );

        height:
            min(
                80svh,
                760px
            );

        border-radius:
            32px;
    }

    .portal-content {
        padding:
            45px
            25px
            28px;
    }

    .portal-names {
        font-size:
            clamp(
                64px,
                21vw,
                90px
            );
    }

    .cover-side-text {
        display: none;
    }


    /* HERO */

    .hero {
        min-height:
            620px;
    }

    .hero-content {
        padding:
            65px
            18px;
    }

    .hero-content-inner {
        width: 100%;
    }

    .hero-title {
        font-size:
            clamp(
                78px,
                27vw,
                125px
            );

        line-height: 0.67;
    }

    .hero-title em {
        margin:
            24px
            0
            17px;
    }

    .hero-date {
        margin-top: 45px;
    }


    /* INTRO */

    .intro-container {
        gap: 35px;
    }

    .intro-text {
        margin-left: 0;
    }


    /* PHOTO */

    .editorial-photo
    .photo-frame {
        height:
            125vw;

        max-height:
            760px;
    }


    /* CALENDAR */

    .calendar {
        padding:
            24px
            16px;
    }

    .calendar-days {
        gap: 5px;
    }


    /* SCHEDULE */

    .schedule-item {
        grid-template-columns:
            1fr;

        gap: 15px;

        padding:
            35px
            0;
    }

    .schedule-time {
        font-size: 40px;
    }


    /* PALETTE */

    .palette {
        min-height: 420px;
    }


    /* DETAILS */

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

    .detail-card {
        min-height: auto;
    }

    .detail-number {
        margin-bottom: 60px;
    }


    /* RSVP */

    .rsvp-container {
        gap: 45px;
    }

    .rsvp-form {
        padding:
            30px
            22px;
    }


    /* AACREATE */

    .aacreate-brand {
        margin-top: 75px;

        padding-top: 26px;
    }

    .aacreate-logo img {
        width:
            clamp(
                145px,
                50vw,
                205px
            );
    }

}


/* =========================================================
   RESPONSIVE 380
========================================================= */

@media (max-width: 380px) {

    .glass-portal {
        width:
            calc(100% - 24px);

        border-radius:
            27px;
    }

    .portal-content {
        padding:
            38px
            20px
            22px;
    }

    .portal-date p {
        margin:
            0
            10px;

        font-size: 7px;
    }

    .open-button {
        min-height: 54px;

        padding:
            0
            18px;
    }

    .open-button-text {
        font-size: 8px;
    }

    .open-button-arrow {
        right: 18px;
    }

    .hero-content {
        padding:
            55px
            12px;
    }

    .hero-title {
        font-size:
            clamp(
                70px,
                26vw,
                100px
            );
    }

}


/* =========================================================
   TOUCH
========================================================= */

@media (hover: none) {

    .open-button:hover,
    .outline-button:hover,
    .submit-button:hover,
    .aacreate-logo:hover {
        transform: none;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (
    prefers-reduced-motion:
    reduce
) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

    .reveal,
    .hero-content-inner.reveal {
        opacity: 1;

        transform: none;
    }

}