/* =========================================================
   RESPONSIVE.CSS — MOBILE FIRST EXPERIENCE REFINEMENT
   ========================================================= */

@media (min-width: 1024px) {

    .event-deck.is-sticky .event-card {
        position: sticky;
        top: 82px;
    }

    .event-deck.is-sticky .event-card:nth-child(2) {
        top: 88px;
    }

    .event-deck.is-sticky .event-card:nth-child(3) {
        top: 94px;
    }

    .event-deck.is-sticky .event-card:nth-child(4) {
        top: 100px;
    }

    .event-deck.is-sticky .event-card:nth-child(5) {
        top: 106px;
    }

    .event-deck.is-sticky .event-card:nth-child(6) {
        top: 112px;
    }

    .event-deck.is-sticky .event-card:nth-child(7) {
        top: 118px;
    }
}

@media (min-width: 1600px) {

    .hero-content {
        max-width: 1300px;
    }

    .hero-name {
        font-size: 190px;
    }

    .hero-name--bride {
        font-size: 165px;
    }
}

@media (max-width: 1023px) {

    :root {
        --section-padding: 100px;
    }

    .divine-story-layout {
        gap: 35px;
    }

    .event-card {
        min-height: 470px;
    }

    .hero-temple-image {
        object-position: 52% center;
    }

    .hero-foliage-image {
        object-fit: fill;
    }
}

@media (max-width: 767px) {

    :root {
        --section-padding: 76px;
    }

    body {
        font-size: 18px;
    }

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

    .section-heading {
        margin-bottom: 38px;
    }

    .section-title {
        font-size: clamp(43px, 10vw, 65px);
    }

    .section-calligraphy {
        font-size: clamp(32px, 8vw, 44px);
    }

    .section-introduction {
        font-size: 19px;
        line-height: 1.55;
    }

    .chapter-number {
        font-size: 9px;
        margin-bottom: 13px;
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: .18em;
    }

    .opening-scene {
        padding:
            calc(30px + var(--safe-top))
            25px
            calc(65px + var(--safe-bottom));
    }

    .opening-border {
        inset: 12px;
    }

    .opening-border__corner {
        width: 30px;
        height: 30px;
    }

    .opening-monogram {
        width: 105px;
        margin-block: 18px;
    }

    .opening-title {
        font-size: clamp(39px, 10vw, 55px);
    }

    .opening-signature {
        font-size: clamp(43px, 11vw, 60px);
    }

    .opening-subtitle {
        font-size: 9px;
        letter-spacing: .12em;
    }

    .opening-diya {
        width: 85px;
        margin-top: 10px;
    }

    .opening-welcome {
        font-size: 18px;
    }

    .temple-bell {
        width: 65px;
    }

    .temple-bell--left {
        left: 5%;
    }

    .temple-bell--right {
        right: 5%;
    }

    .opening-scene__footer {
        bottom: calc(25px + var(--safe-bottom));
    }

    .hero-scene {
        min-height: 100svh;
        padding: 70px 15px 125px;
    }

    .hero-temple-image {
        object-position: 47% center;
    }

    .hero-layer--grading {
        background: linear-gradient(
            180deg,
            rgba(12,24,36,.35),
            rgba(12,24,36,.36) 35%,
            rgba(12,24,36,.48) 65%,
            rgba(12,24,36,.12)
        );
    }

    .hero-name {
        font-size: clamp(76px, 19vw, 125px);
    }

    .hero-name--bride {
        font-size: clamp(55px, 14.7vw, 98px);
    }

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

    .hero-mantra {
        font-size: 27px;
    }

    .hero-hindi-blessing {
        font-size: 22px;
    }

    .hero-eyebrow {
        font-size: 8px;
        letter-spacing: .14em;
    }

    .hero-tagline {
        font-size: 33px;
        margin-block: 22px;
    }

    .hero-date {
        font-size: 13px;
        gap: 10px;
    }

    .hero-date__line {
        width: 26px;
    }

    .hero-location {
        font-size: 9px;
    }

    .hero-cloud--front {
        width: 125%;
        right: -55%;
        bottom: 10%;
    }

    .hero-cloud--back {
        width: 110%;
        left: -40%;
        top: 30%;
    }

    .hero-foliage-image {
        height: 55%;
        object-fit: fill;
    }

    .scroll-indicator {
        bottom: 45px;
    }

    .scene-bottom-fade {
        height: 65px;
    }

    .divine-story-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .divine-story-layout .section-heading {
        grid-column: auto;
        margin-bottom: 0;
    }

    .divine-artwork {
        width: min(420px, 95%);
        margin: 0 auto;
    }

    .divine-artwork__frame img {
        aspect-ratio: 4 / 4.5;
        object-position: 65% center;
    }

    .divine-story-text {
        padding-inline: 8px;
        font-size: 21px;
        line-height: 1.65;
    }

    .divine-story-text__hindi {
        font-size: 20px;
        text-align: center;
    }

    .divine-story-quote {
        font-size: 27px;
    }

    .royal-invitation__content {
        padding: 15% 12% 35%;
    }

    .royal-invitation__message {
        font-size: 18px;
    }

    .family-block__name {
        font-size: 34px;
    }

    .family-block__parents {
        font-size: 20px;
    }

    .family-union {
        font-size: 49px;
    }

    .royal-invitation__venue {
        font-size: 20px;
    }

    .royal-invitation__closing {
        font-size: 17px;
    }

    .photo-journal-container {
        width: 100%;
    }

    .carousel-viewport {
        height: clamp(350px, 115vw, 480px);
    }

    .journal-slide {
        width: min(73vw, 340px);
        height: 88%;
    }

    .journal-navigation {
        gap: 18px;
    }

    .journal-arrow {
        width: 43px;
        height: 43px;
    }

    .journal-story {
        min-height: 340px;
        width: calc(100% - 36px);
        padding: 12px 6px 25px;
    }

    .journal-story__title {
        font-size: 40px;
    }

    .journal-story__calligraphy {
        font-size: 35px;
    }

    .journal-story__description {
        font-size: 21px;
    }

    .journal-story__quote {
        font-size: 21px;
    }

    .event-navigation {
        top: calc(8px + var(--safe-top));
        gap: 3px;
        padding: 6px 9px;
    }

    .event-nav-button {
        width: 32px;
        height: 32px;
        font-size: 10px;
    }

    .event-deck {
        width: calc(100% - 32px);
        padding-bottom: 20px;
    }

    .event-card {
        display: flex;
        flex-direction: column;
        min-height: 0;
        margin-bottom: 30px;
        border-radius: 9px;
    }

    .event-card__artwork {
        min-height: 0;
        aspect-ratio: 4 / 4.6;
    }

    .event-card__artwork img {
        object-position: center 45%;
    }

    .event-card__content {
        padding: 30px 25px 35px;
    }

    .event-card__title {
        font-size: 45px;
    }

    .event-card__tagline {
        font-size: 34px;
    }

    .event-card__description {
        font-size: 20px;
    }

    .event-card__details {
        font-size: 10px;
        margin: 17px 0;
        padding: 15px 0;
    }

    .sacred-union-scene {
        min-height: 95svh;
        padding: 90px 25px;
    }

    .sacred-union-title {
        font-size: 58px;
    }

    .sacred-union-description {
        font-size: 22px;
    }

    .sacred-union-scene__background img {
        object-position: 67% center;
    }

    .vow-symbols {
        gap: 16px;
        font-size: 18px;
    }

    .countdown {
        gap: 7px;
        margin-bottom: 30px;
    }

    .countdown-unit {
        padding: 18px 4px;
    }

    .countdown-unit__value {
        font-size: clamp(31px, 9vw, 45px);
    }

    .countdown-unit__label {
        font-size: 8px;
        letter-spacing: .03em;
    }

    .countdown-separator {
        font-size: 20px;
    }

    .venue-card {
        padding: 35px 22px;
    }

    .venue-card__name {
        font-size: 40px;
    }

    .venue-actions {
        flex-direction: column;
    }

    .venue-actions .luxury-button {
        width: 100%;
    }

    .closing-scene {
        padding: 43vh 24px 80px;
    }

    .closing-scene__artwork img {
        height: 65vh;
        object-position: 65% top;
    }

    .closing-scene__gradient {
        background: linear-gradient(
            180deg,
            transparent 0,
            rgba(16,31,48,.15) 25vh,
            #101F30 65vh
        );
    }

    .closing-title {
        font-size: 61px;
    }

    .closing-signature {
        font-size: 57px;
    }

    .closing-message {
        font-size: 21px;
    }

    .closing-quote {
        font-size: 25px;
    }

    .experience-controls {
        right: 13px;
        bottom: calc(15px + var(--safe-bottom));
        gap: 9px;
    }

    .music-toggle {
        width: 44px;
        height: 44px;
    }

    .back-to-top {
        width: 37px;
        height: 37px;
    }
}

@media (max-width: 374px) {

    .opening-monogram {
        width: 85px;
    }

    .opening-title {
        font-size: 35px;
    }

    .opening-signature {
        font-size: 40px;
    }

    .opening-diya {
        width: 65px;
    }

    .hero-name--bride {
        font-size: 51px;
    }

    .hero-tagline {
        font-size: 28px;
    }

    .event-nav-button {
        width: 28px;
        height: 28px;
    }

    .event-card__title {
        font-size: 37px;
    }

    .family-block__name {
        font-size: 29px;
    }

    .journal-story__title {
        font-size: 35px;
    }
}

@media (max-height: 740px) and (max-width: 767px) {

    .opening-monogram {
        width: 82px;
        margin-block: 12px;
    }

    .opening-scene .ornament {
        margin-block: 7px;
    }

    .opening-diya {
        width: 65px;
        margin-top: 5px;
    }

    .opening-title {
        font-size: 39px;
    }

    .opening-signature {
        font-size: 45px;
    }

    .opening-welcome {
        margin-bottom: 14px;
        font-size: 16px;
    }

    .opening-music-hint {
        margin-top: 10px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {

    .opening-scene {
        min-height: 100vh;
        padding-block: 35px 65px;
    }

    .hero-scene {
        min-height: 650px;
    }

    .hero-name {
        font-size: 90px;
    }

    .hero-name--bride {
        font-size: 80px;
    }
}

@media (max-height: 750px) and (min-width: 1024px) {

    .event-deck.is-sticky .event-card {
        position: relative;
        top: auto;
    }
}

/* 4.0 targeted visual refinements — after existing breakpoints */
.opening-scene, .js-ready .opening-scene { display:flex; flex-direction:column; align-items:center; justify-content:safe center; gap:24px; padding-block: max(30px, var(--safe-top)) max(24px, var(--safe-bottom)); }
.opening-scene__content { flex:none; margin:0 auto; }
.opening-scene__footer { position:relative; inset:auto; flex:none; margin:0 auto; }
.opening-welcome { line-height:1.55; margin:10px 0 20px; }
.opening-diya { margin-bottom:12px; }
.hero-hindi-blessing { text-wrap:balance; max-width:100%; }
.royal-invitation__artwork { background-size:100% auto; background-position:center top; }
.royal-invitation__artwork::after { content:""; position:absolute; inset:0; background:linear-gradient(to bottom, transparent 0, transparent 12%, #f8ead5 30%, #f8ead5 100%); }
.royal-invitation__content { padding:20% 12% 0; }
.royal-invitation::after {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 1.95;
    margin-top: -30px;

    background:
        url('../images/backgrounds/invitation-frame.png')
        center bottom / 100% auto no-repeat;

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, .12) 8%,
        rgba(0, 0, 0, .45) 18%,
        rgba(0, 0, 0, .85) 30%,
        #000 42%
    );

    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, .12) 8%,
        rgba(0, 0, 0, .45) 18%,
        rgba(0, 0, 0, .85) 30%,
        #000 42%
    );
}
.royal-invitation__message { margin-bottom:20px; }
.family-block__name { font-family:var(--font-script); font-weight:400; font-size:clamp(38px,6vw,62px); }
.journal-slide { height:auto; aspect-ratio:2/3; max-height:88%; }
.journal-slide__photo { inset:8% 7%; display:grid; place-items:center; }
.journal-slide__photo img { object-fit:contain; }
.journal-slide__photo { container-type:size; }
.journal-slide:nth-child(3) .journal-slide__photo img { width:100cqh; height:100cqw; max-width:none; max-height:none; }
/* OUR STORY — PREMIUM COMPACT LAYOUT */

#photo-journal {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#photo-journal .journal-chapter-indicator {
    order: 1;
}

#photo-journal .carousel-viewport {
    order: 2;
}

#photo-journal .journal-story {
    order: 3;
    position: relative;
    width: min(720px, 92%);
    min-height: 0;
    margin: -15px auto 0;
    padding: 0 15px 20px;
    text-align: center;
}

#photo-journal .journal-story__ornament {
    margin: 0 auto 12px;
}

#photo-journal .journal-story__title {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .22em;
    color: #94713F;
    margin: 0 0 8px;
}

#photo-journal .journal-story__calligraphy {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(30px, 3.5vw, 46px);
    font-style: italic;
    font-weight: 600;
    color: #702C32;
    line-height: 1.15;
    margin: 0 0 8px;
}

#photo-journal .journal-story__description {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.4;
    color: #745B47;
    max-width: 580px;
    margin: 0 auto;
}

#photo-journal .journal-story__quote,
#photo-journal .journal-story .ornament,
.photo-journal-scene .section-introduction {
    display: none;
}

#photo-journal .journal-navigation {
    order: 4;
    margin: 5px auto 0;
}

#photo-journal .journal-autoplay {
    order: 5;
    margin: 10px auto;
}

#photo-journal .journal-progress {
    order: 6;
    margin: 5px auto 0;
}

@media (max-width: 767px) {
    #photo-journal .journal-story {
        margin-top: -10px;
        padding-bottom: 15px;
    }
}
@media(max-width:767px) { .royal-invitation__content { padding:24% 11% 7%; } .family-block__name { font-size:clamp(34px,9vw,48px); } .opening-scene { gap:16px; } }
/* ========================================================
   DIVINE STORY — COMPACT CINEMATIC LAYOUT
   ======================================================== */

#divine-story .section-title {
    font-size: clamp(44px, 5vw, 76px);
    line-height: 1.05;
}

#divine-story .section-calligraphy {
    font-size: clamp(30px, 3.2vw, 46px);
    margin-top: 12px;
}

#divine-story .section-heading .ornament {
    margin-block: 14px;
}

/* Mobile compact layout */

@media (max-width: 767px) {

    #divine-story {
        padding: 45px 0 25px;
    }

    #divine-story .divine-story-layout {
        gap: 20px;
    }

    #divine-story .section-title {
        font-size: clamp(36px, 9vw, 48px);
        line-height: 1.1;
    }

    #divine-story .section-calligraphy {
        font-size: 32px;
        margin-top: 10px;
    }

    #divine-story .section-heading {
        margin-bottom: 0;
    }

}
/* =========================================================
   MOBILE — CINEMATIC SACRED CELEBRATION STACK
   ========================================================= */

@media (max-width: 1023px) {

    .celebrations-scene {
        overflow: clip;
    }

    .event-navigation {
        top: calc(8px + var(--safe-top));
        z-index: 100;
        margin-bottom: 22px;
    }

    .event-deck {
        width: min(440px, calc(100% - 28px));
        padding-bottom: 15px;
        isolation: isolate;
    }

    .event-deck.is-sticky .event-card {
        position: sticky;
        top: calc(62px + var(--safe-top));
        margin-bottom: 16px;
        border-radius: 12px;
        transform-origin: center top;

        box-shadow:
            0 8px 24px rgba(70, 40, 24, .12),
            0 2px 8px rgba(70, 40, 24, .08);

        transition:
            transform .85s cubic-bezier(.22, 1, .36, 1),
            box-shadow .85s ease;
    }

    .event-deck.is-sticky .event-card:nth-child(2) {
        top: calc(66px + var(--safe-top));
    }

    .event-deck.is-sticky .event-card:nth-child(3) {
        top: calc(70px + var(--safe-top));
    }

    .event-deck.is-sticky .event-card:nth-child(4) {
        top: calc(74px + var(--safe-top));
    }

    .event-deck.is-sticky .event-card:nth-child(5) {
        top: calc(78px + var(--safe-top));
    }

    .event-deck.is-sticky .event-card:nth-child(6) {
        top: calc(82px + var(--safe-top));
    }

    .event-deck.is-sticky .event-card:nth-child(7) {
        top: calc(86px + var(--safe-top));
    }

    .event-deck.is-sticky .event-card.is-past {
        transform: scale(.96);
    }

    .event-deck.is-sticky .event-card.is-current {
        transform: scale(1);

        box-shadow:
            0 18px 40px rgba(70, 40, 24, .17),
            0 3px 10px rgba(70, 40, 24, .08);
    }

    .event-deck.is-sticky .event-card:last-child {
        margin-bottom: 0;
    }

    .event-card {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .event-card__artwork {
        min-height: 0;
        height: clamp(190px, 32svh, 290px);
        aspect-ratio: auto;
        flex-shrink: 0;
    }

    .event-card__artwork img {
        object-fit: cover;
        object-position: center 45%;
    }

    .event-card__content {
        padding: 22px 20px 25px;
    }

    .event-card__eyebrow {
        font-size: 9px;
        margin-bottom: 7px;
    }

    .event-card__hindi {
        font-size: 20px;
        line-height: 1.3;
    }

    .event-card__title {
        font-size: clamp(30px, 9vw, 42px);
        line-height: 1.05;
        margin-top: 5px;
    }

    .event-card__tagline {
        font-size: 28px;
        line-height: 1.15;
        margin-top: 8px;
    }

    .event-card__details {
        font-size: 10px;
        line-height: 1.5;
        margin: 12px 0;
        padding: 10px 0;
        gap: 3px;
    }

    .event-card__description {
        font-size: 17px;
        line-height: 1.4;
    }

    .event-card__content::before {
        inset: 8px;
    }
}
/* =========================================================
   MOBILE — FINAL CINEMATIC VISUAL REFINEMENT
   ========================================================= */

@media (max-width: 767px) {

    /* 01 — Seamless temple hero */

    .hero-temple-image {
    object-fit: cover;
object-position: 15% center;
transform: none;

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 10%,
        #000 85%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        #000 10%,
        #000 85%,
        transparent 100%
    );
}

    .hero-foliage-image {
        -webkit-mask-image: linear-gradient(
            to bottom, #000 65%, transparent 100%
        );

        mask-image: linear-gradient(
            to bottom, #000 65%, transparent 100%
        );
    }


    /* 02 — Shiv Shakti artwork */

    .divine-artwork__frame img {
        object-position: 90% center;
        aspect-ratio: 4 / 4.2;
    }


    /* 03 — Sacred invitation artwork */

    .royal-invitation__content {
        padding-bottom: 0;
    }

    .royal-invitation::after {
    aspect-ratio: 1.85;
    margin-top: -28px;

    background-size: 100% auto;
    background-position: center bottom;

    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, .12) 8%,
        rgba(0, 0, 0, .45) 18%,
        rgba(0, 0, 0, .85) 30%,
        #000 42%
    );

    mask-image: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, .12) 8%,
        rgba(0, 0, 0, .45) 18%,
        rgba(0, 0, 0, .85) 30%,
        #000 42%
    );
}

    .royal-invitation__closing {
        position: relative;
        z-index: 2;
        margin-bottom: 0;
    }

    .invitation-scene {
        padding-bottom: 45px;
    }


    /* 04 — Divine closing composition */

    .closing-scene {
        padding: 38svh 20px 55px;
    }

    .closing-scene__artwork img {
        height: 60svh;
        object-position: 90% top;
    }

    .closing-scene__gradient {
        background: linear-gradient(
            to bottom,
            transparent 0,
            rgba(16, 31, 48, .08) 20svh,
            rgba(16, 31, 48, .45) 40svh,
            #101F30 60svh
        );
    }

    .closing-title {
        font-size: clamp(43px, 12vw, 52px);
        line-height: 1.1;
    }

    .closing-calligraphy {
        font-size: 30px;
    }

    .closing-message {
        font-size: 20px;
        line-height: 1.5;
        margin: 18px auto;
    }


    /* 05 — Sacred lotus positioning */

    .closing-lotus {
    width: min(160px, 48%);
    margin: 15px auto 8px;
}

    .closing-lotus img {
        display: block;
        margin: 0 auto;
    }

    .closing-quote {
        font-size: 22px;
        line-height: 1.45;
        max-width: 92%;
        margin-inline: auto;
    }

}/* MOBILE — DIVINE POETRY ALIGNMENT */

@media (max-width: 767px) {

    #divine-story-paragraphs {
        width: 100%;
        max-width: 100%;
        margin-inline: auto;
        text-align: center;
    }

    #divine-story-paragraphs p {
        font-size: clamp(17px, 4.6vw, 21px);
        line-height: 1.8;
        text-wrap: balance;
        margin-inline: auto;
    }

}

/* Mobile final corrections */
@media (max-width: 767px) {
    #divine-story #divine-story-paragraphs p {
        font-size: clamp(15px, 4.1vw, 18px);
        line-height: 1.65;
    }
    #divine-story #divine-story-paragraphs .poetry-line {
        display: block;
    }
    #divine-story #divine-story-paragraphs p+p {
        margin-top: 14px;
    }
    .closing-lotus {
        width: min(145px, 44%);
        margin: 0 auto;
    }
    .closing-mantra { margin-bottom: 0; }
    .closing-lotus + .ornament { margin-top: 4px; }
    .closing-content { opacity: 1 !important; transform: none !important; }
    .closing-scene, .wedding-footer { overflow: visible; }
    .closing-scene { isolation: isolate; overflow: clip; }
    .wedding-footer { position: relative; isolation: isolate; }
}

/* Final closing composition — independent artwork height */
#closing {
    --closing-art-height: max(56.28vw, 420px);
    --closing-text-start: calc(var(--closing-art-height) * .66);
    min-height: 0;
    padding: var(--closing-text-start) 24px 80px;
    isolation: isolate;
    overflow: hidden;
}
#closing .closing-scene__artwork,
#closing .closing-scene__gradient,
#closing .closing-scene__vignette {
    height: var(--closing-art-height);
    bottom: auto;
}
#closing .closing-scene__artwork img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
#closing .closing-scene__gradient {
    background: linear-gradient(to bottom, transparent 25%, rgba(16,31,48,.12) 48%, rgba(16,31,48,.72) 78%, #101F30 100%);
}
#closing .closing-scene__vignette {
    background: none;
}
#closing .closing-lotus { display: none !important; }
#closing .closing-mantra { margin-bottom: 0; }
#closing .closing-content > .ornament { margin: 24px auto; }
#closing .closing-content { opacity: 1; transform: none; }
@media (max-width: 767px) {
    #closing {
        --closing-art-height: 60svh;
        --closing-text-start: 38svh;
        padding: var(--closing-text-start) 20px 55px;
    }
    #closing .closing-scene__artwork img { object-position: 90% top; }
    #closing .closing-content > .ornament { margin: 18px auto; }
}
