:root {
    --paper: #f6f7f2;
    --navy: #102b46;
    --mint: #a5ebce;
    --green: #168261;
    --muted: #5c6c76;
    --line: #d9e0dc;
    --yellow: #efd883;
}

/* BASE */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--navy);
    font-family: Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

img,
svg {
    max-width: 100%;
}

a,
summary {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 6px;
}

section[id] {
    scroll-margin-top: 30px;
}

.wrap {
    width: min(1240px, calc(100% - 80px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    z-index: 20;
    padding: 12px 18px;
    background: var(--navy);
    color: white;
}

.skip-link:focus {
    top: 15px;
}

/* HEADER */

.site-header {
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100px;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.brand strong {
    display: block;
    font-size: 18px;
    letter-spacing: -.5px;
}

.brand small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
}

.main-nav a {
    padding-block: 8px;
    font-size: 13px;
    text-decoration: none;
}

.main-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

/* TYPOGRAPHY */

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.7;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
}

h1,
h2 {
    margin: 28px 0 24px;
    font-weight: 700;
    letter-spacing: -4px;
    line-height: 1.02;
    text-wrap: balance;
}

h1 {
    font-size: clamp(48px, 5.5vw, 78px);
}

h2 {
    font-size: clamp(40px, 4.5vw, 64px);
}

.accent {
    background: linear-gradient(
        transparent 72%,
        var(--mint) 72%
    );
}

.description {
    max-width: 430px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

/* ACTIONS */

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 17px 22px;
    background: var(--navy);
    color: white;
    border: 1px solid var(--navy);
    border-radius: 3px;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    transition: background .2s;
}

.button:hover {
    background: #244963;
}

.text-link {
    font-size: 13px;
    text-underline-offset: 5px;
}

/* HERO + STORY */

.experience {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 60px;
    position: relative;
    --hero-progress: 0;
}

.chapter {
    min-height: 85svh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-block: 70px;
}

.chapter-note {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 60px;
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
}

.visual-column {
    position: relative;
    min-width: 0;
}

.hero-stage {
    position: sticky;
    top: 8svh;
    height: 82svh;
    min-height: 500px;
    display: grid;
    align-content: center;
}

.stage-heading,
.stage-caption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--muted);
}

.stage-heading {
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
}

.stage-caption {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.signal-svg {
    display: block;
    width: 100%;
    height: auto;
}

.orbit {
    transform-origin: 280px 265px;
}

.timeline-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}

/* Animation only activates after JS initializes. */

.experience.has-motion .orbit {
    transform: rotate(calc(var(--hero-progress) * -28deg));
    opacity: calc(1 - var(--hero-progress) * .65);
}

.experience.has-motion .floating-panel {
    transform: translateY(calc(var(--hero-progress) * -45px));
    opacity: calc(1 - var(--hero-progress));
}

.experience.has-motion .timeline-path {
    stroke-dashoffset: calc(1 - var(--hero-progress));
}

.experience.has-motion .year-marker {
    opacity: var(--hero-progress);
}

.story-fact {
    border-left: 3px solid var(--green);
    padding-left: 20px;
    margin-top: 32px;
}

.story-fact strong {
    display: block;
    font-size: 36px;
    letter-spacing: -1px;
}

.story-fact span {
    font-size: 12px;
    color: var(--muted);
}

/* SHARED SECTIONS */

.work-section,
.ecosystem-section {
    padding-block: 100px;
    border-top: 1px solid var(--line);
}

.section-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: end;
    gap: 60px;
    margin-bottom: 48px;
}

.section-intro h2 {
    margin-bottom: 0;
}

.section-intro .description {
    max-width: 440px;
}

/* OUR WORK */

.work-scene {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    padding: 36px;
    margin-bottom: 52px;
    background: var(--navy);
    color: var(--paper);
    border-radius: 4px;
}

.work-scene svg {
    display: block;
    width: 100%;
    height: auto;
}

.scene-kicker {
    color: var(--mint);
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 2px;
    line-height: 1.8;
    text-transform: uppercase;
}

.work-scene h3 {
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: -1.5px;
    line-height: 1.15;
    margin: 18px 0;
    text-wrap: balance;
}

.work-scene p {
    max-width: 390px;
    margin: 0;
    color: #c3d1da;
    font-size: 14px;
    line-height: 1.8;
}

.draw-path {
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}

.has-motion .draw-path {
    stroke-dashoffset: calc(1 - var(--scene-progress, 0));
}

.program-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 56px;
}

.program-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 16px;
    padding-block: 27px;
    border-top: 1px solid var(--line);
}

.program-number {
    padding-top: 4px;
    font-family: monospace;
    font-size: 12px;
    color: var(--green);
}

.program-item h3 {
    margin: 0 0 10px;
    font-size: 18px;
    letter-spacing: -.5px;
}

.program-item p {
    margin: 0;
    max-width: 420px;
    font-size: 14px;
    line-height: 1.75;
    color: var(--muted);
}

/* ECOSYSTEM */

.ecosystem-section {
    background: #eaf0eb;
}

.ecosystem-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 70px;
    align-items: start;
}

.network-stage {
    position: sticky;
    top: 60px;
}

.network-stage svg {
    display: block;
    width: 100%;
    height: auto;
}

.network-caption {
    padding-top: 18px;
    border-top: 1px solid #cbd7d0;
    color: var(--muted);
    font-family: monospace;
    font-size: 10px;
    line-height: 1.8;
    letter-spacing: 1px;
    overflow-wrap: anywhere;
}

.unit-detail {
    border-top: 1px solid #cbd7d0;
}

.unit-detail:last-child {
    border-bottom: 1px solid #cbd7d0;
}

.unit-detail summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 23px 0;
    cursor: pointer;
    list-style: none;
}

.unit-detail summary::-webkit-details-marker {
    display: none;
}

.unit-detail summary::after {
    content: "+";
    font-family: monospace;
    font-size: 22px;
    color: var(--green);
    flex-shrink: 0;
}

.unit-detail[open] summary::after {
    content: "−";
}

.unit-code {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-family: monospace;
    font-size: 10px;
    letter-spacing: 1px;
    line-height: 1.7;
}

.unit-title {
    display: block;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -.4px;
    line-height: 1.5;
}

.unit-content {
    padding: 0 35px 25px 0;
}

.unit-content p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.unit-content a {
    display: inline-block;
    margin-top: 18px;
}

/* PUBLISHING + FOOTER */

.publishing {
    padding-block: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 35px;
}

.publishing h2 {
    font-size: 36px;
    letter-spacing: -1.5px;
    margin: 18px 0;
}

.publishing .button {
    flex-shrink: 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding-block: 26px;
    color: var(--muted);
    font-size: 11px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    line-height: 1.7;
}

/* MOBILE */

@media (max-width: 800px) {
    .wrap {
        width: calc(100% - 40px);
    }

    .header-inner {
        min-height: 84px;
        padding-block: 18px;
        flex-wrap: wrap;
        gap: 16px;
    }

    .brand strong {
        font-size: 16px;
    }

    .brand img {
        width: 45px;
        height: 45px;
    }

    .brand small {
        font-size: 8px;
    }

    .main-nav {
        width: 100%;
        gap: 12px 22px;
    }

    .main-nav a {
        font-size: 12px;
    }

    .experience {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .copy-column {
        display: contents;
    }

    .hero {
        order: 1;
    }

    .visual-column {
        order: 2;
    }

    .story {
        order: 3;
    }

    .chapter {
        min-height: auto;
        padding-block: 55px;
    }

    h1,
    h2 {
        letter-spacing: -2.5px;
    }

    .chapter-note {
        margin-top: 32px;
    }

    .hero-stage {
        position: relative;
        top: auto;
        height: auto;
        min-height: 0;
    }

    .signal-svg {
        max-height: 420px;
    }

    .work-section,
    .ecosystem-section {
        padding-block: 60px;
    }

    .section-intro,
    .work-scene,
    .ecosystem-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .section-intro {
        margin-bottom: 32px;
    }

    .work-scene {
        padding: 24px;
        margin-bottom: 36px;
    }

    .work-scene svg {
        max-height: 270px;
    }

    .program-list {
        grid-template-columns: 1fr;
    }

    .network-stage {
        position: static;
    }

    .network-stage svg {
        max-height: 380px;
    }

    .publishing {
        align-items: flex-start;
        flex-direction: column;
        padding-block: 55px;
    }

    .has-motion .draw-path,
    .experience.has-motion .timeline-path {
        stroke-dashoffset: 0;
    }

    .experience.has-motion .orbit,
    .experience.has-motion .floating-panel {
        transform: none;
        opacity: 1;
    }

    .experience.has-motion .year-marker {
        opacity: 1;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

    .has-motion .draw-path,
    .experience.has-motion .timeline-path {
        stroke-dashoffset: 0;
    }

    .experience.has-motion .orbit,
    .experience.has-motion .floating-panel {
        transform: none;
        opacity: 1;
    }

    .experience.has-motion .year-marker {
        opacity: 1;
    }
}
