.hero {
    position: relative;
    display: grid;
    min-height: max(47rem, 100svh);
    isolation: isolate;
    place-items: center;
    overflow: hidden;
    color: var(--color-ivory);
    background: var(--color-forest);
}

.hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 42, 34, 0.5), transparent 32%, transparent 68%, rgba(15, 42, 34, 0.35)),
        linear-gradient(0deg, rgba(15, 42, 34, 0.56), transparent 55%, rgba(15, 42, 34, 0.24));
    content: "";
}

.hero-backdrop {
    position: absolute;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--hero-object-position, 50% 50%);
}

.hero-backdrop--curated {
    --hero-object-position: 52% 52%;
}

.hero-glow {
    position: absolute;
    z-index: -1;
    right: 20%;
    bottom: 4%;
    width: min(34vw, 32rem);
    aspect-ratio: 1;
    background: rgba(255, 222, 158, 0.24);
    border-radius: 50%;
    filter: blur(65px);
    animation: sunlight 7s ease-in-out infinite alternate;
}

@keyframes sunlight {
    from { opacity: 0.48; transform: scale(0.92); }
    to { opacity: 0.9; transform: scale(1.08); }
}

.hero-content {
    padding-block: calc(var(--header-height) + 4rem) 7rem;
    text-align: center;
    animation: hero-enter 1.1s 120ms both;
}

@keyframes hero-enter {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: none; }
}

.sun-emblem {
    position: relative;
    width: 7rem;
    height: 4.5rem;
    margin: 0 auto 1.2rem;
}

.sun-emblem__sun {
    position: absolute;
    top: 0.4rem;
    left: 50%;
    width: 3.8rem;
    height: 3.8rem;
    border: 1px solid var(--color-champagne);
    border-bottom: 0;
    border-radius: 50% 50% 0 0;
    transform: translateX(-50%);
}

.sun-emblem__sun::before {
    position: absolute;
    inset: -1.05rem;
    background: repeating-conic-gradient(from -4deg, var(--color-champagne) 0 1deg, transparent 1deg 16deg);
    content: "";
    mask: radial-gradient(circle, transparent 0 58%, #000 59% 63%, transparent 64%);
}

.sun-emblem__wave {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 0.65rem;
    border-top: 1px solid var(--color-champagne);
    border-radius: 50%;
    transform: skewX(-22deg);
}

.hero .script-kicker {
    color: var(--color-champagne);
    text-shadow: 0 4px 25px rgba(32, 55, 47, 0.4);
}

.hero .script-kicker span {
    display: inline-block;
    margin-inline: 0.1em;
    font-family: var(--font-heading);
    font-size: 0.62em;
    font-style: italic;
}

.hero .eyebrow {
    margin-top: 1.6rem;
}

.hero h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.18em;
    margin: 0.25rem auto 1.5rem;
    text-shadow: 0 5px 35px rgba(15, 42, 34, 0.42);
}

.hero h1 i {
    color: var(--color-champagne);
    font-family: var(--font-script);
    font-size: 0.58em;
    font-weight: 400;
}

.hero-facts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    font-size: clamp(0.92rem, 1.6vw, 1.18rem);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-facts span + span::before {
    margin-right: 1.4rem;
    color: var(--color-gold);
    content: "◆";
    font-size: 0.42em;
    vertical-align: middle;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
}

.scroll-cue {
    position: absolute;
    bottom: 1.7rem;
    left: 50%;
    display: grid;
    width: 2.1rem;
    height: 3.3rem;
    border: 1px solid rgba(255, 249, 239, 0.62);
    border-radius: 999px;
    transform: translateX(-50%);
    place-items: start center;
}

.scroll-cue span {
    width: 4px;
    height: 4px;
    margin-top: 0.65rem;
    background: var(--color-champagne);
    border-radius: 50%;
    animation: scroll-cue 1.8s ease-in-out infinite;
}

@keyframes scroll-cue {
    0%, 100% { opacity: 0.35; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(1.25rem); }
}

.countdown-section {
    position: relative;
    z-index: 4;
    margin-top: -2rem;
}

.countdown-wrap {
    display: grid;
    grid-template-columns: 1.1fr 1.8fr;
    align-items: center;
    gap: 3rem;
    padding: clamp(2rem, 5vw, 3.5rem);
    background: rgba(255, 249, 239, 0.94);
    border: 1px solid rgba(183, 131, 47, 0.32);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
}

.countdown-wrap h2 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.3rem);
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.countdown > div {
    text-align: center;
    border-left: 1px solid rgba(183, 131, 47, 0.28);
}

.countdown strong,
.countdown span {
    display: block;
}

.countdown strong {
    color: var(--color-bronze);
    font-family: var(--font-heading);
    font-size: clamp(2.35rem, 4vw, 4rem);
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown strong.is-ticking { animation: number-tick 300ms ease; }
@keyframes number-tick { 50% { opacity: 0.45; transform: translateY(-3px); } }

.countdown span {
    margin-top: 0.45rem;
    font-size: 0.63rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.countdown-complete {
    grid-column: 2;
    font-family: var(--font-heading);
    font-size: 1.7rem;
}

.welcome-grid,
.venue-grid,
.dress-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(3rem, 8vw, 7.5rem);
}

.welcome-section {
    overflow: hidden;
}

.welcome-section::before {
    position: absolute;
    top: 6%;
    right: -9rem;
    width: 22rem;
    height: 32rem;
    background: rgba(216, 185, 140, 0.14);
    border-radius: 70% 0 0 70%;
    content: "";
    transform: rotate(12deg);
}

.image-frame {
    position: relative;
    max-width: 31rem;
    margin: auto;
    padding: 0.8rem;
    background: var(--color-parchment);
    border: 1px solid rgba(183, 131, 47, 0.45);
    border-radius: 48% 48% var(--radius-medium) var(--radius-medium);
    box-shadow: var(--shadow-card);
}

.image-frame::before {
    position: absolute;
    z-index: -1;
    inset: -1.5rem 1.5rem 1.5rem -1.5rem;
    border: 1px solid rgba(183, 131, 47, 0.35);
    border-radius: inherit;
    content: "";
}

.image-frame img {
    width: 100%;
    border-radius: calc(48% - 0.5rem) calc(48% - 0.5rem) var(--radius-small) var(--radius-small);
}

.image-note {
    display: block;
    padding: 0.8rem 0 0.15rem;
    color: var(--color-bronze);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-style: italic;
    text-align: center;
}

.section-copy .signature {
    margin-top: 1.5rem;
    color: var(--color-gold);
    font-family: var(--font-script);
    font-size: 3.3rem;
}

.story-section {
    background: var(--color-parchment);
    background-image: radial-gradient(circle at 50% 0, rgba(255, 249, 239, 0.75), transparent 42%);
}

.story-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0;
    list-style: none;
}

.story-timeline::before {
    position: absolute;
    top: 2.3rem;
    right: 16.6%;
    left: 16.6%;
    height: 1px;
    background: rgba(183, 131, 47, 0.45);
    content: "";
}

.story-timeline li {
    position: relative;
    padding-inline: clamp(1.4rem, 3vw, 2.5rem);
    text-align: center;
}

.story-number {
    position: relative;
    z-index: 1;
    display: grid;
    width: 4.6rem;
    height: 4.6rem;
    margin: 0 auto 1.7rem;
    color: var(--color-bronze);
    background: var(--color-ivory);
    border: 1px solid var(--color-gold);
    border-radius: 50%;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    place-items: center;
}

.story-timeline h3 { margin-bottom: 0.8rem; }
.story-timeline p:last-child { font-size: 0.91rem; }

.details-section {
    color: var(--color-ivory);
    background:
        radial-gradient(circle at 82% 20%, rgba(183, 131, 47, 0.18), transparent 26%),
        linear-gradient(135deg, #173d32, #102e25);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-block: 1px solid rgba(233, 213, 182, 0.27);
}

.detail-card {
    padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 2.8vw, 2.2rem);
    text-align: center;
}

.detail-card + .detail-card { border-left: 1px solid rgba(233, 213, 182, 0.27); }
.detail-card .line-icon { display: block; margin-bottom: 1.2rem; color: var(--color-gold); font-family: var(--font-heading); font-size: 2.5rem; line-height: 1; }
.detail-card h3 { margin-bottom: 0.55rem; color: var(--color-champagne); font-size: 1.55rem; }
.detail-card p:last-child { margin: 0; color: rgba(255, 249, 239, 0.68); font-size: 0.78rem; }

.schedule-section { overflow: hidden; }
.event-timeline { max-width: 770px; margin: 0 auto; padding: 0; list-style: none; }
.event-timeline li { display: grid; grid-template-columns: 7rem 1.2rem 1fr; gap: 1.6rem; min-height: 7rem; }
.event-timeline time { padding-top: 0.05rem; color: var(--color-bronze); font-family: var(--font-heading); font-size: 1.4rem; font-weight: 600; text-align: right; }
.event-timeline li > span { position: relative; display: block; width: 0.72rem; height: 0.72rem; margin-top: 0.5rem; background: var(--color-gold); border: 3px solid var(--color-ivory); border-radius: 50%; box-shadow: 0 0 0 1px var(--color-gold); }
.event-timeline li:not(:last-child) > span::after { position: absolute; top: 0.75rem; left: 50%; width: 1px; height: calc(7rem - 0.65rem); background: rgba(183, 131, 47, 0.42); content: ""; }
.event-timeline h3 { margin-bottom: 0.3rem; }
.event-timeline p { color: rgba(32, 55, 47, 0.72); font-size: 0.9rem; }

.venue-section { background: var(--color-parchment); overflow: hidden; }
.venue-section::after { position: absolute; right: -8rem; bottom: -12rem; width: 30rem; height: 30rem; border: 1px solid rgba(183, 131, 47, 0.24); border-radius: 50%; content: ""; }
.venue-image { position: relative; }
.venue-image img { width: 100%; border-radius: 52% 52% var(--radius-medium) var(--radius-medium); box-shadow: var(--shadow-card); }
.venue-stamp { position: absolute; right: -2rem; bottom: 2rem; display: grid; width: 8rem; height: 8rem; padding: 1rem; color: var(--color-ivory); background: var(--color-forest); border: 1px solid var(--color-gold); border-radius: 50%; text-align: center; place-content: center; box-shadow: var(--shadow-soft); transform: rotate(-6deg); }
.venue-stamp::before { position: absolute; inset: 0.35rem; border: 1px dashed rgba(233, 213, 182, 0.5); border-radius: 50%; content: ""; }
.venue-stamp span { font-family: var(--font-script); font-size: 1.5rem; }
.venue-stamp strong { font-size: 0.63rem; letter-spacing: 0.12em; }
.venue-location { margin-top: -0.7rem; color: var(--color-bronze); font-family: var(--font-heading); font-size: 1.35rem; font-style: italic; }
.venue-copy address { margin: 1.5rem 0; padding-left: 1rem; border-left: 2px solid var(--color-gold); font-family: var(--font-heading); font-size: 1.1rem; font-style: normal; }
.copy-feedback { min-height: 1.7rem; margin: 0.4rem 0 0; color: var(--color-bronze); font-size: 0.78rem; }
.travel-note { display: flex; gap: 0.9rem; margin-top: 1.4rem; padding: 1rem; background: rgba(255, 249, 239, 0.64); border-radius: var(--radius-small); }
.travel-note > span { color: var(--color-gold); font-size: 1.6rem; }
.travel-note p { margin: 0; font-size: 0.82rem; }
.travel-note strong { display: block; font-family: var(--font-heading); font-size: 1.05rem; }
.venue-actions { gap: 0.75rem; }
.venue-actions .button { min-height: 3rem; padding-inline: 1.15rem; }
.button--waze { color: var(--color-ivory); background: #277c73; border-color: #277c73; }
.button--waze:hover { color: var(--color-forest-dark); background: #8edbd2; border-color: #8edbd2; }
.venue-map { position: relative; min-height: clamp(17rem, 28vw, 22rem); margin-top: 1.5rem; overflow: hidden; background: var(--color-champagne); border: 1px solid rgba(156, 104, 31, 0.38); border-radius: var(--radius-medium); }
.venue-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.venue-map__label { position: absolute; z-index: 1; bottom: 0.8rem; left: 0.8rem; max-width: calc(100% - 1.6rem); padding: 0.55rem 0.8rem; overflow: hidden; color: var(--color-ivory); background: rgba(23, 61, 50, 0.9); border: 1px solid rgba(233, 213, 182, 0.38); border-radius: 999px; font-family: var(--font-heading); font-size: 0.78rem; line-height: 1; text-overflow: ellipsis; white-space: nowrap; box-shadow: var(--shadow-soft); pointer-events: none; }

.dress-section { color: var(--color-ivory); background: linear-gradient(120deg, #173d32 0 54%, #264c40 54% 100%); }
.dress-copy h3 { color: var(--color-champagne); font-size: clamp(1.6rem, 3vw, 2.4rem); }
.restriction { padding: 1rem 1.2rem; border-left: 2px solid var(--color-gold); background: rgba(255, 255, 255, 0.045); }
.editable-note { color: rgba(255, 249, 239, 0.76); font-size: 0.82rem; }
.editable-note span { display: block; color: var(--color-champagne); font-style: italic; }
.palette-panel { padding: clamp(2rem, 5vw, 3.5rem); color: var(--color-forest-dark); background: rgba(255, 249, 239, 0.94); border: 1px solid rgba(233, 213, 182, 0.5); border-radius: 50% 50% var(--radius-large) var(--radius-large); box-shadow: var(--shadow-card); }
.palette-panel > .eyebrow { text-align: center; }
.swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem 1rem; }
.swatches > div { width: 4.4rem; text-align: center; }
.swatches span { display: block; width: 4.4rem; height: 4.4rem; background: var(--swatch); border: 1px solid rgba(32, 55, 47, 0.18); border-radius: 50%; box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.38), 0 6px 18px rgba(32, 55, 47, 0.12); }
.swatches p { margin: 0.45rem 0 0; font-size: 0.62rem; font-weight: 600; line-height: 1.3; }

.gift-section { overflow: hidden; background: var(--color-ivory); }
.gift-card { position: relative; width: min(calc(100% - 3rem), 780px); padding: clamp(3rem, 7vw, 5.5rem); text-align: center; border: 1px solid rgba(183, 131, 47, 0.5); border-radius: var(--radius-large); box-shadow: var(--shadow-soft); }
.gift-card::before, .gift-card::after { position: absolute; width: 7rem; height: 7rem; border-color: var(--color-gold); content: ""; opacity: 0.54; }
.gift-card::before { top: 0.7rem; left: 0.7rem; border-top: 1px solid; border-left: 1px solid; border-radius: 1.7rem 0 0; }
.gift-card::after { right: 0.7rem; bottom: 0.7rem; border-right: 1px solid; border-bottom: 1px solid; border-radius: 0 0 1.7rem; }
.gift-icon { display: grid; width: 4.5rem; height: 4.5rem; margin: 0 auto 1.3rem; color: var(--color-champagne); background: var(--color-forest); border-radius: 50%; font-size: 2rem; place-items: center; }
.gift-card h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.gift-card > p:not(.eyebrow) { max-width: 590px; margin-inline: auto; }
.gift-card .privacy-note { padding-top: 1rem; color: rgba(32, 55, 47, 0.65); font-size: 0.76rem; border-top: 1px solid rgba(183, 131, 47, 0.2); }

.gallery-section { background: var(--color-parchment); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 14rem; gap: 1rem; }
.gallery-item { position: relative; grid-column: span 4; grid-row: span 2; min-width: 0; padding: 0; overflow: hidden; background: var(--color-sand); border: 0; border-radius: var(--radius-medium); cursor: zoom-in; }
.gallery-item:nth-child(2), .gallery-item:nth-child(5) { grid-row: span 1; }
.gallery-item:nth-child(3), .gallery-item:nth-child(4) { grid-column: span 5; }
.gallery-item:nth-child(5), .gallery-item:nth-child(6) { grid-column: span 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease, filter 400ms ease; }
.gallery-item > .gallery-item__caption { position: absolute; right: 0.8rem; bottom: 0.8rem; left: 0.8rem; padding: 0.7rem 0.9rem; color: var(--color-ivory); background: linear-gradient(90deg, rgba(23, 61, 50, 0.85), rgba(23, 61, 50, 0.28)); border-radius: var(--radius-small); font-family: var(--font-heading); font-size: 1.25rem; text-align: left; transform: translateY(calc(100% + 1rem)); transition: transform var(--transition); }
.gallery-item:hover img { filter: saturate(1.06); transform: scale(1.035); }
.gallery-item:hover > .gallery-item__caption, .gallery-item:focus-visible > .gallery-item__caption { transform: none; }

.lightbox { position: fixed; z-index: 500; inset: 0; display: grid; grid-template-columns: minmax(3.2rem, 1fr) minmax(0, 1100px) minmax(3.2rem, 1fr); align-items: center; padding: 2rem; color: var(--color-ivory); background: rgba(11, 29, 24, 0.94); backdrop-filter: blur(12px); }
.lightbox figure { grid-column: 2; margin: 0; text-align: center; }
.lightbox figure img { max-width: 100%; max-height: 78vh; margin: auto; border-radius: var(--radius-small); box-shadow: var(--shadow-card); }
.lightbox figcaption { margin-top: 1rem; font-family: var(--font-heading); font-size: 1.4rem; }
.lightbox button { color: var(--color-ivory); background: rgba(255, 249, 239, 0.08); border: 1px solid rgba(255, 249, 239, 0.4); border-radius: 50%; cursor: pointer; }
.lightbox-close { position: absolute; top: 1.25rem; right: 1.25rem; width: 3rem; height: 3rem; font-size: 1.8rem; }
.lightbox-nav { width: 3.5rem; height: 3.5rem; font-size: 2rem; }
.lightbox-nav--prev { justify-self: start; }
.lightbox-nav--next { grid-column: 3; justify-self: end; }

.rsvp-banner { color: var(--color-forest-dark); background: linear-gradient(180deg, var(--color-parchment), var(--color-champagne)); }
.rsvp-banner__inner { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem); overflow: hidden; text-align: center; background: rgba(255, 249, 239, 0.84); border: 1px solid var(--color-gold); border-radius: var(--radius-large); }
.rsvp-banner__inner::before { position: absolute; inset: 0.8rem; border: 1px solid rgba(183, 131, 47, 0.4); border-radius: calc(var(--radius-large) - 0.5rem); content: ""; pointer-events: none; }
.rsvp-flourish { color: var(--color-gold); font-size: 3rem; }
.rsvp-banner h2 { margin-bottom: 0.6rem; }
.rsvp-banner p:not(.eyebrow) { max-width: 570px; margin-inline: auto; }
.qr-placeholder { position: absolute; right: clamp(1.5rem, 4vw, 3rem); bottom: clamp(1.5rem, 4vw, 3rem); display: grid; width: 6.5rem; aspect-ratio: 1; padding: 0.6rem; border: 1px dashed var(--color-gold); border-radius: var(--radius-small); place-content: center; }
.qr-placeholder span { color: var(--color-bronze); font-family: var(--font-heading); font-size: 1.5rem; }
.qr-placeholder small { font-size: 0.5rem; line-height: 1.2; }

.faq-section { background: var(--color-ivory); }
.faq-layout { display: grid; grid-template-columns: 0.72fr 1.28fr; align-items: start; gap: clamp(3rem, 8vw, 7rem); }
.faq-intro { position: sticky; top: calc(var(--header-height) + 2rem); }
.text-link { color: var(--color-bronze); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-decoration: none; text-transform: uppercase; }
.accordion-item { border-bottom: 1px solid rgba(183, 131, 47, 0.3); }
.accordion-item h3 { margin: 0; }
.accordion-item button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 1.5rem 0; color: var(--color-forest-dark); background: transparent; border: 0; font-family: var(--font-heading); font-size: clamp(1.3rem, 2vw, 1.65rem); text-align: left; cursor: pointer; }
.accordion-item button i { position: relative; flex: 0 0 1.4rem; width: 1.4rem; height: 1.4rem; margin-left: 1rem; }
.accordion-item button i::before, .accordion-item button i::after { position: absolute; top: 50%; right: 0; left: 0; height: 1px; background: var(--color-gold); content: ""; transition: transform var(--transition); }
.accordion-item button i::after { transform: rotate(90deg); }
.accordion-item button[aria-expanded="true"] i::after { transform: rotate(0); }
.accordion-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 350ms ease; }
.accordion-panel:not([hidden]) { grid-template-rows: 1fr; }
.accordion-panel > div { overflow: hidden; }
.accordion-panel p { padding: 0 3rem 1.5rem 0; color: rgba(32, 55, 47, 0.74); }

.contact-section { overflow: hidden; color: var(--color-ivory); background: linear-gradient(rgba(19, 51, 42, 0.78), rgba(19, 51, 42, 0.86)), url("../images/hero-placeholder.svg") center 73% / cover; }
.contact-inner { text-align: center; }
.contact-inner .script-kicker { color: var(--color-champagne); }
.contact-inner h2 { font-size: clamp(2.3rem, 5vw, 4.2rem); }
.contact-links { display: flex; justify-content: center; gap: 1rem 2.4rem; flex-wrap: wrap; }
.contact-links a { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-heading); font-size: 1.15rem; text-decoration: none; }
.contact-links a span { color: var(--color-gold); }
