:root {
    --ink: #18221f;
    --muted: #5e6a65;
    --paper: #ffffff;
    --wash: #f5f8f3;
    --line: #d7dfd7;
    --teal: #0f766e;
    --teal-dark: #064d48;
    --clay: #9f5d45;
    --moss: #5d7044;
    --gold: #c29b42;
    --header-height: 78px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    letter-spacing: 0;
}

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

a {
    color: inherit;
}

.skip-link,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link:focus {
    width: auto;
    height: auto;
    clip: auto;
    left: 18px;
    top: 18px;
    z-index: 20;
    background: var(--paper);
    padding: 10px 14px;
    border: 1px solid var(--line);
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 10;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 0 38px;
    color: #fff;
    transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.has-shadow,
.nav-open .site-header {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 40px rgba(24, 34, 31, 0.12);
    backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
    position: relative;
    width: min(256px, 54vw);
    height: 60px;
}

.brand-logo {
    position: absolute;
    inset: 0 auto 0 0;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    transition: opacity 160ms ease;
}

.brand-logo-dark {
    opacity: 0;
}

.site-header.has-shadow .brand-logo-light,
.nav-open .site-header .brand-logo-light {
    opacity: 0;
}

.site-header.has-shadow .brand-logo-dark,
.nav-open .site-header .brand-logo-dark {
    opacity: 1;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-nav a {
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    transition: background 160ms ease, transform 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.site-header.has-shadow .site-nav a:hover,
.site-header.has-shadow .site-nav a[aria-current="page"],
.nav-open .site-nav a[aria-current="page"] {
    background: #e8f1ed;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid currentColor;
    border-radius: 8px;
    color: inherit;
    background: transparent;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
}

.hero,
.page-hero {
    position: relative;
    min-height: 92svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: #fff;
}

.compact-hero {
    min-height: 72svh;
}

.hero-image,
.page-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    animation: imageSettle 1400ms ease forwards;
}

.diagrams-hero > img {
    object-fit: cover;
    filter: saturate(0.85) brightness(0.84);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.16) 58%, rgba(0, 0, 0, 0.04)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.04) 52%);
}

.hero-content {
    position: relative;
    width: min(720px, calc(100% - 48px));
    margin: 0 0 9svh 6vw;
    animation: heroRise 700ms ease 120ms both;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 68px;
    line-height: 0.96;
    font-weight: 500;
    text-wrap: balance;
}

.hero p,
.page-hero p {
    max-width: 660px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow {
    color: #f1d991;
}

.button,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 800;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.button {
    background: var(--teal);
    color: #fff;
}

.button:hover,
.button-secondary:hover,
.text-link:hover {
    transform: translateY(-2px);
}

.button-secondary {
    border: 1px solid rgba(255, 255, 255, 0.72);
    color: #fff;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.section {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 96px 0;
}

.section h2 {
    margin: 0 0 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 46px;
    line-height: 1.05;
    font-weight: 500;
    text-wrap: balance;
}

.section h3 {
    margin: 0 0 8px;
    font-size: 24px;
    line-height: 1.2;
}

.intro-grid,
.story-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 68px;
    align-items: center;
}

.wide-media,
.split-detail figure {
    margin: 0;
}

.wide-media img,
.split-detail img {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 8px;
}

figcaption {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

.band {
    width: 100%;
    padding: 96px max(24px, calc((100% - 1180px) / 2));
    background: var(--wash);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.band h2 {
    max-width: 860px;
}

.signal-list {
    margin-top: 52px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0 32px;
}

.signal-list > div {
    border-top: 1px solid var(--line);
    padding: 24px 0 10px;
}

.signal-list span,
.instrument-list span,
.timeline-item span {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--clay);
    font-weight: 900;
    font-size: 13px;
}

.signal-list strong {
    display: block;
    font-size: 20px;
}

.signal-list p,
.systems-grid p {
    color: var(--muted);
}

.split-detail {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 72px;
    align-items: center;
}

.text-link {
    display: inline-block;
    color: var(--teal-dark);
    font-weight: 900;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
    transition: transform 160ms ease;
}

.story-lead {
    align-self: start;
    position: sticky;
    top: 118px;
}

.story-copy {
    color: var(--muted);
    font-size: 18px;
}

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

.timeline-item {
    border-top: 2px solid var(--moss);
    padding-top: 22px;
}

.instrument-list article {
    display: grid;
    grid-template-columns: 84px 0.7fr 1.3fr;
    gap: 28px;
    padding: 34px 0;
    border-top: 1px solid var(--line);
}

.instrument-list article:last-child {
    border-bottom: 1px solid var(--line);
}

.instrument-list h3 {
    margin-top: 0;
}

.instrument-list p {
    margin: 0;
    color: var(--muted);
}

.systems-strip {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
    align-items: start;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 34px;
}

.chart-lead {
    max-width: 900px;
}

.latest-diagrams-note {
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal);
    border-radius: 8px;
    background: var(--wash);
    color: var(--muted);
}

.latest-diagrams-note strong {
    color: var(--ink);
}

.latest-diagrams-note p {
    margin: 0 0 18px;
}

.latest-diagrams-note a {
    color: var(--teal-dark);
    font-weight: 800;
    overflow-wrap: anywhere;
    text-underline-offset: 4px;
}

.latest-diagrams-note .latest-forecasts-button {
    color: #fff;
    text-decoration: none;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
    padding-top: 0;
}

.figure-panel {
    margin: 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.figure-panel img {
    width: 100%;
    height: 380px;
    object-fit: contain;
    background: #fff;
}

.site-footer {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 40px;
    padding: 68px max(24px, calc((100% - 1180px) / 2));
    color: #fff;
    background: #18221f;
}

.site-footer .eyebrow {
    color: #f1d991;
}

.site-footer h2 {
    max-width: 720px;
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 500;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.footer-links a {
    color: #fff;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.footer-note {
    grid-column: 1 / -1;
    max-width: 780px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroRise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes imageSettle {
    to {
        transform: scale(1);
    }
}

@media (max-width: 920px) {
    :root {
        --header-height: 70px;
    }

    body {
        font-size: 16px;
    }

    .site-header {
        padding: 0 20px;
    }

    .brand {
        width: min(220px, 54vw);
        height: 38px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        inset: var(--header-height) 16px auto 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        color: var(--ink);
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: 0 20px 50px rgba(24, 34, 31, 0.16);
    }

    .site-nav.is-open {
        display: flex;
    }

    .hero,
    .page-hero {
        min-height: 82svh;
    }

    .hero-content {
        width: min(100% - 36px, 620px);
        margin: 0 18px 56px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 42px;
    }

    .section h2 {
        font-size: 34px;
    }

    .section {
        width: min(100% - 36px, 720px);
        padding: 70px 0;
    }

    .intro-grid,
    .story-layout,
    .split-detail,
    .systems-strip,
    .chart-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .signal-list,
    .timeline,
    .systems-grid {
        grid-template-columns: 1fr;
    }

    .story-lead {
        position: static;
    }

    .instrument-list article {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .wide-media img,
    .split-detail img {
        height: 360px;
    }

    .figure-panel img {
        height: 300px;
    }

    .site-footer {
        grid-template-columns: 1fr;
        padding: 58px 24px;
    }
}

@media (max-width: 540px) {
    .brand {
        width: min(184px, 52vw);
        height: 34px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 34px;
    }

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

    .button,
    .button-secondary {
        width: 100%;
    }

    .section h2 {
        font-size: 29px;
    }

    .wide-media img,
    .split-detail img {
        height: 300px;
    }
}
