/* ================================================================== */
/* 1. VARIABLES & BASE STYLES                                         */
/* ================================================================== */

:root {
    /* --- THE UI PALETTE (Foreground stays stable) --- */
    --granite-peak: #1F2937;
    --granite-peak-lighter: #0A3F53;
    --alpine-meadow: #4d7c0f;
    --glacial-melt: #0891B2;
    --limestone: #CBD5E1;
    --glass-surface: rgba(255, 255, 255, 0.85);
    --darker-strip-color: #0A3F53;
    
    /* Inverted colors for dark sections */
    --inverted-text: #F9F6EE;
    --inverted-text-secondary: rgba(249, 246, 238, 0.8);
    --inverted-heading: #FFFFFF;
    --inverted-accent: #7DD3EE;
    --inverted-card-bg: rgba(255, 255, 255, 0.1);
    --inverted-card-border: rgba(255, 255, 255, 0.2);
    --inverted-mono-label: #7DD3EE;
    
    /* Visual Effects */
    --water-shadow: 2px 2px 0px rgba(31, 41, 55, 0.03), 
                    4px 8px 12px rgba(8, 145, 178, 0.04);
    --water-shadow-hover: 4px 4px 0px rgba(31, 41, 55, 0.05), 
                        8px 16px 20px rgba(8, 145, 178, 0.08);
    --ease-fluid: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Background Palette */
    --bg-base: #F9F6EE; 

    /* --- TYPOGRAPHY VARIABLES --- */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-serif-artistic: 'Playfair Display', serif;
    --font-serif-bold: 'Inter', serif;

    /* Font Sizes */
    --font-size-hero: 2.5rem;
    --font-size-hero-tablet: 2rem;
    --font-size-hero-mobile: 1.6rem;
    --font-size-title-large: 1.4rem;
    --font-size-title-card: 1.2rem;
    --font-size-body-larger: 1.1rem;
    --font-size-body-text: 1.05rem;
    --font-size-body-base: 1rem;
    --font-size-header: 0.85rem;
    --font-size-button: 0.8rem;
    --font-size-nav-link: 0.75rem;
    --font-size-label-mono: 0.74rem;
    --font-size-label-small: 0.7rem;
    --font-size-citation: 0.90rem;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-base);
    color: var(--granite-peak);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

/* --- BACKGROUND EFFECTS --- */
.bg-color-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 60%;
    z-index: -2;
    background: linear-gradient(to bottom, #042F3E 0%, transparent 100%);
    pointer-events: none;
    will-change: opacity;
    animation: fade-overlay linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 380px;
}

@keyframes fade-overlay {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.river-bg {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: -1;
    opacity: 0.25; 
    filter: contrast(120%) brightness(100%);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* ================================================================== */
/* 2. HERO SECTION                                                    */
/* ================================================================== */

.hero-scroll-background {
    background-color: var(--darker-strip-color);
    animation: fade-hero linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 520px;
}

@keyframes fade-hero {
    from { opacity: 1; }
    to   { opacity: 0.4; }
}

.hero-scroll-wrapper {
    position: sticky;
    min-height: 260px;
    display: flex;
    align-items: center;
    background: transparent;
    isolation: auto;
    padding-top: 84px;
    padding-bottom: 184px;
    overflow-anchor: none;
    will-change: transform;
    animation: shrink-hero linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 520px;
}

@keyframes shrink-hero {
    from { transform: translateY(0); }
    to   { transform: translateY(222px); }
}

.hero {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    will-change: transform;
}

.hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0px;
    padding-bottom: 0px;
}

.hero-inner-image-title {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.hero-inner-image {
    width: 78px;
    overflow: visible;
}

.hero-inner-image-title img {
    height: 310px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hero-logo {
    flex-shrink: 0;
    transition: transform 0.4s var(--ease-fluid);
    margin-right: 80px;
    margin-top: 48px;
}

.hero .narrative-coupling {
    color: var(--glass-surface);
}

.hero .subtitle-1 {
    color: #7DD3EE;
    margin-left: 12px;
}

.hero .subtitle-2 {
    color: var(--bg-base);
    margin-left: 24px;
}

.hero .mono-label {
    color: #7DD3EE;
}

.hero-nav-links {
    margin-top: 1rem;
    z-index: 100;
    margin-left: 64px;
    gap: 0.25rem;
}

.hero-nav-links a {
    color: rgba(248, 250, 252, 0.75);
    border-color: rgba(248, 250, 252, 0.25);
}

.hero-nav-links a:hover {
    color: #fff;
    border-color: rgba(248, 250, 252, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

/* ================================================================== */
/* 3. NAVBAR                                                          */
/* ================================================================== */

.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--limestone);
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.06);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
    animation: reveal-navbar linear both;
    animation-timeline: scroll(root);
    animation-range: 400px 450px;
}

@keyframes reveal-navbar {
    from { opacity: 0; pointer-events: none; transform: translateY(-100%); }
    to   { opacity: 1; pointer-events: auto; transform: translateY(0); }
}

.top-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

.top-navbar .nav-links a {
    color: var(--granite-peak);
    border-color: transparent;
}

.top-navbar .nav-links a:hover {
    color: var(--glacial-melt);
    border-color: var(--limestone);
    background: rgba(8, 145, 178, 0.05);
}

.nav-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.5rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: var(--font-size-nav-link);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--limestone);
}

/* ================================================================== */
/* 4. MAIN CONTENT                                                    */
/* ================================================================== */

/* --- LAYOUT UTILITIES --- */
.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 2rem;
}

.page-content {
    display: flex;
    flex-direction: column;
    gap: 0rem;
    padding-bottom: 6rem;
}

.grid-dashboard {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

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

/* --- TYPOGRAPHY --- */
.mono-label {
    font-family: var(--font-mono);
    font-size: var(--font-size-label-mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--glacial-melt);
    margin-bottom: 0.5rem;
    display: block;
    transition: letter-spacing 0.4s var(--ease-fluid);
}

.mono-data {
    font-family: var(--font-mono);
    font-weight: 500;
}

.mono-label-small {
    font-family: var(--font-mono);
    font-size: var(--font-size-label-small);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--glacial-melt);
    margin-bottom: 0.5rem;
    display: block;
    transition: letter-spacing 0.4s var(--ease-fluid);
}

.narrative-coupling {
    font-size: var(--font-size-hero);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--granite-peak);
}

.narrative-coupling span { 
    color: var(--glacial-melt); 
    font-weight: 400; 
    font-family: var(--font-primary);
    font-style: italic; 
}

.narrative-coupling p { 
    color: var(--glacial-melt); 
    font-weight: 400; 
    font-family: var(--font-primary);
}

h3.section-header {
    font-family: var(--font-mono);
    font-size: var(--font-size-header);
    text-transform: uppercase;
    color: var(--granite-peak);
    border-bottom: 1px solid var(--limestone);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

h2.card-title {
    font-size: var(--font-size-title-card);
    font-weight: 600; 
    margin-bottom: 1rem; 
    color: var(--granite-peak-lighter);
}

h2.freetext-title {
    font-size: var(--font-size-title-large);
    font-weight: 600; 
    margin-bottom: 1rem; 
    color: var(--granite-peak);
}

.artistic-emphasis {
    font-family: var(--font-serif-artistic);
    font-style: italic;
    color: var(--glacial-melt);
}

.true-emphasis {
    font-family: var(--font-serif-bold);
    font-weight: 700;
    color: var(--glacial-melt);
}

.citation {
    font-size: var(--font-size-citation);
    font-weight: 50;
    color: var(--darker-strip-color);
    font-style: italic;
    font-family: var(--font-primary);
}

.fracture-bold {
    font-weight: 700;
    color: var(--granite-peak);
}

.large-emphasis {
    font-size: var(--font-size-title-large);
    font-weight: 600;
    color: var(--darker-strip-color);
    line-height: 1.4;
    display: block;
    margin: 0.5rem 0;
}

/* --- CARDS & COMPONENTS --- */
.vellum-card {
    background: var(--glass-surface);
    border-radius: 12px; 
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.6);
    padding: 1.5rem;
    box-shadow: var(--water-shadow);
    transition: all 0.3s var(--ease-fluid);
    position: relative;
}

.vellum-card:hover {
    border-color: var(--glacial-melt);
    box-shadow: var(--water-shadow-hover);
    transform: translateY(-2px);
}

.vellum-card:hover .mono-label {
    letter-spacing: 0.15em;
}

/* --- BUTTONS --- */
.btn-group {
    display: flex;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.5);
    color: var(--granite-peak);
    border: 1px solid var(--granite-peak);
    padding: 0.6rem 1.2rem;
    font-family: var(--font-mono);
    font-size: var(--font-size-button);
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 0px rgba(31, 41, 55, 0.1);
}

.btn:hover { 
    background: #fff; 
    box-shadow: 3px 3px 0px rgba(31, 41, 55, 0.2); 
}

.btn:active { 
    transform: translateY(1px); 
    box-shadow: 0px 0px 0px; 
}

.btn-primary {
    background: var(--granite-peak);
    color: #fff;
    border-color: var(--granite-peak);
}

.btn-primary:hover { 
    background: var(--granite-pure); 
    color: #fff; 
}

.btn-ghost {
    border: 1px solid transparent;
    background: transparent;
    box-shadow: none;
    color: var(--granite-peak);
    opacity: 0.7;
}

.btn-ghost:hover { 
    border-color: var(--limestone); 
    background: rgba(255,255,255,0.6); 
    opacity: 1;
}

/* --- TAGS --- */
.tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--font-size-label-small);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--limestone);
    color: var(--granite-peak);
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
    background: rgba(255,255,255,0.6);
}

.tag.climate-alert { 
    border-color: var(--glacial-melt); 
    color: var(--glacial-melt); 
    background: rgba(8, 145, 178, 0.05);
}

.tag.climate-stable { 
    border-color: var(--alpine-meadow); 
    color: var(--alpine-meadow); 
    background: rgba(63, 98, 18, 0.05);
}

/* --- SECTIONS --- */
.section-text-rich {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.section-text-cardless {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 1.5rem 0;
}

.section-cards {
    padding: 0;
}

.section-cards-intro {
    font-size: var(--font-size-body-base);
    color: #4b5563;
    margin-bottom: 1.5rem;
    max-width: 640px;
    line-height: 1.7;
}

.section-free-text {
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding: 2rem 0;
    margin-left: 16px;
}

.section-free-text p {
    font-size: var(--font-size-body-text);
    color: #4b5563;
    line-height: 1.7;
    max-width: 740px;
}

.section-free-text-larger {
    display: flex;
    flex-direction: column;
    align-items: left;
    text-align: left;
    gap: 0.75rem;
    margin-top: 2.5rem;
    padding: 2rem 0;
    margin-left: 16px;
}

.section-free-text-larger p {
    font-size: var(--font-size-body-larger);
    color: #4b5563;
    line-height: 1.7;
    max-width: 740px;
}

.text-rich-body p {
    font-size: var(--font-size-body-text);
    color: #4b5563;
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.text-rich-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-collapse {
    max-height: 120px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.text-collapse p { 
    font-size: var(--font-size-body-base); 
    color: #4b5563; 
    margin-bottom: 0.75rem; 
}

/* --- CARD GRIDS --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
    gap: 1.5rem;
}

.card-grid .vellum-card p {
    font-size: var(--font-size-body-base);
    color: #4b5563;
    line-height: 1.65;
}

.card-grid .vellum-card svg {
    display: block;
    max-width: 80px;
    height: auto;
    margin: 1rem auto 0;
}

/* PPIP Card Images */
.ppip-card-image {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    filter: brightness(0) saturate(100%) invert(17%) sepia(29%) saturate(1650%) hue-rotate(157deg) brightness(95%) contrast(97%);
}

/* --- IMAGES --- */
.image-placeholder {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    overflow: visible;
    transition: transform 0.3s var(--ease-fluid), box-shadow 0.3s ease;
}

.image-placeholder img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.image-placeholder:hover {
    transform: scale(1.02);
    box-shadow: var(--water-shadow-hover);
}

/* --- CALLOUT BOX --- */
.callout-box {
    border-left: 3px solid var(--glacial-melt);
    background: rgba(8, 145, 178, 0.05);
    border-radius: 0 8px 8px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.callout-box-image {
    flex-shrink: 0;
    width: 140px;
    height: auto;
}

.callout-box-image img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.callout-box-content {
    flex: 1;
}

.callout-box p {
    font-size: var(--font-size-body-base);
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    font-style: italic;
}

@media (max-width: 640px) {
    .callout-box {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .callout-box-image {
        width: 100%;
        max-width: 200px;
        align-self: center;
    }
}

/* --- FRACTURE CARDS --- */
.fracture-card-header {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.fracture-card-header .card-title {
    margin-bottom: 0;
    font-size: 1rem;
}

.fracture-expand-btn {
    align-self: flex-start;
    margin-top: 0.5rem;
    font-family: var(--font-mono);
    font-size: var(--font-size-label-small);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--glacial-melt);
    background: rgba(8, 145, 178, 0.06);
    border: 1px solid var(--glacial-melt);
    border-radius: 6px;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s var(--ease-fluid);
    box-shadow: 2px 2px 0px rgba(8, 145, 178, 0.15);
}

.fracture-expand-btn:hover {
    background: rgba(8, 145, 178, 0.14);
    box-shadow: 3px 3px 0px rgba(8, 145, 178, 0.25);
    transform: translateY(-1px);
}

.fracture-expand-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

/* --- FRACTURE MODAL --- */
.fracture-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.fracture-modal-overlay[hidden] {
    display: none;
}

.fracture-modal {
    background: var(--glass-surface);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    box-shadow: var(--water-shadow-hover), 0 24px 64px rgba(4, 47, 62, 0.18);
    padding: 2rem 2.25rem;
    max-width: 620px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: modal-in 0.25s var(--ease-fluid) both;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.fracture-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.fracture-modal-header .mono-label {
    margin: 0;
}

.fracture-modal-close {
    font-family: var(--font-mono);
    font-size: var(--font-size-header);
    background: transparent;
    border: 1px solid var(--limestone);
    border-radius: 6px;
    color: var(--granite-peak);
    padding: 0.2rem 0.55rem;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    line-height: 1.4;
}

.fracture-modal-close:hover {
    border-color: var(--glacial-melt);
    background: rgba(8, 145, 178, 0.06);
    color: var(--glacial-melt);
}

.fracture-modal-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--limestone);
}

.fracture-modal-body p {
    font-size: var(--font-size-body-base);
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

#fractureModalTitle {
    margin-bottom: 0;
}

/* ================================================================== */
/* 5. DARK SECTION STRIP                                             */
/* ================================================================== */

.dark-section-strip {
    background-color: var(--darker-strip-color);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 4rem 0;
    margin-top: 3rem;
    margin-bottom: 3rem;
    transition: background-color 0.6s var(--ease-fluid);
}

.dark-section-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(125, 211, 238, 0.08) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.6s var(--ease-fluid);
    pointer-events: none;
}

.dark-section-strip:hover::before {
    opacity: 1;
}

.dark-section-strip .container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.dark-section-strip .section-free-text-larger p,
.dark-section-strip .section-free-text p,
.dark-section-strip .section-cards-intro {
    color: var(--inverted-text-secondary);
}

.dark-section-strip .large-emphasis {
    color: var(--inverted-heading);
}

.dark-section-strip .mono-label {
    color: var(--inverted-mono-label);
}

.dark-section-strip .card-title {
    color: var(--inverted-heading);
}

.dark-section-strip .vellum-card {
    background: var(--inverted-card-bg);
    border: 1px solid var(--inverted-card-border);
    backdrop-filter: blur(8px);
}

.dark-section-strip .vellum-card p {
    color: var(--inverted-text);
}

.dark-section-strip .vellum-card:hover {
    border-color: var(--inverted-accent);
    background: rgba(255, 255, 255, 0.15);
}

.dark-section-strip .true-emphasis {
    color: var(--inverted-accent);
}

/* ================================================================== */
/* 6. RESPONSIVE / MOBILE                                             */
/* ================================================================== */

@media (max-width: 1068px) {
    .grid-dashboard { 
        grid-template-columns: 1fr; 
    }
    
    .grid-triad { 
        grid-template-columns: 1fr; 
    }
    
    .narrative-coupling { 
        font-size: var(--font-size-hero-tablet); 
    }
    
    .section-text-rich { 
        grid-template-columns: 1fr; 
    }
    
    .section-text-cardless { 
        grid-template-columns: 1fr; 
    }
    
    .card-grid { 
        grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); 
    }
    
    .hero-logo {
        margin-right: 0px;
        margin-top: 0px;
    }
}

@media (max-width: 640px) {
    .hero-scroll-wrapper {
        position: sticky;
        min-height: 260px;
        display: flex;
        align-items: center;
        background: transparent;
        isolation: auto;
        padding-top: 84px;
        padding-bottom: 84px;
        overflow-anchor: none;
        will-change: transform;
        animation: shrink-hero linear both;
        animation-timeline: scroll(root);
        animation-range: 0px 520px;
    }

    @keyframes shrink-hero {
        from { transform: translateY(0); }
        to   { transform: translateY(150px); }
    }
    
    .top-navbar-inner {
        flex-direction: column;
        gap: 0.25rem;
        align-items: center;
    }
    
    .top-navbar .nav-links {
        flex-wrap: nowrap;
        gap: 0.15rem;
        justify-content: center;
    }
    
    .top-navbar .nav-links a {
        font-size: clamp(0.6rem, 2vw, 0.75rem);
        padding: 0.25rem 0.4rem;
        letter-spacing: 0.05em;
    }
    
    .hero-nav-links {
        display: none;
    }

    .card-grid { 
        grid-template-columns: 1fr; 
    }
    
    .hero-inner { 
        flex-direction: column; 
        gap: 1.5rem; 
        text-align: flex-start; 
    }

    .hero-inner-image-title img {
        height: 310px;
        transform: translate(0px, 12px);
    }
    
    .narrative-coupling { 
        font-size: var(--font-size-hero-mobile); 
    }
    
    .hero-logo {
        margin-right: 0px;
        margin-top: 0px;
    }
    
    .image-placeholder {
        max-width: 86vw;
        border-radius: 8px;
        overflow: visible;
        transition: transform 0.3s var(--ease-fluid), box-shadow 0.3s ease;
    }
    
    .fracture-modal {
        padding: 1.5rem;
        max-height: 90vh;
    }
}

@media (max-width: 440px) {
    .hero-inner-image-title img {
        height: 390px;
        transform: translate(-20px, 23px);
    }
}