/* ========== OFFICIAL HABITAT.ORG BRAND IDENTITY ========== */
:root {
    --ink: #1a202c;
    --ink-dark: #0a111f;
    --ink-muted: #4a5568;
    --bg-page: #f7fafc;
    --bg-card: #ffffff;

    /* Official Habitat Colors */
    --habitat-blue: #00afd7;
    --habitat-green: #c4d600;

    --gray-light: #edf2f7;
    --gray-border: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
    --transition-base: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    --font-serif: 'Merriweather', 'Georgia', serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-page);
}

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg-page);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    padding: 3rem 0;
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border: 2px solid var(--bg-page);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--habitat-blue);
}

::selection {
    background: var(--habitat-blue);
    color: #ffffff;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--ink-dark);
    line-height: 1.25;
    letter-spacing: -0.015em;
}

p {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--ink-muted);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.kicker {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    color: var(--habitat-blue);
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: inline-block;
}

/* ========== HERO PORTFOLIO CONTAINER ========== */
.portfolio-hero {
    background: var(--bg-card);
    border: 1px solid var(--gray-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 4rem;
    overflow: hidden;
    position: relative;
}

/* Brand Accent Top Border Line */
.portfolio-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--habitat-blue) 0%, var(--habitat-blue) 50%, var(--habitat-green) 50%, var(--habitat-green) 100%);
    z-index: 10;
}

.hero-top {
    padding: 3.5rem 3.5rem 2.5rem;
    border-bottom: 1px solid var(--gray-border);
}

.hero-top h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    font-weight: 800;
    color: var(--ink-dark);
    margin-bottom: 0.6rem;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--habitat-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
}

.hero-img-box {
    border-right: 1px solid var(--gray-border);
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.4;
    background: #eee;
}

.hero-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 60% 25%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: zoom-in;
}

.hero-img-box:hover img {
    transform: scale(1.02);
}

.hero-text-box {
    padding: 2.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fafbfc;
}

/* ========== DYNAMIC FLOATING SECTIONS NAVIGATION ========== */
.sections-nav {
    width: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink-muted);
    font-weight: 800;
    margin-bottom: 1.2rem;
    display: block;
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 0.4rem;
    transition: var(--transition-base);
}

.nav-list {
    list-style: none;
}

.nav-list li {
    margin-bottom: 0.75rem;
    transition: var(--transition-base);
}

.nav-list li:last-child {
    margin-bottom: 0;
}

.nav-item {
    display: block;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink-dark);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-left: 3px solid transparent;
    transition: var(--transition-base);
}

.nav-item:hover {
    color: var(--habitat-blue);
    border-left-color: var(--habitat-blue);
    padding-left: 1.1rem;
}

.nav-item.active {
    color: var(--habitat-blue);
    border-left-color: var(--habitat-blue);
}

/* Apply solid background only when NOT floating */
.sections-nav:not(.is-floating) .nav-item.active {
    background: var(--gray-light);
    border-radius: 0 6px 6px 0;
}

/* Sticky Top Navigation Overhaul */
.sections-nav.is-floating {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.sections-nav.is-floating .nav-list {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sections-nav.is-floating .nav-list li {
    margin-bottom: 0 !important;
    flex-shrink: 0;
}

.sections-nav.is-floating .nav-item {
    font-size: 0.9rem;
    padding: 0.4rem 0.75rem;
    border-left: none !important;
    border-bottom: 2px solid transparent;
    transition: var(--transition-base);
}

.sections-nav.is-floating .nav-item:hover {
    padding-left: 0.75rem !important;
    /* Block vertical shift override */
    color: var(--habitat-blue);
}

.sections-nav.is-floating .nav-item.active {
    border-bottom-color: var(--habitat-blue);
    background: transparent !important;
    border-radius: 0 !important;
}

/* Print PDF link adjustment inside sticky bar */
.sections-nav.is-floating .print-btn {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0.4rem !important;
}

/* Desktop alignment paddings */
@media (min-width: 901px) {
    .sections-nav.is-floating {
        padding: 0.75rem 2rem;
    }

    @media (min-width: 1140px) {
        .sections-nav.is-floating {
            padding: 0.75rem calc((100% - 1140px) / 2 + 1.5rem);
        }
    }

    .sections-nav.is-floating .nav-list {
        gap: 1.25rem;
    }

    .timeline-item+.timeline-item {
        margin-top: -15rem;
        /* Staggers cards vertically for a tight zigzag pattern */
    }
}

/* Mobile scrolling behaviors */
@media (max-width: 900px) {
    .sections-nav.is-floating {
        padding: 0.5rem 1.25rem;
    }

    .sections-nav.is-floating .nav-list {
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .sections-nav.is-floating .nav-item {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
    }

    .sections-nav.is-floating .nav-item:hover {
        padding-left: 0.5rem !important;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* ========== BIOGRAPHY SECTION (WRAP/BLEND) ========== */
.bio-section {
    margin-bottom: 6rem;
}

.bio-container {
    background: var(--bg-card);
    border: 1px solid var(--gray-border);
    border-radius: 16px;
    padding: 3.5rem;
    box-shadow: var(--shadow-lg);
}

.bio-container::after {
    content: "";
    display: table;
    clear: both;
}

.bio-portrait-float {
    float: right;
    width: 320px;
    margin: 0.25rem 0 1.5rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.bio-portrait-float:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--habitat-blue);
}

.bio-portrait-float img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    cursor: zoom-in;
}

.bio-portrait-float figcaption {
    margin-top: 1rem;
    border-top: 1px solid var(--gray-border);
    padding-top: 0.75rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--ink-muted);
    font-weight: 500;
}

.bio-container p {
    margin-bottom: 1.8rem;
    font-size: 1.1rem;
    color: var(--ink-muted);
    font-family: var(--font-serif);
    text-align: justify;
    line-height: 1.85;
}

/* ========== TIMELINE SECTION ========== */
.timeline-editorial {
    background: var(--bg-card);
    border-top: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
    padding: 6rem 0;
    margin-bottom: 6rem;
}

.timeline-track {
    position: relative;
    margin-top: 3rem;
}

/* Vertical Line */
.timeline-track::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gray-light);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 100%;
    margin-bottom: 2.2rem;
    /* Compact vertical spacing */
    display: flex;
    z-index: 2;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item.left-align {
    justify-content: flex-start;
}

.timeline-item.right-align {
    justify-content: flex-end;
}

/* Milestone Bullet Node centered vertically on the card */
.timeline-item::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    background: var(--bg-card);
    border: 3px solid var(--habitat-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: 0 0 0 6px var(--bg-card);
    transition: var(--transition-base);
}

.timeline-item:hover::after {
    background: var(--habitat-blue);
    scale: 1.25;
}

/* Timeline card */
.timeline-card {
    width: 45%;
    /* Symmetrical 45% width on desktop */
    background: var(--bg-card);
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    padding: 1.5rem;
    /* Compact padding */
    box-shadow: var(--shadow-md);
    position: relative;
    transition: var(--transition-base);
}

.timeline-item:hover .timeline-card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--habitat-blue);
}

.timeline-item:hover {
    z-index: 10;
}

/* Arrow pointers centered vertically on the card */
.timeline-card::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 14px;
    height: 14px;
    background: var(--bg-card);
    transition: var(--transition-base);
    z-index: 1;
}

.timeline-item.left-align .timeline-card::before {
    right: -8px;
    left: auto;
    border-right: 1px solid var(--gray-border);
    border-top: 1px solid var(--gray-border);
    border-left: none;
    border-bottom: none;
    transform: translateY(-50%) rotate(45deg);
}

.timeline-item.right-align .timeline-card::before {
    left: -8px;
    right: auto;
    border-left: 1px solid var(--gray-border);
    border-bottom: 1px solid var(--gray-border);
    border-right: none;
    border-top: none;
    transform: translateY(-50%) rotate(45deg);
}

.timeline-item:hover .timeline-card::before {
    border-color: var(--habitat-blue);
}

.card-meta {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--gray-light);
    padding-bottom: 0.6rem;
}

.card-year {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 800;
    color: #ffffff;
    background: var(--habitat-green);
    padding: 0.15rem 0.65rem;
    border-radius: 4px;
    transition: var(--transition-base);
}

.timeline-item:hover .card-year {
    background: var(--habitat-blue);
}

.timeline-img-box {
    border: 1px solid var(--gray-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 1.5;
    background: var(--gray-light);
}

.timeline-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: scale 0.5s ease;
}

.timeline-img-box:hover img {
    scale: 1.02;
}

.timeline-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.timeline-gallery-img-box {
    border: 1px solid var(--gray-border);
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--gray-light);
}

.timeline-gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: scale 0.3s ease;
}

.timeline-gallery-img-box img:hover {
    scale: 1.05;
}

.timeline-legend {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ink-muted);
}

/* ========== NARRATIVE TINT BLOCKS ========== */
.narrative-block {
    grid-column: 1 / -1;
    width: 100%;
    margin: 5rem 0;
    position: relative;
    z-index: 2;
}

.narrative-block-inner {
    background: #f0f9ff;
    border-left: 4px solid var(--habitat-blue);
    border-radius: 0 12px 12px 0;
    padding: 2.5rem 3rem;
    max-width: 860px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
}

.narrative-block-inner p {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.75;
    color: var(--ink-dark);
    text-align: left;
}

/* ========== RESOURCE FOOTER ACCENTS ========== */
footer {
    background: var(--bg-card);
    border: 1px solid var(--gray-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 4rem;
    margin-bottom: 4rem;
    position: relative;
}

footer::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--habitat-blue) 0%, var(--habitat-blue) 50%, var(--habitat-green) 50%, var(--habitat-green) 100%);
}

.links-title {
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--ink-dark);
    border-bottom: 2px solid var(--gray-light);
    padding-bottom: 0.75rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.25rem 3rem;
}

.resource-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-base);
    padding: 0.4rem 0;
    border-bottom: 1px solid transparent;
}

.resource-link:hover {
    color: var(--habitat-blue);
    border-bottom-color: var(--habitat-blue);
    padding-left: 4px;
}

.resource-link svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
    flex-shrink: 0;
}

.footer-bottom {
    margin-top: 3.5rem;
    border-top: 1px solid var(--gray-light);
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.8rem;
    font-family: var(--font-sans);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-bottom a {
    color: var(--sage);
    text-decoration: none;
    transition: var(--transition-base);
}

.footer-bottom a:hover {
    color: var(--habitat-blue);
}

/* ========== RESPONSIVENESS ========== */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-img-box {
        border-right: none;
        border-bottom: 1px solid var(--gray-border);
        aspect-ratio: 1.6;
    }

    .bio-container {
        padding: 2.5rem;
    }

    footer {
        padding: 3rem;
    }
}

@media (max-width: 900px) {
    .timeline-track::before {
        left: 2rem;
    }

    .timeline-item::after {
        left: 2rem;
    }

    .timeline-item {
        justify-content: flex-end !important;
        margin-bottom: 3rem;
    }

    .timeline-card {
        width: calc(100% - 4.5rem) !important;
    }

    .timeline-card::before {
        left: -8px !important;
        right: auto !important;
        border-left: 1px solid var(--gray-border) !important;
        border-bottom: 1px solid var(--gray-border) !important;
        border-right: none !important;
        border-top: none !important;
        transform: translateY(-50%) rotate(45deg) !important;
    }

    .narrative-block {
        margin: 2.5rem 0;
    }

    .narrative-block-inner {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .bio-portrait-float {
        float: none;
        width: 100%;
        margin: 0 0 2rem 0;
    }
}

@media (max-width: 600px) {
    .hero-top {
        padding: 2.5rem 2rem 1.8rem;
    }

    .hero-text-box {
        padding: 2.5rem 2rem;
    }

    body {
        padding: 1.5rem 0;
    }

    .timeline-track::before {
        left: 1.5rem;
    }

    .timeline-item::after {
        left: 1.5rem;
    }

    .timeline-card {
        width: calc(100% - 3.5rem) !important;
        padding: 1.5rem;
    }

    .bio-section,
    .timeline-editorial,
    footer {
        margin-bottom: 4rem;
    }

    .timeline-editorial {
        padding: 4rem 0;
    }

    .narrative-block {
        margin: 4rem 0;
    }

    .narrative-block-inner p {
        font-size: 1.1rem;
    }
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */
@media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
        @keyframes revealUp {
            from {
                opacity: 0;
                transform: translateY(35px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .timeline-item {
            animation: revealUp auto linear backwards;
            animation-timeline: view();
            animation-range: entry 10% cover 25%;
        }

        .narrative-block {
            animation: revealUp auto linear backwards;
            animation-timeline: view();
            animation-range: entry 10% cover 25%;
        }
    }
}

/* JS Fallback hooks */
.reveal-hidden {
    opacity: 0;
    transform: translateY(35px);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========== EDITORIAL LIGHTBOX DIALOG STYLING ========== */
#lightbox-dialog {
    border: 1px solid var(--gray-border);
    border-radius: 12px;
    background: var(--bg-card);
    max-width: 90vw;
    max-height: 90vh;
    margin: auto;
    outline: none;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#lightbox-dialog::backdrop {
    background: rgba(10, 17, 31, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition:
        display 0.3s allow-discrete,
        overlay 0.3s allow-discrete,
        background-color 0.3s ease-out;
}

.dialog-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2.5rem 5rem;
    /* Added left/right padding for nav controls */
}

.dialog-close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--bg-page);
    border: 1px solid var(--gray-border);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-base);
    outline: none;
    z-index: 15;
}

.dialog-close-btn:hover {
    background: var(--habitat-blue);
    color: #ffffff;
}

/* Lightbox Navigation Buttons */
.dialog-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--gray-border);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-dark);
    font-size: 2rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 10;
    outline: none;
}

.dialog-nav-btn:hover {
    background: var(--habitat-blue);
    color: #ffffff;
    border-color: var(--habitat-blue);
    scale: 1.05;
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

@media (max-width: 600px) {
    .dialog-container {
        padding: 2.5rem 3.5rem;
    }

    .dialog-nav-btn {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    .prev-btn {
        left: 0.5rem;
    }

    .next-btn {
        right: 0.5rem;
    }
}

#lightbox-dialog-img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 6px;
    border: 1px solid var(--gray-border);
}

#lightbox-dialog-caption {
    color: var(--ink);
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    font-weight: 500;
    max-width: 750px;
    line-height: 1.6;
    border-top: 1px solid var(--gray-border);
    padding-top: 1rem;
    width: 100%;
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {

    #lightbox-dialog,
    #lightbox-dialog[open],
    #lightbox-dialog::backdrop,
    #lightbox-dialog[open]::backdrop {
        transform: none;
        transition-duration: 0.1s;
    }

    .hero-img-box img {
        transition: none;
    }
}

.print-footer {
    display: none;
}

/* ========== A4 PRINT STYLESHEET (NEWSPAPER EDITORIAL STYLE) ========== */
@media print {
    @page {
        size: A4 portrait;
        margin: 15mm 15mm 25mm 15mm;
    }

    body {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 10pt !important;
        line-height: 1.6 !important;
        padding: 0 !important;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Hide interactive items */
    .sections-nav,
    #main-nav,
    .dialog-close-btn,
    #lightbox-dialog,
    .dialog-nav-btn,
    .footer-bottom a {
        display: none !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Newspaper Masthead */
    .portfolio-hero {
        border: 2px solid #1a202c !important;
        border-radius: 0 !important;
        padding: 1.5rem !important;
        margin-bottom: 2rem !important;
        box-shadow: none !important;
        background: #ffffff !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .portfolio-hero::before {
        display: none !important;
    }

    .hero-top {
        border-bottom: 3px double #1a202c !important;
        padding: 0 0 1rem 0 !important;
        text-align: center !important;
    }

    .hero-top h1 {
        font-family: var(--font-serif) !important;
        font-size: 18pt !important;
        font-weight: 900 !important;
        margin-bottom: 0.4rem !important;
        text-align: center !important;
    }

    .hero-subtitle {
        font-family: var(--font-sans) !important;
        font-size: 11pt !important;
        color: #1a202c !important;
        letter-spacing: 0.08em !important;
        text-align: center !important;
        font-weight: 700 !important;
    }

    .hero-grid {
        display: block !important;
    }

    .hero-img-box {
        border: 1px solid #1a202c !important;
        margin-top: 1rem !important;
        width: 100% !important;
        aspect-ratio: 2 !important;
    }

    .hero-text-box {
        display: none !important;
        /* Hide navigation frame in hero */
    }

    /* Lead Article Columns (Biography) */
    .bio-section {
        margin-top: 2rem !important;
        margin-bottom: 2.5rem !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .bio-container {
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
        column-count: 2 !important;
        column-gap: 20pt !important;
        column-rule: 1px solid #e2e8f0 !important;
        box-shadow: none !important;
    }

    .bio-container p {
        font-family: var(--font-serif) !important;
        font-size: 9.5pt !important;
        line-height: 1.6 !important;
        text-align: justify !important;
        color: #1a202c !important;
        margin-bottom: 1rem !important;
    }

    /* drop cap for lead article */
    .bio-container p:first-of-type::first-letter {
        font-family: var(--font-serif) !important;
        font-size: 3.5rem !important;
        float: left !important;
        line-height: 0.85 !important;
        margin-right: 0.5rem !important;
        margin-top: 0.15rem !important;
        color: #000000 !important;
        font-weight: 900 !important;
    }

    .bio-portrait-float {
        float: none !important;
        width: 100% !important;
        margin: 0 0 1rem 0 !important;
        border: 1px solid #1a202c !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0.5rem !important;
        break-inside: avoid !important;
    }

    .bio-portrait-float img {
        border-radius: 0 !important;
    }

    .bio-portrait-float figcaption {
        font-size: 8pt !important;
        line-height: 1.3 !important;
        margin-top: 0.5rem !important;
        padding-top: 0.5rem !important;
        color: #4a5568 !important;
    }

    /* Chronicle columns (Timeline) */
    .timeline-editorial {
        background: transparent !important;
        border-top: none !important;
        border-bottom: none !important;
        padding: 1.5rem 0 !important;
    }

    .timeline-track::before {
        display: none !important;
    }

    .timeline-track {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15pt !important;
    }

    .timeline-item {
        display: block !important;
        width: 100% !important;
        margin-bottom: 0 !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .timeline-item::after {
        display: none !important;
    }

    .timeline-card {
        width: 100% !important;
        border: 1px solid #1a202c !important;
        border-radius: 0 !important;
        padding: 1rem !important;
        box-shadow: none !important;
        background: #ffffff !important;
    }

    .timeline-card::before {
        display: none !important;
    }

    .timeline-img-box {
        border: 1px solid #1a202c !important;
        border-radius: 0 !important;
        margin-bottom: 0.5rem !important;
        aspect-ratio: 1.6 !important;
    }

    .timeline-img-box img {
        border-radius: 0 !important;
    }

    .timeline-gallery-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8pt !important;
        margin-bottom: 0.5rem !important;
    }

    .timeline-gallery-img-box {
        border: 1px solid #1a202c !important;
        border-radius: 0 !important;
        aspect-ratio: 1 !important;
    }

    .timeline-gallery-img-box img {
        border-radius: 0 !important;
    }

    .timeline-legend {
        font-family: var(--font-serif) !important;
        font-size: 8.5pt !important;
        line-height: 1.45 !important;
        text-align: justify !important;
        color: #1a202c !important;
    }

    .card-year {
        font-size: 9pt !important;
        background: var(--habitat-green) !important;
        color: #1a202c !important;
        border-radius: 0 !important;
        font-weight: 800 !important;
    }

    /* Force display of scroll-reveal elements on print */
    .reveal-hidden,
    .timeline-item,
    .narrative-block {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }

    /* Narrative boxes styling */
    .narrative-block {
        margin: 2rem 0 !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .narrative-block-inner {
        background: #f7fafc !important;
        border-top: 3px double #1a202c !important;
        border-bottom: 3px double #1a202c !important;
        border-left: none !important;
        border-right: none !important;
        border-radius: 0 !important;
        padding: 1.25rem !important;
        box-shadow: none !important;
    }

    .narrative-block-inner p {
        font-family: var(--font-serif) !important;
        font-size: 10pt !important;
        line-height: 1.6 !important;
        text-align: justify !important;
        color: #000000 !important;
    }

    /* Footer links styling */
    footer {
        border: 1px solid #1a202c !important;
        border-radius: 0 !important;
        padding: 1.5rem !important;
        box-shadow: none !important;
        background: #ffffff !important;
        page-break-inside: avoid;
        break-inside: avoid;
        margin-bottom: 0 !important;
    }

    footer::before {
        display: none !important;
    }

    .links-title {
        font-size: 10.5pt !important;
        margin-bottom: 1rem !important;
        border-bottom: 1px solid #1a202c !important;
        padding-bottom: 0.3rem !important;
    }

    .links-grid {
        display: block !important;
        column-count: 2 !important;
        column-gap: 15pt !important;
    }

    .resource-link {
        font-size: 8pt !important;
        border-bottom: none !important;
        padding: 0.15rem 0 !important;
        color: #1a202c !important;
        break-inside: avoid !important;
    }

    .resource-link svg {
        display: none !important;
    }

    .footer-bottom {
        margin-top: 1.5rem !important;
        padding-top: 0.75rem !important;
        font-size: 7.5pt !important;
    }

    /* Print Page Numbering Footer */
    .print-footer {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        justify-content: space-between;
        font-family: var(--font-sans);
        font-size: 7.5pt;
        color: #718096;
        border-top: 1px solid #1a202c;
        padding-top: 0.4rem;
        background: #ffffff;
        z-index: 9999;
    }

    .print-footer .print-page-num::after {
        content: "Page " counter(page);
    }
}