/* =========================================================
   VARIABLES
========================================================= */

:root {
    --yellow: #f3c928;
    --yellow-dark: #c99d16;
    --yellow-soft: #fff4c7;
    --cream: #fffdf7;
    --cream-dark: #faf5e8;
    --brown: #493d25;
    --text: #4a4538;
    --muted: #8a836f;
    --white: #ffffff;
    --shadow: rgba(70, 55, 20, .12);
}


/* =========================================================
   BASE
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: "Montserrat", sans-serif;
    overflow-x: hidden;
}

button {
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

section {
    position: relative;
    overflow: hidden;
}


/* =========================================================
   PETALS
========================================================= */

.petals {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

.petal {
    position: absolute;
    top: -30px;
    font-size: 18px;
    opacity: .7;
    animation: falling linear forwards;
}

@keyframes falling {

    0% {
        transform:
            translate3d(0, -40px, 0)
            rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: .7;
    }

    90% {
        opacity: .55;
    }

    100% {
        transform:
            translate3d(var(--drift), 110vh, 0)
            rotate(360deg);
        opacity: 0;
    }
}


/* =========================================================
   INTRO
========================================================= */

.intro-screen {
    position: fixed;
    inset: 0;
    z-index: 5000;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at center,
            #fffbea 0%,
            #fff8df 45%,
            #f9edc6 100%
        );

    transition:
        opacity .8s ease,
        visibility .8s ease;
}

.intro-screen.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 30px;
}

.intro-flower-wrap {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-glow {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;

    background: rgba(243, 201, 40, .25);

    filter: blur(20px);

    animation: pulseGlow 3s ease-in-out infinite;
}

.intro-flower {
    position: relative;
    font-size: 7rem;

    animation:
        introFlower 2.5s ease-in-out infinite,
        flowerAppear 1.2s ease;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(.85);
        opacity: .5;
    }

    50% {
        transform: scale(1.1);
        opacity: .9;
    }
}

@keyframes introFlower {

    0%,
    100% {
        transform: rotate(-5deg) translateY(0);
    }

    50% {
        transform: rotate(5deg) translateY(-8px);
    }
}

@keyframes flowerAppear {

    from {
        opacity: 0;
        transform: scale(.4);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.intro-small,
.final-small {
    letter-spacing: .3em;
    font-size: .72rem;
    font-weight: 600;
    color: var(--yellow-dark);
}

.intro-content h1 {
    margin: 8px 0 15px;

    font-family: "DM Serif Display", serif;
    font-size: clamp(3.5rem, 10vw, 6rem);
    font-weight: 400;
    color: var(--brown);
}

.intro-description {
    color: var(--muted);
    line-height: 1.8;
    font-size: .95rem;
}

.btn-open {
    margin-top: 25px;

    padding: 14px 28px;

    border: 1px solid rgba(180, 140, 20, .3);
    border-radius: 50px;

    background: rgba(255,255,255,.75);
    color: var(--brown);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        background .3s ease;
}

.btn-open:hover {
    background: var(--white);
    color: var(--brown);

    transform: translateY(-3px);

    box-shadow:
        0 15px 35px rgba(130,100,20,.12);
}

.intro-background-flower {
    position: absolute;
    opacity: .12;
    filter: blur(1px);
}

.intro-bg-1 {
    left: 5%;
    top: 10%;
    font-size: 7rem;
}

.intro-bg-2 {
    right: 8%;
    top: 18%;
    font-size: 5rem;
}

.intro-bg-3 {
    left: 10%;
    bottom: 10%;
    font-size: 5rem;
}

.intro-bg-4 {
    right: 5%;
    bottom: 8%;
    font-size: 8rem;
}


/* =========================================================
   PAGE
========================================================= */

.page-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease;
}

.page-content.visible {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   PROGRESS
========================================================= */

.progress-bar-page {
    position: fixed;
    z-index: 3000;
    top: 0;
    left: 0;

    width: 0;
    height: 3px;

    background: var(--yellow);

    box-shadow:
        0 0 10px rgba(243,201,40,.7);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            #fffdf6 0%,
            #fff8df 60%,
            #f8edc9 100%
        );
}

.hero-content {
    position: relative;
    z-index: 5;
}

.eyebrow,
.section-label {
    margin-bottom: 20px;

    font-size: .7rem;
    font-weight: 600;

    letter-spacing: .3em;

    color: var(--yellow-dark);
}

.main-flower {
    display: inline-block;

    font-size: clamp(7rem, 18vw, 11rem);

    animation:
        mainFlower 4s ease-in-out infinite;
}

@keyframes mainFlower {

    0%,
    100% {
        transform: rotate(-3deg) translateY(0);
    }

    50% {
        transform: rotate(3deg) translateY(-12px);
    }
}

.hero h2,
.message-container h2,
.flower-section h2,
.section-heading h2,
.letter-heading h2,
.question-card h2,
.gift-content h2,
.final-content h2 {
    font-family: "DM Serif Display", serif;
    font-weight: 400;
    color: var(--brown);
}

.hero h2 {
    margin: 10px 0 20px;
    font-size: clamp(2.5rem, 7vw, 5rem);
    line-height: 1;
}

.hero-text {
    color: var(--muted);
    line-height: 1.9;
}

.btn-scroll {
    margin-top: 25px;

    border: none;
    background: transparent;
    color: var(--brown);

    transition: transform .3s ease;
}

.btn-scroll:hover {
    color: var(--brown);
    transform: translateY(5px);
}

.btn-scroll i {
    display: block;
    margin-top: 8px;
}

.hero-flower {
    position: absolute;
    opacity: .12;
}

.hero-flower-1 {
    left: 7%;
    top: 20%;
    font-size: 7rem;
}

.hero-flower-2 {
    right: 10%;
    top: 28%;
    font-size: 4rem;
}

.hero-flower-3 {
    right: 7%;
    bottom: 12%;
    font-size: 7rem;
}


/* =========================================================
   MESSAGE
========================================================= */

.message-section {
    padding: 140px 20px;
    background: var(--cream);
}

.message-container {
    max-width: 720px;
    margin: auto;
    text-align: center;
}

.message-container h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.yellow-line {
    width: 70px;
    height: 2px;

    margin: 25px auto;

    background: var(--yellow);
}

.message-text {
    color: var(--muted);
    line-height: 2;
    font-size: 1rem;
}

.message-signature {
    margin-top: 30px;
    font-size: 2rem;
}


/* =========================================================
   REVEAL
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(45px);

    transition:
        opacity 1s ease,
        transform 1s cubic-bezier(.22,1,.36,1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   GARDEN
========================================================= */

.flower-section {
    min-height: 100vh;
    padding: 130px 20px;

    background:
        linear-gradient(
            180deg,
            #fff9df,
            #fff3bd
        );
}

.flower-section-content {
    position: relative;
    z-index: 10;

    text-align: center;
}

.flower-section h2 {
    font-size: clamp(2.7rem, 7vw, 4.5rem);
}

.flower-section-content p:not(.section-label) {
    color: var(--muted);
}

.flower-section-content small {
    display: block;
    margin-top: 20px;
    color: var(--yellow-dark);
}

.flower-garden {
    position: relative;

    max-width: 900px;
    height: 430px;

    margin: 40px auto 0;
}

.garden-flower {
    position: absolute;

    border: 0;
    padding: 0;

    background: transparent;

    font-size: clamp(3rem, 7vw, 6rem);

    cursor: pointer;

    transition:
        transform .4s ease,
        filter .4s ease;
}

.garden-flower:hover {
    transform:
        scale(1.25)
        rotate(8deg);

    filter:
        drop-shadow(
            0 10px 15px rgba(150,110,10,.2)
        );
}

.garden-flower.clicked {
    animation: flowerPop .6s ease;
}

@keyframes flowerPop {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5) rotate(8deg);
    }

    100% {
        transform: scale(1);
    }
}

.gf-1 {
    left: 5%;
    bottom: 30px;
}

.gf-2 {
    left: 18%;
    bottom: 100px;
}

.gf-3 {
    left: 31%;
    bottom: 20px;
}

.gf-4 {
    left: 44%;
    bottom: 130px;
}

.gf-5 {
    left: 56%;
    bottom: 30px;
}

.gf-6 {
    left: 69%;
    bottom: 100px;
}

.gf-7 {
    left: 82%;
    bottom: 20px;
}

.gf-8 {
    left: 10%;
    bottom: 230px;
}

.gf-9 {
    right: 7%;
    bottom: 230px;
}


/* =========================================================
   FLOWER MESSAGE
========================================================= */

.flower-message {
    position: fixed;
    inset: 0;

    z-index: 4000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(50,40,20,.35);
    backdrop-filter: blur(8px);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.flower-message.show {
    opacity: 1;
    visibility: visible;
}

.flower-message-box {
    position: relative;

    width: min(500px, 100%);

    padding: 50px 35px;

    text-align: center;

    border-radius: 15px;

    background: var(--white);

    box-shadow:
        0 30px 80px rgba(50,40,20,.2);

    transform: scale(.85);

    transition:
        transform .4s cubic-bezier(.22,1,.36,1);
}

.flower-message.show .flower-message-box {
    transform: scale(1);
}

.flower-message-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

#flowerMessageText {
    margin: 0;

    color: var(--muted);

    line-height: 1.8;
}

.flower-message-close {
    position: absolute;

    top: 15px;
    right: 15px;

    width: 35px;
    height: 35px;

    border: 0;
    border-radius: 50%;

    background: var(--yellow-soft);
    color: var(--brown);
}


/* =========================================================
   MEMORIES
========================================================= */

.photos-section {
    padding: 140px 20px;
    background: var(--cream);
}

.section-heading {
    max-width: 700px;
    margin: 0 auto 80px;

    text-align: center;
}

.section-heading h2 {
    font-size: clamp(2.5rem, 6vw, 4.3rem);
}

.section-heading > p:not(.section-label) {
    color: var(--muted);
    line-height: 1.8;
}

.memory-timeline {
    max-width: 1050px;
    margin: auto;
}

.memory-item {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;

    margin-bottom: 110px;
}

.memory-item:last-child {
    margin-bottom: 0;
}

.memory-reverse .memory-photo {
    order: 2;
}

.memory-reverse .memory-info {
    order: 1;
}

.memory-photo {
    position: relative;

    padding: 15px;

    background: white;

    box-shadow:
        0 25px 60px rgba(70,55,20,.12);

    transform: rotate(-2deg);

    transition:
        transform .5s ease,
        box-shadow .5s ease;
}

.memory-reverse .memory-photo {
    transform: rotate(2deg);
}

.memory-photo:hover {
    transform:
        rotate(0)
        translateY(-8px);

    box-shadow:
        0 35px 70px rgba(70,55,20,.18);
}

.memory-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.memory-number {
    position: absolute;

    right: 15px;
    bottom: 15px;

    padding: 6px 10px;

    font-size: .65rem;
    letter-spacing: .15em;

    background: rgba(255,255,255,.9);
    color: var(--brown);
}

.memory-info > span {
    font-size: .65rem;
    font-weight: 600;
    letter-spacing: .25em;
    color: var(--yellow-dark);
}

.memory-info h3 {
    margin: 18px 0;

    font-family: "DM Serif Display", serif;
    font-size: 2.3rem;
    font-weight: 400;

    color: var(--brown);
}

.memory-info p {
    color: var(--muted);
    line-height: 1.9;
}


/* =========================================================
   THINGS
========================================================= */

.things-section {
    padding: 140px 20px;

    background:
        linear-gradient(
            180deg,
            #fffaf0,
            #fff3c6
        );
}

.things-grid {
    max-width: 1000px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.thing-card {
    padding: 40px;

    border: 1px solid rgba(190,150,30,.15);
    border-radius: 12px;

    background: rgba(255,255,255,.65);

    transition:
        transform .4s ease,
        box-shadow .4s ease;
}

.thing-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 25px 50px rgba(100,80,20,.1);
}

.thing-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.thing-card > span {
    font-size: .65rem;
    letter-spacing: .2em;
    color: var(--yellow-dark);
}

.thing-card h3 {
    margin: 12px 0;

    font-family: "DM Serif Display", serif;
    font-weight: 400;

    font-size: 1.8rem;

    color: var(--brown);
}

.thing-card p {
    margin: 0;

    color: var(--muted);
    line-height: 1.8;
}


/* =========================================================
   QUESTION
========================================================= */

.question-section {
    padding: 140px 20px;
    background: var(--cream);
}

.question-card {
    max-width: 800px;

    margin: auto;
    padding: 80px 35px;

    text-align: center;

    border-radius: 20px;

    background:
        radial-gradient(
            circle at top,
            #fff7cf,
            #fffdf8
        );

    box-shadow:
        0 30px 80px rgba(80,65,20,.1);
}

.question-flower {
    font-size: 4rem;
    margin-bottom: 20px;
}

.question-card h2 {
    font-size: clamp(2.4rem, 6vw, 4rem);
}

.question-answer {
    max-width: 550px;

    margin: 25px auto;

    color: var(--muted);
    line-height: 1.8;

    min-height: 30px;
}

.btn-gold {
    padding: 13px 25px;

    border: 0;
    border-radius: 50px;

    background: var(--yellow);
    color: #4b3a0c;

    transition:
        transform .3s ease,
        box-shadow .3s ease;
}

.btn-gold:hover {
    background: var(--yellow);
    color: #4b3a0c;

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(180,140,20,.2);
}

.question-card.answered .question-answer {
    animation: answerAppear .6s ease;
}

@keyframes answerAppear {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   LETTER
========================================================= */

.letter-section {
    padding: 140px 20px 180px;

    background:
        linear-gradient(
            180deg,
            #fff9e4,
            #f9edc7
        );
}

.letter-heading {
    text-align: center;
    margin-bottom: 60px;
}

.letter-heading h2 {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
}

.letter-instruction {
    color: var(--muted);
}

.letter-instruction i {
    margin-right: 7px;
    color: var(--yellow-dark);
}


/* =========================================================
   ENVELOPE
========================================================= */

.envelope {
    position: relative;

    width: min(90vw, 430px);
    height: 280px;

    margin: 0 auto;

    perspective: 1000px;

    cursor: pointer;

    transition:
        transform .5s ease,
        margin-bottom .8s ease;
}

.envelope:hover {
    transform: translateY(-5px);
}

.envelope-back {
    position: absolute;
    inset: 0;

    z-index: 1;

    border-radius: 6px;

    background:
        linear-gradient(
            135deg,
            #f5dfa0,
            #e7c96d
        );

    box-shadow:
        0 25px 55px rgba(100,75,20,.15);
}

.envelope-paper {
    position: absolute;

    z-index: 2;

    left: 7%;
    right: 7%;
    top: 12%;

    height: 78%;

    padding-top: 40px;

    border-radius: 3px;

    background: #fffdf6;

    text-align: center;

    box-shadow:
        0 8px 20px rgba(80,60,20,.08);

    transition:
        transform .8s cubic-bezier(.22,1,.36,1);
}

.paper-flower {
    font-size: 3rem;
    margin-bottom: 10px;
}

.envelope-paper span {
    font-family: "DM Serif Display", serif;
    font-size: 1.5rem;
    color: var(--brown);
}

.envelope-front {
    position: absolute;

    z-index: 4;

    left: 0;
    right: 0;
    bottom: 0;

    height: 62%;

    clip-path:
        polygon(
            0 0,
            50% 70%,
            100% 0,
            100% 100%,
            0 100%
        );

    border-radius: 0 0 6px 6px;

    background:
        linear-gradient(
            135deg,
            #f0d789,
            #dfbd58
        );
}

.envelope-flap {
    position: absolute;

    z-index: 5;

    top: 0;
    left: 0;

    width: 100%;
    height: 62%;

    clip-path:
        polygon(
            0 0,
            100% 0,
            50% 78%
        );

    background:
        linear-gradient(
            135deg,
            #f7e2a3,
            #e7ca70
        );

    transform-origin: top;

    transform: rotateX(0deg);

    transition:
        transform .75s cubic-bezier(.22,1,.36,1);
}

.envelope-heart {
    position: absolute;

    z-index: 7;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%,-30%);

    font-size: 2.5rem;

    transition:
        opacity .3s ease,
        transform .4s ease;
}


/* OPEN */

.envelope.open {
    margin-bottom: 100px;
}

.envelope.open .envelope-flap {
    transform: rotateX(180deg);
}

.envelope.open .envelope-paper {
    transform: translateY(-100px);
}

.envelope.open .envelope-heart {
    opacity: 0;

    transform:
        translate(-50%,-50%)
        scale(.7);
}


/* CLOSING */

.envelope.closing .envelope-flap {
    transform: rotateX(0deg);
}

.envelope.closing .envelope-paper {
    transform: translateY(0);
}

.envelope.closing .envelope-heart {
    opacity: 1;

    transform:
        translate(-50%,-30%)
        scale(1);

    transition-delay: .45s;
}


/* =========================================================
   LETTER
========================================================= */

.letter {
    position: relative;
    z-index: 20;

    max-width: 640px;

    margin: -50px auto 0;

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(50px)
        scale(.96);

    transition:
        opacity .5s ease,
        transform .7s cubic-bezier(.22,1,.36,1),
        visibility .5s ease;
}

.letter.show {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}

.letter.closing {
    opacity: 0;

    visibility: visible;

    transform:
        translateY(-145px)
        scale(.55);

    filter: blur(1px);

    transition:
        opacity .55s ease,
        transform .65s cubic-bezier(.22,1,.36,1),
        filter .55s ease;
}

.letter-paper {
    position: relative;

    padding: 60px 60px 45px;

    border: 1px solid rgba(180,150,80,.18);
    border-radius: 4px;

    background:
        linear-gradient(
            135deg,
            #fffef9,
            #fffaf0
        );

    box-shadow:
        0 30px 80px rgba(70,55,25,.12);
}

.letter-top {
    text-align: center;
    font-size: 2.5rem;

    margin-bottom: 20px;
}

.letter-to {
    font-family: "DM Serif Display", serif;
    font-size: 2rem;

    color: var(--brown);
}

.letter-paper p:not(.letter-to) {
    color: var(--muted);
    line-height: 1.9;
}

.letter-divider {
    text-align: center;

    margin: 30px 0;

    color: var(--yellow-dark);
}

.letter-signature {
    margin-top: 30px;

    display: flex;
    flex-direction: column;

    align-items: center;
    gap: 5px;
}

.letter-signature span {
    font-family: "DM Serif Display", serif;
    font-size: 1.4rem;
    color: var(--brown);
}

.letter-signature strong {
    font-size: 2rem;
}

.btn-close-letter {
    display: block;

    margin: 35px auto 0;

    padding: 11px 22px;

    border: 1px solid rgba(180,140,20,.25);
    border-radius: 50px;

    background: transparent;

    color: var(--brown);

    transition:
        background .3s ease,
        transform .3s ease;
}

.btn-close-letter:hover {
    background: var(--yellow-soft);
    transform: translateY(-2px);
}


/* =========================================================
   GIFT
========================================================= */

.gift-section {
    padding: 150px 20px;

    background: var(--cream);
}

.gift-content {
    text-align: center;
}

.gift-content h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

.gift-content > p:not(.section-label) {
    color: var(--muted);
}

.gift-box {
    position: relative;

    display: block;

    width: 190px;
    height: 150px;

    margin: 70px auto 30px;

    border: 0;

    background: transparent;

    cursor: pointer;

    transition:
        transform .5s ease;
}

.gift-box:hover {
    transform: translateY(-8px);
}

.gift-body {
    position: absolute;

    left: 10px;
    right: 10px;
    bottom: 0;

    height: 105px;

    border-radius: 4px;

    background:
        linear-gradient(
            135deg,
            #f4d66f,
            #dfb945
        );

    box-shadow:
        0 25px 40px rgba(100,75,20,.18);
}

.gift-lid {
    position: absolute;

    left: 0;
    right: 0;
    top: 25px;

    height: 35px;

    z-index: 3;

    border-radius: 4px;

    background:
        linear-gradient(
            135deg,
            #f8df91,
            #e7c65c
        );

    transition:
        transform .7s cubic-bezier(.22,1,.36,1);
}

.gift-ribbon {
    position: absolute;

    z-index: 5;

    background: #fff4c7;
}

.gift-ribbon.vertical {
    left: 50%;
    top: 25px;
    bottom: 0;

    width: 22px;

    transform: translateX(-50%);
}

.gift-ribbon.horizontal {
    left: 10px;
    right: 10px;
    top: 70px;

    height: 20px;
}

.gift-bow {
    position: absolute;

    z-index: 6;

    top: -12px;
    left: 50%;

    transform: translateX(-50%);

    font-size: 2.4rem;

    transition:
        transform .7s ease;
}

.gift-box.opened .gift-lid {
    transform:
        translateY(-70px)
        rotate(-5deg);
}

.gift-box.opened .gift-bow {
    transform:
        translate(-50%,-65px)
        rotate(-8deg);
}

.gift-message {
    max-width: 550px;

    margin: 0 auto;

    opacity: 0;
    visibility: hidden;

    transform:
        translateY(20px)
        scale(.95);

    transition:
        opacity .6s ease,
        transform .6s ease,
        visibility .6s ease;
}

.gift-message.show {
    opacity: 1;
    visibility: visible;

    transform:
        translateY(0)
        scale(1);
}

.gift-message-flower {
    font-size: 3rem;
}

.gift-message h3 {
    margin: 15px 0;

    font-family: "DM Serif Display", serif;
    font-size: 2.5rem;

    font-weight: 400;

    color: var(--brown);
}

.gift-message p {
    color: var(--muted);
    line-height: 1.9;
}


/* =========================================================
   FINAL
========================================================= */

.final-section {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    padding: 100px 20px;

    background:
        radial-gradient(
            circle at center,
            #fff9df,
            #f8e9bd
        );
}

.final-content {
    position: relative;
    z-index: 10;

    max-width: 700px;
}

.final-flower {
    font-size: 6rem;

    animation:
        finalFlower 3s ease-in-out infinite;
}

@keyframes finalFlower {

    0%,
    100% {
        transform: translateY(0) rotate(-4deg);
    }

    50% {
        transform: translateY(-10px) rotate(4deg);
    }
}

.final-content h2 {
    font-size: clamp(2.8rem, 7vw, 5rem);
}

.final-line {
    width: 60px;
    height: 2px;

    margin: 25px auto;

    background: var(--yellow);
}

.final-text {
    color: var(--muted);
    line-height: 1.9;
}

.final-last {
    margin-top: 25px;

    font-family: "DM Serif Display", serif;
    font-size: 1.6rem;

    color: var(--brown);
}

.btn-restart {
    margin-top: 35px;

    padding: 13px 25px;

    border: 1px solid rgba(180,140,20,.25);
    border-radius: 50px;

    background: rgba(255,255,255,.7);

    color: var(--brown);

    transition:
        transform .3s ease,
        background .3s ease;
}

.btn-restart:hover {
    background: white;
    color: var(--brown);

    transform: translateY(-3px);
}

.final-background-flower {
    position: absolute;
    opacity: .12;
}

.final-bg-1 {
    left: 5%;
    top: 15%;
    font-size: 8rem;
}

.final-bg-2 {
    right: 8%;
    top: 20%;
    font-size: 5rem;
}

.final-bg-3 {
    right: 12%;
    bottom: 10%;
    font-size: 8rem;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .message-section,
    .photos-section,
    .things-section,
    .question-section,
    .letter-section,
    .gift-section {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .flower-garden {
        height: 400px;
    }

    .memory-item {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-bottom: 80px;
    }

    .memory-reverse .memory-photo,
    .memory-reverse .memory-info {
        order: initial;
    }

    .memory-info h3 {
        font-size: 2rem;
    }

    .things-grid {
        grid-template-columns: 1fr;
    }

    .thing-card {
        padding: 30px;
    }

    .letter-paper {
        padding: 45px 25px 35px;
    }

    .envelope {
        width: min(90vw, 380px);
        height: 245px;
    }

    .letter {
        margin-top: -30px;
    }

    .hero-flower {
        opacity: .08;
    }
}


@media (max-width: 480px) {

    .intro-content {
        padding: 20px;
    }

    .intro-flower {
        font-size: 5rem;
    }

    .intro-flower-wrap {
        width: 130px;
        height: 130px;
    }

    .flower-garden {
        height: 340px;
    }

    .garden-flower {
        font-size: 3rem;
    }

    .gf-8 {
        bottom: 210px;
    }

    .gf-9 {
        bottom: 210px;
    }

    .envelope {
        height: 220px;
    }

    .envelope-paper {
        padding-top: 30px;
    }

    .paper-flower {
        font-size: 2.4rem;
    }

    .letter.closing {
        transform:
            translateY(-110px)
            scale(.5);
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}