/* ============================================
   index.html - Homepage Styles
   Inspired by image-led academic lab homepages.
   ============================================ */

body {
    background: #f6f3ee;
}

main {
    overflow: hidden;
}

.eyebrow {
    margin: 0 0 12px;
    color: #7a4e24;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hero {
    padding: 34px 24px 24px;
    background: #f6f3ee;
}

.hero-stage {
    width: min(1380px, 100%);
    margin: 0 auto;
}

.hero-feature {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.25fr);
    min-height: clamp(560px, 76vh, 760px);
    background: #111827;
    color: #fff;
    box-shadow: 0 24px 70px rgba(36, 28, 20, 0.16);
}

.hero-feature__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(36px, 5.5vw, 76px);
    background:
        linear-gradient(135deg, rgba(18, 44, 64, 0.96), rgba(23, 77, 74, 0.92)),
        #143445;
}

.hero-feature__content .eyebrow {
    color: #f2c078;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.6rem);
    line-height: 0.94;
    letter-spacing: 0;
}

.hero-kicker {
    max-width: 660px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(1.1rem, 2.1vw, 1.65rem);
    font-weight: 650;
    line-height: 1.32;
}

.hero-copy {
    max-width: 600px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.02rem;
    line-height: 1.78;
    text-align: left;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border: 1px solid currentColor;
    border-radius: 4px;
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: #153b44;
    background: #f6d89a;
    border-color: #f6d89a;
}

.button--secondary {
    color: #fff;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
}

.button--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-feature__media {
    position: relative;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    background: #d8d4cc;
}

.hero-feature__media img,
.hero-feature__media iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-feature__media iframe {
    position: absolute;
    inset: 0;
    border: 0;
}

.hero-feature__media::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(0deg, rgba(11, 15, 20, 0.64), transparent);
    pointer-events: none;
}

.hero-feature__media figcaption {
    position: absolute;
    right: 28px;
    bottom: 24px;
    left: 28px;
    z-index: 1;
    max-width: 520px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.25;
    pointer-events: none;
}

.hero-thumbs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.hero-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background: #1f2937;
}

.hero-thumb img,
.hero-thumb video,
.hero-thumb iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-thumb iframe {
    position: absolute;
    inset: 0;
    border: 0;
}

.hero-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08));
    pointer-events: none;
}

.hero-thumb span {
    position: absolute;
    right: 22px;
    bottom: 18px;
    left: 22px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.25;
}

.hero-thumb:hover img,
.hero-thumb:hover video,
.hero-thumb:hover iframe {
    transform: scale(1.035);
}

.research-section,
.people-section,
.news-section {
    padding: clamp(56px, 8vw, 96px) 0;
}



.section-header h2,
.people-copy h2 {
    margin: 0;
    color: #18222f;
    font-size: clamp(2rem, 4.2vw, 4rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.people-copy p {
    max-width: 760px;
    margin: 24px 0 0;
    color: #526071;
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.85;
}


.research-section {
    background: #f6f3ee;
}

.section-header {
    margin-bottom: 32px;
}

.section-header--split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.research-card {
    min-height: 330px;
    padding: 28px;
    border: 1px solid #e2d7c8;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(77, 63, 43, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.research-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 44px rgba(77, 63, 43, 0.12);
}

.research-card__icon {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    margin-bottom: 28px;
    border-radius: 50%;
    background: #f6f3ee;
}

.research-card__icon img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.research-card__title {
    margin: 0;
    color: #193d48;
    font-size: 1.28rem;
    line-height: 1.28;
}

.research-card__desc {
    margin: 16px 0 0;
    color: #657184;
    font-size: 0.98rem;
    line-height: 1.72;
}

.people-section {
    background: #fff;
}

.people-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
    gap: clamp(36px, 6vw, 84px);
    align-items: center;
}

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

.people-mosaic img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
    background: #eef2f7;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
    color: #7a4e24;
    font-weight: 850;
    text-decoration: none;
}

.text-link::after {
    content: "->";
    transition: transform 0.2s ease;
}

.text-link:hover::after {
    transform: translateX(4px);
}

.news-section {
    background: #102f3b;
    color: #fff;
}

.news-section .eyebrow {
    color: #f2c078;
}

.news-section .section-header h2 {
    color: #fff;
}

.news-section .text-link {
    color: #f6d89a;
}

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

.news-loading {
    grid-column: 1 / -1;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.news-item {
    min-height: 250px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.news-date {
    margin: 0 0 20px;
    color: #f2c078;
    font-size: 0.88rem;
    font-weight: 750;
}

.news-item h3 {
    margin: 0;
    color: #fff;
    font-size: 1.2rem;
    line-height: 1.32;
}

.news-item p:not(.news-date) {
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.94rem;
    line-height: 1.65;
}

.news-readmore {
    display: inline-flex;
    margin-top: 20px;
    color: #f6d89a;
    font-weight: 800;
    text-decoration: none;
}

.news-readmore:hover {
    text-decoration: underline;
}

.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-color-scheme: dark) {
    body,
    .hero,
    .research-section {
        background: #111827;
    }

    .people-section {
        background: #0f172a;
    }

    .section-header h2,
    .people-copy h2 {
        color: #f8fafc;
    }

    .people-copy p,
    .research-card__desc {
        color: #a8b3c4;
    }

    .research-card {
        border-color: #263449;
        background: #172033;
    }

    .research-card__icon {
        background: #0f172a;
    }

    .research-card__title {
        color: #dbeafe;
    }
}

@media (max-width: 980px) {
    .hero-feature {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-feature__media {
        min-height: 420px;
    }

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

    .research-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .research-card {
        min-height: 0;
    }

    .section-header--split {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .hero {
        padding: 18px 14px;
    }

    .hero-feature__content {
        padding: 34px 24px;
    }

    .hero-feature__media {
        min-height: 300px;
    }

    .hero-actions,
    .hero-thumbs {
        grid-template-columns: 1fr;
    }

    .button {
        width: 100%;
    }

    .hero-thumbs {
        display: grid;
        gap: 12px;
    }

    .hero-thumb img,
    .hero-thumb video,
    .hero-thumb iframe {
        min-height: 132px;
    }

    .people-mosaic {
        grid-template-columns: repeat(2, 1fr);
    }
}
