:root{
    --bg:#f3efe6;
    --bg-soft:#f8f4ec;
    --paper:#fbf8f2;
    --paper-2:#f5efe4;
    --ink:#1f2937;
    --muted:#6b7280;
    --line:#d8cfbe;
    --gold:#a98545;
    --gold-soft:#c9b48a;
    --gold-deep:#8f6d37;
    --blue:#1E40AF;
    --blue-soft:#dfe9ff;
    --shadow:0 22px 50px rgba(0,0,0,.08);
    --shadow-soft:0 12px 30px rgba(0,0,0,.06);
    --day-shadow:0 26px 70px rgba(65,49,22,.08);
    --day-shadow-hover:0 36px 90px rgba(65,49,22,.12);
    --hero-shadow:0 28px 70px rgba(65,49,22,.08);
    --radius:22px;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Arial,sans-serif;
    background:
        radial-gradient(circle at top, rgba(255,255,255,.72), transparent 34%),
        linear-gradient(180deg, #f8f4eb 0%, #f2ece1 100%);
    color:var(--ink);
}

a{
    color:var(--blue);
    text-decoration:none;
}

a:hover{
    color:#315fe8;
}

.header-wrapper{
    position:sticky;
    top:0;
    z-index:40;
    transition:transform .3s ease;
}

.header{
    background:rgba(255,255,255,.88);
    backdrop-filter:blur(14px);
    padding:12px 24px;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
    display:flex;
    align-items:center;
    gap:16px;
    flex-wrap:wrap;
    z-index:10;
}

.header a{
    font-weight:bold;
    text-decoration:none;
    color:#1F2937;
}

.header a:hover{
    color:#3B82F6;
}

#userPanelBtn{
    margin-left:auto;
    padding:6px 12px;
    background:#3B82F6;
    color:#fff;
    border-radius:4px;
}

.search-box input{
    padding:7px 11px;
    border-radius:8px;
    border:1px solid #d7dbe3;
    font-size:13px;
    background:#fff;
}

.jump-open-btn{
    padding:7px 12px;
    border-radius:8px;
    border:1px solid #d7dbe3;
    background:#3B82F6;
    color:#fff;
    cursor:pointer;
}

/* HERO */

.hero{
    position:relative;
    max-width:1280px;
    margin:0 auto;
    padding:48px 24px 20px;
}

.hero-inner{
    position:relative;
    text-align:center;
    padding:54px 40px 40px;
    border-radius:34px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.82) 0%, rgba(250,245,236,.92) 100%);
    border:1px solid rgba(169,133,69,.18);
    box-shadow:var(--hero-shadow);
    overflow:hidden;
}

.hero-inner::before{
    content:'';
    position:absolute;
    left:40px;
    right:40px;
    top:0;
    height:1px;
    background:linear-gradient(90deg, transparent, rgba(169,133,69,.42), transparent);
}

.hero-inner::after{
    content:'';
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        radial-gradient(circle at top center, rgba(255,255,255,.38), transparent 34%),
        radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 28%);
}

.hero-kicker{
    position:relative;
    z-index:1;
    display:inline-block;
    margin-bottom:18px;
    font-size:12px;
    letter-spacing:.34em;
    text-transform:uppercase;
    color:#8b7350;
}

.hero h1{
    position:relative;
    z-index:1;
    margin:0;
    font-size:clamp(46px,7vw,90px);
    line-height:.92;
    font-weight:300;
    letter-spacing:-.035em;
    color:#1b2430;
}

.hero-sub{
    position:relative;
    z-index:1;
    max-width:880px;
    margin:24px auto 0;
    font-size:20px;
    line-height:1.95;
    color:#5f6772;
}

.hero-actions{
    position:relative;
    z-index:1;
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
    margin-top:30px;
}

.hero-chip{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:12px 17px;
    border-radius:999px;
    background:rgba(255,255,255,.74);
    border:1px solid rgba(169,133,69,.18);
    color:#5a4a31;
    font-size:13px;
    letter-spacing:.08em;
    text-transform:uppercase;
    box-shadow:0 8px 24px rgba(0,0,0,.04);
}

.about-trigger{
    font-size:13px;
    color:#1E40AF;
    cursor:pointer;
    text-decoration:underline;
}

.about-trigger:hover{
    opacity:.8;
}

/* HERO EXHIBIT STRIP */

.hero-exhibit-strip{
    max-width:1280px;
    margin:0 auto;
    padding:0 24px 20px;
}

.hero-exhibit-grid{
    display:grid;
    grid-template-columns:1.2fr .9fr .9fr;
    gap:18px;
    align-items:stretch;
}

.hero-exhibit-card{
    position:relative;
    padding:24px 24px 22px;
    border-radius:26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.82), rgba(247,241,231,.92));
    border:1px solid rgba(169,133,69,.15);
    box-shadow:var(--shadow-soft);
    overflow:hidden;
}

.hero-exhibit-card::before{
    content:'';
    position:absolute;
    left:24px;
    right:24px;
    top:0;
    height:1px;
    background:linear-gradient(90deg, transparent, rgba(169,133,69,.28), transparent);
}

.hero-exhibit-card-main{
    background:
        linear-gradient(180deg, rgba(255,255,255,.9), rgba(248,241,229,.98));
    box-shadow:0 18px 40px rgba(65,49,22,.08);
}

.hero-exhibit-label{
    position:relative;
    z-index:1;
    font-size:11px;
    letter-spacing:.22em;
    text-transform:uppercase;
    color:#8b7350;
    margin-bottom:12px;
}

.hero-exhibit-title{
    position:relative;
    z-index:1;
    margin:0 0 12px 0;
    font-size:28px;
    line-height:1.12;
    color:#1f2937;
    letter-spacing:-.02em;
}

.hero-exhibit-text{
    position:relative;
    z-index:1;
    margin:0;
    font-size:15px;
    line-height:1.8;
    color:#5b6571;
}

/* TIMELINE SHELL */

.timeline-shell{
    max-width:1420px;
    margin:0 auto;
    padding:28px 24px 100px;
}

.timeline{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:72px;
}

.timeline:before{
    content:'';
    position:absolute;
    top:8px;
    bottom:8px;
    left:50%;
    transform:translateX(-50%);
    width:2px;
    background:
        linear-gradient(
            180deg,
            rgba(169,133,69,.08) 0%,
            rgba(169,133,69,.38) 12%,
            rgba(169,133,69,.5) 50%,
            rgba(169,133,69,.38) 88%,
            rgba(169,133,69,.08) 100%
        );
    z-index:0;
}

.timeline:after{
    content:'';
    position:absolute;
    top:0;
    bottom:0;
    left:50%;
    transform:translateX(-50%);
    width:20px;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,.18) 15%,
            rgba(255,255,255,.12) 50%,
            rgba(255,255,255,.18) 85%,
            rgba(255,255,255,0) 100%
        );
    filter:blur(12px);
    pointer-events:none;
    z-index:0;
}

/* DAY BLOCK */

.day{
    position:relative;
    width:100%;
    opacity:0;
    transform:translateY(34px) scale(.992);
    transition:
        opacity .75s ease,
        transform .75s cubic-bezier(.2,.8,.2,1);
    z-index:1;
}

.day.visible{
    opacity:1;
    transform:translateY(0) scale(1);
}

.day::before{
    content:'';
    position:absolute;
    left:50%;
    top:52px;
    bottom:26px;
    width:1px;
    transform:translateX(-50%);
    background:
        linear-gradient(
            180deg,
            rgba(169,133,69,.18) 0%,
            rgba(169,133,69,.35) 20%,
            rgba(169,133,69,.18) 100%
        );
    z-index:0;
    pointer-events:none;
}

.day-marker{
    position:relative;
    z-index:4;
    width:max-content;
    margin:0 auto 28px;
    padding:16px 26px 15px;
    border-radius:999px;
    background:
        linear-gradient(180deg, #fffdfa 0%, #f8efdf 100%);
    border:1px solid rgba(169,133,69,.32);
    box-shadow:
        0 18px 40px rgba(65,49,22,.10),
        inset 0 1px 0 rgba(255,255,255,.88),
        inset 0 -1px 0 rgba(169,133,69,.10);
    text-align:center;
}

.day-marker::before{
    content:'';
    position:absolute;
    left:50%;
    top:100%;
    width:2px;
    height:26px;
    transform:translateX(-50%);
    background:linear-gradient(180deg, rgba(169,133,69,.65), rgba(169,133,69,0));
}

.day-marker::after{
    content:'';
    position:absolute;
    left:50%;
    top:calc(100% + 8px);
    width:10px;
    height:10px;
    transform:translateX(-50%);
    border-radius:50%;
    background:linear-gradient(180deg, #c8a96d 0%, #9d7a3c 100%);
    box-shadow:
        0 0 0 6px rgba(201,180,138,.16),
        0 6px 14px rgba(65,49,22,.18);
}

.day-marker-kicker{
    font-size:10px;
    letter-spacing:.30em;
    text-transform:uppercase;
    color:#8b7350;
    margin-bottom:6px;
}

.day-marker-date{
    font-size:24px;
    font-weight:700;
    color:#243042;
    letter-spacing:.01em;
}

/* DAY STAGE */

.day-stage{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0, 1.55fr) minmax(320px, .9fr);
    gap:26px;
    align-items:stretch;
    max-width:1260px;
    margin:0 auto;
}

.day-main{
    position:relative;
    background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(249,245,236,.98));
    border:1px solid rgba(169,133,69,.16);
    border-radius:34px;
    box-shadow:var(--day-shadow);
    overflow:hidden;
    min-height:440px;
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;
}

.day:hover .day-main{
    transform:translateY(-3px);
    box-shadow:var(--day-shadow-hover);
    border-color:rgba(169,133,69,.24);
}

.day-main::before{
    content:'';
    position:absolute;
    left:34px;
    right:34px;
    top:0;
    height:1px;
    background:linear-gradient(90deg, transparent, rgba(169,133,69,.48), transparent);
}

.day-main::after{
    content:'';
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        radial-gradient(circle at top center, rgba(255,255,255,.22), transparent 36%);
    opacity:.8;
}

.day-main-grid{
    display:grid;
    grid-template-columns:minmax(0, 1.14fr) minmax(270px, .88fr);
    min-height:440px;
}

.feature-media{
    position:relative;
    min-height:440px;
    background:#ddd;
    overflow:hidden;
}

.feature-media::after{
    content:'';
    position:absolute;
    inset:0;
    pointer-events:none;
    background:
        linear-gradient(180deg, rgba(255,255,255,.08) 0%, rgba(255,255,255,0) 24%),
        radial-gradient(circle at top right, rgba(255,255,255,.14), transparent 28%);
}

.feature-media img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
    transition:transform 10s ease;
}

.day-main:hover .feature-media img{
    transform:scale(1.045);
}

.feature-overlay{
    position:absolute;
    inset:auto 0 0 0;
    padding:28px 26px 22px;
    background:linear-gradient(to top, rgba(14,18,25,.84), rgba(14,18,25,.26), transparent);
    color:#fff;
}

.feature-category{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:7px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.14);
    backdrop-filter:blur(8px);
    font-size:11px;
    letter-spacing:.18em;
    text-transform:uppercase;
    margin-bottom:12px;
}

.feature-title{
    margin:0;
    font-size:35px;
    line-height:1.08;
    font-weight:700;
    letter-spacing:-.02em;
}

.feature-side{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:30px 30px 26px;
    gap:24px;
    position:relative;
}

.feature-side::before{
    content:'';
    position:absolute;
    top:28px;
    bottom:28px;
    left:0;
    width:1px;
    background:linear-gradient(180deg, rgba(169,133,69,.10), rgba(169,133,69,.22), rgba(169,133,69,.10));
}

.feature-side-top{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.feature-label{
    font-size:11px;
    letter-spacing:.24em;
    text-transform:uppercase;
    color:#8b7350;
}

.feature-summary{
    margin:0;
    font-size:16px;
    line-height:1.9;
    color:#4f5a67;
}

.feature-link{
    display:inline-flex;
    align-items:center;
    gap:8px;
    width:max-content;
    margin-top:6px;
    font-weight:700;
    color:#1E40AF;
}

.feature-related{
    border-top:1px solid rgba(169,133,69,.18);
    padding-top:18px;
}

.feature-related-title{
    font-size:11px;
    letter-spacing:.22em;
    text-transform:uppercase;
    color:#8b7350;
    margin-bottom:12px;
}

.feature-related-list{
    display:grid;
    gap:10px;
}

.feature-related-item{
    display:flex;
    align-items:flex-start;
    gap:10px;
    font-size:14px;
    line-height:1.55;
    color:#44505d;
}

.feature-related-dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:#b28d52;
    margin-top:7px;
    flex:none;
}

/* SUPPORT SIDE */

.day-side{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.support-card{
    background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,243,234,.96));
    border:1px solid rgba(169,133,69,.15);
    border-radius:26px;
    box-shadow:var(--shadow-soft);
    overflow:hidden;
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.support-card:hover{
    transform:translateY(-4px);
    box-shadow:0 22px 46px rgba(0,0,0,.10);
    border-color:rgba(169,133,69,.24);
}

.support-card-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:16px 18px 14px;
    border-bottom:1px solid rgba(169,133,69,.12);
    background:linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
}

.support-card-label{
    font-size:11px;
    letter-spacing:.18em;
    text-transform:uppercase;
    color:#8b7350;
}

.support-card-link{
    font-size:12px;
    font-weight:700;
    color:#1E40AF;
}

.support-card-body{
    display:grid;
    grid-template-columns:110px 1fr;
    gap:14px;
    padding:16px 18px 18px;
    align-items:start;
}

.support-thumb{
    width:110px;
    height:88px;
    object-fit:cover;
    border-radius:14px;
    display:block;
}

.support-title{
    margin:0 0 8px 0;
    font-size:17px;
    line-height:1.38;
    color:#1f2937;
}

.support-text{
    margin:0;
    font-size:14px;
    line-height:1.68;
    color:#5b6571;
}

/* ARTIFACTS */

.day-artifacts{
    position:relative;
    margin:22px auto 0;
    max-width:1260px;
    background:rgba(255,255,255,.70);
    border:1px solid rgba(169,133,69,.14);
    border-radius:24px;
    padding:20px;
    box-shadow:var(--shadow-soft);
    backdrop-filter:blur(4px);
}

.day-artifacts::before{
    content:'';
    position:absolute;
    left:26px;
    right:26px;
    top:0;
    height:1px;
    background:linear-gradient(90deg, transparent, rgba(169,133,69,.30), transparent);
}

.day-artifacts-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:14px;
}

.day-artifacts-title{
    font-size:11px;
    letter-spacing:.22em;
    text-transform:uppercase;
    color:#8b7350;
}

.day-artifacts-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:14px;
}

.artifact{
    display:block;
    background:rgba(255,255,255,.76);
    border-radius:18px;
    padding:10px;
    border:1px solid rgba(169,133,69,.12);
    transition:
        transform .24s ease,
        box-shadow .24s ease,
        border-color .24s ease;
}

.artifact:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 28px rgba(0,0,0,.08);
    border-color:rgba(169,133,69,.22);
}

.artifact img{
    width:100%;
    aspect-ratio:4 / 3;
    object-fit:cover;
    border-radius:12px;
    display:block;
    margin-bottom:10px;
}

.artifact-title{
    font-size:13px;
    line-height:1.48;
    color:#44505d;
}

.empty-note{
    text-align:center;
    color:#6b7280;
    padding:30px 0 10px;
}

/* INSTALL */

#installBtn{
    display:none;
    position:fixed;
    bottom:20px;
    right:20px;
    background:#3B82F6;
    color:#fff;
    padding:12px 18px;
    border-radius:8px;
    cursor:pointer;
    z-index:50;
    box-shadow:0 4px 12px rgba(0,0,0,.2);
}

/* MODALS */

.about-modal{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,0.55);
    z-index:1000;
}

.about-modal.active{
    display:flex;
}

.about-box{
    background:#fff;
    padding:28px 32px;
    border-radius:14px;
    max-width:420px;
    text-align:center;
    box-shadow:0 20px 40px rgba(0,0,0,.25);
    position:relative;
}

.about-close{
    position:absolute;
    top:10px;
    right:14px;
    font-size:22px;
    cursor:pointer;
    color:#555;
}

.about-main{
    font-size:18px;
    font-weight:bold;
    margin-bottom:12px;
    color:#111827;
}

.about-sub{
    font-size:14px;
    color:#374151;
}

.jump-modal{
    position:fixed;
    inset:0;
    display:none;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,0.55);
    z-index:1200;
}

.jump-modal.active{
    display:flex;
}

.jump-box{
    background:#fff;
    padding:18px;
    border-radius:14px;
    width:min(520px, 92vw);
    box-shadow:0 20px 40px rgba(0,0,0,.25);
}

.jump-title{
    font-weight:bold;
    margin-bottom:10px;
    color:#111827;
}

.jump-row{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    align-items:center;
}

.jump-row input,
.jump-row select{
    padding:8px 10px;
    border-radius:8px;
    border:1px solid #CBD5E1;
    font-size:14px;
}

.jump-actions{
    display:flex;
    gap:8px;
    justify-content:flex-end;
    margin-top:12px;
}

.jump-actions button{
    padding:8px 12px;
    border-radius:8px;
    border:1px solid #CBD5E1;
    cursor:pointer;
}

.jump-go{
    background:#3B82F6;
    color:#fff;
    border-color:#3B82F6;
}

.jump-cancel{
    background:#fff;
    color:#111827;
}

/* LOAD MORE */

.load-more-wrap{
    width:100%;
    display:flex;
    justify-content:center;
    margin:10px 0 24px 0;
}

.load-more-btn{
    display:inline-block;
    padding:12px 22px;
    border-radius:999px;
    background:#1E40AF;
    color:#fff;
    text-decoration:none;
    font-weight:bold;
    box-shadow:0 8px 22px rgba(30,64,175,0.25);
    transition:transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.load-more-btn:hover{
    background:#2563EB;
    color:#fff;
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(30,64,175,0.35);
}

/* RESPONSIVE */

@media (max-width:1100px){
    .hero-exhibit-grid{
        grid-template-columns:1fr;
    }

    .timeline-shell{
        padding-top:18px;
    }

    .timeline{
        gap:56px;
    }

    .day::before{
        display:none;
    }

    .day-stage{
        grid-template-columns:1fr;
    }

    .day-main-grid{
        grid-template-columns:1fr;
    }

    .feature-media{
        min-height:360px;
    }

    .feature-side::before{
        display:none;
    }

    .day-artifacts-grid{
        grid-template-columns:repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:768px){
    .hero{
        padding:34px 14px 16px;
    }

    .hero-inner{
        padding:34px 20px 26px;
        border-radius:24px;
    }

    .hero-sub{
        font-size:17px;
        line-height:1.75;
    }

    .hero-exhibit-strip{
        padding:0 14px 14px;
    }

    .hero-exhibit-card{
        padding:18px 16px 16px;
        border-radius:20px;
    }

    .hero-exhibit-title{
        font-size:22px;
    }

    .timeline-shell{
        padding:10px 14px 70px;
    }

    .timeline{
        gap:42px;
    }

    .timeline:before,
    .timeline:after{
        display:none;
    }

    .day{
        transform:translateY(24px);
    }

    .day::before{
        display:none;
    }

    .day-marker{
        margin-bottom:16px;
        padding:12px 18px 11px;
    }

    .day-marker::before,
    .day-marker::after{
        display:none;
    }

    .day-marker-date{
        font-size:18px;
    }

    .day-stage{
        gap:16px;
    }

    .day-main{
        min-height:auto;
        border-radius:26px;
    }

    .day-main-grid{
        min-height:auto;
    }

    .feature-media{
        min-height:250px;
    }

    .feature-overlay{
        padding:18px 18px 16px;
    }

    .feature-title{
        font-size:26px;
    }

    .feature-side{
        padding:20px 18px 18px;
    }

    .support-card-body{
        grid-template-columns:90px 1fr;
        gap:12px;
        padding:14px 16px 16px;
    }

    .support-thumb{
        width:90px;
        height:74px;
    }

    .support-title{
        font-size:15px;
    }

    .support-text{
        font-size:13px;
    }

    .day-artifacts{
        padding:14px;
        margin-top:16px;
    }

    .day-artifacts-grid{
        grid-template-columns:1fr 1fr;
        gap:10px;
    }

    .artifact{
        padding:8px;
    }

    .artifact-title{
        font-size:12px;
    }
}