:root {
    --paper-bg: #f7f5f0; 
    --ink-black: #111111;
    --ink-gray: #4a4a4a;
    --accent-gold: #c5a059;
    --accent-dark: #2c3e50;
}

body {
    font-family: 'Lora', serif;
    color: var(--ink-black);
    background-color: var(--paper-bg);
    overflow-x: hidden;
    font-size: 1.0625rem; /* Slightly smaller base font for mobile */
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
    body {
        font-size: 1.1875rem; 
        line-height: 1.85;
    }
}

h1, h2, h3, h4, .display-text {
    font-family: 'Playfair Display', serif;
}

.sans-text {
    font-family: 'Inter', sans-serif;
}

/* Minimalist Progress Bar */
#progress-container {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 3px;
    background: transparent; z-index: 9999;
}
#progress-bar {
    height: 100%; width: 0%;
    background: var(--accent-gold);
    transition: width 0.1s ease;
}

/* Editorial Hero Section */
.hero-wrapper {
    background-color: var(--ink-black);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://cdn.vietnambiz.vn/stores/news_dataimages/trangth/062017/16/10/in_article/0940_viet-nam-phan-doi-lenh-kiem-duyet-lien-quan-vu-in-tien-polymer-tin-tuc-1464878841127-crop-1464878850305.jpg');
    background-size: cover;
    background-position: center 30%;
    background-attachment: scroll; /* Disabled fixed attachment on mobile for better performance */
    opacity: 0.6;
    transform: scale(1.05);
    transition: transform 10s ease-out;
}

@media (min-width: 768px) {
    .hero-bg { background-attachment: fixed; }
}

.hero-wrapper:hover .hero-bg {
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.8) 100%),
                linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.95) 100%);
}

/* Drop Cap (Responsive) */
.drop-cap::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 900;
    float: left;
    line-height: 0.75;
    padding-right: 0.5rem;
    padding-top: 0.25rem;
    color: var(--accent-gold);
}

@media (min-width: 768px) {
    .drop-cap::first-letter {
        font-size: 6rem;
        padding-right: 0.75rem;
        padding-top: 0.5rem;
    }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@media (min-width: 768px) {
    .reveal { transform: translateY(40px); transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
}
.reveal.active { opacity: 1; transform: translateY(0); }

/* Premium Image Treatment (Museum Frame) - Responsive */
.museum-frame {
    background: #ffffff;
    padding: 1rem 1rem 2.5rem 1rem;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
    margin: 2rem auto;
    max-width: 100%;
    border: 1px solid #eaeaea;
    position: relative;
    opacity: 0;
    transform: scale(0.98);
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 768px) {
    .museum-frame {
        padding: 1.5rem 1.5rem 3rem 1.5rem;
        box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
        transform: scale(0.97);
    }
}

.museum-frame.active {
    opacity: 1;
    transform: scale(1);
}

.museum-frame img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(15%) contrast(1.1) brightness(0.95);
    transition: filter 0.5s ease;
}

.museum-frame:hover img {
    filter: sepia(0%) contrast(1) brightness(1); 
}

.museum-caption-area {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0.75rem 1rem;
    display: flex;
    justify-content: center; 
    align-items: center;
    border-top: 1px solid #f0f0f0;
}

@media (min-width: 768px) {
    .museum-caption-area { padding: 1rem 1.5rem; }
}

.caption-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
@media (min-width: 768px) {
    .caption-text { font-size: 0.75rem; letter-spacing: 0.2em; }
}

/* Editorial Pull Quote (Responsive) */
.editorial-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--ink-black);
    text-align: center;
    position: relative;
    padding: 2rem 0;
    margin: 3rem 0;
    font-style: italic;
}
.editorial-quote::before {
    content: '“';
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--accent-gold);
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.15;
    line-height: 1;
}
@media (min-width: 768px) {
    .editorial-quote { font-size: 2rem; padding: 3rem 0; margin: 5rem 0; }
    .editorial-quote::before { font-size: 8rem; top: -2rem; }
}
.editorial-quote::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 1.5rem auto 0;
}
@media (min-width: 768px) {
    .editorial-quote::after { width: 50px; margin: 2rem auto 0; }
}

/* Custom Breakout Layouts */
.w-screen-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.parallax-bg {
    background-attachment: scroll; /* Mobile friendly */
    background-position: center;
    background-size: cover;
}
@media (min-width: 768px) {
    .parallax-bg { background-attachment: fixed; }
}

/* High-End Timeline (Mobile Horizontal Scrollable) */
.timeline-section {
    background-color: #111;
    color: #f7f5f0;
    padding: 4rem 0;
    margin: 4rem 0;
    position: relative;
}
@media (min-width: 768px) {
    .timeline-section { padding: 6rem 0; margin: 6rem 0; }
}

.timeline-container {
    position: relative;
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 1rem 0;
}
@media (min-width: 768px) {
    .timeline-container { margin: 3rem auto 0; padding: 2rem 0; }
}

/* Scroll wrapper for mobile */
.timeline-scroll-wrapper {
    position: relative;
    width: 100%;
    overflow-x: auto; /* Enable touch scrolling */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 1rem;
    /* Hide scrollbar */
    -ms-overflow-style: none;  
    scrollbar-width: none;  
}
.timeline-scroll-wrapper::-webkit-scrollbar { display: none; }

.timeline-track-bg {
    position: absolute;
    top: 35px;
    left: 0;
    width: 500px; /* Min width to force scroll on small screens */
    height: 1px;
    background-color: #333;
    z-index: 1;
}
@media (min-width: 600px) {
    .timeline-track-bg { width: 100%; top: 50px; }
}

.timeline-progress-fill {
    position: absolute;
    top: 35px;
    left: 0;
    height: 1px;
    background-color: var(--accent-gold);
    z-index: 2;
    transition: width 0.7s cubic-bezier(0.8, 0, 0.2, 1);
    width: 0%;
}
@media (min-width: 600px) {
    .timeline-progress-fill { top: 50px; }
}

.timeline-points-wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    width: 500px; /* Match min width */
}
@media (min-width: 600px) {
    .timeline-points-wrapper { width: 100%; }
}

.tl-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    width: 60px;
}
@media (min-width: 768px) {
    .tl-point { width: 80px; }
}

.tl-year {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    color: #666;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}
@media (min-width: 768px) {
    .tl-year { font-size: 1.25rem; margin-bottom: 20px; }
}

.tl-dot {
    width: 9px;
    height: 9px;
    background-color: #111;
    border: 2px solid #666;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.8, 0, 0.2, 1);
    position: relative;
}
@media (min-width: 768px) {
    .tl-dot { width: 11px; height: 11px; border: 2px solid #555; transition: all 0.4s; }
}

.tl-point:hover .tl-year { color: #fff; }
.tl-point:hover .tl-dot { border-color: #fff; }

.tl-point.active .tl-year { 
    color: var(--accent-gold); 
    transform: scale(1.15); 
    margin-bottom: 16px;
}
@media (min-width: 768px) {
    .tl-point.active .tl-year { transform: scale(1.2); margin-bottom: 25px; }
}

.tl-point.active .tl-dot { 
    border-color: var(--accent-gold); 
    background-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(197, 160, 89, 0.4);
    transform: scale(1.4);
}
@media (min-width: 768px) {
    .tl-point.active .tl-dot { box-shadow: 0 0 15px rgba(197, 160, 89, 0.5); transform: scale(1.5); }
}

.tl-content-display {
    margin-top: 2rem;
    min-height: 140px;
    position: relative;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
@media (min-width: 768px) {
    .tl-content-display { margin-top: 4rem; min-height: 160px; }
}

.tl-content-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}
@media (min-width: 768px) {
    .tl-content-title { font-size: 2rem; margin-bottom: 1.5rem; transition: opacity 0.4s ease; }
}

.tl-content-desc {
    font-family: 'Lora', serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #ccc;
    transition: opacity 0.3s ease;
}
@media (min-width: 768px) {
    .tl-content-desc { font-size: 1.15rem; line-height: 1.8; transition: opacity 0.4s ease; }
}

p { margin-bottom: 1.5rem; text-align: justify; }
@media (min-width: 768px) {
    p { margin-bottom: 1.75rem; }
}

.content-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 3rem 0;
    opacity: 0.5;
}
@media (min-width: 768px) {
    .content-divider { margin: 4rem 0; }
}
.content-divider span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--ink-gray);
    margin: 0 8px;
}
@media (min-width: 768px) {
    .content-divider span { width: 6px; height: 6px; margin: 0 10px; }
}