/* =========================================================
   PorScience
   Porous Materials for Advanced Applications Summit Series
   Main Website Styles
========================================================= */

/* =========================================================
   ROOT
========================================================= */

:root {
    --primary: #123B5D;
    --primary-dark: #0B2B45;
    --primary-light: #1D567A;

    --teal: #247C86;
    --teal-light: #3A9098;

    --gold: #C39A56;
    --gold-light: #D7B879;

    --ink: #17212B;
    --ink-soft: #304252;

    --muted: #687786;
    --muted-light: #91A0AC;

    --white: #FFFFFF;
    --paper: #F7F8FA;
    --paper-dark: #EEF2F4;

    --line: #DCE3E8;
    --line-dark: #C8D2D9;

    --success: #2D7A5D;
    --warning: #A36A22;
    --danger: #A94C4C;

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 14px;

    --shadow-sm:
        0 5px 18px rgba(11, 43, 69, 0.06);

    --shadow:
        0 18px 45px rgba(11, 43, 69, 0.10);

    --shadow-lg:
        0 28px 80px rgba(11, 43, 69, 0.16);

    --container: 1180px;

    --transition-fast: 0.2s ease;
    --transition: 0.28s ease;
    --transition-slow: 0.6s ease;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    margin: 0;
    padding: 0;

    color: var(--ink);
    background: var(--paper);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    font-size: 16px;
    line-height: 1.65;

    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.modal-open {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

p {
    margin-top: 0;
}


/* =========================================================
   GLOBAL CONTAINER
========================================================= */

.container {
    width: min(var(--container), 92vw);
    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   TOP BAR
========================================================= */

.topbar {
    background: var(--primary-dark);
    color: #DCE8EF;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    font-size: 12px;
    letter-spacing: 0.025em;
}

.topbar .container {
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.topbar span:last-child {
    color: #B8CBD7;
}


/* =========================================================
   HEADER
========================================================= */

header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.96);

    border-bottom: 1px solid var(--line);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    transition:
        box-shadow var(--transition),
        background var(--transition);
}

header.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 28px;
}


/* =========================================================
   BRAND / LOGO
========================================================= */

.brand {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    min-width: 255px;
}

.logo {
    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    border: 1.5px solid var(--primary);

    border-radius: 10px;

    display: grid;
    place-items: center;

    position: relative;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.7);
}

.logo::before,
.logo::after {
    content: "";

    position: absolute;

    border-radius: 50%;
}

.logo::before {
    width: 25px;
    height: 18px;

    border: 1px solid var(--gold);

    transform: rotate(28deg);
}

.logo::after {
    width: 30px;
    height: 10px;

    border: 1px solid var(--gold);

    transform: rotate(-28deg);
}

.brand strong {
    display: block;

    color: var(--ink);

    font-size: 20px;
    line-height: 1.05;

    letter-spacing: -0.03em;
}

.brand small {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 9px;
    line-height: 1;

    text-transform: uppercase;
    letter-spacing: 0.14em;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    position: relative;

    min-height: 680px;

    display: flex;
    align-items: center;

    overflow: hidden;

    color: var(--white);

    background:
        linear-gradient(
            90deg,
            rgba(9, 37, 57, 0.94) 0%,
            rgba(14, 53, 76, 0.82) 48%,
            rgba(14, 53, 76, 0.42) 100%
        ),
        url("../images/hero.jpg")
        center / cover no-repeat,
        linear-gradient(
            120deg,
            var(--primary-dark),
            var(--primary)
        );
}

.hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 78% 25%,
            rgba(195, 154, 86, 0.16),
            transparent 30%
        );

    pointer-events: none;
}

.hero::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 140px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(7, 30, 46, 0.34)
        );

    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;

    padding-top: 88px;
    padding-bottom: 88px;
}

.hero h1 {
    max-width: 860px;

    margin: 0 0 24px;

    color: var(--white);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            48px,
            6vw,
            82px
        );

    font-weight: 500;

    line-height: 1.04;

    letter-spacing: -0.04em;

    white-space: normal;
}

.hero p {
    max-width: 720px;

    margin: 0 0 32px;

    color: #D9E4EA;

    font-size: 18px;

    line-height: 1.75;
}


/* =========================================================
   EYEBROWS / KICKERS
========================================================= */

.eyebrow,
.kicker {
    display: inline-block;

    color: var(--gold);

    font-size: 11px;

    line-height: 1.2;

    text-transform: uppercase;

    letter-spacing: 0.16em;

    font-weight: 700;
}

.eyebrow {
    margin-bottom: 18px;
}

.kicker {
    margin-bottom: 11px;
}


/* =========================================================
   BUTTONS
========================================================= */

.actions {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 11px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 46px;

    padding: 12px 18px;

    border: 1px solid transparent;

    border-radius: var(--radius-sm);

    font-size: 14px;
    font-weight: 600;

    transition:
        transform var(--transition-fast),
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    background: var(--gold);
    color: var(--white);
}

.btn.primary:hover {
    background: #B88C49;

    box-shadow:
        0 8px 20px rgba(195, 154, 86, 0.22);
}

.btn.secondary {
    background: var(--primary);
    color: var(--white);
}

.btn.secondary:hover {
    background: var(--primary-light);
}

.btn.outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.38);
}

.btn.outline:hover {
    background: rgba(255, 255, 255, 0.07);

    border-color:
        rgba(255, 255, 255, 0.7);
}

.btn.small {
    min-height: 38px;

    padding: 8px 12px;

    font-size: 12px;
}


/* =========================================================
   EVENT BAR
========================================================= */

.eventbar {
    position: relative;

    z-index: 10;

    margin-top: -40px;
}

.eventbar > .card,
.eventbar .card {
    display: grid;

    grid-template-columns:
        1.05fr
        1.1fr
        0.9fr
        auto;

    align-items: center;

    gap: 24px;

    padding: 26px 30px;

    background: var(--white);

    border: 1px solid var(--line);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);
}

.eventbar h3 {
    margin: 4px 0 0;

    color: var(--ink);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 26px;

    font-weight: 500;

    line-height: 1.2;
}

.eventbar .label {
    color: var(--teal);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 0.14em;

    font-weight: 700;
}

.muted {
    color: var(--muted);

    font-size: 14px;
}

.muted strong {
    color: var(--ink);
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 96px 0;
}

.section.white {
    background: var(--white);
}

.section.dark {
    color: var(--white);

    background:
        linear-gradient(
            120deg,
            var(--primary-dark),
            #123E5D
        );
}

.section h2 {
    max-width: 870px;

    margin: 0 0 16px;

    color: var(--ink);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            38px,
            4.2vw,
            58px
        );

    font-weight: 500;

    line-height: 1.08;

    letter-spacing: -0.03em;
}

.dark h2 {
    color: var(--white);
}

.sectionhead {
    max-width: 800px;

    margin-bottom: 46px;
}

.sectionhead > p {
    margin: 0;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.75;
}

.dark .sectionhead > p {
    color: #C5D4DD;
}


/* =========================================================
   ABOUT
========================================================= */

.two-col {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(280px, 0.85fr);

    gap: 70px;

    align-items: start;
}

.two-col p {
    color: #536675;

    font-size: 16px;
}

.quote {
    padding-left: 26px;

    border-left: 3px solid var(--gold);

    color: var(--primary);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 28px;

    line-height: 1.42;
}

.text-link {
    display: inline-flex;
    align-items: center;

    margin-top: 8px;

    color: var(--primary);

    font-size: 14px;

    font-weight: 700;
}

.text-link:hover {
    color: var(--teal);
}


/* =========================================================
   MISSION / JOURNEY
========================================================= */

.journey {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.journey-item {
    min-height: 235px;

    padding: 28px 23px;

    border-right: 1px solid var(--line);

    position: relative;

    cursor: pointer;

    background: transparent;

    transition:
        background var(--transition),
        transform var(--transition);
}

.journey-item:last-child {
    border-right: 0;
}

.journey-item:hover {
    background: var(--white);

    transform: translateY(-3px);

    box-shadow:
        inset 0 -3px 0 var(--gold);
}

.journey-item .num {
    color: var(--gold);

    font-size: 12px;

    letter-spacing: 0.12em;

    font-weight: 700;
}

.journey-item h3 {
    margin: 13px 0 7px;

    color: var(--ink);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;

    font-weight: 500;
}

.journey-item p {
    margin-bottom: 25px;

    color: var(--muted);

    font-size: 14px;
}

.card-link {
    display: inline-flex;
    align-items: center;

    color: var(--primary);

    font-size: 13px;

    font-weight: 700;
}

.card-link:hover {
    color: var(--teal);
}


/* =========================================================
   SCIENTIFIC SCOPE
========================================================= */

.scope {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}

.scope-box {
    background: var(--white);

    border: 1px solid var(--line);

    border-radius: var(--radius);

    padding: 28px;

    box-shadow: var(--shadow-sm);

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.scope-box:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow);

    border-color: var(--line-dark);
}

.scope-box h3 {
    margin: 0 0 16px;

    color: var(--primary);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;

    font-weight: 500;
}

.scope-link {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border-bottom: 1px solid #EDF1F3;

    color: #4B5E6D;

    font-size: 14px;

    transition:
        color var(--transition-fast),
        padding-left var(--transition-fast);
}

.scope-link:last-child {
    border-bottom: 0;
}

.scope-link:hover {
    padding-left: 5px;

    color: var(--primary);
}


/* =========================================================
   STATS
========================================================= */

.stats {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 1px;

    margin-top: 42px;

    background:
        rgba(255, 255, 255, 0.15);
}

.stat {
    padding: 29px;

    background: transparent;
}

.stat strong {
    display: block;

    margin-bottom: 3px;

    color: var(--white);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 48px;

    line-height: 1.1;

    font-weight: 500;
}

.stat span {
    color: #B6C9D4;

    font-size: 11px;

    line-height: 1.4;

    text-transform: uppercase;

    letter-spacing: 0.12em;
}


/* =========================================================
   TIMELINE / SUMMIT SERIES
========================================================= */

.timeline {
    max-width: 900px;

    margin-left: 12px;

    padding-left: 30px;

    border-left:
        1px solid rgba(255, 255, 255, 0.24);
}

.item,
.titem {
    position: relative;

    padding: 0 0 50px;
}

.item:last-child,
.titem:last-child {
    padding-bottom: 0;
}

.item::before,
.titem::before {
    content: "";

    position: absolute;

    left: -37px;
    top: 7px;

    width: 13px;
    height: 13px;

    border-radius: 50%;

    background: var(--gold);

    box-shadow:
        0 0 0 5px var(--primary-dark),
        0 0 0 6px rgba(255, 255, 255, 0.16);
}

.item .year,
.titem .year {
    margin-bottom: 6px;

    color: var(--gold-light);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 0.15em;

    font-weight: 700;
}

.item h3,
.titem h3 {
    max-width: 850px;

    margin: 0 0 10px;

    color: var(--white);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 31px;

    font-weight: 500;

    line-height: 1.2;
}

.item p,
.titem p {
    max-width: 760px;

    margin: 0 0 20px;

    color: #C5D4DD;

    font-size: 15px;
}


/* =========================================================
   EDITION
========================================================= */

.edition {
    display: grid;

    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(0, 1.05fr);

    gap: 58px;

    align-items: center;
}

.edition-image {
    overflow: hidden;

    border-radius: var(--radius);

    background: var(--paper-dark);
}

.edition-image img {
    width: 100%;

    height: 430px;

    object-fit: cover;

    transition:
        transform 0.7s ease;
}

.edition-image:hover img {
    transform: scale(1.025);
}

.edition-content h2 {
    max-width: 650px;

    margin-bottom: 18px;
}

.edition-content p {
    color: var(--muted);

    font-size: 15px;
}

.edition-content p strong {
    color: var(--ink);
}

.eventfacts {
    display: flex;

    flex-wrap: wrap;

    gap: 30px;

    margin: 26px 0;
}

.fact {
    color: var(--muted);

    font-size: 13px;
}

.fact strong {
    display: block;

    color: var(--primary);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 30px;

    line-height: 1.1;
}


/* =========================================================
   PARTNERS
========================================================= */

.partners-preview {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;
}

.partner-card {
    min-height: 110px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: var(--white);

    border: 1px solid var(--line);

    border-radius: var(--radius);

    color: var(--muted);

    text-align: center;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.partner-card:hover {
    transform: translateY(-3px);

    border-color: var(--line-dark);

    box-shadow: var(--shadow-sm);
}

.partner-card img {
    max-width: 170px;

    max-height: 60px;

    object-fit: contain;
}


/* =========================================================
   NEWS
========================================================= */

.news {
    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(300px, 0.8fr);

    gap: 24px;
}

.news-main,
.news-card {
    background: var(--white);

    border: 1px solid var(--line);

    border-radius: var(--radius);

    overflow: hidden;

    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.news-main:hover,
.news-card:hover {
    transform: translateY(-4px);

    box-shadow: var(--shadow);

    border-color: var(--line-dark);
}

.news-main img {
    width: 100%;
    height: 320px;

    object-fit: cover;
}

.news-copy {
    padding: 21px;
}

.news-copy h3 {
    margin: 5px 0 8px;

    color: var(--ink);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;

    font-weight: 500;

    line-height: 1.2;
}

.news-list {
    display: grid;

    gap: 17px;
}

.news-card {
    display: grid;

    grid-template-columns: 145px 1fr;
}

.news-card img {
    width: 145px;
    height: 100%;

    min-height: 155px;

    object-fit: cover;
}

.news-card h3 {
    font-size: 20px;

    margin-bottom: 11px;
}


/* =========================================================
   CTA
========================================================= */

.cta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 55px 58px;

    color: var(--white);

    background:
        linear-gradient(
            120deg,
            var(--primary),
            #1C5970
        );

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow);
}

.cta h2 {
    max-width: 670px;

    margin: 0 0 8px;

    color: var(--white);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            34px,
            4vw,
            48px
        );

    font-weight: 500;

    line-height: 1.1;
}

.cta p {
    margin: 0;

    color: #D3E0E7;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    padding: 44px;

    background: var(--white);

    border: 1px dashed var(--line-dark);

    border-radius: var(--radius);

    text-align: center;
}

.empty-state h3 {
    margin: 0 0 7px;

    color: var(--primary);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 25px;
}

.empty-state p {
    margin: 0;

    color: var(--muted);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    padding: 58px 0 22px;

    color: #D1DEE6;

    background: #0A2235;
}

footer .brand strong {
    color: var(--white);
}

footer .brand small {
    color: #8EA6B4;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.4fr
        1fr
        1fr
        1fr;

    gap: 42px;
}

footer h4 {
    margin: 0 0 14px;

    color: var(--white);

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 0.1em;
}

footer p {
    max-width: 350px;

    color: #AFC1CC;

    font-size: 14px;
}

footer a {
    display: block;

    margin: 8px 0;

    color: #AEC1CC;

    font-size: 14px;

    transition:
        color var(--transition-fast),
        padding-left var(--transition-fast);
}

footer a:hover {
    padding-left: 4px;

    color: var(--white);
}

.footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 38px;

    padding-top: 19px;

    border-top:
        1px solid rgba(255, 255, 255, 0.13);

    color: #8199A8;

    font-size: 11px;
}


/* =========================================================
   SCROLL REVEAL
========================================================= */

.reveal {
    opacity: 0;

    transform:
        translateY(18px);

    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.reveal.show {
    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(36, 124, 134, 0.28);

    outline-offset: 2px;
}

::selection {
    background: rgba(195, 154, 86, 0.25);
}

/* =========================================================
   PORSCIENCE — FINAL RESPONSIVE / NAV / MODAL / PEOPLE SYSTEM
   One authoritative implementation. No legacy overrides.
========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    position: relative;
    min-width: 0;
    gap: 18px;
}

.brand {
    min-width: 0;
    flex: 0 1 255px;
}

.brand > span:last-child {
    min-width: 0;
}

.brand small,
.navlinks a,
.nav-dropdown-toggle {
    overflow-wrap: anywhere;
}

/* Desktop navigation */
.navlinks {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.navlinks > a,
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 42px;
    padding: 9px 9px;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #435465;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.navlinks > a:hover,
.nav-dropdown-toggle:hover,
.navgroup:focus-within > .nav-dropdown-toggle {
    color: var(--primary);
    background: #EFF4F6;
}

.navgroup {
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
}

.drop-arrow {
    font-size: 10px;
    line-height: 1;
    transition: transform var(--transition-fast);
}

.navgroup.open .drop-arrow {
    transform: rotate(180deg);
}

.dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1100;
    width: 290px;
    max-width: min(320px, calc(100vw - 24px));
    padding: 8px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity .18s ease, visibility .18s ease, transform .18s ease;
}

.navgroup:last-of-type .dropdown {
    left: auto;
    right: 0;
}

.navgroup:hover > .dropdown,
.navgroup:focus-within > .dropdown,
.navgroup.open > .dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    width: 100%;
    padding: 9px 10px;
    border-radius: 6px;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.4;
    white-space: normal;
}

.dropdown a:hover,
.dropdown a:focus-visible {
    background: #EFF4F6;
    color: var(--primary);
}

.navlinks .nav-cta {
    flex: 0 0 auto;
    margin-left: 6px;
    padding: 11px 15px;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.navlinks .nav-cta:hover {
    color: var(--white);
    background: var(--primary-light);
    transform: translateY(-1px);
}

.menu {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    flex: 0 0 auto;
}

.menu-icon {
    font-size: 17px;
    line-height: 1;
}

/* People / leadership cards */
.people,
.directory {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    min-width: 0;
}

.person {
    min-width: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.person:hover {
    transform: translateY(-5px);
    border-color: var(--line-dark);
    box-shadow: var(--shadow);
}

.person:focus-visible {
    outline: 3px solid rgba(36, 124, 134, .28);
    outline-offset: 3px;
}

.person-image,
.directory .person > img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper-dark);
}

.person-image img,
.directory .person > img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    background: var(--paper-dark);
    transition: transform .45s ease;
}

.person:hover .person-image img,
.person:hover > img {
    transform: scale(1.015);
}

.person .body {
    padding: 20px;
    min-width: 0;
}

.person .role {
    margin-bottom: 7px;
    color: var(--teal);
    font-size: 10px;
    line-height: 1.45;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-weight: 700;
}

.person h3 {
    margin: 0 0 7px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.person p {
    margin: 0 0 13px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Shared modal matching footer.php + main.js */
.modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(7, 24, 37, .72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modalbox {
    position: relative;
    width: min(860px, 94vw);
    max-height: 88vh;
    overflow-y: auto;
    padding: 38px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(14px) scale(.985);
    transition: transform .25s ease;
}

.modal.open .modalbox {
    transform: translateY(0) scale(1);
}

.modalbox > .close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--primary);
    font-size: 24px;
    line-height: 1;
}

.modalbox > .close:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.profile-modal {
    display: grid;
    grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr);
    gap: 30px;
    align-items: start;
}

.profile-modal-media {
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper-dark);
}

.profile-modal-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    background: var(--paper-dark);
}

.profile-placeholder {
    min-height: 300px;
    display: grid;
    place-items: center;
    color: var(--primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
}

.profile-modal-body {
    min-width: 0;
    padding-top: 8px;
}

.profile-modal-body h2,
.modalbox #modalContent > h2 {
    margin: 5px 0 14px;
    padding-right: 42px;
    color: var(--primary);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}

.profile-modal-body p,
.modalbox #modalContent > p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.75;
}

.profile-meta {
    color: var(--ink) !important;
}

.profile-link {
    color: var(--primary);
    font-weight: 700;
}

.profile-link:hover {
    color: var(--teal);
}

.modalbox .kicker {
    color: var(--teal);
}

/* Prevent fixed-size media from creating overflow */
main,
section,
article,
.card,
.container,
.nav,
.navlinks,
.modalbox,
.profile-modal {
    min-width: 0;
}

img {
    max-width: 100%;
}

/* Tablet */
@media (max-width: 1100px) {
    .nav {
        gap: 12px;
    }

    .brand {
        flex-basis: 210px;
    }

    .navlinks > a,
    .nav-dropdown-toggle {
        padding-left: 6px;
        padding-right: 6px;
        font-size: 12px;
    }

    .navlinks .nav-cta {
        padding-left: 11px;
        padding-right: 11px;
    }

    .people,
    .directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile navigation */
@media (max-width: 1050px) {
    .topline {
        display: none;
    }

    .nav {
        min-height: 70px;
    }

    .menu {
        display: inline-flex;
    }

    .navlinks {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
        width: 100%;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        padding: 12px;
        background: var(--white);
        border: 1px solid var(--line);
        border-top: 0;
        box-shadow: var(--shadow);
    }

    .navlinks.mobile {
        display: flex;
    }

    .navlinks > a,
    .nav-dropdown-toggle {
        width: 100%;
        min-height: 44px;
        justify-content: space-between;
        padding: 11px 12px;
        text-align: left;
        white-space: normal;
    }

    .navgroup {
        width: 100%;
    }

    .dropdown,
    .navgroup:last-of-type .dropdown {
        position: static;
        width: 100%;
        max-width: none;
        margin: 0 0 3px;
        padding: 4px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        display: none;
        border: 0;
        border-radius: 7px;
        box-shadow: none;
        background: #F5F8F9;
    }

    .navgroup.open > .dropdown {
        display: block;
    }

    .dropdown a {
        padding: 10px 12px;
    }

    .navlinks .nav-cta {
        margin: 5px 0 0;
        justify-content: center;
        text-align: center;
    }

    .profile-modal {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .profile-modal-media img {
        max-height: 420px;
        margin: 0 auto;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(94vw, var(--container));
    }

    .brand {
        flex: 1 1 auto;
        max-width: calc(100% - 70px);
    }

    .brand strong {
        font-size: 18px;
    }

    .brand small {
        font-size: 8px;
    }

    .hero {
        min-height: 650px;
    }

    .hero .container {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .hero h1 {
        font-size: clamp(43px, 12vw, 58px);
    }

    .hero p {
        font-size: 16px;
    }

    .section {
        padding: 72px 0;
    }

    .section h2 {
        font-size: clamp(35px, 10vw, 46px);
    }

    .eventbar {
        margin-top: -25px;
    }

    .eventbar > .card,
    .eventbar .card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 22px;
    }

    .journey,
    .scope,
    .people,
    .directory,
    .stats,
    .partners-preview,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .journey-item {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .journey-item:last-child {
        border-bottom: 0;
    }

    .edition-image img {
        height: 300px;
    }

    .news-main img {
        height: 250px;
    }

    .news-card {
        grid-template-columns: 110px 1fr;
    }

    .news-card img {
        width: 110px;
        min-height: 145px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .modal {
        padding: 14px;
    }

    .modalbox {
        width: 100%;
        max-height: 90vh;
        padding: 31px 22px 25px;
        border-radius: 12px;
    }

    .profile-modal-body h2,
    .modalbox #modalContent > h2 {
        font-size: 32px;
        padding-right: 34px;
    }

    .profile-modal-body p,
    .modalbox #modalContent > p {
        font-size: 15px;
    }

    .modalbox > .close {
        top: 10px;
        right: 10px;
        width: 34px;
        height: 34px;
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
