/* ==========================================================
   01. ROOT VARIABLES
========================================================== */

:root {
    --cedar: #0d4f3c;
    --cedar2: #153f35;
    --ink: #17211f;
    --muted: #66736f;
    --cream: #f8f5ee;
    --paper: #fffdf9;
    --gold: #c8952e;
    --line: #dfe6e1;
    --navy: #152a3a;
    --shadow: 0 20px 60px rgba(17, 47, 38, 0.10);
}


/* ==========================================================
   02. GLOBAL STYLES
========================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system,
                 BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.wrap {
    width: min(1160px, calc(100% - 40px));
    margin: auto;
}


/* ==========================================================
   03. NAVIGATION
========================================================== */

.nav {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 253, 249, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(13, 79, 60, 0.11);
}

.nav-inner {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Brand and Logo */

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    font-family: Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--cedar);
    font-size: 1.22rem;
}

.brand img {
    width: 45px;
    height: 45px;
}

.brand small {
    display: block;
    color: var(--muted);
    font-family: Inter, sans-serif;
    font-size: 0.58rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 700;
}

/* Navigation Links */

.menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.menu a {
    text-decoration: none;
    font-size: 0.91rem;
    font-weight: 650;
    color: #33413d;
}

.menu a:hover,
.menu a.active {
    color: var(--cedar);
}

.menu .join {
    border: 1px solid var(--cedar);
    border-radius: 999px;
    padding: 8px 14px;
    color: var(--cedar);
}

/* Mobile Menu Button */

.toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 1.6rem;
    color: var(--cedar);
}


/* ==========================================================
   04. HERO SECTION
========================================================== */

.hero {
    padding: 86px 0 74px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(200, 149, 46, 0.10),
            transparent 27%
        ),
        linear-gradient(
            180deg,
            #fbfaf6 0%,
            #fffdf9 100%
        );
}

/* Hero Layout */

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 64px;
    align-items: center;
}

/* Small Section Labels */

.eyebrow {
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Keep Hero Tagline on One Line */

.hero-tagline {
    white-space: nowrap;
}

/* Hero Headings */

.hero h1,
.page-hero h1 {
    font-family: Georgia, serif;
    color: var(--cedar);
    font-size: clamp(3rem, 7vw, 6.4rem);
    line-height: 0.95;
    margin: 0.12em 0 0.22em;
    letter-spacing: -0.055em;
}

.hero h1 span {
    display: block;
    color: var(--navy);
    font-size: 0.48em;
    letter-spacing: -0.035em;
    margin-top: 0.2em;
}

/* Hero Description */

.lede {
    font-family: Georgia, serif;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    color: #33433e;
    max-width: 780px;
}

/* Hero Logo */

.hero-mark {
    background: var(--cream);
    border-radius: 50%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    border: 1px solid #ede5d6;

    width: 100%;
    min-width: 0;
}

.hero-mark img {
    width: 78%;
}


/* ==========================================================
   05. BUTTONS AND ACTIONS
========================================================== */

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 750;
    border: 1px solid var(--cedar);
    font-size: 0.93rem;
}

.button.primary {
    background: var(--cedar);
    color: white;
}

.button.secondary {
    color: var(--cedar);
    background: white;
}


/* ==========================================================
   06. RESEARCH HIGHLIGHTS STRIP
========================================================== */

.strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.strip-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat {
    padding: 25px;
    border-right: 1px solid var(--line);
}

.stat:first-child {
    padding-left: 0;
}

.stat:last-child {
    border-right: 0;
}

.stat strong {
    display: block;
    color: var(--cedar);
    font-family: Georgia, serif;
    font-size: 1.06rem;
}

.stat span {
    font-size: 0.82rem;
    color: var(--muted);
}


/* ==========================================================
   07. GENERAL SECTIONS
========================================================== */

section {
    padding: 76px 0;
}

.section-head {
    max-width: 780px;
    margin-bottom: 36px;
}

.section-head h2,
.content h2 {
    font-family: Georgia, serif;
    color: var(--cedar);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    margin: 0.18em 0;
}

.section-head p {
    color: var(--muted);
    font-size: 1.08rem;
}


/* ==========================================================
   08. RESEARCH CARDS
========================================================== */

.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 28px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(20, 53, 43, 0.045);
}

.card .num {
    font-family: Georgia, serif;
    color: var(--gold);
    font-weight: 700;
    font-size: 1rem;
}

.card h3 {
    font-family: Georgia, serif;
    color: var(--navy);
    font-size: 1.5rem;
    line-height: 1.15;
    margin: 0.5rem 0;
}

.card p {
    color: #586661;
    margin-bottom: 0;
}

.card a.more {
    display: inline-block;
    color: var(--cedar);
    font-weight: 800;
    text-decoration: none;
    margin-top: 15px;
}


/* ==========================================================
   09. DARK SECTION / CEDAR PHILOSOPHY
========================================================== */

.dark {
    background: var(--cedar2);
    color: #ecf3ef;
}

.dark .section-head h2,
.dark h2 {
    color: white;
}

.dark .section-head p {
    color: #bfd0c9;
}

.quote {
    font-family: Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 3.3rem);
    line-height: 1.15;
    max-width: 960px;
}

.quote em {
    color: #e4bb64;
    font-style: normal;
}


/* ==========================================================
   10. NEWS / CURRENT WORK
========================================================== */

.news-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.news-list {
    border-top: 1px solid var(--line);
}

.news-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 22px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.news-item time {
    color: var(--gold);
    font-weight: 800;
    font-size: 0.82rem;
}

.news-item strong {
    display: block;
    color: var(--navy);
    font-family: Georgia, serif;
    font-size: 1.12rem;
}

.news-item p {
    margin: 0.2rem 0;
    color: var(--muted);
}


/* ==========================================================
   11. INNER PAGE HEADERS
========================================================== */

.page-hero {
    padding: 60px 0 42px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    font-size: clamp(3rem, 6vw, 5.2rem);
}

.page-hero p {
    max-width: 820px;
    font-size: 1.22rem;
    color: #53625d;
}


/* ==========================================================
   12. GENERAL PAGE CONTENT
========================================================== */

.content {
    max-width: 900px;
}

.content h2 {
    margin-top: 1.5em;
}

.content h3 {
    font-family: Georgia, serif;
    color: var(--navy);
    font-size: 1.45rem;
    margin-top: 1.4em;
}

.content p,
.content li {
    color: #4f5e59;
}


/* ==========================================================
   13. RESEARCH PILLARS
========================================================== */

.pillars {
    display: grid;
    gap: 26px;
}

.pillar {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 32px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.pillar:first-child {
    border-top: 0;
}

.pillar .tag {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    color: var(--gold);
}

.pillar h2 {
    margin: 0;
    font-size: 2rem;
}

/* Research Topics */

.topics {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.topic {
    font-size: 0.78rem;
    border: 1px solid #cbd8d1;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--cedar);
    background: #fbfdfb;
}


/* ==========================================================
   14. PUBLICATIONS
========================================================== */

.pub {
    padding: 24px 0;
    border-top: 1px solid var(--line);
}

.pub:first-child {
    border-top: 0;
}

.pub .meta {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.pub h3 {
    margin: 0.28rem 0 0.4rem;
    font-size: 1.3rem;
}

.pub p {
    margin: 0.25rem 0;
    color: var(--muted);
}

.pub-links {
    display: flex;
    gap: 14px;
    margin-top: 10px;
}

.pub-links a {
    color: var(--cedar);
    font-weight: 800;
    font-size: 0.88rem;
}


/* ==========================================================
   15. PEOPLE
========================================================== */

.people {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.person {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 26px;
    background: white;
}

.avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--cream);
    font-family: Georgia, serif;
    color: var(--cedar);
    font-size: 1.6rem;
    font-weight: 700;
    border: 1px solid #e7decb;
}

.person h3 {
    font-family: Georgia, serif;
    color: var(--navy);
    margin: 0.9rem 0 0;
}

.person .role {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}


/* ==========================================================
   16. OPPORTUNITIES AND CALLOUTS
========================================================== */

.callout {
    background: var(--cream);
    border-left: 4px solid var(--gold);
    padding: 24px 28px;
    border-radius: 0 16px 16px 0;
    margin: 28px 0;
}

.opportunities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.opportunity {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 26px;
}

.status {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    background: #e8f1ed;
    color: var(--cedar);
}

.status.neutral {
    background: #f2eee5;
    color: #826728;
}


/* ==========================================================
   17. FOOTER
========================================================== */

.footer {
    background: #102e27;
    color: #dce8e3;
    padding: 46px 0 28px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer h3 {
    font-family: Georgia, serif;
    color: white;
    margin: 0 0 10px;
}

.footer a {
    color: #dce8e3;
}

.footer small {
    color: #9eb3aa;
}

/* Footer Logo */

.footer-mark {
    display: flex;
    gap: 12px;
    align-items: center;
}

.footer-mark img {
    width: 58px;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}

/* Copyright */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 22px;
    margin-top: 30px;
    color: #91a8a0;
    font-size: 0.8rem;
}


/* ==========================================================
   18. UTILITY CLASSES
========================================================== */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.checklist {
    padding-left: 1.15rem;
}

.checklist li {
    margin: 0.5rem 0;
}

.muted {
    color: var(--muted);
}


/* ==========================================================
   19. RESPONSIVE DESIGN — TABLETS
   Applies to screens 850px wide or smaller
========================================================== */

@media (max-width: 850px) {

    /* Navigation */

    .toggle {
        display: block;
    }

    .menu {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 78px;
        background: var(--paper);
        padding: 20px;
        flex-direction: column;
        border-bottom: 1px solid var(--line);
    }

    .menu.open {
        display: flex;
    }

    .nav-inner {
        height: 70px;
    }

    .menu {
        top: 70px;
    }

    /* Hero */

    .hero-grid,
    .news-grid,
    .footer-grid,
    .two-col {
        grid-template-columns: 1fr;
    }

    .hero-mark {
        max-width: 360px;
        margin: auto;
        order: -1;
    }

    .hero {
        padding-top: 44px;
    }

    /* Research Highlights */

    .strip-inner {
        grid-template-columns: 1fr 1fr;
    }

    .stat:nth-child(2) {
        border-right: 0;
    }

    /* Cards */

    .cards,
    .people,
    .opportunities {
        grid-template-columns: 1fr;
    }

    /* Research Pillars */

    .pillar {
        grid-template-columns: 1fr;
        gap: 8px;
    }

}


/* ==========================================================
   20. RESPONSIVE DESIGN — MOBILE PHONES
   Applies to screens 520px wide or smaller
========================================================== */

@media (max-width: 520px) {

    /* Page Container */

    .wrap {
        width: min(100% - 26px, 1160px);
    }

    /* Navigation Brand */

    .brand small {
        display: none;
    }

    /* Research Highlights */

    .strip-inner {
        grid-template-columns: 1fr;
    }

    .stat {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        padding-left: 0;
    }

    /* News */

    .news-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

}

/* ==========================================================
   PREVIOUS RESEARCH SECTION
========================================================== */

#previous-research {
    background: var(--cream);
    border-top: 1px solid var(--line);
}

#previous-research .section-head {
    max-width: 900px;
}

#previous-research .pillar {
    border-top: 1px solid #d8ddd5;
}
/* Hide navigation links marked as hidden */
.menu a[hidden] {
    display: none;
}


/* =========================================================
   TEAM SECTION
========================================================= */

.team-section {
    padding: 40px 0;
}

.team-section .wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================
   INDIVIDUAL PERSON
========================================================= */

.team-section .person {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 40px;
    align-items: start;

    width: 100%;
    padding: 35px 0;
    margin: 0;

    text-align: left;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.team-section .person:last-child {
    border-bottom: none;
}

/* =========================================================
   PHOTO
========================================================= */

.person-photo {
    width: 260px;
    height: 320px;
    overflow: hidden;
    border-radius: 12px;
}

.person-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* =========================================================
   PLACEHOLDER
========================================================= */

.person-photo.placeholder {
    display: flex;
    justify-content: center;
    align-items: center;

    background: #f0f2f5;
    border: 1px dashed #ccd2da;
}

.person-photo.placeholder span {
    font-size: 48px;
    font-weight: 300;
    color: #9ca3af;
}

/* =========================================================
   TEXT CONTENT
========================================================= */

.person-info {
    min-width: 0;
    text-align: left;
}

.person-info .role {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.person-info h3 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin: 0 0 20px;
}

.person-info p {
    font-size: 1rem;
    line-height: 1.8;
    margin: 0 0 16px;

    max-width: none;
    white-space: normal;
    overflow-wrap: break-word;
}

/* =========================================================
   CONTACT LINKS
========================================================= */

.person-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.person-links a {
    text-decoration: none;
    font-weight: 500;
}

.person-links a:hover {
    text-decoration: underline;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .team-section .person {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 30px 0;
    }

    .person-photo {
        width: 100%;
        max-width: 280px;
        height: 340px;
    }

    .person-info h3 {
        font-size: 1.5rem;
    }

}


.hero-content, .section-head, .content, .pillar > *,
.news-grid > *, .footer-grid > *, .team-section .person > * {
    min-width: 0;
}

/* Allow the long homepage tagline to wrap on smaller screens. */
@media (max-width: 1100px) {
    .hero-tagline {
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

@media (max-width: 850px) {
    .nav-inner { gap: 12px; }
    .brand { min-width: 0; font-size: 1.08rem; }
    .brand img { width: 40px; height: 40px; flex: 0 0 40px; }
    .toggle { cursor: pointer; flex-shrink: 0; padding: 8px 10px; }
    .menu { align-items: stretch; gap: 0; padding: 8px 20px 18px; box-shadow: 0 14px 25px rgba(17,47,38,.1); }
    .menu a { display: block; width: 100%; padding: 11px 8px; }
    .menu a[hidden] { display: none; }
    .menu .join { text-align: center; margin-top: 10px; }
    .hero-grid { gap: 24px; }
    .hero-mark { max-width: 230px; }
    .hero { padding: 40px 0 50px; }
    section { padding: 54px 0; }
    .team-section .person { grid-template-columns: 190px minmax(0,1fr); gap: 24px; }
    .team-section .person-photo { width: 190px; height: 245px; }
}

@media (max-width: 650px) {
    .wrap { width: calc(100% - 32px); }
    .team-section .wrap { padding-left: 0; padding-right: 0; width: calc(100% - 32px); }
    .team-section .person { grid-template-columns: 1fr; gap: 16px; }
    .team-section .person-photo { width: 180px; height: 220px; max-width: 100%; }
    .team-section .person-info h3 { font-size: 1.5rem; margin-bottom: 12px; }
    .team-section .person-info p { line-height: 1.65; }
    .hero h1 { font-size: clamp(3.2rem, 14vw, 5rem); }
    .hero h1 span { font-size: .46em; }
    .page-hero h1 { font-size: clamp(2.5rem, 11vw, 3.6rem); line-height: 1.04; }
    .page-hero p { font-size: 1.05rem; }
    .lede { font-size: 1.15rem; line-height: 1.5; }
    .hero-tagline { font-size: .7rem; letter-spacing: .075em; line-height: 1.5; }
    .hero-mark { max-width: 175px; }
    .hero-grid { gap: 24px; }
    .hero { padding: 32px 0 42px; }
    .hero-content { text-align: left; }
    .actions { gap: 10px; margin-top: 22px; }
    .actions .button { flex: 1 1 160px; text-align: center; }
    .quote { font-size: clamp(1.55rem, 6.3vw, 2.3rem); line-height: 1.28; }
    .quote span[style] { white-space: normal !important; }
    .section-head h2, .content h2 { font-size: clamp(1.8rem, 8vw, 2.5rem); line-height: 1.13; }
    .section-head p { font-size: 1rem; }
    .card, .opportunity { padding: 21px; }
    .callout { padding: 20px; }
    .pillar { gap: 14px; }
    .pillar h2 { font-size: 1.55rem; }
    .footer-grid { gap: 26px; }
    .footer-mark { align-items: flex-start; }
    .footer-mark img { width: 46px; flex-shrink: 0; }
    .pub-links { flex-wrap: wrap; }
}

@media (max-width: 360px) {
    .brand { font-size: .98rem; }
    .brand img { width: 34px; height: 34px; flex-basis: 34px; }
    .hero h1 { font-size: 3rem; }
    .actions .button { flex-basis: 100%; }
}



/* ==========================================================
   21. HOMEPAGE-ONLY RESPONSIVE CORRECTIONS
   Leaves research, people, and other inner pages unchanged.
========================================================== */

/* The homepage hero contains a long, unbreakable tagline. */
.hero-grid > * { min-width: 0; }
.hero-tagline { overflow-wrap: break-word; }

@media (max-width: 1100px) {
    .hero-tagline { white-space: normal; }
}

@media (max-width: 850px) {
    /* Prevent the philosophy statement from widening the viewport. */
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
    .dark .quote { max-width: 100%; overflow-wrap: break-word; }
    .dark .quote span[style*="white-space"] {
        white-space: normal !important;
    }
    .hero-tagline { max-width: 100%; }
}

@media (max-width: 520px) {
    .hero .wrap { width: calc(100% - 36px); }
    .hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
    .hero h1 span { line-height: 1.1; }
    .hero-tagline { font-size: 0.7rem; line-height: 1.55; letter-spacing: 0.05em; }
    .hero-mark { width: min(175px, 55vw); }
    .dark .quote { font-size: clamp(1.45rem, 6vw, 2rem); }
    .hero .actions .button { min-width: 0; }
    .hero .lede { overflow-wrap: break-word; }
}
