:root {
    --ink: #0b0d0d;
    --ink-soft: #151918;
    --paper: #f0ece2;
    --paper-bright: #f8f5ee;
    --sand: #d7ccb9;
    --copper: #b98a58;
    --copper-light: #d7b17e;
    --muted: #756f65;
    --line: rgba(20, 24, 23, .16);
    --red: #bd3437;
    --green: #2e7357;
    --yellow: #d3a52d;
    --blue: #326c92;
    --white: #ecebe4;
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Segoe UI", Arial, Helvetica, sans-serif;
    --shell: min(1240px, calc(100vw - 64px));
    --header-height: 82px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 28px);
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

::selection {
    background: var(--copper);
    color: var(--ink);
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.section-space {
    padding-block: clamp(90px, 11vw, 170px);
}

.skip-link {
    position: fixed;
    z-index: 200;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    transform: translateY(-150%);
    background: var(--paper-bright);
    color: var(--ink);
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

.reading-progress {
    position: fixed;
    z-index: 110;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
}

.reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--red), var(--yellow), var(--green), var(--blue));
}

.site-header {
    position: absolute;
    z-index: 100;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    color: var(--paper-bright);
    transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.site-header.is-fixed {
    position: fixed;
    background: rgba(11, 13, 13, .93);
    box-shadow: 0 12px 36px rgba(0, 0, 0, .18);
    backdrop-filter: blur(18px);
}

.site-header.is-hidden {
    transform: translateY(-105%);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    display: inline-flex;
    gap: 13px;
    align-items: center;
    min-width: max-content;
}

.brand__star {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    filter: drop-shadow(0 2px 7px rgba(0, 0, 0, .2));
}

.brand__name {
    font-size: 16px;
    font-weight: 300;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.brand__name strong {
    font-weight: 700;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: clamp(15px, 1.8vw, 29px);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .035em;
}

.primary-nav > a {
    position: relative;
    padding-block: 10px;
}

.primary-nav > a:not(.nav-cta)::after {
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--copper-light);
    content: "";
    transition: width .25s ease;
}

.primary-nav > a:hover::after,
.primary-nav > a:focus-visible::after {
    width: 100%;
}

.nav-cta {
    display: inline-flex;
    gap: 16px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .35);
    padding: 10px 17px !important;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.nav-cta:hover {
    border-color: var(--paper-bright);
    background: var(--paper-bright);
    color: var(--ink);
}

.nav-cta span,
.button span,
.text-link span {
    transition: transform .25s ease;
}

.nav-cta:hover span,
.button:hover span,
.text-link:hover span {
    transform: translate(3px, -2px);
}

.menu-toggle {
    display: none;
}

.eyebrow {
    margin: 0 0 21px;
    color: var(--copper);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .23em;
    line-height: 1.3;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

h1,
h2 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -.035em;
}

h1 em,
h2 em {
    color: var(--copper);
    font-weight: 400;
}

.button {
    display: inline-flex;
    gap: 28px;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border: 1px solid transparent;
    padding: 13px 23px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1.2;
    text-transform: uppercase;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

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

.button--primary {
    background: var(--copper-light);
    color: var(--ink);
}

.button--primary:hover {
    background: #ebca9e;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .22);
}

.button--ghost {
    border-color: rgba(255, 255, 255, .48);
    color: var(--paper-bright);
}

.button--ghost:hover {
    border-color: var(--paper-bright);
    background: rgba(255, 255, 255, .09);
}

.button--light {
    background: var(--paper-bright);
    color: var(--ink);
}

.text-link {
    display: inline-flex;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
}

.home-hero {
    position: relative;
    min-height: max(720px, 100svh);
    overflow: hidden;
    background: var(--ink);
    color: var(--paper-bright);
}

.home-hero__image,
.story-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 7, 7, .93) 0%, rgba(5, 7, 7, .67) 42%, rgba(5, 7, 7, .08) 76%),
        linear-gradient(0deg, rgba(5, 7, 7, .55), transparent 45%);
}

.home-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: max(720px, 100svh);
    padding-top: var(--header-height);
}

.home-hero h1 {
    max-width: 970px;
    margin-bottom: 30px;
    font-size: clamp(55px, 7.7vw, 116px);
    line-height: .92;
}

.home-hero__dek {
    max-width: 650px;
    margin-bottom: 36px;
    color: rgba(248, 245, 238, .78);
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.home-hero__index {
    position: absolute;
    z-index: 2;
    right: max(32px, calc((100vw - 1240px) / 2));
    bottom: 43px;
    display: flex;
    gap: 12px;
    align-items: center;
    color: rgba(255, 255, 255, .65);
    font-size: 10px;
    letter-spacing: .15em;
}

.home-hero__index i {
    width: 70px;
    height: 1px;
    background: rgba(255, 255, 255, .4);
}

.thesis-intro {
    background:
        radial-gradient(circle at 5% 15%, rgba(185, 138, 88, .12), transparent 24%),
        var(--paper);
}

.thesis-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(340px, .72fr);
    gap: clamp(60px, 9vw, 150px);
}

.thesis-intro__visual {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    background: var(--ink-soft);
}

.thesis-intro__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thesis-intro__visual span {
    position: absolute;
    right: 14px;
    bottom: 13px;
    left: 14px;
    color: rgba(255, 255, 255, .76);
    font-size: 9px;
    letter-spacing: .06em;
    text-shadow: 0 1px 5px #000;
    text-transform: uppercase;
}

.history-foundation {
    background: var(--paper-bright);
}

.history-foundation__intro {
    display: grid;
    grid-template-columns: 1fr .75fr;
    gap: clamp(50px, 9vw, 140px);
    align-items: end;
    margin-bottom: 70px;
}

.history-foundation__intro > p {
    margin: 0 0 5px;
    color: #4b4c47;
    font-family: var(--serif);
    font-size: clamp(19px, 1.7vw, 23px);
}

.history-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--ink);
}

.history-timeline article {
    min-height: 260px;
    border-right: 1px solid var(--line);
    padding: 27px clamp(18px, 2vw, 31px);
}

.history-timeline article:first-child { border-left: 1px solid var(--line); }

.history-timeline span {
    color: var(--copper);
    font-family: var(--serif);
    font-size: 17px;
}

.history-timeline h3 {
    margin: 58px 0 13px;
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.1;
}

.history-timeline p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.section-heading h2,
.chapter-field__header h2,
.feature-split h2,
.closing-invitation h2 {
    margin-bottom: 0;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.04;
}

.prose-lead > p {
    margin-bottom: 26px;
    color: #393a36;
    font-family: var(--serif);
    font-size: clamp(19px, 1.7vw, 24px);
    line-height: 1.6;
}

.prose-lead .text-link {
    margin-top: 15px;
}

.chapter-field {
    background: var(--ink);
    color: var(--paper-bright);
}

.chapter-field__header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 62px;
}

.chapter-field__header > p {
    max-width: 360px;
    margin-bottom: 6px;
    color: rgba(248, 245, 238, .58);
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px 24px;
}

.chapter-card a {
    display: block;
}

.chapter-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #242928;
}

.chapter-card:nth-child(1) .chapter-card__media,
.chapter-card:nth-child(6) .chapter-card__media {
    aspect-ratio: 16 / 11;
}

.chapter-card__media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, .52));
    content: "";
}

.chapter-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.78) contrast(1.03);
    transition: transform .65s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
}

.chapter-card:hover img {
    transform: scale(1.045);
    filter: saturate(1) contrast(1.04);
}

.chapter-card__number,
.chapter-card__arrow {
    position: absolute;
    z-index: 2;
    color: var(--paper-bright);
}

.chapter-card__number {
    bottom: 16px;
    left: 18px;
    font-family: var(--serif);
    font-size: 17px;
}

.chapter-card__arrow {
    top: 16px;
    right: 16px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    font-size: 18px;
    transition: color .25s ease, background .25s ease, transform .25s ease;
}

.chapter-card:hover .chapter-card__arrow {
    transform: rotate(8deg);
    background: var(--paper-bright);
    color: var(--ink);
}

.chapter-card__body {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 25px;
    padding-top: 22px;
}

.chapter-card__body p {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--copper-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.chapter-card__body h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(25px, 2.5vw, 38px);
    font-weight: 400;
    line-height: 1.12;
}

.chapter-card__body > span {
    align-self: end;
    color: rgba(248, 245, 238, .46);
    font-size: 11px;
    text-transform: uppercase;
}

.evidence-manifesto {
    background: var(--copper);
}

.evidence-manifesto__inner {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: clamp(60px, 10vw, 170px);
    align-items: center;
}

.evidence-manifesto .eyebrow {
    color: var(--ink);
}

.evidence-manifesto__copy h2 {
    margin-bottom: 27px;
    font-size: clamp(45px, 5.3vw, 76px);
    line-height: 1;
}

.evidence-manifesto__copy h2 em {
    color: var(--paper-bright);
}

.evidence-manifesto__copy > p:not(.eyebrow) {
    max-width: 490px;
    margin-bottom: 32px;
}

.evidence-key {
    border-top: 1px solid rgba(11, 13, 13, .28);
}

.evidence-key > div {
    display: grid;
    grid-template-columns: 12px 170px 1fr;
    gap: 17px;
    align-items: baseline;
    border-bottom: 1px solid rgba(11, 13, 13, .28);
    padding: 23px 0;
}

.evidence-key strong {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 400;
}

.evidence-key p {
    margin: 0;
    font-size: 14px;
}

.evidence-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.evidence-dot--thesis { background: var(--red); }
.evidence-dot--record { background: var(--green); }
.evidence-dot--science { background: var(--blue); }
.evidence-dot--bridge { background: var(--yellow); }

.feature-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    padding-bottom: 0;
    background: var(--paper-bright);
}

.feature-split__image {
    position: relative;
    min-height: 680px;
}

.feature-split__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-split__image > span {
    position: absolute;
    bottom: 15px;
    left: 18px;
    padding: 5px 9px;
    background: rgba(11, 13, 13, .72);
    color: rgba(255, 255, 255, .75);
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.feature-split__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 610px;
    padding: 70px clamp(45px, 7vw, 120px);
}

.feature-split__copy h2 {
    margin-bottom: 32px;
}

.feature-split__copy > p:not(.eyebrow) {
    color: #474842;
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.6;
}

.feature-split__copy .text-link {
    align-self: flex-start;
    margin-top: 22px;
}

@media (min-width: 961px) {
    .feature-split--reverse .feature-split__image { order: 2; }
    .feature-split--reverse .feature-split__copy { justify-self: end; }
}

.closing-invitation {
    background:
        linear-gradient(rgba(11, 13, 13, .86), rgba(11, 13, 13, .92)),
        url("../images/generated/mountain-homelands.webp") center / cover;
    color: var(--paper-bright);
    text-align: center;
}

.closing-invitation__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.closing-invitation__line {
    display: block;
    width: 1px;
    height: 80px;
    margin-bottom: 35px;
    background: var(--copper);
}

.closing-invitation h2 {
    margin-bottom: 15px;
}

.closing-invitation p:not(.eyebrow) {
    max-width: 590px;
    margin-bottom: 34px;
    color: rgba(248, 245, 238, .68);
}

.site-footer {
    padding: 80px 0 26px;
    background: #070909;
    color: rgba(248, 245, 238, .7);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.6fr .7fr 1fr;
    gap: 70px;
    padding-bottom: 70px;
}

.brand--footer {
    margin-bottom: 20px;
    color: var(--paper-bright);
}

.site-footer__grid > div:first-child p {
    max-width: 390px;
}

.site-footer__grid > div:not(:first-child) {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer__grid p {
    margin: 0;
    font-size: 13px;
}

.site-footer__grid a:not(.brand) {
    font-size: 14px;
}

.site-footer__grid a:not(.brand):hover {
    color: var(--paper-bright);
}

.footer-label {
    margin-bottom: 10px;
    color: var(--copper-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.site-footer__base {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 22px;
    font-size: 10px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.reveal.is-pending {
    opacity: 0;
    transform: translateY(26px);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: opacity .75s ease, transform .75s cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 961px) {
    .chapter-card:nth-child(1),
    .chapter-card:nth-child(6) {
        grid-column: span 2;
    }

    .chapter-card:nth-child(1) .chapter-card__body h3,
    .chapter-card:nth-child(6) .chapter-card__body h3 {
        font-size: clamp(32px, 3.2vw, 48px);
    }
}

@media (max-width: 960px) {
    :root {
        --shell: min(100% - 40px, 760px);
        --header-height: 72px;
    }

    .menu-toggle {
        position: relative;
        z-index: 102;
        display: grid;
        grid-template-columns: auto 24px;
        gap: 3px 12px;
        align-items: center;
        border: 0;
        padding: 9px 0;
        background: transparent;
        color: inherit;
        cursor: pointer;
    }

    .menu-toggle span {
        grid-row: 1 / 3;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
    }

    .menu-toggle i {
        display: block;
        width: 24px;
        height: 1px;
        background: currentColor;
        transition: transform .2s ease;
    }

    .menu-toggle[aria-expanded="true"] i:first-of-type {
        transform: translateY(2px) rotate(45deg);
    }

    .menu-toggle[aria-expanded="true"] i:last-of-type {
        transform: translateY(-2px) rotate(-45deg);
    }

    .primary-nav {
        position: fixed;
        z-index: 101;
        inset: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
        justify-content: center;
        visibility: hidden;
        padding: 100px max(20px, calc((100vw - 720px) / 2));
        opacity: 0;
        background: rgba(7, 9, 9, .98);
        transition: visibility .25s ease, opacity .25s ease;
    }

    .primary-nav.is-open {
        visibility: visible;
        opacity: 1;
    }

    .primary-nav > a {
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        padding: 14px 0;
        font-family: var(--serif);
        font-size: clamp(27px, 7vw, 46px);
        font-weight: 400;
        letter-spacing: -.02em;
    }

    .nav-cta {
        justify-content: space-between;
        border: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .12);
        padding: 14px 0 !important;
    }

    .thesis-intro__grid,
    .evidence-manifesto__inner,
    .history-foundation__intro {
        grid-template-columns: 1fr;
        gap: 55px;
    }

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

    .thesis-intro__visual { min-height: auto; aspect-ratio: 4 / 3; }

    .chapter-field__header {
        display: block;
    }

    .chapter-field__header > p {
        margin-top: 18px;
    }

    .feature-split {
        grid-template-columns: 1fr;
    }

    .feature-split__image {
        min-height: auto;
        aspect-ratio: 4 / 3;
    }

    .feature-split__copy {
        max-width: none;
        padding: 75px 40px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__grid > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    :root {
        --shell: calc(100% - 32px);
    }

    body {
        font-size: 16px;
    }

    .section-space {
        padding-block: 82px;
    }

    .brand__name {
        font-size: 13px;
    }

    .brand__star { width: 29px; height: 29px; flex-basis: 29px; }

    .home-hero {
        min-height: 760px;
    }

    .home-hero__content {
        min-height: 760px;
        padding-bottom: 60px;
    }

    .home-hero__veil {
        background:
            linear-gradient(90deg, rgba(5, 7, 7, .9), rgba(5, 7, 7, .3)),
            linear-gradient(0deg, rgba(5, 7, 7, .85), transparent 65%);
    }

    .home-hero h1 {
        font-size: clamp(48px, 15vw, 68px);
    }

    .home-hero__dek {
        font-size: 17px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-hero__index {
        display: none;
    }

    .chapter-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .history-timeline { grid-template-columns: 1fr; }
    .history-timeline article { min-height: 205px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); }

    .chapter-card__body {
        display: block;
    }

    .chapter-card__body h3 {
        margin-bottom: 8px;
    }

    .evidence-key > div {
        grid-template-columns: 12px 1fr;
    }

    .evidence-key p {
        grid-column: 2;
    }

    .feature-split__copy {
        padding: 65px 22px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .site-footer__grid > div:first-child {
        grid-column: auto;
    }

    .site-footer__base {
        flex-direction: column;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal.is-pending {
        opacity: 1;
        transform: none;
    }
}
