:root {
    --sage: #7d927a;
    --sage-deep: #435a48;
    --cream: #fbf7ef;
    --paper: #f3eadf;
    --blush: #d7aaa7;
    --rose: #b7777f;
    --champagne: #c9b17e;
    --ink: #344138;
    --muted: #737b72;
    --font-names: "Parisienne", "Brush Script MT", cursive;
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Manrope", Arial, sans-serif;
    --shadow: 0 28px 70px rgba(67, 90, 72, 0.16);
}

img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--cream);
}

html.scroll-locked,
body.scroll-locked {
    overflow: hidden;
    height: 100%;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

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

.hero {
    min-height: 100svh;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--cream);
    color: var(--ink);
}

.hero__video,
.hero__poster-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.hero__video {
    z-index: 0;
}

.hero__poster-frame {
    z-index: 1;
    pointer-events: none;
    user-select: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 120ms linear, visibility 0s linear 120ms;
}

.hero__poster-frame.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.opening-gate {
    position: absolute;
    inset: 0;
    z-index: 8;
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    transition: opacity 150ms linear;
}

.opening-gate.is-opening {
    opacity: 0;
    transform: none;
    pointer-events: none;
}

.music-control {
    position: fixed;
    z-index: 20;
    top: max(16px, env(safe-area-inset-top));
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 13px 8px 8px;
    border: 1px solid rgba(67, 90, 72, 0.26);
    border-radius: 999px;
    color: var(--sage-deep);
    background: rgba(251, 247, 239, 0.9);
    box-shadow: 0 10px 28px rgba(67, 90, 72, 0.12);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.music-control:hover {
    transform: translateY(-2px);
    background: var(--cream);
}

.music-control__icon {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blush);
    color: white;
    font-weight: 800;
}

.music-control.is-muted .music-control__icon {
    background: #d8d7cf;
    color: var(--sage-deep);
}

.music-control__label {
    font-size: 10px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-weight: 700;
}

.botanical-corner {
    position: absolute;
    z-index: 2;
    width: 240px;
    height: 240px;
    pointer-events: none;
    opacity: 0.52;
}

.botanical-corner--top {
    top: -50px;
    left: -48px;
    transform: rotate(-8deg);
}

.botanical-corner--bottom {
    right: -55px;
    bottom: -54px;
    transform: rotate(172deg);
}

.botanical-corner::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 118px;
    width: 210px;
    height: 2px;
    background: var(--sage);
    transform: rotate(-28deg);
    transform-origin: left center;
}

.botanical-corner i {
    position: absolute;
    width: 58px;
    height: 27px;
    border-radius: 70% 15% 70% 15%;
    background: rgba(125, 146, 122, 0.72);
}

.botanical-corner i:nth-child(1) {
    left: 70px;
    top: 85px;
    transform: rotate(-15deg);
}

.botanical-corner i:nth-child(2) {
    left: 125px;
    top: 50px;
    transform: rotate(22deg);
}

.botanical-corner i:nth-child(3) {
    left: 150px;
    top: 118px;
    transform: rotate(-50deg);
    background: rgba(215, 170, 167, .74);
}

.hero__content {
    position: relative;
    z-index: 3;
    width: min(700px, 86vw);
    min-height: 100svh;
    margin: 0 auto;
    padding: max(92px, env(safe-area-inset-top)) 0 max(118px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 1.25s ease, transform 1.25s cubic-bezier(.16, 1, .3, 1);
}

.hero__content.is-visible {
    opacity: 1;
    transform: none;
}

.hero__kicker {
    margin: 0 0 12px;
    color: var(--sage-deep);
    font-size: clamp(10px, 1.8vw, 12px);
    font-weight: 700;
    letter-spacing: .23em;
    text-transform: uppercase;
}

.hero__intro {
    margin: 0 0 18px;
    font-family: var(--font-display);
    font-size: clamp(16px, 2.8vw, 22px);
    font-style: italic;
    line-height: 1.35;
    color: var(--ink);
}

.hero__intro--after {
    margin: 20px 0 0;
}

.hero__names {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 400;
}

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

.hero__name {
    display: block;
    font-family: var(--font-names);
    font-size: clamp(58px, 11vw, 104px);
    font-weight: 400;
    line-height: .88;
    color: var(--rose);
}

.hero__parents {
    max-width: 520px;
    margin-top: 12px;
    color: var(--sage-deep);
    font-size: clamp(9px, 1.5vw, 12px);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.hero__ampersand {
    margin: 13px 0 9px;
    font-family: var(--font-display);
    font-size: clamp(24px, 4.5vw, 38px);
    font-style: italic;
    color: var(--champagne);
}

.hero__closing-line {
    max-width: 560px;
    margin: 17px auto 0;
    font-size: clamp(11px, 1.65vw, 13px);
    line-height: 1.7;
    color: var(--sage-deep);
}

.scroll-cue {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: max(22px, env(safe-area-inset-bottom));
    transform: translate(-50%, 16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--sage-deep);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 8px;
    opacity: 0;
    transition: opacity .8s ease, transform .8s ease;
}

.scroll-cue.is-visible {
    opacity: .78;
    transform: translate(-50%, 0);
}

.scroll-cue i {
    width: 1px;
    height: 31px;
    background: var(--sage-deep);
    transform-origin: top;
    animation: drift 1.8s infinite;
}

@keyframes drift {
    0% {
        transform: scaleY(.18);
        opacity: .25;
    }
    55% {
        transform: scaleY(1);
        opacity: 1;
    }
    100% {
        transform: scaleY(.18);
        opacity: .25;
        transform-origin: bottom;
    }
}

.section {
    position: relative;
    padding: clamp(88px, 13vw, 154px) 22px;
    overflow: hidden;
}

.section__inner {
    position: relative;
    z-index: 2;
    width: min(1120px, 100%);
    margin: 0 auto;
    text-align: center;
}

.section__inner--narrow {
    width: min(760px, 100%);
}

.section-kicker {
    margin: 0 0 15px;
    color: var(--rose);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .25em;
    text-transform: uppercase;
}

h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(40px, 7vw, 76px);
    font-weight: 500;
    line-height: .98;
    letter-spacing: -.035em;
}

h3 {
    font-family: var(--font-display);
    font-size: clamp(27px, 4vw, 38px);
    font-weight: 500;
}

.lead {
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 28px);
    line-height: 1.65;
    color: #5f6b61;
}

.welcome {
    min-height: 80vh;
    display: grid;
    place-items: center;
    background: var(--cream);
}

.flourish {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
    color: var(--rose);
}

.flourish span {
    width: 64px;
    height: 1px;
    background: var(--champagne);
}

.pressed-flower {
    position: absolute;
    width: 280px;
    height: 420px;
    opacity: .16;
    transform: rotate(-22deg);
}

.pressed-flower::before,
.pressed-flower::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--sage-deep);
}

.pressed-flower::after {
    width: 120px;
    height: 170px;
    left: calc(50% - 60px);
    top: 52px;
    border-radius: 50%;
    border: 2px solid var(--rose);
    background: transparent;
}

.pressed-flower--left {
    left: -90px;
    bottom: -120px;
}

.pressed-flower--right {
    right: -90px;
    top: -130px;
    transform: rotate(156deg);
}

.date-reveal {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: var(--sage-deep);
    color: var(--cream);
}

.date-reveal::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .08;
    background-image: radial-gradient(circle at 1px 1px, var(--cream) 1px, transparent 0);
    background-size: 30px 30px;
}

.date-reveal .section-kicker {
    color: #e5c7c4;
}

.gesture-hint {
    margin: 15px 0 34px;
    color: rgba(251, 247, 239, .64);
    font-size: 11px;
    letter-spacing: .08em;
}

.scratch-wrap {
    position: relative;
    width: min(620px, 100%);
    aspect-ratio: 1.55;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 40px 90px rgba(35, 48, 38, .35);
    touch-action: none;
}

.date-card {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 36px;
    background: var(--paper);
    color: var(--ink);
    border: 1px solid rgba(201, 177, 126, .72);
}

.date-card::before,
.date-card::after {
    content: "";
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(183, 119, 127, .3);
    border-radius: 18px;
    pointer-events: none;
}

.date-card::after {
    inset: 25px;
    border-style: dotted;
    border-color: rgba(125, 146, 122, .4);
}

.date-card__flower {
    color: var(--blush);
    font-size: 28px;
}

.date-card__eyebrow {
    margin: 6px 0 0;
    font-family: var(--font-names);
    font-size: clamp(30px, 5vw, 43px);
    color: var(--rose);
}

.date-card__date {
    margin: 12px 0 15px;
    font-family: var(--font-display);
    font-size: clamp(37px, 7vw, 60px);
    line-height: 1;
}

.date-card__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    text-transform: uppercase;
    letter-spacing: .17em;
    font-size: 11px;
    font-weight: 700;
}

.date-card__meta i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--rose);
}

.date-card__venue {
    margin: 20px 0 0;
    font-family: var(--font-display);
    font-style: italic;
    color: var(--muted);
}

#scratch-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: crosshair;
}

.petal-layer {
    position: fixed;
    inset: 0;
    z-index: 30;
    pointer-events: none;
    overflow: hidden;
}

.petal-layer span {
    position: absolute;
    left: var(--x);
    top: -42px;
    font-size: var(--size);
    animation: fall var(--duration) cubic-bezier(.2, .7, .4, 1) var(--delay) forwards;
}

@keyframes fall {
    to {
        transform: translate(var(--drift), 110vh) rotate(var(--spin));
        opacity: .05;
    }
}

.gallery-section {
    background: #eee5dc;
}

.gallery {
    position: relative;
    margin: 48px auto 0;
    width: min(820px, 100%);
    height: min(72vh, 760px);
}

.gallery::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: -16px;
    border: 1px solid rgba(183, 119, 127, .28);
    border-radius: 46% 54% 48% 52% / 54% 48% 52% 46%;
    transform: rotate(-1.5deg);
}

.gallery__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery__slide {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    transform: scale(.985);
    transition: opacity 1.25s ease, transform 1.65s cubic-bezier(.16, 1, .3, 1);
    border-radius: 48% 52% 46% 54% / 54% 45% 55% 46%;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #ddd;
}

.gallery__slide:nth-child(even) {
    border-radius: 54% 46% 52% 48% / 45% 55% 46% 54%;
}

.gallery__slide.is-active {
    opacity: 1;
    transform: none;
    z-index: 2;
}

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

.gallery__dots {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: -38px;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
}

.gallery__dots button {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    background: rgba(67, 90, 72, .25);
    cursor: pointer;
    transition: .3s ease;
}

.gallery__dots button.is-active {
    width: 25px;
    border-radius: 999px;
    background: var(--rose);
}

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

.countdown {
    margin: 55px auto 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 920px;
    border-top: 1px solid rgba(201, 177, 126, .48);
    border-bottom: 1px solid rgba(201, 177, 126, .48);
}

.countdown__unit {
    position: relative;
    padding: 30px 12px;
}

.countdown__unit:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 24%;
    bottom: 24%;
    width: 1px;
    background: rgba(201, 177, 126, .34);
}

.countdown__unit strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(42px, 8vw, 78px);
    line-height: 1;
    font-weight: 400;
    color: var(--sage-deep);
}

.countdown__unit span {
    display: block;
    margin-top: 10px;
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: 9px;
}

.timeline-section {
    background: #f3e9df;
}

.timeline {
    margin-top: 58px;
    text-align: left;
}

.timeline__item {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 28px;
    position: relative;
    min-height: 142px;
}

.timeline__item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 40px;
    top: 50px;
    bottom: -3px;
    width: 2px;
    background: var(--sage);
    opacity: .35;
}

.timeline__marker {
    position: relative;
    z-index: 2;
    width: 82px;
}

.timeline__marker span {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin: auto;
    border-radius: 50%;
    background: var(--blush);
    color: white;
    font-family: var(--font-display);
    font-size: 22px;
    box-shadow: 0 10px 26px rgba(183, 119, 127, .18);
}

.timeline__content time {
    color: var(--rose);
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: 10px;
    font-weight: 700;
}

.timeline__content h3 {
    margin: 5px 0 2px;
    color: var(--sage-deep);
}

.timeline__content p {
    margin: 0;
    color: var(--muted);
}

.venue-section {
    padding: 0;
    background: var(--sage-deep);
}

.venue-card {
    min-height: 82vh;
    position: relative;
    display: grid;
    place-items: center;
    padding: 90px 22px;
    color: var(--cream);
    overflow: hidden;
}

.venue-card__content {
    position: relative;
    z-index: 2;
    width: min(780px, 100%);
    text-align: center;
}

.venue-card h3 {
    margin: 30px 0 8px;
    color: #e9c9c6;
    font-size: clamp(37px, 7vw, 70px);
}

.venue-card address {
    max-width: 580px;
    margin: auto;
    color: rgba(251, 247, 239, .78);
    font-style: normal;
}

.venue-card p {
    color: rgba(251, 247, 239, .66);
}

.venue-card__leaves {
    position: absolute;
    inset: 0;
    opacity: .15;
}

.venue-card__leaves i {
    position: absolute;
    width: 180px;
    height: 85px;
    border-radius: 75% 15% 75% 15%;
    border: 2px solid var(--cream);
}

.venue-card__leaves i:nth-child(1) {
    top: 8%;
    left: -30px;
    transform: rotate(28deg);
}

.venue-card__leaves i:nth-child(2) {
    top: 22%;
    right: -40px;
    transform: rotate(-30deg);
}

.venue-card__leaves i:nth-child(3) {
    bottom: 16%;
    left: 5%;
    transform: rotate(-30deg);
}

.venue-card__leaves i:nth-child(4) {
    bottom: 6%;
    right: 3%;
    transform: rotate(24deg);
}

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

.dress-section h3 {
    margin-bottom: 12px;
    color: var(--rose);
}

.palette {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 38px;
}

.palette span {
    width: 54px;
    aspect-ratio: 1;
    border-radius: 48% 52% 46% 54%;
    background: var(--swatch);
    box-shadow: inset 0 0 0 5px rgba(255, 255, 255, .45), 0 8px 24px rgba(52, 65, 56, .12);
    transform: rotate(calc(var(--i, 0) * 6deg));
}

.events-section {
    background: #e8dfd5;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 50px;
}

.event-card {
    position: relative;
    background: rgba(251, 247, 239, .86);
    border: 1px solid rgba(183, 119, 127, .25);
    border-radius: 48% 52% 45% 55% / 11% 12% 10% 12%;
    padding: 50px 32px;
    overflow: hidden;
}

.event-card::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(125, 146, 122, .2);
    border-radius: inherit;
    pointer-events: none;
}

.event-card__flower {
    color: var(--blush);
    font-size: 24px;
}

.event-card h3 {
    margin: 17px 0 8px;
}

.event-card__date {
    color: var(--rose);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .11em;
    font-size: 10px;
}

.event-card small {
    display: block;
    color: var(--muted);
    margin-top: 16px;
}

.gifts-section {
    min-height: 72vh;
    display: grid;
    place-items: center;
    background: var(--blush);
    color: var(--ink);
}

.gifts-section .lead {
    color: rgba(52, 65, 56, .78);
}

.gift-icon {
    margin: 0 auto 27px;
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(52, 65, 56, .3);
    border-radius: 50%;
    color: var(--sage-deep);
    font-size: 34px;
    background: rgba(251, 247, 239, .28);
}

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

.rsvp-subtitle {
    margin: 16px 0 45px;
    color: var(--muted);
}

.rsvp-form {
    display: grid;
    gap: 24px;
    text-align: left;
}

.rsvp-form label>span,
.rsvp-form legend {
    display: block;
    margin-bottom: 8px;
    color: var(--sage-deep);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-weight: 700;
}

.rsvp-form input[type="text"],
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    border: 1px solid rgba(67, 90, 72, .18);
    background: white;
    color: var(--ink);
    border-radius: 16px;
    padding: 15px 16px;
    outline: none;
    transition: border .2s ease, box-shadow .2s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
    border-color: var(--rose);
    box-shadow: 0 0 0 4px rgba(215, 170, 167, .18);
}

.rsvp-form fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

.choice-row,
.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.choice,
.check {
    position: relative;
    cursor: pointer;
}

.choice input,
.check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice span,
.check span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 55px;
    margin: 0 !important;
    border: 1px solid rgba(67, 90, 72, .18);
    border-radius: 16px;
    text-align: center;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    background: white;
    transition: .2s ease;
}

.choice input:checked+span,
.check input:checked+span {
    background: var(--sage);
    border-color: var(--sage);
    color: white;
    box-shadow: 0 10px 25px rgba(67, 90, 72, .16);
}

.form-note {
    margin: 0;
    text-align: center;
    color: #8a918e;
    font-size: 10px;
}

.form-status {
    min-height: 1.6em;
    text-align: center;
    color: #a53d4a;
    font-weight: 700;
}

.form-status.is-success {
    color: var(--sage-deep);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

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

.button:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.button--rose {
    background: var(--rose);
    color: white;
    box-shadow: 0 14px 35px rgba(183, 119, 127, .24);
}

.button--light {
    margin-top: 28px;
    background: var(--cream);
    color: var(--sage-deep);
}

.button--full {
    width: 100%;
}

.closing {
    min-height: 100svh;
    position: relative;
    display: grid;
    place-items: center;
    padding: 100px 22px;
    background: var(--paper);
    color: var(--ink);
    overflow: hidden;
}

.closing__content {
    position: relative;
    z-index: 2;
    width: min(790px, 100%);
    text-align: center;
}

.closing h2 {
    margin: 22px 0 28px;
}

.closing__content>p:not(.section-kicker) {
    color: var(--muted);
    font-family: var(--font-display);
    font-size: clamp(19px, 3vw, 25px);
}

.closing__names {
    margin-top: 42px;
    font-family: var(--font-names);
    font-size: clamp(48px, 9vw, 84px);
    color: var(--rose);
}

.closing__names span {
    color: var(--champagne);
    font-family: var(--font-display);
    font-style: italic;
}

.closing time {
    display: block;
    margin-top: 10px;
    color: var(--sage-deep);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: 10px;
}

.back-to-top {
    display: inline-block;
    margin-top: 66px;
    color: var(--sage-deep);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .17em;
    text-decoration: none;
}

.closing__botanical {
    position: absolute;
    width: 720px;
    height: 720px;
    opacity: .11;
    border: 1px solid var(--sage-deep);
    border-radius: 50%;
}

.closing__botanical::before,
.closing__botanical::after {
    content: "";
    position: absolute;
    inset: 12%;
    border: inherit;
    border-radius: 44% 56% 50% 50%;
    transform: rotate(32deg);
}

.closing__botanical::after {
    inset: 28%;
    transform: rotate(-25deg);
}

.closing__botanical i {
    position: absolute;
    width: 120px;
    height: 55px;
    border: 2px solid var(--rose);
    border-radius: 70% 15% 70% 15%;
}

.closing__botanical i:nth-child(1) {
    left: 8%;
    top: 28%;
    transform: rotate(22deg);
}

.closing__botanical i:nth-child(2) {
    right: 8%;
    top: 30%;
    transform: rotate(-22deg);
}

.closing__botanical i:nth-child(3) {
    left: 20%;
    bottom: 18%;
    transform: rotate(-25deg);
}

.closing__botanical i:nth-child(4) {
    right: 20%;
    bottom: 18%;
    transform: rotate(25deg);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 1s ease, transform 1s cubic-bezier(.16, 1, .3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 700px) {
    .music-control__label {
        display: none;
    }
    .music-control {
        padding: 8px;
    }
    .botanical-corner {
        width: 170px;
        height: 170px;
    }
    .hero__content {
        width: 74vw;
        top: 1.5vh;
    }
    .hero__name {
        font-size: clamp(46px, 13vw, 66px);
    }
    .hero__parents {
        max-width: 270px;
        margin-top: 7px;
        font-size: 8px;
    }
    .hero__intro {
        max-width: 290px;
        font-size: 13px;
        line-height: 1.4;
    }
    .hero__closing-line {
        max-width: 275px;
        margin-top: 15px;
        font-size: 10px;
        line-height: 1.5;
    }
    .scratch-wrap {
        aspect-ratio: 1.12;
    }
    .date-card__date {
        max-width: 260px;
    }
    .gallery {
        height: 64vh;
    }
    .countdown {
        grid-template-columns: repeat(2, 1fr);
    }
    .countdown__unit:nth-child(2)::after {
        display: none;
    }
    .countdown__unit:nth-child(-n+2) {
        border-bottom: 1px solid rgba(201, 177, 126, .34);
    }
    .event-grid,
    .choice-row,
    .check-grid {
        grid-template-columns: 1fr;
    }
    .palette {
        gap: 8px;
    }
    .palette span {
        width: 44px;
    }
    .timeline__item {
        grid-template-columns: 62px 1fr;
        gap: 17px;
    }
    .timeline__item:not(:last-child)::before {
        left: 30px;
    }
    .timeline__marker {
        width: 62px;
    }
    .timeline__marker span {
        width: 45px;
        height: 45px;
    }
    .scroll-cue {
        bottom: 85px;
    }
}

@media (max-height: 760px) {
    .hero__content {
        top: 1.5vh;
        padding-top: 65px;
        padding-bottom: 80px;
    }
    .hero__kicker {
        margin-bottom: 7px;
    }
    .hero__intro {
        margin-bottom: 11px;
        font-size: 12px;
    }
    .hero__name {
        font-size: clamp(44px, 12vw, 62px);
    }
    .hero__parents {
        margin-top: 6px;
        font-size: 8px;
    }
    .hero__ampersand {
        margin: 9px 0 6px;
    }
    .hero__intro--after {
        margin-top: 13px;
    }
    .hero__closing-line {
        margin-top: 13px;
        font-size: 9px;
    }
}

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

/* Prevent hero text from appearing before its scheduled reveal */

.hero__content:not(.is-visible) {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.hero__content.is-visible {
    visibility: visible !important;
}

/* =========================
   NAQSH PREVIEW UI
========================= */

.naqsh-demo-badge {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 10010;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.72);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    pointer-events: none;
}

/* FLOATING CTA */

.naqsh-preview-cta {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 10010;
    border: none;
    border-radius: 999px;
    padding: 14px 21px;
    background: #111;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.naqsh-preview-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
}

/* MODAL */

.naqsh-cta-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.naqsh-cta-modal.is-open {
    opacity: 1;
    visibility: visible;
}

.naqsh-cta-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* MODAL CARD */

.naqsh-cta-card {
    position: relative;
    z-index: 1;
    width: min(390px, 100%);
    padding: 38px 28px 28px;
    border-radius: 22px;
    background: #f8f5ef;
    color: #171717;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.25);
    transform: translateY(15px) scale(0.97);
    transition: transform 0.3s ease;
}

.naqsh-cta-modal.is-open .naqsh-cta-card {
    transform: translateY(0) scale(1);
}

.naqsh-cta-close {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #222;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.naqsh-cta-eyebrow {
    display: block;
    margin-bottom: 12px;
    font-family: Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
}

.naqsh-cta-card h3 {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 500;
}

.naqsh-cta-card p {
    margin: 0 auto 25px;
    max-width: 310px;
    font-family: Arial, sans-serif;
    font-size: 13px;
    line-height: 1.65;
    color: #666;
}

/* INSTAGRAM BUTTON */

.naqsh-instagram-btn {
    display: block;
    padding: 14px 20px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.naqsh-instagram-btn:hover {
    transform: translateY(-1px);
}

/* MOBILE */

@media (max-width: 600px) {
    .naqsh-demo-badge {
        top: 12px;
        left: 12px;
        padding: 7px 11px;
        font-size: 9px;
    }
    .naqsh-preview-cta {
        right: 14px;
        bottom: 14px;
        padding: 13px 18px;
        font-size: 12px;
    }
    .naqsh-cta-card {
        padding: 36px 22px 24px;
    }
}

.naqsh-demo-badge {
    display: none;
}