/* ================================
   BASE
================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #ffffff;
    color: #111b31;
    font-family: Arial, Helvetica, sans-serif;
}

.study {
    width: min(1120px, 88%);
    margin: 0 auto;
}


/* ================================
   HEADER
================================ */

.study-header {
    max-width: 820px;
    padding: 70px 0 75px;
}

.back-link {
    display: inline-block;
    margin-bottom: 55px;
    color: #6e7888;
    font-size: 12px;
    text-decoration: none;
}

.back-link:hover {
    color: #2d65a5;
}

.eyebrow,
.section-label {
    margin: 0 0 15px;
    color: #2d65a5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.study-header h1 {
    margin: 0;
    color: #111b31;
    font-size: clamp(44px, 7vw, 82px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.intro {
    max-width: 680px;
    margin: 28px 0 0;
    color: #657083;
    font-size: 16px;
    line-height: 1.7;
}

.source-line {
    margin-top: 35px;
    color: #87909e;
    font-size: 11px;
}

.source-line span {
    margin-right: 10px;
    color: #2d65a5;
    font-weight: 700;
}


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

.hero-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;

    padding: 70px 0;
    border-top: 1px solid #dfe4ea;
}

.hero-number {
    margin: 0;
    color: #111b31;
    font-size: clamp(80px, 12vw, 150px);
    font-weight: 600;
    letter-spacing: -0.07em;
    line-height: 0.9;
}

.hero-description {
    max-width: 520px;
    margin: 25px 0 0;
    color: #596578;
    font-size: 16px;
    line-height: 1.65;
}

.year-summary {
    align-self: end;
    border-top: 1px solid #dfe4ea;
}

.year-summary div {
    display: flex;
    justify-content: space-between;

    padding: 17px 0;
    border-bottom: 1px solid #dfe4ea;
}

.year-summary span {
    color: #8c95a3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.year-summary strong {
    color: #111b31;
    font-size: 13px;
    font-weight: 600;
}


/* ================================
   SECTION HEADINGS
================================ */

.survival-section,
.industry-section,
.context-section,
.methodology,
.source-section {
    padding: 75px 0;
    border-top: 1px solid #dfe4ea;
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: end;

    margin-bottom: 50px;
}

.section-heading h2,
.context-grid h2 {
    margin: 0;
    color: #111b31;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.section-heading>p {
    max-width: 450px;
    margin: 0;
    color: #727c8c;
    font-size: 13px;
    line-height: 1.6;
}


/* ================================
   PARTICLE VISUALIZATION
================================ */

.visualization {
    padding: 35px;
    background: #fafbfc;
    border: 1px solid #e0e5eb;
    border-radius: 4px;
}

.visualization-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 35px;
}

.visualization-header>div {
    display: flex;
    flex-direction: column;
}

.small-label {
    margin-bottom: 6px;
    color: #8b95a3;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.visualization-header strong {
    color: #111b31;
    font-size: 28px;
    font-weight: 600;
}

.current-rate {
    text-align: right;
}

.current-rate strong {
    color: #2d65a5;
}


/* 100 DOTS */

.particle-grid {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: 13px;

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

.particle {
    width: 9px;
    height: 9px;
    margin: auto;

    background: #2d65a5;
    border-radius: 50%;

    transition:
        background-color 0.25s ease,
        opacity 0.25s ease;
}

.particle.inactive {
    background: #dfe4ea;
    opacity: 0.55;
}


/* ================================
   SLIDER
================================ */

.timeline {
    margin-top: 25px;
}

input[type="range"] {
    width: 100%;
    height: 3px;

    appearance: none;
    -webkit-appearance: none;

    background: #d7dde5;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    width: 15px;
    height: 15px;

    appearance: none;
    -webkit-appearance: none;

    background: #2d65a5;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 15px;
    height: 15px;

    background: #2d65a5;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;

    margin-top: 12px;
    color: #929aa7;
    font-size: 9px;
}


/* ================================
   YEAR DATA
================================ */

.year-data {
    display: grid;
    grid-template-columns: repeat(11, 1fr);

    margin-top: 30px;
    border-top: 1px solid #e1e6ec;
    border-bottom: 1px solid #e1e6ec;
}

.year-cell {
    padding: 15px 4px;
    text-align: center;
}

.year-cell span {
    display: block;
    margin-bottom: 6px;

    color: #939ba8;
    font-size: 8px;
    font-weight: 700;
}

.year-cell strong {
    color: #374256;
    font-size: 11px;
}


/* ================================
   INDUSTRIES
================================ */

.industry-list {
    width: 100%;
}

.industry-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) 3fr 65px;
    gap: 25px;
    align-items: center;

    padding: 14px 0;
    border-top: 1px solid #e5e9ee;
}

.industry-row:last-child {
    border-bottom: 1px solid #e5e9ee;
}

.industry-name {
    color: #3b4658;
    font-size: 12px;
}

.industry-bar-track {
    width: 100%;
    height: 5px;
    background: #edf0f4;
}

.industry-bar {
    height: 100%;
    background: #2d65a5;
}

.industry-value {
    color: #111b31;
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

.industry-row.total {
    background: #fafbfc;
}

.industry-row.total .industry-name,
.industry-row.total .industry-value {
    font-weight: 700;
}


/* ================================
   CONTEXT
================================ */

.context-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.context-copy p {
    margin: 0 0 20px;
    color: #687386;
    font-size: 13px;
    line-height: 1.75;
}


/* ================================
   METHODOLOGY
================================ */

.methodology {
    max-width: 760px;
}

.methodology>p:not(.section-label) {
    color: #687386;
    font-size: 12px;
    line-height: 1.75;
}


/* ================================
   SOURCE
================================ */

.source-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.source-section h3 {
    margin: 0 0 8px;
    color: #111b31;
    font-size: 18px;
}

.source-section p:not(.section-label) {
    margin: 0;
    color: #788291;
    font-size: 12px;
    line-height: 1.6;
}

.source-button {
    flex-shrink: 0;

    padding: 11px 17px;

    background: #2d65a5;
    border-radius: 4px;

    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.source-button:hover {
    background: #1e528e;
}


/* ================================
   FOOTER
================================ */

footer {
    border-top: 1px solid #e1e6ec;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

    width: min(1120px, 88%);
    margin: 0 auto;
    padding: 25px 0;
}

.footer-content a {
    color: #2d65a5;
    font-size: 10px;
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.footer-content p {
    margin: 0;
    color: #9aa2ad;
    font-size: 10px;
}


/* ================================
   RESPONSIVE
================================ */

@media (max-width: 800px) {

    .study {
        width: 90%;
    }

    .study-header {
        padding-top: 40px;
    }

    .hero-section,
    .section-heading,
    .context-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .particle-grid {
        grid-template-columns: repeat(10, 1fr);
        gap: 14px;
    }

    .year-data {
        overflow-x: auto;
    }

    .industry-row {
        grid-template-columns: 1.5fr 2fr 50px;
        gap: 12px;
    }

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

}

@media (max-width: 520px) {

    .hero-number {
        font-size: 80px;
    }

    .visualization {
        padding: 22px;
    }

    .industry-row {
        grid-template-columns: 1fr 50px;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 8px;
    }

}