:root {
    --ink: #101816;
    --paper: #f6f3ec;
    --muted: #5d6761;
    --moss: #637b43;
    --green: #1f7a4f;
    --copper: #b8663b;
    --blue: #2e6171;
    --ash: #dfe4dc;
    --charcoal: #18211f;
    --white: #fffaf2;
    --shadow: 0 24px 60px rgba(16, 24, 22, 0.18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    color: var(--white);
    transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(16, 24, 22, 0.92);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 800;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    place-items: center;
    border: 1px solid rgba(255, 250, 242, 0.55);
    background: rgba(255, 250, 242, 0.14);
    font-size: 0.78rem;
    letter-spacing: 0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    font-weight: 650;
}

.site-nav a {
    padding: 0.55rem 0.2rem;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: #d7f0b2;
}

.nav-cta {
    border-bottom: 2px solid var(--copper);
}

.nav-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid rgba(255, 250, 242, 0.5);
    background: rgba(255, 250, 242, 0.12);
    color: var(--white);
}

.nav-toggle span {
    display: block;
    width: 1.1rem;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
}

.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--charcoal);
}

.hero-image,
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-image {
    object-fit: cover;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(10, 16, 14, 0.9), rgba(10, 16, 14, 0.58) 45%, rgba(10, 16, 14, 0.12)),
        linear-gradient(0deg, rgba(16, 24, 22, 0.82), rgba(16, 24, 22, 0.05) 42%);
}

.hero-content {
    position: relative;
    width: min(760px, calc(100% - 2rem));
    margin: 0 clamp(1rem, 6vw, 5rem) 8vh;
    color: var(--white);
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--copper);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    overflow-wrap: normal;
    word-break: normal;
}

p {
    overflow-wrap: break-word;
}

h1 {
    margin: 0;
    font-size: clamp(4rem, 12vw, 8.5rem);
    line-height: 0.9;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 4.6rem);
    line-height: 1;
    letter-spacing: 0;
}

h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.2;
}

.hero-copy {
    max-width: 670px;
    margin: 1.35rem 0 1.6rem;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions,
.connect {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
}

.button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 800;
    text-decoration: none;
}

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

.button.secondary {
    border-color: rgba(255, 250, 242, 0.52);
    color: var(--white);
}

.band {
    padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
}

.section-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
    gap: clamp(2rem, 6vw, 6rem);
    max-width: 1180px;
    margin: 0 auto;
}

.prose p:first-child,
.panel p:first-of-type {
    margin-top: 0;
}

.prose,
.panel p,
.muted {
    color: var(--muted);
    font-size: 1.05rem;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--charcoal);
    color: var(--white);
}

.metric {
    min-height: 11rem;
    display: grid;
    align-content: center;
    gap: 0.2rem;
    padding: 2rem clamp(1rem, 5vw, 4rem);
    border-right: 1px solid rgba(255, 250, 242, 0.18);
}

.metric-trigger {
    width: fit-content;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.metric-trigger:focus-visible {
    outline: 3px solid #d7f0b2;
    outline-offset: 0.35rem;
}

.metric strong,
.metric-trigger strong {
    color: #d7f0b2;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.95;
}

.metric span {
    color: rgba(255, 250, 242, 0.78);
    font-weight: 750;
}

.modal-layer {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(10, 16, 14, 0.68);
    backdrop-filter: blur(8px);
}

.modal-layer[hidden],
.metric-modal[hidden] {
    display: none;
}

.metric-modal {
    position: relative;
    width: min(34rem, 100%);
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid rgba(255, 250, 242, 0.2);
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
}

.metric-modal h2 {
    max-width: 28rem;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.metric-modal p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.modal-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border: 1px solid var(--ash);
    border-radius: 6px;
    background: #edf1e8;
    color: var(--ink);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
}

.modal-close:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 0.2rem;
}

.split {
    display: grid;
    grid-template-columns: minmax(22rem, 0.9fr) minmax(24rem, 1fr);
    gap: clamp(1.5rem, 5vw, 5rem);
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
}

.panel {
    min-width: 0;
    border-left: 5px solid var(--green);
    padding-left: clamp(1rem, 3vw, 2rem);
}

.panel h2 {
    max-width: 11ch;
}

.tabs {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--ash);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

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

.tab-button {
    min-height: 3.3rem;
    border: 0;
    border-right: 1px solid var(--ash);
    background: #edf1e8;
    color: var(--ink);
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}

.tab-button:last-child {
    border-right: 0;
}

.tab-button.is-active {
    background: var(--green);
    color: var(--white);
}

.tab-panel {
    display: none;
    padding: clamp(1.4rem, 4vw, 2.4rem);
}

.tab-panel.is-active {
    display: block;
}

.tab-panel p {
    color: var(--muted);
}

.section-heading {
    max-width: 860px;
    margin: 0 auto clamp(2rem, 5vw, 4rem);
    text-align: center;
}

.asset-grid,
.pathway-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1180px;
    margin: 0 auto;
}

.asset-card,
.pathway-step {
    min-height: 14rem;
    padding: 1.35rem;
    border: 1px solid var(--ash);
    border-radius: 8px;
    background: var(--white);
}

.asset-card {
    border-top: 5px solid var(--blue);
}

.asset-card p,
.pathway-step p {
    color: var(--muted);
}

.pathway {
    background: #e9eee4;
}

.pathway-step span {
    display: inline-grid;
    width: 2.7rem;
    height: 2.7rem;
    margin-bottom: 1rem;
    place-items: center;
    border-radius: 50%;
    background: var(--charcoal);
    color: var(--white);
    font-weight: 900;
}

.impact {
    background: var(--charcoal);
    color: var(--white);
}

.impact .muted {
    color: rgba(255, 250, 242, 0.72);
}

.calculator {
    padding: clamp(1.25rem, 4vw, 2rem);
    border: 1px solid rgba(255, 250, 242, 0.18);
    border-radius: 8px;
    background: rgba(255, 250, 242, 0.08);
    min-width: 0;
}

.calculator label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 850;
}

.range-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

input[type="range"] {
    width: 100%;
    accent-color: #d7f0b2;
}

output {
    min-width: 6.4rem;
    text-align: right;
    font-weight: 900;
}

.calc-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(8.75rem, 1fr));
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.calc-results div {
    min-width: 0;
    min-height: 8rem;
    padding: clamp(0.75rem, 2vw, 1rem);
    border-radius: 8px;
    background: rgba(255, 250, 242, 0.12);
}

.calc-results strong {
    display: block;
    color: #d7f0b2;
    max-width: 100%;
    font-size: clamp(1.2rem, 2.2vw, 1.75rem);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    white-space: nowrap;
}

.calc-results span {
    display: block;
    margin-top: 0.55rem;
    color: rgba(255, 250, 242, 0.76);
    font-size: 0.92rem;
    line-height: 1.35;
}

.connect {
    justify-content: space-between;
    padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 5vw, 4rem);
    background: var(--moss);
    color: var(--white);
}

.connect > div {
    max-width: 780px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem clamp(1rem, 5vw, 4rem);
    background: #0c1110;
    color: rgba(255, 250, 242, 0.72);
    font-size: 0.92rem;
}

@media (max-width: 1080px) {
    .split {
        grid-template-columns: 1fr;
    }

    .panel h2 {
        max-width: 14ch;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        padding: 0.75rem 1rem 1.2rem;
        background: rgba(16, 24, 22, 0.96);
    }

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

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

    .asset-grid,
    .pathway-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 88vh;
    }

    .hero-overlay {
        background:
            linear-gradient(0deg, rgba(10, 16, 14, 0.92), rgba(10, 16, 14, 0.3)),
            linear-gradient(90deg, rgba(10, 16, 14, 0.7), rgba(10, 16, 14, 0.22));
    }

    .metrics,
    .asset-grid,
    .pathway-grid,
    .calc-results,
    .tab-list {
        grid-template-columns: 1fr;
    }

    .metric {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 250, 242, 0.18);
    }

    .range-row {
        grid-template-columns: 1fr;
    }

    output {
        text-align: left;
    }

    .connect,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}
