:root {
    --ink: #17201d;
    --paper: #f5f3ec;
    --white: #fffdf8;
    --forest: #0d2922;
    --green: #1e7a5a;
    --mint: #a8d6c1;
    --coral: #ef6a4c;
    --line: rgba(23, 32, 29, .18);
    --mono: "DM Mono", Consolas, monospace;
    --sans: "Instrument Sans", "Segoe UI", sans-serif;
    --serif: "Newsreader", Georgia, serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 84px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 17px/1.6 var(--sans);
}

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

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 8px;
    left: 8px;
    padding: 8px 12px;
    background: var(--white);
    transform: translateY(-150%);
}

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

.site-header {
    position: fixed;
    z-index: 20;
    inset: 0 0 auto;
    height: 70px;
    padding: 0 clamp(20px, 4vw, 64px);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, .22);
    transition: background 220ms ease, color 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
    color: var(--ink);
    background: rgba(245, 243, 236, .94);
    border-color: var(--line);
    backdrop-filter: blur(14px);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    font-weight: 700;
    text-decoration: none;
}

.wordmark-mark {
    width: 30px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    color: var(--forest);
    background: var(--mint);
    font: 20px var(--serif);
}

.site-nav {
    display: flex;
    gap: clamp(18px, 3vw, 40px);
}

.site-nav a,
.nav-cta {
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--mint);
}

.is-scrolled .site-nav a:hover,
.is-scrolled .site-nav a:focus-visible {
    color: var(--green);
}

.nav-cta {
    justify-self: end;
    padding: 7px 16px;
    border: 1px solid currentColor;
}

.hero {
    position: relative;
    min-height: 600px;
    height: min(760px, 82svh);
    overflow: hidden;
    color: var(--white);
    background: var(--forest);
}

.hero-media,
.hero-shade,
.hero-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media {
    object-fit: cover;
    object-position: center;
}

.hero-shade {
    background: linear-gradient(90deg, rgba(7, 27, 22, .96), rgba(7, 27, 22, .77) 42%, rgba(7, 27, 22, .16) 76%);
}

.hero-grid {
    opacity: .2;
    background-image: linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(90deg, black, transparent 64%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(760px, 80vw);
    padding: clamp(130px, 18vh, 190px) 0 120px clamp(24px, 7vw, 112px);
}

.eyebrow,
.kicker,
.section-label {
    margin: 0;
    font: 500 12px var(--mono);
    text-transform: uppercase;
}

.eyebrow {
    color: var(--mint);
}

h1 {
    margin: 8px 0 20px;
    font: 600 clamp(58px, 9vw, 124px)/.83 var(--serif);
    letter-spacing: 0;
}

h1 span {
    color: var(--mint);
}

.hero-deck {
    max-width: 680px;
    margin: 0 0 24px;
    font-size: clamp(19px, 2vw, 27px);
    line-height: 1.35;
}

.authors {
    margin: 0;
    font-weight: 650;
}

.authors sup,
.affiliation sup {
    color: var(--mint);
}

.affiliation {
    margin: 2px 0 28px;
    color: rgba(255, 255, 255, .76);
    font-size: 14px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 20px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.button-primary {
    color: var(--forest);
    background: var(--mint);
}

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

.button-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, .6);
    background: rgba(13, 41, 34, .35);
}

.button-secondary:hover {
    border-color: var(--white);
    background: rgba(13, 41, 34, .65);
}

.hero-facts {
    position: absolute;
    z-index: 3;
    right: clamp(20px, 4vw, 64px);
    bottom: 0;
    display: flex;
    color: var(--forest);
    background: var(--mint);
}

.hero-facts div {
    min-width: 150px;
    padding: 16px 22px;
    border-left: 1px solid rgba(13, 41, 34, .2);
}

.hero-facts strong,
.hero-facts span {
    display: block;
}

.hero-facts strong {
    font: 29px/1 var(--serif);
}

.hero-facts span {
    margin-top: 5px;
    font: 10px var(--mono);
    text-transform: uppercase;
}

.section-pad {
    padding: clamp(80px, 10vw, 150px) clamp(24px, 7vw, 112px);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: clamp(46px, 7vw, 92px);
}

.section-label::after {
    content: "";
    width: 56px;
    height: 1px;
    background: currentColor;
    opacity: .45;
}

.section-label span {
    color: var(--green);
}

.section-label-light {
    color: var(--white);
}

.section-label-light span {
    color: var(--mint);
}

.intro {
    background-color: var(--paper);
    background-image: radial-gradient(rgba(13, 41, 34, .1) .8px, transparent .8px);
    background-size: 18px 18px;
}

.intro-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr);
    gap: clamp(40px, 9vw, 140px);
    align-items: start;
}

.display-title {
    margin: 0;
    font: 500 clamp(42px, 6vw, 82px)/.98 var(--serif);
    letter-spacing: 0;
}

.display-title em {
    color: var(--green);
    font-weight: 500;
}

.intro-copy {
    max-width: 660px;
}

.intro-copy p {
    margin: 0 0 20px;
}

.intro-copy .lead {
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.45;
}

.wide-figure {
    margin: clamp(70px, 10vw, 140px) 0 0;
}

.wide-figure img {
    width: 100%;
    aspect-ratio: 2.2/1;
    object-fit: cover;
}

figcaption {
    margin-top: 14px;
    color: rgba(23, 32, 29, .67);
    font: 11px/1.55 var(--mono);
}

figcaption span {
    margin-right: 12px;
    color: var(--green);
    font-weight: 500;
    text-transform: uppercase;
}

.method {
    color: var(--white);
    background: var(--forest);
}

.method-heading,
.video-heading,
.results-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .6fr);
    gap: clamp(40px, 8vw, 130px);
    align-items: end;
}

.method-heading>p,
.video-heading>p,
.results-heading>p {
    margin: 0;
    font-size: 20px;
}

.method-steps {
    margin-top: clamp(70px, 9vw, 120px);
    border-top: 1px solid rgba(255, 255, 255, .24);
}

.method-step {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 20px;
    padding: 32px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .24);
}

.step-number {
    color: var(--coral);
    font-family: var(--mono);
}

.method-step h3 {
    margin: 0 0 8px;
    color: var(--mint);
    font: 500 clamp(28px, 4vw, 48px)/1.05 var(--serif);
}

.method-step p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, .74);
}

.memory-strip {
    margin-top: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--mint);
    font: 11px var(--mono);
    text-transform: uppercase;
}

.memory-strip i {
    flex: 1;
    height: 1px;
    position: relative;
    background: rgba(168, 214, 193, .45);
}

.memory-strip i::after {
    content: "";
    position: absolute;
    right: 0;
    top: -3px;
    width: 7px;
    height: 7px;
    border-top: 1px solid var(--mint);
    border-right: 1px solid var(--mint);
    transform: rotate(45deg);
}

.results-heading {
    margin-bottom: clamp(60px, 9vw, 110px);
}

.metric-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-block: 1px solid var(--line);
}

.metric {
    min-height: 170px;
    padding: 28px 24px;
    border-left: 1px solid var(--line);
}

.metric:first-child {
    border-left: 0;
}

.metric strong,
.metric span {
    display: block;
}

.metric strong {
    color: var(--green);
    font: clamp(42px, 5vw, 66px)/1 var(--serif);
}

.metric span {
    max-width: 180px;
    margin-top: 12px;
    font: 11px/1.4 var(--mono);
    text-transform: uppercase;
}

.result-block {
    padding-top: clamp(80px, 10vw, 150px);
}

.result-copy {
    display: grid;
    grid-template-columns: .35fr 1fr 1fr;
    gap: clamp(24px, 4vw, 64px);
    align-items: start;
}

.kicker {
    color: var(--green);
}

.result-copy h3 {
    margin: 0;
    font: 500 clamp(30px, 4vw, 53px)/1.05 var(--serif);
}

.result-copy>p:last-child {
    margin: 0;
}

.result-figure {
    margin: 54px 0 0;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
}

.result-figure img {
    width: 100%;
}

.result-block-alt .result-copy h3 {
    color: var(--green);
}

.video-section {
    color: var(--white);
    background: #142022;
}

.video-heading {
    margin-bottom: 60px;
}

.video-frame {
    border: 1px solid rgba(255, 255, 255, .24);
    background: #080d0d;
}

.video-frame video {
    width: 100%;
    aspect-ratio: 16/9;
}

.citation {
    background: var(--mint);
}

.citation-layout {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(480px, 1fr);
    gap: clamp(50px, 8vw, 130px);
}

.citation-copy p {
    max-width: 540px;
    margin: 28px 0;
}

.text-link {
    font-weight: 700;
    text-underline-offset: 5px;
}

.text-link span {
    display: inline-block;
    margin-left: 4px;
}

.code-wrap {
    position: relative;
    align-self: start;
    color: #dcebe4;
    background: var(--forest);
    border-left: 5px solid var(--coral);
    overflow: auto;
}

.code-wrap pre {
    margin: 0;
    padding: 58px 28px 28px;
    font: 12px/1.75 var(--mono);
    white-space: pre-wrap;
}

.copy-button {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 7px 10px;
    color: var(--mint);
    background: transparent;
    border: 1px solid rgba(168, 214, 193, .55);
    font: 500 11px var(--mono);
    cursor: pointer;
}

.copy-button:hover,
.copy-button:focus-visible {
    color: var(--forest);
    background: var(--mint);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 28px clamp(24px, 7vw, 112px);
    color: rgba(255, 255, 255, .75);
    background: #081a16;
    font: 11px var(--mono);
    text-transform: uppercase;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    margin-left: 24px;
    text-underline-offset: 4px;
}

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

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

@media (max-width:900px) {
    .site-header {
        grid-template-columns: 1fr auto;
    }

    .site-nav {
        display: none;
    }

    .hero {
        min-height: 650px;
        height: 88svh;
    }

    .hero-content {
        width: min(720px, 93vw);
        padding-left: 24px;
    }

    .hero-facts {
        right: 0;
        left: 0;
    }

    .hero-facts div {
        flex: 1;
        min-width: 0;
        padding: 13px 16px;
    }

    .hero-facts strong {
        font-size: 25px;
    }

    .intro-layout,
    .method-heading,
    .video-heading,
    .results-heading,
    .citation-layout {
        grid-template-columns: 1fr;
    }

    .metric-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .metric:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .metric:nth-child(4) {
        border-top: 1px solid var(--line);
    }

    .result-copy {
        grid-template-columns: 1fr 1.5fr;
    }

    .result-copy>p:last-child {
        grid-column: 2;
    }
}

@media (max-width:600px) {
    body {
        font-size: 16px;
    }

    .site-header {
        height: 62px;
        padding-inline: 18px;
    }

    .nav-cta {
        padding: 5px 10px;
    }

    .hero {
        min-height: 600px;
        height: calc(100svh - 72px);
        max-height: 690px;
    }

    .hero-media {
        object-position: 25% center;
    }

    .hero-shade {
        background: rgba(7, 27, 22, .77);
    }

    .hero-grid {
        background-size: 48px 48px;
        mask-image: none;
    }

    .hero-content {
        width: 100%;
        padding: 84px 20px 82px;
    }

    h1 {
        font-size: clamp(54px, 18vw, 82px);
    }

    .hero-deck {
        font-size: 18px;
    }

    .affiliation {
        font-size: 12px;
    }

    .hero-facts div {
        padding: 12px 8px;
    }

    .hero-facts strong {
        font-size: 21px;
    }

    .hero-facts span {
        font-size: 8px;
    }

    .section-pad {
        padding-inline: 20px;
    }

    .display-title {
        font-size: 43px;
    }

    .wide-figure img {
        aspect-ratio: 1.2/1;
        object-position: 34% center;
    }

    .method-step {
        grid-template-columns: 48px 1fr;
        gap: 10px;
    }

    .memory-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .memory-strip i {
        flex: none;
        width: 1px;
        height: 22px;
        margin-left: 8px;
    }

    .memory-strip i::after {
        right: -3px;
        top: 15px;
        transform: rotate(135deg);
    }

    .metric {
        min-height: 142px;
        padding: 24px 14px;
    }

    .metric strong {
        font-size: 38px;
    }

    .result-copy {
        grid-template-columns: 1fr;
    }

    .result-copy>p:last-child {
        grid-column: auto;
    }

    .result-figure {
        margin-top: 34px;
        padding: 8px;
        overflow-x: auto;
    }

    .result-figure img {
        width: 850px;
        max-width: none;
    }

    .citation-layout {
        grid-template-columns: 1fr;
    }

    .code-wrap pre {
        font-size: 10px;
    }

    .site-footer {
        flex-direction: column;
    }

    .site-footer a {
        margin: 0 20px 0 0;
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}