/* ============================================================
   BENGALI MAXIMALIST MEMORY GARDEN
============================================================ */

:root {

    --cream: #f7edda;
    --paper: #f3e3c5;
    --paper-dark: #e2cda5;

    --wine: #721c2b;
    --deep-red: #9d1d2d;
    --red: #c9343b;

    --terracotta: #b75d3b;
    --mustard: #d59b32;

    --green: #3f5d45;
    --dark-green: #273d31;

    --pink: #d96c7b;
    --soft-pink: #efb1ad;

    --ink: #382620;

    --shadow:
        0 18px 45px rgba(83, 40, 25, .18);

    --serif:
        "DM Serif Display",
        Georgia,
        serif;

    --bengali:
        "Noto Serif Bengali",
        serif;

    --hand:
        "Kalam",
        cursive;

  --cream:#f7ecd8;
  --cream-light:#fbf3e2;
  --cream-deep:#efdfc0;
  --maroon:#7c1f33;
  --maroon-dark:#5a1524;
  --green:#2f5233;
  --green-dark:#20391f;
  --gold:#c99a3b;
  --pink:#e8a4ad;
  --red:#c0392b;
  --ink:#3a2a1a;


  --display:'Playfair Display',serif;
  --body:'EB Garamond',serif;
  --script:'Xanh Mono',cursive;
  --rock:'Rock Salt';
  --yuyu:'Yuyu';
  --bn:'Tiro Bangla',serif;
  --ui:'Poppins',sans-serif;
  --quick:'Quicksand';
  --bangla:'Noto Serif Bengali';
  --hindi:'Tiro Devanagari Hindi';
  --arya:'Arya';
  --rozha:'Rozha One';
  --tillana:'Tillana';
  --pirata:'Pirata One';
  --ranga:'Ranga';
  --irish:'Irish Grover';
  --cormorant:'Cormorant Garamond';
  --stencil:'Stardos Stencil';
}


/* ============================================================
   RESET
============================================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(193, 56, 67, .08),
            transparent 25%
        ),

        radial-gradient(
            circle at 85% 75%,
            rgba(61, 91, 67, .08),
            transparent 30%
        ),

        var(--cream);

    color: var(--ink);

    font-family: var(--serif);

    overflow-x: hidden;
}


/* ============================================================
   PAPER TEXTURE
============================================================ */

.paper-texture {
    position: fixed;

    inset: 0;

    pointer-events: none;

    z-index: 999;

    opacity: .13;

    background-image:
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 3px,
            rgba(50, 30, 20, .12) 4px
        );

    mix-blend-mode: multiply;
}

/* ============================================================
   PASSWORD LOCK — FILE 1 SYSTEM
   ============================================================ */

#password-gate {
    position: fixed;
    inset: 0;

    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 20% 20%,
            #d98b68,
            transparent 30%
        ),

        radial-gradient(
            circle at 80% 75%,
            #658b6c,
            transparent 30%
        ),

        var(--cream);
}


/* decorative circular rings */

#password-gate::before {
    content: "";

    position: absolute;

    width: 600px;
    height: 600px;

    border-radius: 50%;

    border:
        3px solid rgba(158,38,51,.25);

    box-shadow:
        0 0 0 20px rgba(184,135,54,.12),
        0 0 0 42px rgba(49,91,69,.10),
        0 0 0 65px rgba(158,38,51,.08);

    pointer-events: none;
}


/* ============================================================
   LOCK CARD
   ============================================================ */

.gate-card {

    position: relative;

    width: min(430px, 94vw);

    padding: 48px 38px;

    text-align: center;

    background:
        linear-gradient(
            rgba(248,239,217,.97),
            rgba(243,230,201,.97)
        );

    border:
        3px solid var(--deep-red);

    box-shadow:
        0 0 0 7px var(--mustard),
        0 0 0 11px var(--green),
        var(--shadow);

    /* YOUR requested rounded rectangle */
    border-radius: 14px;
}


/* inner border */

.gate-card::before {

    content: "";

    position: absolute;

    inset: 10px;

    border:
        1px solid var(--mustard);

    pointer-events: none;

    border-radius: 7px;
}


/* ============================================================
   LOCK DECORATIONS
   ============================================================ */

.gate-top-ornament,
.gate-bottom-ornament {

    color: var(--deep-red);

    letter-spacing: 7px;

    font-family: Georgia, serif;
}


.gate-top-ornament {
    margin-bottom: 8px;
}


.gate-bottom-ornament {
    margin-top: 18px;
}


.gate-symbol {

    font-size: 3.4rem;

    margin: 18px 0 5px;

    animation:
        gate-flower 4s ease-in-out infinite;
}


@keyframes gate-flower {

    0%, 100% {
        transform: rotate(-5deg);
    }

    50% {
        transform: rotate(5deg);
    }
}


.bengali-small {

    font-family: var(--ranga);

    color: var(--green);

    font-size: 1.2rem;

    margin-bottom: 5px;
}


.gate-card h1 {

    margin: 8px 0;

    font-family:'Pirata One', var(--serif);

    font-size: 2.3rem;

    color: var(--deep-red);

    line-height: 1.15;
}


.gate-card p {

    color: #60483c;
}


/* ============================================================
   PASSWORD FORM
   ============================================================ */

#gate-form {

    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-top: 24px;

    position: relative;

    z-index: 2;
}


#gate-input {

    width: 100%;

    padding: 15px 18px;

    border:
        2px solid var(--deep-red);

    border-radius: 7px;

    background: #fffdf5;

    color: var(--ink);

    text-align: center;

    font: inherit;

    outline: none;

    transition:
        box-shadow .2s ease,
        transform .2s ease;
}


#gate-input:focus {

    box-shadow:
        0 0 0 4px rgba(211,154,50,.25);
}


/* ============================================================
   ENTER BUTTON
   ============================================================ */

#gate-form button {

    padding: 15px;

    border: none;

    border-radius: 7px;

    background:
        var(--deep-red);

    color: white;

    font-family:'Xanh Mono', var(--serif);

    font-size: 1.05rem;

    font-weight: 200;

    cursor: pointer;

    box-shadow:
        5px 5px 0 var(--green);

    transition:
        .25s ease;
}


#gate-form button:hover {

    transform:
        translate(-2px,-2px);

    box-shadow:
        8px 8px 0 var(--green);
}


/* ============================================================
   WRONG PASSWORD
   ============================================================ */

.gate-error {

    color:
        var(--deep-red) !important;

    font-weight: 700;

    margin-top: 12px;
}


.gate-card.shake {

    animation:
        gate-shake .35s ease;
}


@keyframes gate-shake {

    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .gate-card {

        width: min(430px, 88vw);

        padding:
            42px 25px;
    }

    .gate-card h1 {

        font-size:
            1.9rem;
    }

    #password-gate::before {

        width: 430px;
        height: 430px;
    }
}

/* ============================================================
   BENGALI DECORATIVE FLOWERS
============================================================ */

.alpana {
    position: fixed;

    font-size: 110px;

    color: var(--wine);

    opacity: .15;

    pointer-events: none;

    z-index: 1;
}

.alpana-one {
    top: 7%;
    left: 2%;
}

.alpana-two {
    top: 45%;
    right: 2%;
}

.alpana-three {
    bottom: 5%;
    left: 5%;
}

.alpana-four {
    bottom: 20%;
    right: 5%;
}

.corner-flower {
    position: fixed;

    z-index: 2;

    font-size: 130px;

    color: var(--deep-red);

    opacity: .11;

    pointer-events: none;
}

.corner-flower-left {
    left: -30px;
    top: -25px;
}

.corner-flower-right {
    right: -30px;
    bottom: -30px;
}


/* ============================================================
   HOME PAGE
============================================================ */

.home-page {

    min-height: 100vh;

    position: relative;

    padding:
        55px
        7vw
        80px;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 50% 25%,
            rgba(255, 255, 255, .7),
            transparent 35%
        ),

        repeating-linear-gradient(
            135deg,
            rgba(157, 29, 45, .025) 0,
            rgba(157, 29, 45, .025) 3px,
            transparent 3px,
            transparent 20px
        );
}


/* ============================================================
   HERO
============================================================ */

.hero {
    text-align: center;

    position: relative;

    z-index: 5;

    max-width: 1000px;

    margin: auto;
}

.tiny-bengali {

    font-family: var(--bengali);

    color: var(--wine);

    font-size: 18px;

    margin-bottom: 14px;
}

.ornament-line {

    display: flex;

    justify-content: center;

    gap: 24px;

    color: var(--deep-red);

    font-size: 20px;

    margin-bottom: 12px;
}

.hero h1 {

    margin: 0;

    font-size:
        clamp(55px, 8vw, 125px);

    line-height: .92;

    letter-spacing: -4px;

    color: var(--wine);

    text-shadow:
        3px 3px 0 var(--mustard),
        7px 7px 0 rgba(157, 29, 45, .07);
}

.hero h1 span {

    display: block;

    color: var(--deep-red);

    font-style: italic;
}

.handwritten {

    margin-top: 25px;

    font-family: var(--hand);

    font-size: 23px;

    color: var(--green);

    transform: rotate(-2deg);
}

.hero-flower {

    font-size: 45px;

    color: var(--red);

    margin: 15px 0;
}

.intro-line {

    font-family: var(--hand);

    font-size: 20px;

    line-height: 1.5;

    color: #67453a;
}


/* ============================================================
   MAIN NAVIGATION
============================================================ */

.main-navigation {

    max-width: 1100px;

    margin:
        55px
        auto
        30px;

    position: relative;

    z-index: 5;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-top:
        2px solid rgba(114, 28, 43, .45);

    border-bottom:
        2px solid rgba(114, 28, 43, .45);

    background:
        rgba(255, 250, 239, .55);

    box-shadow:
        0 15px 30px rgba(70, 30, 20, .08);
}


/* NOT CARD STYLE */

.nav-piece {

    border: 0;

    border-right:
        1px solid
        rgba(114, 28, 43, .25);

    border-radius: 0;

    background: transparent;

    min-height: 210px;

    padding: 35px 30px;

    text-align: left;

    position: relative;

    cursor: pointer;

    color: var(--ink);

    transition:
        background .3s ease,
        transform .3s ease;
}

.nav-piece:last-child {
    border-right: 0;
}

.nav-piece:hover {

    background:
        rgba(217, 108, 123, .09);

    transform:
        translateY(-7px);
}

.nav-number {

    position: absolute;

    top: 16px;
    right: 20px;

    font-family: var(--hand);

    color: var(--terracotta);

    font-size: 17px;
}

.nav-icon {

    font-size: 35px;

    color: var(--deep-red);

    display: block;

    margin-bottom: 15px;
}

.nav-title {

    display: block;

    font-size: 29px;

    color: var(--wine);

    letter-spacing: 1px;
}

.nav-description {

    display: block;

    margin-top: 12px;

    font-family: var(--hand);

    font-size: 17px;

    line-height: 1.3;

    color: #725247;
}

.nav-arrow {

    position: absolute;

    bottom: 20px;
    right: 25px;

    font-size: 25px;

    color: var(--deep-red);

    transition:
        transform .3s ease;
}

.nav-piece:hover .nav-arrow {

    transform:
        translate(5px, -5px);
}


/* ============================================================
   BENGALI STRIP
============================================================ */

.bengali-strip {

    max-width: 1100px;

    margin: 0 auto 60px;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 25px;

    color: var(--deep-red);

    font-family: var(--bengali);

    font-size: 19px;

    border-bottom:
        1px solid rgba(114, 28, 43, .3);

    padding-bottom: 25px;
}

.bengali-strip i {
    font-style: normal;
    color: var(--mustard);
}


/* ============================================================
   WELCOME
============================================================ */

.welcome-section {

    max-width: 1100px;

    margin: auto;

    position: relative;

    overflow: hidden;

    border-radius:
        35px
        5px
        35px
        5px;

    border:
        1px solid rgba(114, 28, 43, .25);

    background:

        linear-gradient(
            105deg,
            #fff9eb,
            #f4e4c8
        );

    box-shadow:
        var(--shadow);
}

.welcome-section::before {

    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 18px;

    background:

        repeating-linear-gradient(
            0deg,
            var(--wine) 0,
            var(--wine) 12px,
            var(--mustard) 12px,
            var(--mustard) 24px,
            var(--green) 24px,
            var(--green) 36px
        );
}

.welcome-side-pattern {

    position: absolute;

    right: 0;
    top: 0;
    bottom: 0;

    width: 28%;

    opacity: .12;

    background:

        radial-gradient(
            circle,
            var(--deep-red) 2px,
            transparent 3px
        );

    background-size:
        25px 25px;
}

.welcome-content {

    padding:
        65px
        12%
        70px;

    position: relative;

    z-index: 2;

    max-width: 850px;
}

.section-kicker {

    font-family: var(--bengali);

    color: var(--terracotta);

    margin-bottom: 10px;

    font-size: 17px;
}

.welcome-content h2 {

    font-size: 50px;

    color: var(--wine);

    margin:
        0
        0
        25px;
}

.welcome-content p {

    font-size: 21px;

    line-height: 1.7;

    color: #5e443a;

    max-width: 760px;
}

.signature {

    margin-top: 35px;

    font-family: var(--hand);

    font-size: 20px;

    color: var(--green);

    transform: rotate(-2deg);
}


/* ============================================================
   FOOTER
============================================================ */

.tiny{

    display: flex;

    justify-content: center;

    position: absolute;

    gap: 18px;

    margin-top: 55px;


    font-family: var(--cormorant);

    color: var(--wine);
}


/* ============================================================
   FULL SCREEN PAGES
============================================================ */

.full-page {

    position: fixed;

    inset: 0;

    z-index: 100;

    overflow-y: auto;

    padding:
        70px
        7vw
        90px;

    background:

        radial-gradient(
            circle at 10% 20%,
            rgba(196, 51, 61, .12),
            transparent 20%
        ),

        radial-gradient(
            circle at 90% 70%,
            rgba(61, 91, 67, .1),
            transparent 25%
        ),

        var(--cream);

    display: none;

    animation:
        pageIn .45s ease;
}

.full-page.active {
    display: block;
}

@keyframes pageIn {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================================
   CLOSE
============================================================ */

.close-page {

    position: fixed;

    top: 25px;
    right: 30px;

    width: 58px;
    height: 58px;

    border:
        1px solid var(--wine);

    border-radius: 50%;

    background:
        var(--cream);

    color: var(--wine);

    font-size: 38px;

    line-height: 1;

    cursor: pointer;

    z-index: 500;

    transition:
        .3s ease;
}

.close-page:hover {

    background:
        var(--wine);

    color:
        var(--cream);

    transform:
        rotate(90deg);
}


/* ============================================================
   PAGE HEADINGS
============================================================ */

.page-heading {

    text-align: center;

    max-width: 900px;

    margin:
        0
        auto
        60px;
}

.page-kicker {

    font-family: var(--bengali);

    font-size: 18px;

    color: var(--terracotta);
}

.page-heading h2 {

    font-family: var(--irish);
    font-size:
        clamp(55px, 7vw, 100px);

    color: var(--wine);

    margin:
        5px
        0
        10px;

    text-shadow:
        3px 3px 0 var(--mustard);
}

.page-heading p {

    font-family: var(--stencil);

    font-size: 18px;

    color: #68493d;
}


/* ============================================================
   BEST FRAME COLLAGE
============================================================ */

.memory-collage {

    max-width: 1200px;

    margin: auto;

    display: grid;

    grid-template-columns:
        1.1fr
        .75fr
        1fr
        .8fr;

    grid-auto-rows:
        230px;

    gap: 20px;

    position: relative;
}

.collage-piece {

    position: relative;

    overflow: hidden;

    border-radius:
        20px
        4px
        20px
        4px;

    border:
        8px solid
        #fff5df;

    box-shadow:
        0 14px 25px rgba(70, 30, 20, .2);

    background: var(--paper);
}

.collage-piece img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition:
        transform .5s ease;
}

.collage-piece:hover img {

    transform:
        scale(1.06);
}

/* Short videos behave like collage images */
.collage-piece video {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    background: #2b211b;
}

/* Small visual label so a visitor knows this frame is a video */
/*.video-badge {

    position: absolute;

    top: 12px;
    right: 12px;

    z-index: 3;

    padding: 5px 9px;

    border-radius: 999px;

    background: rgba(255, 245, 223, .9);

    color: var(--wine);

    font-family: var(--ui);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: .5px;

    box-shadow: 0 3px 8px rgba(0,0,0,.18);

    pointer-events: none;
}*/

.piece-large {
    grid-column: span 2;
    grid-row: span 2;
}

.piece-tall {
    grid-row: span 2;
}

.piece-wide {
    grid-column: span 2;
}

.piece-medium {
    grid-row: span 1;
}

.piece-six {
    transform: rotate(-2deg);
}

.piece-seven {
    transform: rotate(1deg);
}

.piece-eight {
    transform: rotate(-1deg);
}

.photo-note {

    position: absolute;

    bottom: 12px;
    left: 15px;

    background:
        #f9ebce;

    padding:
        7px
        13px;

    font-family: var(--hand);

    color: var(--wine);

    transform:
        rotate(-2deg);

    box-shadow:
        0 4px 10px rgba(0,0,0,.15);
}

.collage-bottom {

    display: flex;

    justify-content: center;

    gap: 20px;

    margin-top: 60px;

    font-size: 16px;

    font-family: var(--serif);

    color: var(--wine);
}


/* ============================================================
   STORYLINE
============================================================ */

.storyline-container {

    max-width: 1100px;

    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 55px;

    perspective: 1600px;
}


/* Story card itself is NOT a generic card */

.story-card {

    height: 430px;

    cursor: pointer;

    perspective: 1600px;

    position: relative;

    transition:
        transform .5s ease,
        z-index .3s;
}

.story-card:hover {

    transform:
        translateY(-8px);
}

.story-card.open {

    transform:
        scale(1.5);

    z-index: 50;
}

.story-inner {

    width: 100%;
    height: 100%;

    position: relative;

    transform-style:
        preserve-3d;

    transition:
        transform .8s
        cubic-bezier(.2,.7,.2,1);
}

.story-card.flipped .story-inner {

    transform:
        rotateY(180deg);
}

.story-front,
.story-back {

    position: absolute;

    inset: 0;

    backface-visibility:
        hidden;

    overflow: hidden;

    border:
        1px solid
        rgba(114, 28, 43, .35);

    box-shadow:
        var(--shadow);

    background:
        #fff5df;
}


/* Front */

.story-front {

    border-radius:
        28px
        4px
        28px
        4px;
}

.story-front img {

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.story-front::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(30, 20, 15, .72),
            transparent 55%
        );
}

.story-date {

    position: absolute;

    z-index: 4;

    top: 18px;
    left: 18px;

    background:
        var(--cream);

    color: var(--wine);

    padding:
        10px
        13px;

    font-family: var(--hand);

    font-size: 17px;

    line-height: 1;

    text-align: center;

    transform:
        rotate(-3deg);
}

.story-front-bottom {

    position: absolute;

    z-index: 5;

    bottom: 22px;
    left: 25px;
    right: 25px;

    color: white;
}

.story-front-bottom span:first-child {

    font-family: var(--hand);

    opacity: .8;
}

.story-front-bottom h3 {

    font-size: 34px;

    margin:
        4px
        0;
}

.flip-hint {

    font-family: var(--hand);

    font-size: 15px;

    opacity: .8;
}


/* Back */

.story-back {

    transform:
        rotateY(180deg);

    border-radius:
        4px
        28px
        4px
        28px;

    padding: 45px;

    background:

        linear-gradient(
            135deg,
            #fff4dc,
            #ecd6b0
        );

    display: flex;

    flex-direction: column;

    justify-content: center;
}

.story-back::before {

    content: "✽ ❀ ✽";

    position: absolute;

    top: 25px;
    left: 35px;

    color: var(--deep-red);

    font-size: 20px;

    letter-spacing: 8px;
}

.back-number {

    position: absolute;

    right: 25px;
    top: 25px;

    font-family: var(--hand);

    font-size: 25px;

    color: var(--terracotta);
}

.back-decoration {

    font-size: 50px;

    color: var(--deep-red);

    margin-bottom: 5px;
}

.story-back h3 {

    color: var(--wine);

    font-size: 40px;

    margin:
        5px
        0
        20px;
}

.story-back p {

    font-size: 18px;

    line-height: 1.65;

    color: #61473c;
}

.story-line {

    width: 80px;

    height: 3px;

    background: var(--deep-red);

    margin-top: 15px;
}

.back-date {

    font-family: var(--hand);

    color: var(--green);

    margin-top: 18px;
}


/* ============================================================
   TIMES
============================================================ */

.times-page {

    padding-bottom: 80px;
}

.calendar-header {

    max-width: 1250px;

    margin:
        0
        auto
        35px;

    display: flex;

    align-items: end;

    justify-content: space-between;

    gap: 30px;

    border-bottom:
        2px solid
        rgba(114, 28, 43, .3);

    padding-bottom: 30px;
}

.calendar-header h2 {
    font-family: var(--irish);

    margin: 0;

    font-size:
        clamp(55px, 7vw, 100px);

    color: var(--deep-red);

    text-shadow:
        3px 3px 0 var(--pink);
}

.calendar-header p {

    font-family: var(--quick);

    font-size: 19px;
}

.year-selector {

    display: flex;

    align-items: center;

    gap: 20px;
}

.year-selector button {

    border: 0;

    background: transparent;

    font-size: 55px;

    color: var(--wine);

    cursor: pointer;

    font-family: var(--serif);

    transition:
        transform .2s;
}

.year-selector button:hover {

    transform:
        scale(1.2);
}

#calendarYear {

    font-size: 50px;

    color: var(--deep-red);

    min-width: 140px;

    text-align: center;
}


/* ============================================================
   LEGEND
============================================================ */

.calendar-legend {

    max-width: 1250px;

    margin:
        0
        auto
        35px;

    display: flex;

    justify-content: center;

    gap: 45px;

    flex-wrap: wrap;
}

.legend-item {

    display: flex;

    align-items: center;

    gap: 10px;
}

.legend-colour {

    width: 28px;
    height: 28px;

    border-radius: 50%;

    border:
        2px solid
        rgba(70,30,20,.15);
}

.legend-colour.beautiful {
    background: #a72854;
}

.legend-colour.happy {
    background: #eeb0b5;
}

.legend-colour.difficult {
    background: #658b6c;
}

.legend-colour.sad {
    background: #20391f;
}

.legend-item strong {

    display: block;

    color: var(--wine);

    text-transform: uppercase;

    font-size: 13px;

    letter-spacing: 1px;
}

.legend-item small {

    font-family: var(--cormorant);

    color: #291b17;

    font-size: medium;
}


/* ============================================================
   CALENDAR GRID
============================================================ */

.calendar-grid {
    max-width: 1250px;
    margin: auto;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 24px;
}


/* individual month */

.month {

    background:
        rgba(255, 248, 231, .72);

    border-top:
        5px solid
        var(--wine);

    border-radius:
        18px
        3px
        18px
        3px;

    padding: 20px;

    box-shadow:
        0 10px 25px
        rgba(80,40,20,.1);

    position: relative;

    overflow: hidden;
}

.month::after {

    content: "✽";

    position: absolute;

    right: 15px;
    top: 5px;

    font-size: 50px;

    color: var(--deep-red);

    opacity: .1;
}

.month-title {

    font-size: 26px;

    color: var(--wine);

    margin-bottom: 15px;

    font-family: var(--bengali);
}

.weekdays,
.days {

    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 4px;
}

.weekdays {

    font-family: var(--hand);

    color: var(--terracotta);

    font-size: 13px;

    margin-bottom: 5px;
}

.day {

    aspect-ratio: 1;

    display: flex;

    align-items: center;

    justify-content: center;

    font-family: var(--hand);

    font-size: 14px;

    position: relative;

    border-radius: 4px;

    transition:
        transform .2s;
}

.day:hover {

    transform:
        scale(1.18);

    z-index: 2;
}

.day.empty {
    opacity: 0;
}

.day.beautiful {
    background: #a72854;
    color: white;
}

.day.happy {
    background: #efb2b8;
    color: var(--wine);
}

.day.difficult {
    background: #c31e2d;
    color: white;
}


/* ============================================================
   CALENDAR NOTE
============================================================ */

.calendar-note {

    text-align: center;

    margin-top: 35px;

    font-family: var(--irish);

    font-size: 18px;

    color: var(--wine);
}

.calendar-note span {

    color: var(--mustard);

    padding: 0 15px;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 900px) {

    .home-page {
        padding: 40px 25px;
    }

    .main-navigation {

        grid-template-columns:
            1fr;

        border-left:
            2px solid
            rgba(114, 28, 43, .3);

        border-right:
            2px solid
            rgba(114, 28, 43, .3);
    }

    .nav-piece {

        border-right: 0;

        border-bottom:
            1px solid
            rgba(114, 28, 43, .25);
    }

    .nav-piece:last-child {
        border-bottom: 0;
    }

    .memory-collage {

        grid-template-columns:
            1fr 1fr;

        grid-auto-rows:
            210px;
    }

    .piece-large {
        grid-column: span 2;
    }

    .piece-tall {
        grid-row: span 1;
    }

    .storyline-container {

        grid-template-columns:
            1fr;

        max-width: 650px;
    }

    .story-card.open {
        transform:
            scale(1.15);
    }

    .calendar-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

    .calendar-header {

        align-items:
            center;

        flex-direction:
            column;
    }
}


@media (max-width: 600px) {

    .home-page {
        padding: 35px 18px;
    }

    .hero h1 {
        font-size: 55px;
    }

    .welcome-content {
        padding: 45px 35px;
    }

    .welcome-content h2 {
        font-size: 38px;
    }

    .welcome-content p {
        font-size: 18px;
    }

    .full-page {
        padding:
            70px
            20px
            70px;
    }

    .memory-collage {

        grid-template-columns:
            1fr;

        grid-auto-rows:
            240px;
    }

    .piece-large,
    .piece-wide {

        grid-column:
            span 1;
    }

    .calendar-grid {

        grid-template-columns:
            1fr;
    }

    .calendar-legend {

        flex-direction:
            column;

        align-items:
            flex-start;

        gap: 15px;
    }

    .close-page {

        width: 48px;
        height: 48px;

        font-size: 30px;

        top: 15px;
        right: 15px;
    }
}
/* ============================================================
   FINAL FIXES
   ============================================================ */


/* ------------------------------------------------------------
   PASSWORD GATE
   ------------------------------------------------------------ */

#password-gate[hidden] {
    display: none !important;
}


/* ------------------------------------------------------------
   MAIN SITE
   ------------------------------------------------------------ */

#site[hidden] {
    display: none !important;
}


/* ------------------------------------------------------------
   FULL PAGE FIX
   ------------------------------------------------------------ */

.full-page {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.full-page.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    display: block;
}


/* ------------------------------------------------------------
   CLOSE BUTTON
   ------------------------------------------------------------ */

.close-page {
    pointer-events: auto;
}


/* ------------------------------------------------------------
   STORY CARD
   ------------------------------------------------------------ */

.story-card.open {
    transform: scale(1.5);
    z-index: 100;
}


/* ------------------------------------------------------------
   CALENDAR — 4 COLUMNS × 3 ROWS
   ------------------------------------------------------------ */

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}


/* ------------------------------------------------------------
   DON'T LET DECORATION BLOCK CLICKS
   ------------------------------------------------------------ */

.paper-texture,
.alpana,
.corner-flower,
.welcome-side-pattern,
.gate-alpana {
    pointer-events: none;
}


/* ------------------------------------------------------------
   MOBILE
   ------------------------------------------------------------ */

@media (max-width: 900px) {

    .calendar-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


@media (max-width: 600px) {

    .calendar-grid {
        grid-template-columns: 1fr;
    }

}
/* =========================================================
   HOME — hero
   ========================================================= */
.hero{
    max-width:900px;
    margin:0 auto;
    padding:70px 24px 40px;
    text-align:center;
}
.dot-row{
    display:flex;
    -items:center;
    justify-content:center;
    gap:14px;
    color:var(--maroon);
    margin-bottom:22px;
    font-size:1.1rem;
}
.dot-row .dash{
    color:var(--red);
    -spacing:2px;
}
.hero-hindi{
    font-family:var(--hindi);
    color:var(--green);
    font-size:1.15rem;
    margin:0;
}
.hero-bn{
    font-family:var(--bn);
    color:var(--green);
    font-size:1.15rem;
    margin:0;
}
.hero-tag{
    font-family:var(--script);
    color:var(--red);
    font-size:1.3rem;
    font-weight:500 ;
    margin:6px 0 10px;
}
.hero-title{
  font-family:var(--display);
  font-weight:900;
  font-style:italic;
  font-size:clamp(2.6rem, 8vw, 5.2rem);
  line-height:1.02;
  margin:6px 0 22px;
  color:var(--maroon);
  text-shadow:2px 2px 0 var(--pink), 4px 4px 0 rgba(201,154,59,0.35);
}
.hero-divider{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;color:var(--maroon);
    margin:18px 0;
}
.hero-divider .line{
    width:70px;
    height:1px;
    background:repeating-linear-gradient(90deg, var(--red) 0 6px, transparent 6px 10px);
}
.hero-note{
    color:#6b5c48;
    font-family:var(--script);
    font-size:1.35rem;
    max-width:480px;
    margin:0 auto;
}

/* ---------- nav cards (Best Frame / Storyline / Times) ---------- */
.navcards{
    max-width:1100px;
    margin:30px auto 80px;
    padding:0 24px;
}
.navcards-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    border-top:1.5px solid var(--red);
    border-bottom:1.5px solid var(--red);
}
.navcard{
  padding:30px 26px 34px;
  position:relative;
  border-right:1px solid rgba(122,31,45,0.25);
  transition:background .2s ease;
}
.navcard:last-child{
    border-right:none;
}
.navcard.mid{
    background:var(--cream-light);
}
.nc-num{
    font-family:var(--bn);
    color:var(--maroon);
    font-size:1rem;
    margin-bottom:14px;
}
.nc-icon{
    font-size:1.5rem;
    margin-bottom:14px;
    color:var(--maroon);
}
.nc-title{
    font-family:var(--display);
    letter-spacing:2px;
    font-size:1.5rem;
    font-weight:700;
    color:var(--maroon-dark);
    margin:0;
    line-height: 1.20;
}
.navcard.mid .nc-title{
    color:var(--green-dark);
}
.navcard:last-child .nc-title{
    color:#1f3a5f;
}
.nc-bn{
    font-family:var(--bn);
    color:var(--green);
    margin:4px 0 14px;
    font-size:1rem;
}
.nc-hindi{
    font-family:var(--hindi);
    color:var(--green);
    margin:4px 0 14px;
    font-size:1rem;
}
.nc-desc{
    font-family:var(--yuyu);
    font-size:1.5rem;
    color:#6b5c48;
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:8px;
}
.nc-desc .arrow{
    font-size:1.3rem;
    color:var(--maroon);
    flex-shrink:0;
}
.navcards-icons{
    display:flex;
    justify-content:center;
    gap:22px;margin:26px 0 10px;
    color:var(--red);
    font-size:1rem;
    opacity:.8;
}

/* ---------- welcome note ---------- */
.welcome-wrap{
    max-width:1100px;
    margin:15px auto 30px;
    padding:0 24px;
}
.wn-nav{
    display:flex;
    justify-content:center;
    gap:18px;
    font-family:var(--bn);
    color:var(--maroon);
    font-size:1.05rem;
    margin-bottom:14px;
}
.wn-nav .sep{
    color:var(--gold);
}
.wn-rule{
    border:none;
    border-top:1px solid rgba(122,31,45,0.25);
    margin-bottom:0;
}
.wn-card{
  position:relative;background:var(--cream-light);
  border-left:14px solid transparent;
  border-image:repeating-linear-gradient(180deg, var(--maroon) 0 10px, var(--green) 10px 20px, var(--gold) 20px 30px) 14;
  padding:46px 48px;display:grid;
  grid-template-columns:1.5fr 1fr;gap:20px;
  overflow:hidden;
  box-shadow:0 18px 40px -20px rgba(60,30,10,0.35);
  border-radius: 20px ;
}
.wn-card::before{
  content:"";position:absolute;
  top:0;
  left:0;
  width:0;
  height:0;
  border-style:solid;
  border-width:0 34px 34px 0;
  border-color:transparent var(--cream) transparent transparent;
  filter:drop-shadow(-2px 2px 2px rgba(0,0,0,0.15));
  border-radius: 25px;
}
.wn-eyebrow{
    font-family:var(--bn);
    color:var(--red);
    margin-bottom:8px;
}
.wn-h2{
    font-family:var(--display);
    font-weight:900;
    font-size:2.4rem;
    color:var(--maroon-dark);
    margin:0 0 18px;
}
.wn-p{
    font-size:1.15rem;
    line-height:1.7;
    color:#3a2a1a;
    margin:0 0 16px;
    max-width:540px;
}
.wn-sig{
    font-family:var(--yuyu);
    color:var(--green);
    font-size:1.3rem;
    margin-top:10px;
}
.wn-dots{
  background-image:radial-gradient(rgba(122,31,45,0.25) 1.5px, transparent 1.5px);
  background-size:20px 20px;
  border-radius:8px;
}




/* ============================================================
   HYBRID BUILD — CUSTOMIZABLE PAGE BACKGROUND
   The password lock above is intentionally NOT changed.
   ============================================================ */
#site{
  --cream:#f7ecd8;
  --cream-light:#fbf3e2;
  --cream-deep:#efdfc0;
  --maroon:#7c1f33;
  --maroon-dark:#5a1524;
  --green:#2f5233;
  --green-dark:#20391f;
  --gold:#c99a3b;
  --pink:#e8a4ad;
  --red:#c0392b;
  --ink:#3a2a1a;


  --display:'Playfair Display',serif;
  --body:'EB Garamond',serif;
  --script:'Xanh Mono',cursive;
  --rock:'Rock Salt';
  --yuyu:'Yuyu';
  --bn:'Tiro Bangla',serif;
  --ui:'Poppins',sans-serif;
  --quick:'Quicksand';
  --bangla:'Noto Serif Bengali';
  --hindi:'Tiro Devanagari Hindi';
  --arya:'Arya';
  --rozha:'Rozha One';
  --tillana:'Tillana';
  --pirata:'Pirata One';
}
#site::before{content:"";position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.34;background:radial-gradient(circle at 8% 12%,rgba(193,56,67,.10) 0 2px,transparent 3px),radial-gradient(circle at 92% 88%,rgba(61,91,67,.10) 0 2px,transparent 3px),repeating-linear-gradient(135deg,rgba(114,28,43,.035) 0 2px,transparent 2px 18px);}
#site>.home-page,#site>#modalRoot{position:relative;z-index:2;}
#site>.full-page{position:fixed;z-index:100;}
#site>.paper-texture,#site>.alpana,#site>.corner-flower,#site>.custom-bengali-pattern{z-index:1;}
.custom-bengali-pattern{position:fixed!important;inset:auto 0 2%;font-family:'Pirata One',serif;color:#9d1d2d;opacity:.055;font-size:clamp(28px,5vw,80px);white-space:nowrap;overflow:hidden;transform:rotate(-3deg);pointer-events:none;}
.background-disabled::before,.background-disabled .paper-texture,.background-disabled .alpana,.background-disabled .corner-flower,.background-disabled .custom-bengali-pattern{display:none!important;}

/* V2 Best Frame without photo zoom. */
.collage-piece:hover img{transform:none!important;}

/* V2 navigation behavior with V1 homepage visual design. */
.navcard{font:inherit;color:inherit;text-align:left;background:transparent;cursor:pointer;}

/* V1 Storyline design + modal animation. */
#storylinePage .story-wrap{max-width:1400px;margin:0 auto;padding:10px 32px 100px;}
#storylinePage .story-head{text-align:center;margin-bottom:40px;}
#storylinePage .story-head h1{
    font-family: var(--irish);
    font-size:
        clamp(55px, 7vw, 100px);

    color: var(--maroon);

    margin:
        5px
        0
        10px;

    text-shadow:
        3px 3px 0 var(--terracotta);
}
#storylinePage .story-head p{
    font-family:var(--script);
    color:#6b5c48;
    font-size:1.2rem;
}
#storylinePage .story-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
    gap:18px;
    perspective:1400px;
}
#storylinePage .story-card{
    aspect-ratio:3/4;
    border-radius:10px;
    position:relative;
    cursor:pointer;
    transform-style:preserve-3d;transition:transform .5s;
}
#storylinePage .story-card:hover{
    transform:rotateY(8deg) translateY(-4px);
}
#storylinePage .sc-face{
    position:absolute;
    inset:0;
    border-radius:10px;
    overflow:hidden;
    background:linear-gradient(180deg,#cbbfa8 0%,#6b5a45 55%,#2c241a 100%);
    background-size:contain;
    background-position:center;
    background-repeat:no-repeat;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:14px;color:#fff;
    box-shadow:0 10px 22px -12px rgba(0,0,0,.5);
}
#storylinePage .sc-tag{
    background:var(--cream-light);
    color:var(--maroon-dark);
    font-family:var(--bn);
    font-size:.72rem;
    padding:4px 8px;
    border-radius:3px;
    align-self:flex-start;
    box-shadow:1px 2px 3px rgba(0,0,0,.25);
}
#storylinePage .sc-eyebrow{
    font-family:var(--script);
    font-size:1rem;
    opacity:.85;
}
#storylinePage .sc-num{font-size:.75rem;opacity:.75;}
#storylinePage .sc-title{font-family:var(--display);font-weight:700;font-size:1.15rem;line-height:1.2;margin:2px 0;}
#storylinePage .sc-hint{font-family:var(--script);font-size:.85rem;opacity:.85;}
#storylinePage .story-modal-overlay{position:fixed;inset:0;background:rgba(30,18,10,.55);z-index:200;display:flex;align-items:center;justify-content:center;padding:20px;}
#storylinePage .story-modal{width:100%;max-width:980px;max-height:88vh;overflow:auto;background:var(--cream-light);border-radius:14px;display:grid;grid-template-columns:1fr 1fr;position:relative;box-shadow:0 30px 60px -20px rgba(0,0,0,.5);animation:flipOpen .45s cubic-bezier(.2,.9,.3,1);transform-origin:left center;}
#storylinePage .sm-close{position:absolute;top:16px;right:16px;width:38px;height:38px;border-radius:50%;border:1.5px solid var(--maroon);background:var(--cream-light);color:var(--maroon);z-index:2;}
#storylinePage .sm-left{padding:44px 34px;}
#storylinePage .sm-left .tag{font-family:var(--bn);color:var(--red);}
#storylinePage .sm-left h2{font-family:var(--display);font-weight:800;color:var(--maroon-dark);font-size:2.1rem;margin:8px 0 6px;}
#storylinePage .sm-left .date{font-family:var(--script);color:var(--green);font-size:1.15rem;margin-bottom:16px;}
#storylinePage .sm-left p{
    line-height:1.5;
    font-size:1.05rem;
    font-family: var(--tillana);
    font-weight: 500;
}
#storylinePage .sm-right{
    background:var(--cream-deep);
    padding:24px;
    display:grid;
    grid-template-columns:1fr 1fr;gap:10px;
    align-content:start;
}
#storylinePage .sm-photo{
    aspect-ratio:1/1;
    border-radius:8px;
    background:linear-gradient(135deg,#d8c6a1,#8a6f4d);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-size:1.4rem;
    overflow:hidden;
}
#storylinePage .sm-photo img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

#storylinePage .sm-photo video{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    background:#2b211b;
}

#storylinePage .sm-video{
    position:relative;
}

#storylinePage .sm-video .video-badge{
    top:8px;
    right:8px;
}
@keyframes flipOpen{0%{transform:rotateY(-90deg) scale(.9);opacity:0;}100%{transform:rotateY(0deg) scale(1);opacity:1;}}
@media(max-width:700px){#storylinePage .story-modal{grid-template-columns:1fr;}#storylinePage .story-wrap{padding:55px 18px 80px;}}
@media(max-width:760px){.navcards-grid{grid-template-columns:1fr;}.navcard{border-right:0;border-bottom:1px solid rgba(122,31,45,.25);}.navcard:last-child{border-bottom:0;}.wn-card{grid-template-columns:1fr;padding:34px 28px;}.wn-dots{min-height:100px;}}

/* ============================================================
   FIX — decorative Bengali background layer (used by CONFIG.bengaliBackground)
   ============================================================ */
.doodle-layer{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}
.doodle-layer span{
  position:absolute;
  display:inline-block;
  user-select:none;
  will-change:transform;
}

/* ============================================================
   FIX — calendar month/day cells (classes actually produced by buildCalendar())
   ============================================================ */
.month-card{
  background:rgba(255,248,231,.72);
  border-top:5px solid var(--wine);
  border-radius:18px 3px 18px 3px;
  padding:20px;
  box-shadow:0 10px 25px rgba(80,40,20,.1);
  position:relative;
  overflow:hidden;
}
.month-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}
.month-head h3{
  margin:0;
  font-size:22px;
  color:var(--wine);
  font-family:var(--bengali);
}
.dow-row,.days-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:4px;
}
.dow-row{
  font-family:var(--xanh);
  color:var(--terracotta);
  font-size:12px;
  margin-bottom:6px;
  text-align:center;
}
.day-cell{
  aspect-ratio:1;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--xanh);
  font-weight: 10;
  font-size:13px;
  border-radius:4px;
  transition:transform .2s;
}
.day-cell:hover{
  transform:scale(1.18);
  z-index:2;
}
.day-cell.pill{
  font-weight:100;
  box-shadow:0 2px 6px rgba(0,0,0,.2);
  animation:pillIn .08s ease both;
}
@keyframes pillIn{
  from{transform:scale(0);opacity:0;}
  to{transform:scale(1);opacity:1;}
}
/* ============================================================
   CUSTOM STICKERS — add images/decorations anywhere on a page
   ------------------------------------------------------------
   Positioning is controlled entirely from script.js (the
   STICKERS list). This just makes sure each page can anchor
   them correctly, and stickers don't block clicks or dragging.
   ============================================================ */
#homePage{position:relative;}
.custom-sticker{
  pointer-events:none;
  user-select:none;
  -webkit-user-drag:none;
  max-width:none;
}

/* ============================================================
   VIDEO MEMORY SUPPORT
   ============================================================ */

.collage-piece.video-piece video:focus,
#storylinePage .sm-video video:focus {
    outline: none;
}

@media (max-width: 600px) {
    .collage-piece video {
        object-fit: cover;
    }
}


/* Storyline cards: allow a video to be used as the cover media. */
#storylinePage .sc-face {
    position: absolute;
}
#storylinePage .sc-cover-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
#storylinePage .sc-face-overlay,
#storylinePage .sc-face-content {
    position: relative;
    z-index: 1;
}
