:root {
    --ink: #071321;
    --navy: #0b1b2e;
    --blue: #1656a6;
    --cyan: #0b9eb8;
    --muted: #667085;
    --line: #dfe5ec;
    --paper: #f5f8fb;
    --white: #fff;
    --max: 1240px;
    --r: 18px;
    --shadow: 0 18px 55px rgba(13, 35, 65, .10)
}

* {
    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: #fff;
    line-height: 1.6
}

a {
    color: inherit
}

.top {
    height: 5px;
    background: linear-gradient(90deg, var(--blue), var(--cyan))
}

.container {
    max-width: var(--max);
    margin: auto;
    padding: 0 28px
}

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line)
}

.navin {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.brand {
    text-decoration: none;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: -.04em;
}

.brand span {
    color: var(--blue)
}

.navlinks {
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: #475467
}

.navlinks a {
    text-decoration: none
}

.navlinks a:hover {
    color: var(--blue)
}

/* ==============================
   HERO
   ============================== */

.hero {
    position: relative;
    height: 540px;
    overflow: hidden;
    background: #dceaf5;
    border-bottom: 1px solid var(--line);
}


/* ==============================
   HERO IMAGE
   ============================== */

.hero-background {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center center;

    z-index: 0;
}


/* ==============================
   HERO OVERLAY
   ============================== */

.hero-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.97) 0%,
        rgba(255, 255, 255, 0.92) 28%,
        rgba(255, 255, 255, 0.62) 48%,
        rgba(255, 255, 255, 0.12) 76%,
        rgba(255, 255, 255, 0) 100%
    );

    z-index: 1;
}


/* ==============================
   HERO CONTENT
   ============================== */

.hero > .container {
    position: relative;
    z-index: 2;

    height: 540px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding-top: 30px;
    padding-bottom: 30px;
}

.hero h1 {
    max-width: 760px;
}

.hero .lead {
    max-width: 680px;
}

/*-----------------*/
.eyebrow, .kicker {
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .15em;
    text-transform: uppercase
}

.eyebrow:before {
    content: "";
    display: inline-block;
    width: 27px;
    height: 2px;
    background: var(--cyan);
    vertical-align: middle;
    margin-right: 9px
}

h1 {
    font-size: clamp(42px, 4.5vw, 64px);
    line-height: .98;
    letter-spacing: -.055em;
    max-width: 1000px;
    margin: 18px 0 25px;
}

h1 em {
    font-style: normal;
    color: var(--blue)
}

h2 {
    font-size: 38px;
    line-height: 1.08;
    letter-spacing: -.045em;
    margin: 7px 0 0
}

h3 {
    line-height: 1.2
}

.lead {
    max-width: 900px;
    font-size: 20px;
    color: #475467
}

.meta, .actions, .tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.meta {
    margin: 26px 0
}

.pill {
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    color: #667085
}

.actions {
    margin-top: 26px
}

.btn {
    display: inline-block;
    padding: 12px 17px;
    border-radius: 10px;
    border: 1px solid var(--blue);
    font-size: 14px;
    font-weight: 850;
    text-decoration: none
}

.primary {
    background: var(--blue);
    color: #fff
}

.secondary {
    background: #fff;
    color: var(--blue)
}

section {
    padding: 76px 0
}

.dark {
    background: var(--navy);
    color: #fff
}

.soft {
    background: var(--paper)
}

.sectionhead {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 35px;
    margin-bottom: 30px
}

.sectionhead p {
    max-width: 560px;
    color: var(--muted);
    margin: 0
}

.dark .sectionhead p {
    color: #b9c6d7
}

.statement {
    font-size: 29px;
    line-height: 1.3;
    max-width: 980px;
    color: #dce7f5;
    margin: 22px 0 0
}

.statement strong {
    color: #fff
}

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

.card, .panel, .figure {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: #fff;
    padding: 23px
}

.shadow {
    box-shadow: var(--shadow)
}

.number {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -.05em;
    color: var(--blue)
}

.small, .legend {
    font-size: 12px;
    color: var(--muted)
}

.card h3 {
    font-size: 15px;
    margin: 13px 0 0
}

.twocol {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 22px
}

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

.quote {
    border-left: 4px solid var(--blue);
    padding: 17px 20px;
    background: #f5f8fd;
    border-radius: 0 12px 12px 0;
    font-size: 19px
}

.prose {
    max-width: 930px;
    font-size: 16px
}

.prose h2 {
    margin-top: 55px
}

.prose p {
    margin: 14px 0
}

.prose li {
    margin: 7px 0
}

.figure {
    padding: 14px;
    overflow: hidden
}

.figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 11px
}

.caption {
    font-size: 12px;
    color: var(--muted);
    padding: 9px 3px 0
}

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

.chart {
    display: grid;
    gap: 12px;
    margin-top: 18px
}

.row {
    display: grid;
    grid-template-columns:200px 1fr 72px;
    gap: 12px;
    align-items: center;
    font-size: 13px
}

.track {
    height: 11px;
    background: #edf1f6;
    border-radius: 20px;
    overflow: hidden
}

.fill {
    height: 100%;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
    border-radius: 20px
}

.row b {
    text-align: right
}

.bar2 {
    height: 9px;
    background: #eef2f6;
    border-radius: 20px;
    overflow: hidden
}

.bar2 span {
    display: block;
    height: 100%;
    background: var(--blue)
}

.tablewrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow)
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 980px;
    font-size: 13px
}

th, td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap
}

th {
    background: #f4f7fa;
    color: #344054;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    position: sticky;
    top: 0;
    z-index: 2
}

tbody tr:hover {
    background: #f8fbff
}

.rank {
    font-weight: 900;
    color: var(--blue)
}

.source-note {
    font-size: 11px;
    color: var(--muted);
    margin-top: 10px
}

.controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0
}

.controls input, .controls select {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 10px 12px;
    font: inherit;
    background: #fff
}

.score {
    font-weight: 850
}

.timeline {
    position: relative;
    display: grid;
    grid-template-columns:repeat(5, 1fr);
    gap: 10px;
    margin-top: 28px
}

.timeline:before {
    content: "";
    position: absolute;
    left: 5%;
    right: 5%;
    top: 20px;
    height: 2px;
    background: #cbd5e1
}

.time {
    position: relative;
    padding-top: 42px
}

.dot {
    position: absolute;
    top: 14px;
    left: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--blue);
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--blue)
}

.time h3 {
    font-size: 15px;
    margin: 8px 0
}

.time p {
    font-size: 12px;
    color: var(--muted);
    margin: 0
}

.explorer {
    display: grid;
    grid-template-columns:260px 1fr;
    gap: 18px
}

.tabs {
    display: grid;
    gap: 7px
}

.tab {
    border: 1px solid #2a3b53;
    background: #101f33;
    color: #dce6f5;
    border-radius: 10px;
    padding: 11px 13px;
    text-align: left;
    font-weight: 750;
    font-size: 13px;
    cursor: pointer
}

.tab.active {
    background: #173d76;
    border-color: #2f68ae;
    color: #fff
}

.profile {
    border: 1px solid #2a3951;
    border-radius: 18px;
    background: #101f33;
    padding: 25px
}

.profile h3 {
    margin: 0;
    font-size: 24px
}

.profile .desc {
    color: #b9c6d7;
    font-size: 14px
}

.profile h4 {
    margin-bottom: 5px
}

.tag {
    padding: 6px 9px;
    border-radius: 7px;
    background: #edf4ff;
    color: var(--blue);
    font-size: 11px;
    font-weight: 850
}

.method {
    display: grid;
    grid-template-columns:repeat(4, 1fr);
    gap: 13px
}

.method .card {
    min-height: 155px
}

.badge {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: #eef5ff;
    color: var(--blue)
}

.badge.green {
    background: #edf9f5;
    color: #16745c
}

.badge.gold {
    background: #fff7e8;
    color: #9b6500
}

.badge.gray {
    background: #f0f2f5;
    color: #475467
}

.audit {
    background: #fff8eb;
    border: 1px solid #f0d8a3;
    border-radius: 14px;
    padding: 16px;
    color: #694c00
}

footer {
    background: #071321;
    color: #aeb9ca;
    padding: 42px 0
}

.foot {
    display: flex;
    justify-content: space-between;
    gap: 30px
}

.foot b {
    color: #fff
}

.foot p {
    font-size: 12px;
    max-width: 720px;
    margin: 0
}

.links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
}

.links a {
    color: #dce6f5;
    text-decoration: none;
    font-size: 12px
}

/* Interactive research figures */
.figure {
    position: relative;
}

.figure img {
    cursor: zoom-in;
    transition: transform .22s ease, box-shadow .22s ease;
}

.figure:hover img {
    box-shadow: 0 14px 34px rgba(13, 35, 65, .14);
}

.figure:has(img[onclick])::after {
    content: "↗";
    position: absolute;
    right: 22px;
    top: 22px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(7, 19, 33, .78);
    color: #fff;
    font-size: 18px;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.figure:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(4, 12, 24, .88);
    backdrop-filter: blur(8px);
}

.lightbox.open {
    display: flex;
}

.lightbox img {
    max-width: min(96vw, 1500px);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
    background: #fff;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 22px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-title {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    max-width: 90vw;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(7, 19, 33, .78);
    color: #fff;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 950px) {
    .navlinks {
        display: none
    }

    .cards, .method {
        grid-template-columns:1fr 1fr
    }

    .twocol, .three, .gridfig {
        grid-template-columns:1fr
    }

    .explorer {
        grid-template-columns:1fr
    }

    .timeline {
        grid-template-columns:1fr 1fr
    }

    .timeline:before {
        display: none
    }

    .sectionhead {
        display: block
    }

    .sectionhead p {
        margin-top: 14px
    }
}

@media (max-width: 600px) {

    .container {
        padding: 0 18px;
    }

    .hero {
        height: 560px;
    }

    .hero > .container {
        height: 560px;
        padding-top: 35px;
        padding-bottom: 35px;
    }

    .hero-background {
        object-position: center center;
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.97) 0%,
            rgba(255, 255, 255, 0.88) 48%,
            rgba(255, 255, 255, 0.30) 100%
        );
    }

    h1 {
        font-size: clamp(38px, 10vw, 52px);
    }

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

    h2 {
        font-size: 31px;
    }

    .statement {
        font-size: 22px;
    }

    .lead {
        font-size: 17px;
    }

    .row {
        grid-template-columns: 130px 1fr 54px;
    }

    section {
        padding: 55px 0;
    }

    .foot {
        display: block;
    }

    .foot p {
        margin-top: 16px;
    }
}

@media (max-width: 700px) {
    .lightbox {
        padding: 14px
    }

    .lightbox img {
        max-width: 96vw;
        max-height: 82vh
    }

    .lightbox-close {
        top: 10px;
        right: 10px
    }

    .lightbox-title {
        bottom: 10px;
        font-size: 12px
    }
}
