* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #f3f1eb;
    color: #191919;
    font-family: "IBM Plex Mono", monospace;
    font-weight: 400;
}

/* HERO */

.hero {
    min-height: 82vh;
    position: relative;

    display: flex;
    align-items: center;

    padding: 70px 8vw;
}

.hero-inner {
    max-width: 780px;
}

.kicker {
    margin: 0 0 34px;

    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.13em;

    color: #6f6d67;
}

h1 {
    margin: 0;

    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;

    font-weight: 400;
}

.dek {
    max-width: 620px;

    margin: 36px 0 0;

    font-size: 16px;
    line-height: 1.7;

    color: #4f4d48;
}

.byline {
    margin-top: 32px;

    font-size: 11px;
    letter-spacing: 0.1em;

    color: #6f6d67;
}

.scroll-cue {
    position: absolute;

    bottom: 24px;
    left: 8vw;

    font-size: 10px;
    letter-spacing: 0.12em;

    color: #6f6d67;
}


/* MOBILE */

@media (max-width: 700px) {

    .hero {
        padding: 60px 28px;
    }

    h1 {
        font-size: 38px;
    }

    .dek {
        font-size: 14px;
    }

    .scroll-cue {
        left: 28px;
    }

}

/* -----------------------
   GEOGRAPHY SCROLLYTELLING
----------------------- */

.geography-scrolly {
    position: relative;
    width: 100%;
}


/* sticky visualization */

.geography-graphic {
    position: sticky;
    top: 0;

    width: 100%;
    height: 100vh;

    overflow: hidden;
}


/* D3 container */

#geography-viz {
    position: relative;

    width: 100%;
    height: 100%;
}


#geography-viz svg {
    display: block;

    width: 100%;
    height: 100%;
}


/* scrolling text layer */

.geography-steps {
    position: relative;
    z-index: 2;

    margin-top: -100vh;
}


/* each narrative moment */

.geography-step {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding-left: 8vw;

    pointer-events: none;
}


/* copy */

.step-copy {
    width: min(390px, 84vw);

    padding: 22px 22px;

    background: rgba(243, 241, 235, 0.96);

    border-left: 1px solid #cbc8bf;
}


.section-label {
    margin: 0 0 16px;

    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;

    color: #4f4d48;
}


.step-copy h2 {
    margin: 0 0 18px;

    font-size: clamp(23px, 2.5vw, 34px);
    line-height: 1.18;

    font-weight: 400;
    letter-spacing: -0.035em;
}


.step-copy p:last-child {
    margin: 0;

    max-width: 36ch;

    font-size: 13px;
    line-height: 1.65;

    color: #5c5953;
}


/* mobile */

@media (max-width: 700px) {

    .geography-step {
        align-items: flex-end;

        padding:
            0
            24px
            8vh;
    }

    .step-copy {
        width: 100%;
    }

}

/* -----------------------
   ACQUISITION SCROLLYTELLING
----------------------- */

.acquisition-scrolly {
    position: relative;
    width: 100%;
}

.acquisition-graphic {
    position: sticky;
    top: 0;

    width: 100%;
    height: 100vh;

    overflow: hidden;
}

#acquisition-viz {
    width: 100%;
    height: 100%;
}

#acquisition-viz svg {
    display: block;
    width: 100%;
    height: 100%;
}

.acquisition-steps {
    position: relative;
    z-index: 2;

    margin-top: -100vh;
}

.acquisition-step {
    min-height: 100vh;

    display: flex;
    align-items: center;

    padding-left: 8vw;

    pointer-events: none;
}

@media (max-width: 700px) {

    .acquisition-step {
        align-items: flex-end;

        padding:
            0
            24px
            8vh;
    }

}

/* -----------------------
   FOLLOWING THE RECORD
----------------------- */

.record-scrolly {
    position: relative;
    width: 100%;
}

.record-graphic {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#record-viz {
    position: relative;
    width: 100%;
    height: 100%;
}

#record-viz svg {
    display: block;
    width: 100%;
    height: 100%;
}

.record-steps {
    position: relative;
    z-index: 2;
    margin-top: -100vh;
}

.record-step {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-left: 8vw;
    pointer-events: none;
}

.source-note {
    margin-top: 18px !important;
    font-size: 9px !important;
    letter-spacing: 0.04em;
}

.source-note a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    pointer-events: auto;
}

@media (max-width: 700px) {
    .record-step {
        align-items: flex-end;
        padding: 0 24px 8vh;
    }
}

/* -----------------------
   ARTIFACT REVEAL
----------------------- */

.artifact-layer {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.artifact-card {
    pointer-events: auto;
}

.artifact-card {
    position: absolute;

    width: 125px;

    opacity: 0;
    transform: translate(-50%, -50%) scale(0.82);

    transition:
        opacity 0.7s ease,
        transform 0.8s ease;

    text-align: left;
    pointer-events: auto;
}

.artifact-card.visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.artifact-card img {
    display: block;
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: #ebe8e0;
}

.artifact-meta {
    padding-top: 10px;
}

.artifact-title {
    margin: 0 0 4px;

    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
}

.artifact-detail {
    margin: 0;

    font-size: 8px;
    line-height: 1.45;

    color: #6f6d67;
}

.artifact-link {
    display: inline-block;

    margin-top: 7px;

    font-size: 8px;
    line-height: 1.3;

    color: #191919;

    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 700px) {

    .artifact-card {
        width: 88px;
    }

    .artifact-card img {
        height: 82px;
    }

    .artifact-meta {
        padding-top: 6px;
    }

    .artifact-title {
        margin-bottom: 3px;
        font-size: 8px;
        line-height: 1.2;
    }

    .artifact-detail {
        font-size: 6.5px;
        line-height: 1.3;
    }

    .artifact-link {
        margin-top: 5px;
        font-size: 6.5px;
    }

}

.methodology {
    padding: 120px 8vw 140px;
    border-top: 1px solid #d7d3ca;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.85fr);
    gap: 8vw;
    align-items: center;
}

.methodology-inner {
    max-width: 720px;
}

.methodology-viz {
    width: 100%;
    max-width: 520px;
    justify-self: end;
}

.method-stat {
    margin-bottom: 48px;
}

.method-stat svg {
    display: block;
    width: 100%;
    height: 125px;
    overflow: visible;
}

.method-stat-label {
    margin: 8px 0 0;

    font-size: 9px;
    line-height: 1.4;
    letter-spacing: 0.08em;

    color: #6f6d67;
}

.method-range {
    margin-top: 8px;
}

.method-range-number {
    font-size: clamp(22px, 2.3vw, 32px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

@media (max-width: 900px) {

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

    .methodology-viz {
        justify-self: start;
        max-width: 100%;
        margin-top: 40px;
    }

}

@media (max-width: 700px) {

    .record-step[data-record-step="3"] {
        min-height: 115vh;
    }

}