:root {
    --bg: #ffffff;
    --panel: #ffffff;
    --ink: #061a3a;
    --muted: #66758a;
    --line: #d8e0e9;
    --mint: #1f5fa8;
    --blue: #6686bb;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

.shell {
    max-width: 1190px;
    margin: auto;
    padding: 0 32px;
}

a {
    color: var(--mint);
}

header,
footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 27px 0;
    border-bottom: 1px solid var(--line);
}

.brand {
    font-size: 14px;
    letter-spacing: .19em;
    font-weight: 800;
    text-decoration: none;
    color: var(--ink);
}

.brand span {
    color: var(--mint);
}

.edition,
.eyebrow,
.section-tag,
.metric-label,
.fine,
footer {
    font-size: 11px;
    letter-spacing: .13em;
    color: var(--muted);
}

.hero {
    padding: 108px 0 72px;
}

.eyebrow,
.section-tag {
    color: var(--mint);
    font-weight: 700;
}

h1 {
    font-size: clamp(64px, 10vw, 128px);
    letter-spacing: -.075em;
    line-height: .98;
    font-weight: 720;
    margin: 30px 0;
}

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

.lede {
    max-width: 700px;
    font-size: clamp(20px, 2.5vw, 27px);
    line-height: 1.42;
    color: #c9d3db;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 48px;
    color: var(--muted);
    font-size: 12px;
}

.hero-meta span:not(:last-child):after {
    content: ' /';
    margin-left: 20px;
    color: #526577;
}

.intro {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 25px;
    padding: 55px 0;
    border-top: 1px solid var(--line);
}

h2 {
    font-size: clamp(27px, 3.3vw, 42px);
    letter-spacing: -.04em;
    line-height: 1.2;
    margin: 8px 0 17px;
}

.intro p:not(.section-tag),
.method p,
.insight-grid p {
    color: #b7c3cf;
    max-width: 800px;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin: 22px 0 80px;
}

.metric {
    border: 1px solid var(--line);
    padding: 28px 20px;
    background: var(--panel);
    min-height: 226px;
}

.metric-label {
    display: block;
    min-height: 45px;
}

.metric strong {
    display: block;
    font-size: clamp(39px, 4.8vw, 61px);
    letter-spacing: -.065em;
    line-height: 1.3;
    color: var(--mint);
}

.metric strong span {
    font-size: .55em;
}

.metric p,
.note,
.fine {
    color: var(--muted);
    font-size: 13px;
}

.panel {
    padding: 35px;
    margin: 22px 0 42px;
    border: 1px solid var(--line);
    background: var(--panel);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 20px;
}

.stacked {
    display: flex;
    height: 34px;
    overflow: hidden;
    border-radius: 3px;
    margin-top: 36px;
}

.stacked span {
    display: block;
}

.legend {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin: 24px 0;
}

.legend span {
    color: var(--muted);
    font-size: 13px;
}

.legend b {
    color: var(--ink);
    margin-left: 7px;
}

.legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 8px;
}

.controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding: 22px 0;
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

select {
    background: #0a1623;
    color: var(--ink);
    border: 1px solid #426174;
    padding: 12px 16px;
    border-radius: 4px;
    max-width: 100%;
}

.bar-row {
    display: grid;
    grid-template-columns: 245px 1fr 65px;
    align-items: center;
    gap: 18px;
    margin: 19px 0;
    font-size: 14px;
}

.track {
    height: 19px;
    background: #273747;
    border-radius: 2px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: var(--mint);
    transition: width .35s ease;
}

.bar-value {
    text-align: right;
    font-size: 18px;
    font-weight: 700;
}

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

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

.fact strong {
    font-size: 55px;
    color: var(--mint);
    letter-spacing: -.06em;
}

.fact p {
    max-width: 400px;
    color: var(--muted);
}

.insights {
    padding: 60px 0;
}

.insight-grid {
    grid-template-columns: repeat(3, 1fr);
}

.insight-grid article {
    border-top: 1px solid var(--mint);
    padding: 17px 14px 10px 0;
}

.insight-grid span {
    color: var(--mint);
    font-size: 12px;
}

.insight-grid h3 {
    font-size: 20px;
    line-height: 1.3;
}

.method {
    border-top: 1px solid var(--line);
    padding: 52px 0 90px;
}

.method p {
    font-size: 15px;
}

.links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.links a {
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid #347c75;
    padding-bottom: 5px;
}

footer {
    border-top: 1px solid var(--line);
    border-bottom: none;
    padding: 28px 0 44px;
}

/* TABLET */
@media (max-width: 850px) {
    .metrics {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

/* MOBILE */
@media (max-width: 560px) {
    .shell {
        padding: 0 17px;
    }

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

    .hero {
        padding: 75px 0 50px;
    }

    .metrics,
    .two-col {
        grid-template-columns: 1fr;
    }

    .metric {
        min-height: unset;
    }

    .panel {
        padding: 20px;
    }

    .section-head {
        flex-direction: column;
    }

    .bar-row {
        grid-template-columns: 1fr 60px;
        gap: 5px;
    }

    .bar-row .track {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .bar-value {
        grid-column: 2;
        grid-row: 1;
    }

    .hero-meta span:not(:last-child):after {
        content: '';
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* STUDY 07 — PENROSE PARTICLES LIGHT THEME */

.lede,
.intro p:not(.section-tag),
.method p,
.insight-grid p,
.fact p {
    color: var(--muted);
}

.metric,
.panel {
    background: #ffffff;
    border-color: var(--line);
}

.metric strong,
.fact strong {
    color: var(--ink);
}

.eyebrow,
.section-tag,
.brand span,
.insight-grid span {
    color: var(--mint);
}

select {
    background: #ffffff;
    color: var(--ink);
    border-color: var(--line);
}

.track {
    background: #edf2f7;
}

.stacked span:last-child {
    background: #a6b1be !important;
}

.hero-meta span:not(:last-child):after {
    color: var(--line);
}

.links a {
    border-bottom-color: var(--mint);
}