:root {
    --paper: #fff9fb;
    --paper-warm: #fffaf0;
    --white: #ffffff;
    --ink: #3a2138;
    --pink: #ff5f9f;
    --pink-soft: #ffb8d3;
    --pink-pale: #ffe6ef;
    --lavender: #c59af8;
    --yellow: #ffe68a;
    --blue: #b9e6ee;
    --shadow: 0 15px 35px rgba(88, 39, 73, 0.16);
    --display: "DynaPuff", cursive;
    --hand: "Sour Gummy", cursive;
    --script: "Handlee", cursive;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--hand);
    font-size: 18px;
    line-height: 1.55;
}

body.is-loading {
    overflow: hidden;
}

.image-loader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 20px;
    color: var(--pink);
    background-color: #fff8ef;
    background-image: radial-gradient(rgba(255, 99, 155, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 1;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

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

.image-loader-spinner {
    width: 64px;
    height: 64px;
    border: 7px solid var(--pink-pale);
    border-top-color: var(--pink);
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(255, 95, 159, 0.2);
    animation: loader-spin 0.85s linear infinite;
}

.image-loader p {
    margin: 0;
    font-family: var(--display);
    font-size: 18px;
}

@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

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

a {
    color: inherit;
}

button {
    font: inherit;
}

.love-particle {
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 1.4em;
    height: 1.4em;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 5px 5px rgba(58, 33, 56, 0.2));
    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
    font-size: var(--particle-size, 30px);
    line-height: 1;
    will-change: transform, opacity;
    transform: translate3d(-100px, -100px, 0);
    opacity: 0;
}

.birthday-intro {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    padding: clamp(32px, 7svh, 65px) 24px clamp(34px, 7.5svh, 70px);
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background-color: #fff8ef;
    background-image: radial-gradient(rgba(255, 99, 155, 0.09) 1px, transparent 1px);
    background-size: 24px 24px;
}

.birthday-glow {
    position: absolute;
    z-index: -2;
    filter: blur(95px);
    opacity: 0.72;
}

.birthday-glow-pink {
    top: -20%;
    left: -18%;
    width: 58%;
    height: 95%;
    background: #ffd9e9;
}

.birthday-glow-yellow {
    top: -18%;
    right: -15%;
    width: 58%;
    height: 90%;
    background: #ffe7a3;
}

.birthday-glow-mint {
    bottom: -28%;
    left: -12%;
    width: 55%;
    height: 70%;
    background: #c9f4df;
}

.birthday-glow-lavender {
    right: -18%;
    bottom: -25%;
    width: 62%;
    height: 72%;
    background: #e2c7ff;
}

.birthday-content {
    position: relative;
    z-index: 3;
    width: min(760px, 100%);
    text-align: center;
}

.polaroid.birthday-photo {
    position: absolute;
    z-index: 2;
    width: 160px;
    height: 198px;
    padding: 0;
    pointer-events: none;
    animation: float 7s ease-in-out infinite;
}

.birthday-photo-one {
    top: 4%;
    left: 3%;
    transform: rotate(-9deg);
}

.birthday-photo-two {
    top: 5%;
    right: 3%;
    transform: rotate(7deg);
    animation-delay: -2.5s;
}

.birthday-photo-two img {
    object-position: center 22%;
}

.birthday-photo-three {
    bottom: 3%;
    left: 4%;
    transform: rotate(5deg);
    animation-delay: -4.5s;
}

.birthday-photo-four {
    right: 5%;
    bottom: 3%;
    transform: rotate(-7deg);
    animation-delay: -1.2s;
}

.birthday-photo-five {
    top: 38%;
    left: -1%;
    transform: rotate(8deg);
    animation-delay: -3.6s;
}

.birthday-photo-six {
    top: 42%;
    right: -1%;
    transform: rotate(-6deg);
    animation-delay: -5.3s;
}

.birthday-photo-seven {
    top: 1%;
    left: 20%;
    width: 140px;
    height: 174px;
    transform: rotate(-4deg);
    animation-delay: -6.1s;
}

.birthday-photo-seven img {
    object-position: center 28%;
}

.birthday-photo-eight {
    top: 1%;
    right: 20%;
    width: 140px;
    height: 174px;
    transform: rotate(4deg);
    animation-delay: -3.1s;
}

.birthday-photo-eight img {
    object-position: center 52%;
}

.birthday-cake {
    margin-bottom: 22px;
    filter: drop-shadow(0 14px 14px rgba(104, 56, 83, 0.16));
    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
    font-size: 92px;
    line-height: 1;
    animation: birthday-bob 3.8s ease-in-out infinite;
}

.birthday-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    font-family: var(--display);
    font-size: 88px;
    font-weight: 700;
    line-height: 0.89;
    letter-spacing: 0;
}

.birthday-title span,
.birthday-title strong {
    display: block;
}

.birthday-title strong {
    color: transparent;
    background: linear-gradient(90deg, #ff4e9a 5%, #ff6f98 48%, #ff9d55 95%);
    background-clip: text;
    -webkit-background-clip: text;
}

.birthday-note {
    margin: 48px auto 38px;
    color: #5a385e;
    font-family: var(--script);
    font-size: 28px;
    line-height: 1.35;
}

.birthday-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
    max-width: 680px;
    margin: 0 auto;
}

.birthday-badge {
    min-width: 185px;
    padding: 13px 23px 11px;
    border: 3px solid;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 7px 15px rgba(95, 52, 81, 0.1);
    font-family: var(--display);
    font-size: 17px;
    font-weight: 700;
}

.birthday-badge-pink {
    transform: rotate(-2deg);
    border-color: #ff97bc;
    color: #f04f8b;
}

.birthday-badge-yellow {
    transform: rotate(2deg);
    border-color: #ffc454;
    color: #aa7600;
    background: rgba(255, 249, 214, 0.86);
}

.birthday-badge-lavender {
    transform: rotate(-1deg);
    border-color: #b594ee;
    color: #8d6bd0;
    background: rgba(244, 236, 255, 0.86);
}

.birthday-scroll {
    display: inline-block;
    margin-top: 48px;
    color: var(--pink);
    font-family: var(--script);
    font-size: 28px;
    text-decoration: none;
    animation: birthday-bob 2.2s ease-in-out infinite;
}

.birthday-scroll span {
    display: inline-block;
    font-family: sans-serif;
}

.birthday-deco {
    position: absolute;
    z-index: 1;
    filter: drop-shadow(0 8px 9px rgba(94, 44, 77, 0.12));
    font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
    line-height: 1;
    animation: birthday-bob 4.5s ease-in-out infinite;
}

.birthday-balloon-one {
    top: 9%;
    left: 9%;
    font-size: 64px;
}

.birthday-balloon-two {
    top: 18%;
    right: 10%;
    font-size: 60px;
    animation-delay: -1.8s;
}

.birthday-mini-cake {
    top: 50%;
    left: 13%;
    font-size: 60px;
    animation-delay: -0.8s;
}

.birthday-star {
    right: 13%;
    bottom: 24%;
    font-size: 58px;
    animation-delay: -2.4s;
}

.birthday-sparkles {
    top: 48%;
    right: 20%;
    font-size: 46px;
    animation-delay: -1.1s;
}

.birthday-gift {
    right: 17%;
    bottom: 8%;
    font-size: 58px;
    animation-delay: -3s;
}

.birthday-party {
    bottom: 9%;
    left: 16%;
    font-size: 52px;
    animation-delay: -2s;
}

.scroll-progress {
    position: fixed;
    top: 14px;
    right: 10px;
    z-index: 50;
    width: 7px;
    height: calc(100vh - 28px);
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 95, 159, 0.12);
}

.scroll-progress span {
    display: block;
    width: 100%;
    height: 0;
    border-radius: inherit;
    background: linear-gradient(var(--pink), var(--lavender));
}

.hero {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    place-items: center;
    overflow: hidden;
    isolation: isolate;
    background: var(--paper);
}

.paper-dots,
.paper-dots::after {
    position: absolute;
    inset: 0;
    z-index: -3;
    content: "";
    background-image: radial-gradient(rgba(255, 95, 159, 0.12) 1.1px, transparent 1.1px);
    background-size: 24px 24px;
    opacity: 0.55;
}

.paper-dots::after {
    transform: translate(12px, 12px);
    opacity: 0.26;
}

.wash {
    position: absolute;
    z-index: -2;
    width: 620px;
    height: 480px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.36;
}

.wash-one {
    top: 30%;
    left: 22%;
    background: #ffe48f;
}

.wash-two {
    right: 12%;
    bottom: -15%;
    background: #d8a8ff;
}

.hero-copy {
    position: relative;
    z-index: 5;
    width: min(720px, 80vw);
    padding-top: 70px;
    text-align: center;
}

.eyebrow,
.chapter-pill,
.ending-pill {
    margin: 0 auto 22px;
    font-family: var(--display);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.eyebrow {
    color: var(--pink);
}

.eyebrow span {
    padding-inline: 8px;
}

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

.hero h1 {
    margin: 0;
    font-family: var(--display);
    font-size: 92px;
    line-height: 0.95;
}

.hero h1 em {
    color: var(--pink);
    font-family: "Mystery Quest", cursive;
    font-size: 0.82em;
    font-style: normal;
    font-weight: 400;
}

.hero-subtitle {
    margin: 44px auto 40px;
    font-family: var(--script);
    font-size: 26px;
    line-height: 1.35;
}

.hero-subtitle span {
    color: var(--pink);
}

.scroll-cue {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.scroll-cue strong {
    color: var(--pink);
    font-family: var(--display);
    font-size: 16px;
    text-transform: uppercase;
}

.scroll-cue .arrow {
    display: grid;
    width: 48px;
    height: 48px;
    margin-top: 20px;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: var(--pink);
    box-shadow: 0 8px 0 #dc477f, 0 12px 24px rgba(255, 95, 159, 0.3);
    font-family: sans-serif;
    font-size: 27px;
    animation: bob 1.8s ease-in-out infinite;
}

.scroll-cue small {
    margin-top: 15px;
    color: var(--pink);
    font-family: var(--script);
    font-size: 18px;
}

.heart-sticker {
    position: relative;
    width: 120px;
    height: 68px;
    margin: 0 auto 18px;
}

.heart {
    position: absolute;
    width: 42px;
    height: 42px;
    transform: rotate(-45deg);
    border-radius: 7px 0 7px 0;
    background: var(--pink);
}

.heart::before,
.heart::after {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    content: "";
    background: inherit;
}

.heart::before {
    top: -21px;
    left: 0;
}

.heart::after {
    top: 0;
    left: 21px;
}

.heart-back {
    top: 20px;
    left: 25px;
    transform: rotate(-55deg) scale(0.85);
    background: var(--lavender);
}

.heart-front {
    top: 12px;
    right: 25px;
    transform: rotate(-38deg);
}

.polaroid {
    padding: 12px 12px 42px;
    background: white;
    box-shadow: var(--shadow);
}

.polaroid img {
    height: 100%;
    object-fit: cover;
}

.polaroid figcaption {
    position: absolute;
    right: 10px;
    bottom: 8px;
    left: 10px;
    font-family: var(--script);
    font-size: 17px;
    text-align: center;
}

.hero-photo {
    position: absolute;
    z-index: 2;
    width: 245px;
    height: 300px;
    animation: float 7s ease-in-out infinite;
}

.polaroid.hero-photo {
    padding: 0;
}

.hero-photo-one {
    top: 7%;
    left: 4%;
    transform: rotate(-8deg);
}

.hero-photo-two {
    top: 8%;
    right: 5%;
    transform: rotate(8deg);
    animation-delay: -2s;
}

.hero-photo-three {
    bottom: 5%;
    left: 8%;
    transform: rotate(-7deg);
    animation-delay: -4s;
}

.hero-photo-four {
    right: 8%;
    bottom: 5%;
    transform: rotate(8deg);
    animation-delay: -1s;
}

.hero-photo-five {
    top: -4%;
    left: calc(50% - 122.5px);
    margin-inline: 0;
    transform: rotate(-3deg);
    animation-delay: -5.5s;
}

.doodle {
    position: absolute;
    color: var(--pink);
    font-size: 36px;
}

.hero-flower {
    top: 36%;
    right: 23%;
}

.hero-star {
    bottom: 28%;
    left: 27%;
    color: var(--yellow);
    transform: rotate(-12deg);
}

.chapter {
    position: relative;
    padding: 105px 30px;
}

.chapter-inner {
    width: min(1050px, 100%);
    margin: 0 auto;
}

.chapter-inner.narrow {
    width: min(940px, 100%);
}

.chapter-pill {
    display: table;
    margin-right: 0;
    margin-left: 0;
    padding: 13px 28px 10px;
    border-radius: 999px;
    color: white;
    background: var(--pink);
    box-shadow: 0 7px 0 #ce477b;
    font-size: 17px;
}

.section-title {
    margin: 36px 0 32px;
    font-family: var(--display);
    font-size: 54px;
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
}

.section-title span {
    color: var(--pink);
}

.story-copy,
.section-intro {
    max-width: 850px;
    font-family: var(--script);
    font-size: 27px;
}

.story-copy strong {
    color: var(--pink);
    font-weight: 700;
}

.pull-quote {
    max-width: 750px;
    margin: 48px 0;
    padding: 5px 0 5px 30px;
    border-left: 6px solid var(--pink-soft);
    color: var(--pink);
    font-family: "Mystery Quest", cursive;
    font-size: 38px;
    line-height: 1.25;
}

.feature-polaroid {
    position: relative;
    width: min(560px, 92%);
    height: 650px;
    margin: 80px auto 10px;
    transform: rotate(-3deg);
}

.tape {
    position: absolute;
    top: -17px;
    left: 50%;
    z-index: 3;
    width: 110px;
    height: 35px;
    transform: translateX(-50%) rotate(-5deg);
    background: rgba(255, 150, 195, 0.75);
    box-shadow: 0 2px 4px rgba(58, 33, 56, 0.08);
}

.tape-yellow {
    background: rgba(255, 223, 109, 0.77);
}

.tape-blue {
    background: rgba(147, 219, 232, 0.75);
}

.chapter-flower {
    top: 12%;
    right: 8%;
}

.timeline-section {
    background-color: white;
    background-image: linear-gradient(rgba(255, 95, 159, 0.07) 1px, transparent 1px);
    background-size: 100% 34px;
}

.section-intro {
    margin-bottom: 75px;
}

.timeline {
    position: relative;
}

.timeline::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    border-radius: 3px;
    content: "";
    background: repeating-linear-gradient(to bottom, var(--pink-soft) 0 10px, transparent 10px 20px);
}

.timeline-entry {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    min-height: 600px;
}

.timeline-entry::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%);
    border: 5px solid white;
    border-radius: 50%;
    content: "";
    background: var(--pink);
    box-shadow: 0 0 0 2px var(--pink);
}

.timeline-entry-reverse .timeline-copy {
    grid-column: 2;
}

.timeline-entry-reverse .timeline-photo {
    grid-row: 1;
    grid-column: 1;
}

.timeline-copy {
    padding: 20px;
}

.entry-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 11px;
    align-items: center;
    margin: 0 0 7px;
    color: var(--pink);
    font-family: var(--display);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
}

.entry-label {
    line-height: 1.25;
}

.timeline-date {
    display: inline-grid;
    grid-template-columns: 32px auto;
    gap: 7px;
    align-items: center;
    padding: 5px 10px 5px 5px;
    transform: rotate(-1deg);
    border: 2px solid #ffc454;
    border-radius: 6px;
    color: #805900;
    background: #fff4ba;
    box-shadow: 3px 3px 0 rgba(255, 196, 84, 0.38);
    font-family: var(--display);
    text-decoration: none;
}

.timeline-entry:nth-child(even) .timeline-date {
    transform: rotate(1deg);
    border-color: #b594ee;
    color: #7654b9;
    background: #f1e8ff;
    box-shadow: 3px 3px 0 rgba(181, 148, 238, 0.32);
}

.timeline-date-day {
    display: grid;
    min-width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 4px;
    color: var(--pink);
    background: white;
    font-size: 17px;
    line-height: 1;
}

.timeline-date-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.timeline-date-copy strong {
    font-size: 11px;
}

.timeline-date-copy small {
    margin-top: 2px;
    font-family: var(--script);
    font-size: 13px;
    font-weight: 700;
}

.timeline-date-soon .timeline-date-copy strong {
    font-size: 13px;
}

.timeline-date-range .timeline-date-day {
    font-size: 22px;
}

.timeline-copy h3 {
    margin-bottom: 16px;
    font-family: var(--display);
    font-size: 30px;
    line-height: 1.2;
}

.timeline-copy p:last-child {
    font-family: var(--script);
    font-size: 23px;
}

.timeline-copy .timeline-message {
    margin-top: 20px;
}

.timeline-photo {
    position: relative;
    width: 420px;
    height: 485px;
    justify-self: center;
}

.timeline-photo.timeline-photo-collage {
    height: 785px;
}

.timeline-photo.timeline-photo-two-moms {
    height: 785px;
}

.timeline-photo-collage img {
    object-fit: contain;
}

.timeline-photo-two-moms img {
    object-fit: contain;
}

.timeline-photo-pasandida img {
    object-position: center 30%;
}

.tilt-left {
    transform: rotate(-4deg);
}

.tilt-right {
    transform: rotate(4deg);
}

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

.photo-wall {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px 40px;
    align-items: center;
}

.gallery-card {
    position: relative;
    grid-column: auto;
    height: 520px;
    transform: rotate(2deg);
}

.polaroid.gallery-card {
    padding-bottom: 64px;
}

.gallery-card figcaption {
    line-height: 1.2;
}

.gallery-card:nth-of-type(even) {
    transform: rotate(-3deg);
}

.gallery-card.card-wide {
    grid-column: auto;
    height: 560px;
}

.gallery-card.gallery-card-landscape {
    grid-column: 1 / -1;
    width: min(780px, 100%);
    height: 500px;
    justify-self: center;
}

.mini-note {
    position: relative;
    grid-column: auto;
    padding: 34px 28px;
    transform: rotate(-4deg);
    box-shadow: 8px 12px 25px rgba(74, 31, 63, 0.1);
    font-family: var(--script);
    font-size: 20px;
}

.mini-note::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    content: "";
    background: repeating-linear-gradient(90deg, var(--pink) 0 16px, transparent 16px 25px);
}

.note-pink {
    background: #ffe0eb;
}

.mini-note span,
.mini-note strong {
    display: block;
}

.mini-note strong {
    font-size: 25px;
}

.mini-note i {
    position: absolute;
    right: 18px;
    bottom: 2px;
    color: var(--pink);
    font-size: 50px;
    font-style: normal;
}

.stats-section {
    overflow: hidden;
    color: white;
    background: var(--ink);
}

.stats-section::before {
    position: absolute;
    inset: 0;
    content: "";
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    background-size: 31px 31px;
}

.stats-section .chapter-inner {
    position: relative;
}

.stats-section .section-title {
    color: white;
}

.stats-section .section-intro {
    color: var(--pink-soft);
}

.chapter-pill-light {
    color: var(--ink);
    background: var(--yellow);
    box-shadow: 0 7px 0 #d1b448;
}

.stats-stars {
    position: absolute;
    top: 35px;
    right: 8%;
    color: var(--pink-soft);
    font-size: 24px;
}

.time-together {
    margin: 0 0 58px;
    padding: 30px;
    border: 1px dashed rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.055);
    box-shadow: 12px 12px 0 rgba(255, 95, 159, 0.12);
}

.time-together-heading {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 17px;
    align-items: center;
    margin-bottom: 30px;
}

.clock-heart {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    color: var(--ink);
    background: var(--yellow);
    font-family: sans-serif;
    font-size: 36px;
    line-height: 1;
}

.time-together-heading p {
    margin: 0;
    color: var(--yellow);
    font-family: var(--display);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.time-together-heading h3 {
    margin: 2px 0 0;
    color: white;
    font-family: var(--script);
    font-size: 28px;
    font-weight: 400;
    line-height: 1.1;
}

.time-together-heading time {
    color: var(--pink-soft);
    font-family: var(--script);
    font-size: 17px;
}

.love-clock {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.love-clock div {
    position: relative;
    min-width: 0;
    padding: 27px 8px 4px;
    text-align: center;
}

.love-clock div + div::before {
    position: absolute;
    top: 26px;
    left: 0;
    color: rgba(255, 255, 255, 0.26);
    content: ":";
    font-family: var(--display);
    font-size: 28px;
}

.love-clock strong {
    display: block;
    color: var(--pink-soft);
    font-family: var(--display);
    font-size: 42px;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

.love-clock span {
    display: block;
    margin-top: 5px;
    color: white;
    font-family: var(--script);
    font-size: 16px;
    text-transform: uppercase;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat {
    min-height: 220px;
    padding: 28px 20px;
    border: 1px dashed rgba(255, 255, 255, 0.25);
    text-align: center;
}

.stat-icon {
    display: block;
    height: 38px;
    color: var(--yellow);
    font-size: 27px;
}

.stat strong {
    display: block;
    color: var(--pink-soft);
    font-family: var(--display);
    font-size: 48px;
    line-height: 1.2;
}

.stat p {
    margin-bottom: 0;
    font-family: var(--script);
    font-size: 20px;
}

.quote-section {
    position: relative;
    display: grid;
    min-height: 720px;
    padding: 100px 30px;
    place-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, transparent 49.8%, rgba(255, 95, 159, 0.11) 50%, transparent 50.2%),
        var(--paper-warm);
}

.quote-section::before,
.quote-section::after {
    position: absolute;
    color: var(--pink-soft);
    font-family: var(--display);
    font-size: 190px;
    line-height: 1;
    opacity: 0.45;
}

.quote-section::before {
    top: 80px;
    left: 7%;
    content: "“";
}

.quote-section::after {
    right: 7%;
    bottom: 0;
    content: "”";
}

.quote-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.quote-inner .chapter-pill {
    margin-right: auto;
    margin-left: auto;
}

.quote-inner blockquote {
    margin: 45px 0 30px;
    font-family: var(--display);
    font-size: 54px;
    line-height: 1.18;
}

.quote-inner blockquote span,
.quote-inner blockquote strong {
    color: var(--pink);
}

.quote-signoff {
    font-family: var(--script);
    font-size: 24px;
}

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

.scroll-gallery {
    height: var(--gallery-height, 600vh);
}

.scroll-gallery-stage {
    position: sticky;
    top: 0;
    display: grid;
    grid-template-columns: minmax(0, 59%) minmax(360px, 41%);
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
    background: var(--paper);
}

.scroll-gallery-media,
.scroll-gallery-copy {
    position: relative;
    min-width: 0;
    min-height: 0;
}

.scroll-gallery-media {
    margin: 14px 0 14px 16px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--pink-pale);
    box-shadow: var(--shadow);
}

.scroll-gallery-media::after {
    position: absolute;
    z-index: 4;
    inset: 0;
    pointer-events: none;
    content: "";
    background: linear-gradient(180deg, rgba(58, 33, 56, 0.08), transparent 30%, rgba(58, 33, 56, 0.18));
}

.scroll-gallery-mark {
    position: absolute;
    z-index: 6;
    top: 18px;
    left: 20px;
    margin: 0;
    color: white;
    font-family: var(--display);
    font-size: 18px;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(20, 17, 18, 0.35);
}

.scroll-gallery-mark span {
    color: var(--yellow);
}

.scroll-gallery-image {
    position: absolute;
    inset: 0;
    margin: 0;
    transform: scale(1.08) translateY(18px);
    opacity: 0;
    transition: opacity 0.7s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.scroll-gallery-image.is-active {
    z-index: 2;
    transform: scale(1) translateY(0);
    opacity: 1;
}

.scroll-gallery-image img,
.scroll-gallery-image video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.scroll-gallery-video-mark {
    position: absolute;
    z-index: 5;
    right: 22px;
    top: 20px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    background: rgba(58, 33, 56, 0.45);
    box-shadow: 0 7px 20px rgba(58, 33, 56, 0.22);
    font-size: 15px;
    backdrop-filter: blur(5px);
}

.scroll-gallery-count {
    position: absolute;
    z-index: 6;
    right: 24px;
    bottom: 18px;
    margin: 0;
    color: white;
    font-family: var(--display);
    font-size: 14px;
    text-shadow: 0 2px 10px rgba(20, 17, 18, 0.55);
}

.scroll-gallery-copy {
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 18px 30px 22px 42px;
    color: var(--pink);
    isolation: isolate;
    background-color: var(--paper-warm);
    background-image:
        linear-gradient(rgba(197, 154, 248, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(197, 154, 248, 0.1) 1px, transparent 1px);
    background-size: 28px 28px;
}

.scroll-gallery-copy::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(255, 184, 211, 0.08), transparent 45%);
}

.scroll-gallery-header,
.scroll-gallery-footer {
    position: relative;
    z-index: 4;
}

.scroll-gallery-header {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 18px;
    justify-content: space-between;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--pink-soft);
}

.scroll-gallery-header p {
    margin: 0;
    font-size: 12px;
    line-height: 1.1;
    text-transform: uppercase;
}

.scroll-gallery-captions {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.scroll-gallery-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(50px);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.45s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.65s;
}

.scroll-gallery-caption.is-active {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    transition-delay: 0.12s, 0.12s, 0s;
}

.scroll-gallery-caption > h3 {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
}

.scroll-gallery-caption h2 {
    margin: 0;
    color: var(--ink);
    font-family: var(--display);
    font-size: 80px;
    line-height: 0.88;
    text-transform: uppercase;
}

.scroll-gallery-caption span {
    max-width: 520px;
    margin-top: 34px;
    color: var(--ink);
    font-family: var(--script);
    font-size: 21px;
    line-height: 1.35;
}

.scroll-gallery-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
}

.scroll-gallery-progress {
    height: 2px;
    overflow: hidden;
    background: var(--pink-pale);
}

.scroll-gallery-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--pink);
    transition: width 0.15s linear;
}

.scroll-gallery-dots {
    display: grid;
    grid-template-columns: repeat(12, 4px);
    gap: 5px;
}

.scroll-gallery-dots i {
    width: 4px;
    height: 4px;
    border: 1px solid var(--pink);
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.scroll-gallery-dots i.is-active {
    transform: scale(1.35);
    background: var(--pink);
}

.forever-section {
    position: relative;
    display: grid;
    min-height: 100vh;
    padding: 120px 30px 80px;
    place-items: center;
    overflow: hidden;
    background-color: var(--paper-warm);
    background-image: radial-gradient(rgba(255, 95, 159, 0.1) 1px, transparent 1px);
    background-size: 22px 22px;
}

.forever-inner {
    width: min(850px, 100%);
    text-align: center;
}

.ending-pill {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid var(--pink);
    border-radius: 99px;
    color: var(--pink);
    font-size: 16px;
}

.forever-inner h2 {
    margin: 40px 0 28px;
    font-family: var(--display);
    font-size: 120px;
    line-height: 0.9;
    letter-spacing: 0;
}

.forever-inner h2 span {
    color: var(--pink);
}

.forever-lead,
.promise-title,
.signature {
    font-family: var(--script);
    font-size: 25px;
}

.ornament {
    margin: 45px 0;
    color: var(--pink);
    font-size: 22px;
}

.promise-title {
    color: var(--pink);
}

.promises {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    max-width: 650px;
    margin: 30px auto 50px;
}

.promises span {
    padding: 13px 16px;
    border-bottom: 2px dashed var(--pink-soft);
    font-family: var(--script);
    font-size: 21px;
}

.promises b {
    color: var(--pink);
}

.restart {
    display: inline-block;
    margin-top: 25px;
    padding: 12px 23px;
    border-radius: 99px;
    color: white;
    background: var(--pink);
    box-shadow: 0 6px 0 #ce477b;
    font-family: var(--display);
    font-size: 15px;
    text-decoration: none;
}

.made-with {
    margin: 60px 0 0;
    color: var(--pink);
    font-family: var(--script);
    font-size: 18px;
}

.forever-confetti {
    position: absolute;
    top: 55px;
    color: var(--pink);
    font-size: 25px;
}

.reveal {
    transform: translateY(25px);
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

@keyframes float {
    0%, 100% { margin-top: 0; }
    50% { margin-top: -10px; }
}

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

@keyframes birthday-bob {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -9px; }
}

@media (max-width: 1050px) {
    .polaroid.birthday-photo {
        width: 118px;
        height: 146px;
        padding: 0;
    }

    .birthday-photo-seven,
    .birthday-photo-eight {
        width: 104px;
        height: 130px;
    }

    .hero-photo {
        width: 190px;
        height: 235px;
    }

    .hero-photo-five {
        left: calc(50% - 95px);
    }

    .hero-copy {
        width: 70vw;
    }

    .hero h1 {
        font-size: 76px;
    }

    .timeline-entry {
        gap: 60px;
    }

    .timeline-photo {
        width: min(390px, 100%);
        height: auto;
        aspect-ratio: 355 / 410;
    }

    .timeline-photo.timeline-photo-collage,
    .timeline-photo.timeline-photo-two-moms {
        height: auto;
        aspect-ratio: 355 / 665;
    }

    .scroll-gallery-stage {
        grid-template-columns: minmax(0, 54%) minmax(330px, 46%);
    }

    .scroll-gallery-copy {
        padding-right: 24px;
        padding-left: 28px;
    }

    .scroll-gallery-caption h2 {
        font-size: 56px;
    }

    .scroll-gallery-caption span {
        font-size: 18px;
    }
}

@media (max-width: 760px) {
    body {
        font-size: 16px;
    }

    .birthday-intro {
        min-height: max(100svh, 900px);
        padding: clamp(28px, 6svh, 52px) 18px clamp(30px, 6.5svh, 54px);
    }

    .birthday-content {
        width: min(350px, 100%);
    }

    .birthday-decorations {
        position: absolute;
        inset: 0;
    }

    .polaroid.birthday-photo {
        width: 100px;
        height: 124px;
        padding: 0;
    }

    .birthday-photo-one {
        top: 1%;
        left: -16px;
    }

    .birthday-photo-two {
        top: 3%;
        right: -18px;
    }

    .birthday-photo-three {
        bottom: 1%;
        left: 4%;
    }

    .birthday-photo-four {
        right: 4%;
        bottom: 1%;
    }

    .birthday-photo-five,
    .birthday-photo-six,
    .birthday-photo-seven,
    .birthday-photo-eight {
        display: none;
    }

    .birthday-cake {
        margin-bottom: 18px;
        font-size: 72px;
    }

    .birthday-title {
        font-size: 50px;
        line-height: 0.9;
    }

    .birthday-note {
        margin: 35px auto 30px;
        font-size: 20px;
    }

    .birthday-badges {
        gap: 13px;
    }

    .birthday-badge {
        min-width: 140px;
        padding: 10px 14px 8px;
        font-size: 13px;
    }

    .birthday-badge-lavender {
        min-width: 155px;
    }

    .birthday-scroll {
        margin-top: 35px;
        font-size: 22px;
    }

    .birthday-balloon-one {
        top: 7%;
        left: 7%;
        font-size: 42px;
    }

    .birthday-balloon-two {
        top: 16%;
        right: 7%;
        font-size: 40px;
    }

    .birthday-mini-cake {
        top: 48%;
        left: 4%;
        font-size: 40px;
    }

    .birthday-star {
        right: 5%;
        bottom: 21%;
        font-size: 42px;
    }

    .birthday-sparkles {
        top: 48%;
        right: 7%;
        font-size: 32px;
    }

    .birthday-gift {
        right: 9%;
        bottom: 8%;
        font-size: 42px;
    }

    .birthday-party {
        bottom: 9%;
        left: 8%;
        font-size: 38px;
    }

    .scroll-progress {
        right: 5px;
        width: 5px;
    }

    .hero {
        min-height: 100svh;
        padding: clamp(90px, 15svh, 125px) 16px clamp(75px, 13svh, 105px);
    }

    .hero-copy {
        width: 100%;
        padding-top: 0;
    }

    .heart-sticker {
        transform: scale(0.72);
    }

    .eyebrow {
        max-width: 300px;
        margin-bottom: 16px;
        font-size: 13px;
    }

    .hero h1 {
        font-size: 58px;
    }

    .hero-subtitle {
        margin: 24px auto 23px;
        font-size: 19px;
    }

    .scroll-cue strong {
        font-size: 12px;
    }

    .scroll-cue .arrow {
        width: 40px;
        height: 40px;
        margin-top: 13px;
        font-size: 22px;
    }

    .hero-photo {
        width: 120px;
        height: 148px;
    }

    .hero-photo-one {
        top: 3%;
        left: -12px;
    }

    .hero-photo-two {
        top: 3%;
        right: -12px;
    }

    .hero-photo-three {
        bottom: 3%;
        left: -15px;
    }

    .hero-photo-four {
        right: -15px;
        bottom: 3%;
    }

    .hero-photo-five {
        top: 20%;
        left: calc(50% - 60px);
        transform: rotate(-3deg);
    }

    .hero-flower {
        top: 31%;
        right: 7%;
        font-size: 24px;
    }

    .hero-star {
        bottom: 25%;
        left: 8%;
        font-size: 26px;
    }

    .chapter {
        padding: 78px 22px;
    }

    .chapter-pill {
        padding: 11px 21px 9px;
        font-size: 13px;
    }

    .section-title {
        margin: 30px 0 24px;
        font-size: 36px;
    }

    .story-copy,
    .section-intro {
        font-size: 21px;
    }

    .pull-quote {
        margin: 38px 0;
        padding-left: 20px;
        font-size: 27px;
    }

    .feature-polaroid {
        width: min(340px, 96%);
        height: 470px;
        margin-top: 58px;
    }

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

    .timeline-entry,
    .timeline-entry.timeline-entry-reverse {
        display: flex;
        flex-direction: column;
        gap: 18px;
        align-items: stretch;
        min-height: auto;
        padding: 30px 0 75px 35px;
    }

    .timeline-entry::after {
        top: 55px;
        left: 12px;
    }

    .timeline-entry-reverse .timeline-copy,
    .timeline-entry-reverse .timeline-photo {
        grid-column: auto;
    }

    .timeline-entry-reverse .timeline-copy {
        order: 0;
    }

    .timeline-entry-reverse .timeline-photo {
        order: 1;
    }

    .timeline-copy {
        padding: 0;
    }

    .timeline-copy h3 {
        font-size: 25px;
    }

    .timeline-copy p:last-child {
        font-size: 20px;
    }

    .timeline-photo {
        width: min(320px, 100%);
        height: 390px;
        margin: 25px auto 0;
    }

    .timeline-photo.timeline-photo-collage {
        height: 590px;
    }

    .timeline-photo.timeline-photo-two-moms {
        height: 590px;
    }

    .photo-wall {
        display: flex;
        flex-direction: column;
        gap: 50px;
    }

    .gallery-card,
    .gallery-card.card-wide,
    .gallery-card:last-child,
    .mini-note {
        width: min(350px, calc(100% - 12px));
        height: 440px;
        align-self: center;
    }

    .gallery-card.gallery-card-landscape {
        width: min(350px, calc(100% - 12px));
        height: 240px;
    }

    .gallery-card:nth-child(even) {
        align-self: center;
    }

    .mini-note {
        min-height: 240px;
        height: auto;
    }

    .time-together {
        margin-bottom: 45px;
        padding: 23px 16px;
    }

    .time-together-heading {
        grid-template-columns: auto 1fr;
        margin-bottom: 22px;
    }

    .clock-heart {
        width: 48px;
        height: 48px;
        font-size: 30px;
    }

    .time-together-heading h3 {
        font-size: 23px;
    }

    .time-together-heading time {
        grid-column: 1 / -1;
        text-align: center;
    }

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

    .love-clock div:nth-child(4) {
        border-left: 0;
    }

    .love-clock div:nth-child(4)::before {
        content: none;
    }

    .love-clock strong {
        font-size: 34px;
    }

    .love-clock span {
        font-size: 13px;
    }

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

    .stat {
        min-height: 190px;
        padding: 24px 12px;
    }

    .stat strong {
        font-size: 38px;
    }

    .stat p {
        font-size: 17px;
    }

    .quote-section {
        min-height: 620px;
        padding: 80px 24px;
    }

    .quote-inner blockquote {
        font-size: 37px;
    }

    .scroll-gallery {
        height: var(--gallery-height, 600svh);
    }

    .scroll-gallery-stage {
        grid-template-columns: 1fr;
        grid-template-rows: minmax(0, 58%) minmax(0, 42%);
        min-height: 600px;
    }

    .scroll-gallery-media {
        margin: 10px 10px 0;
        border-radius: 18px 18px 0 0;
    }

    .scroll-gallery-mark {
        top: 14px;
        left: 15px;
        font-size: 15px;
    }

    .scroll-gallery-count {
        right: 17px;
        bottom: 12px;
        font-size: 12px;
    }

    .scroll-gallery-copy {
        padding: 14px 20px 18px;
    }

    .scroll-gallery-header {
        grid-template-columns: auto auto;
        gap: 12px;
        padding-bottom: 10px;
    }

    .scroll-gallery-header p {
        font-size: 10px;
    }

    .scroll-gallery-header p:nth-child(2) {
        display: none;
    }

    .scroll-gallery-caption > h3 {
        margin-bottom: 6px;
        font-size: 12px;
    }

    .scroll-gallery-caption h2 {
        font-size: 34px;
        line-height: 0.92;
    }

    .scroll-gallery-caption span {
        margin-top: 12px;
        font-size: 16px;
        line-height: 1.2;
    }

    .scroll-gallery-footer {
        gap: 16px;
    }

    .scroll-gallery-dots {
        gap: 4px;
    }

    .scroll-gallery-video-mark {
        top: 14px;
        right: 15px;
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .forever-section {
        padding: 90px 22px 60px;
    }

    .forever-inner h2 {
        font-size: 75px;
    }

    .forever-lead,
    .promise-title,
    .signature {
        font-size: 20px;
    }

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

@media (max-width: 390px) {
    .hero h1 {
        font-size: 50px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .section-title {
        font-size: 32px;
    }

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

    .scroll-gallery-caption h2 {
        font-size: 30px;
    }
}

@media (max-height: 680px) {
    .birthday-intro {
        min-height: max(100svh, 900px);
        padding-top: 22px;
        padding-bottom: 24px;
    }

    .polaroid.birthday-photo {
        width: 82px;
        height: 102px;
        padding: 0;
    }

    .birthday-cake {
        margin-bottom: 10px;
        font-size: 52px;
    }

    .birthday-title {
        font-size: 42px;
    }

    .birthday-note {
        margin: 22px auto 18px;
        font-size: 18px;
        line-height: 1.25;
    }

    .birthday-badges {
        gap: 9px;
    }

    .birthday-badge {
        min-width: 130px;
        padding: 8px 12px 6px;
        font-size: 12px;
    }

    .birthday-badge-lavender {
        min-width: 145px;
    }

    .birthday-scroll {
        margin-top: 22px;
        font-size: 19px;
    }

    .birthday-deco {
        scale: 0.78;
    }

    .hero {
        min-height: 100svh;
        padding: 48px 16px 42px;
    }

    .hero-copy {
        padding-top: 0;
    }

    .heart-sticker {
        height: 48px;
        margin-bottom: 8px;
        transform: scale(0.58);
    }

    .eyebrow {
        margin-bottom: 8px;
        font-size: 12px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-subtitle {
        margin: 14px auto;
        font-size: 17px;
    }

    .scroll-cue strong {
        font-size: 11px;
    }

    .scroll-cue .arrow {
        width: 34px;
        height: 34px;
        margin-top: 7px;
        box-shadow: 0 5px 0 #dc477f, 0 8px 18px rgba(255, 95, 159, 0.25);
        font-size: 19px;
    }

    .scroll-cue small {
        margin-top: 8px;
        font-size: 15px;
    }

    .hero-photo {
        width: 105px;
        height: 128px;
    }

    .hero-photo-one,
    .hero-photo-two {
        top: 2%;
    }

    .hero-photo-five {
        top: 18%;
        left: calc(50% - 52.5px);
    }

    .hero-photo-three,
    .hero-photo-four {
        bottom: 2%;
    }
}

@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;
    }
}
