/* ============================================
   1. SELF-HOSTED TYPOGRAPHY
   Manrope variable, SIL Open Font License: ../fonts/OFL.txt
============================================ */
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("../fonts/manrope-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================
   2. TOKENS / HERO BACKGROUND IMAGE
   Optional image: replace only --hero-image below.
   Path: ../img/hero-background.webp
   The Open Measure cover is designed to work without a photograph.
============================================ */
:root {
    --hero-image: none;
    --paper: #F5F6F2;
    --ink: #243431;
    --muted: #52615B;
    --gold: #F2CD73;
    --gold-light: #F7DEA0;
    --sage: #DEE7E3;
    --white: #FFFFFF;
    --line: #C8D0C9;
    --focus: #155D76;
    --font: "Manrope", Arial, sans-serif;
    --gutter: clamp(20px, 3.4vw, 64px);
    --section-space: clamp(80px, 9vw, 148px);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================
   3. RESET / ACCESSIBILITY / SHARED ELEMENTS
============================================ */
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 28px;
    color-scheme: light;
}
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
::selection {
    background: var(--ink);
    color: var(--gold);
}
a {
    color: inherit;
    text-underline-offset: 0.25em;
    text-decoration-thickness: 1px;
}
button,
select {
    font: inherit;
}
button,
a,
select {
    -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 5px;
}
[hidden] {
    display: none !important;
}
img,
svg {
    max-width: 100%;
    vertical-align: middle;
}
h1,
h2,
h3,
p {
    margin: 0;
}
h1,
h2,
h3 {
    font-weight: 600;
    text-wrap: balance;
}
h1 {
    font-size: clamp(56px, 7.2vw, 114px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}
h2 {
    font-size: clamp(36px, 4.2vw, 64px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}
h3 {
    font-size: 23px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}
p {
    text-wrap: pretty;
}
p + p {
    margin-top: 22px;
}
.shell {
    max-width: 1920px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.section-space {
    margin-block: var(--section-space);
}
.statement {
    font-size: clamp(25px, 2.5vw, 36px);
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: -0.025em;
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 56px;
    padding: 14px 24px;
    border: 0;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}
.button svg {
    flex: 0 0 24px;
}
.button-dark {
    background: var(--ink);
    color: var(--paper);
}
.button-dark:active {
    background: var(--muted);
}
.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10;
    transform: translateY(-180%);
    padding: 12px 20px;
    background: var(--ink);
    color: var(--white);
}
.skip-link:focus {
    transform: none;
}

/* ============================================
   4. HEADER / NAVIGATION
============================================ */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 112px;
}
.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}
.site-logo img {
    width: 213px;
    height: auto;
}
.site-header nav {
    display: flex;
    align-items: center;
    gap: clamp(24px, 3.5vw, 64px);
}
.site-header nav a {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.site-header .nav-contact {
    padding: 10px 20px;
    border: 1px solid var(--ink);
    border-radius: 100px;
}

/* ============================================
   5. OPEN MEASURE COVER
============================================ */
.hero-surface {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    column-gap: 20px;
    overflow: hidden;
    padding: clamp(36px, 5vw, 88px);
    padding-bottom: 30px;
    border-radius: 4px 4px 128px 4px;
    background-color: var(--gold);
    background-image: var(--hero-image);
    background-position: center;
    background-size: cover;
}
.hero-surface::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: var(--gold);
    opacity: 0.88;
    content: "";
}
.hero-copy {
    align-self: center;
    padding-block: 12px 56px;
}
.hero-description {
    max-width: 440px;
    margin-top: 34px;
    font-size: 18px;
    line-height: 1.6;
}
.hero-copy .button {
    margin-top: 28px;
    min-width: 184px;
}
.hero-art {
    display: flex;
    align-items: center;
    align-self: center;
    margin-right: -100px;
}
.hero-art img {
    width: 100%;
    height: auto;
}
.hero-baseline {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    padding-right: 40px;
    font-size: 14px;
    line-height: 1.6;
}
.hero-baseline a {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    min-height: 44px;
    font-weight: 600;
    text-decoration: none;
}

/* ============================================
   6. PERSPECTIVE / SCOPE EXPLORER
============================================ */
.perspective {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 8vw, 140px);
}
.perspective-copy {
    max-width: 660px;
}
.perspective-copy .statement {
    margin-bottom: 32px;
}
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 44px;
}
.section-heading > p {
    max-width: 380px;
}
.scope-surface {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    background: var(--sage);
    border-radius: 56px 0 0 0;
}
.scope-intro {
    padding: clamp(28px, 4vw, 64px);
}
.scope-intro > p {
    margin-top: 22px;
}
.context-control {
    margin-top: 48px;
}
.context-control label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}
.context-control select {
    width: 100%;
    min-height: 54px;
    padding: 10px 42px 10px 16px;
    border: 1px solid var(--muted);
    border-radius: 0;
    background-color: var(--paper);
    color: var(--ink);
    font-size: 17px;
    cursor: pointer;
}
.scope-panels {
    padding: clamp(28px, 4vw, 64px);
    background: var(--white);
}
.scope-panel + .scope-panel {
    margin-top: 40px;
}
.scope-panel h3 {
    max-width: 15ch;
    font-size: clamp(30px, 3vw, 44px);
    line-height: 1.17;
    letter-spacing: -0.035em;
}
.scope-panel p {
    margin-top: 24px;
}
.scope-panel ul {
    margin: 26px 0 0;
    padding-left: 22px;
}
.scope-panel li {
    padding-left: 5px;
}
.scope-panel li + li {
    margin-top: 8px;
}
.scope-panels[data-enhanced] .scope-panel {
    margin-top: 0;
}
.related-work {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 0;
    margin-top: 36px;
}
.related-work h3,
.related-work p {
    padding-inline: clamp(28px, 4vw, 64px);
}
.related-work p {
    max-width: 680px;
}

/* ============================================
   7. APPROACH
============================================ */
.approach {
    background: var(--ink);
    color: var(--paper);
    padding-block: clamp(64px, 7vw, 112px);
}
.approach-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(48px, 7vw, 120px);
}
.approach-title > p {
    max-width: 250px;
    margin-top: 28px;
    color: var(--gold);
}
.approach-content > .statement {
    max-width: 32ch;
}
.approach-notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
    margin-top: 48px;
}
.approach-notes article:last-child {
    grid-column: 1 / -1;
    max-width: 510px;
}
.approach-notes h3 {
    color: var(--gold);
    font-size: 20px;
}
.approach-notes p {
    margin-top: 14px;
    font-size: 16px;
}

/* ============================================
   8. CORRESPONDENCE / FOOTER
============================================ */
.conversation {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: clamp(40px, 7vw, 120px);
    align-items: center;
}
.conversation-copy > p {
    max-width: 470px;
    margin-top: 28px;
}
.conversation-copy > p + p {
    font-size: 15px;
    color: var(--muted);
}
.email-surface {
    padding: clamp(28px, 4vw, 64px);
    border-radius: 0 64px 0 0;
    background: var(--gold);
}
.email-surface > p:first-child {
    font-size: 15px;
    font-weight: 500;
}
.email-address {
    display: inline-block;
    margin-top: 28px;
    font-size: clamp(25px, 2.8vw, 42px);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.035em;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.email-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 24px;
    margin-top: 34px;
}
.copy-email {
    min-height: 44px;
    padding: 8px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.3em;
    cursor: pointer;
}
.copy-status {
    min-height: 24px;
    margin-top: 8px;
    font-size: 14px;
}
.privacy-note {
    margin-top: 18px;
    font-size: 13px;
}
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 32px;
    padding-bottom: 32px;
    border-top: 1px solid var(--line);
    font-size: 13px;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 28px;
}
.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* ============================================
   9. LEGAL DOCUMENTS / 404
============================================ */
.document {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: clamp(40px, 7vw, 120px);
    padding-top: 64px;
    padding-bottom: 112px;
}
.document-heading h1 {
    font-size: clamp(48px, 5vw, 76px);
    line-height: 1.08;
}
.document-heading > p {
    margin-top: 24px;
    color: var(--muted);
    font-size: 14px;
}
.document-heading > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 24px;
}
.document-content {
    max-width: 760px;
    overflow-wrap: anywhere;
}
.document-content section + section {
    margin-top: 40px;
}
.document-content h2 {
    margin-bottom: 18px;
    font-size: 27px;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
.document-content ul {
    padding-left: 24px;
}
.document-content li + li {
    margin-top: 8px;
}
.error-page {
    padding-block: clamp(64px, 9vw, 144px);
}
.error-surface {
    padding: clamp(32px, 6vw, 96px);
    border-radius: 0 100px 0 0;
    background: var(--gold);
}
.error-surface h1 {
    max-width: 16ch;
    font-size: clamp(46px, 7vw, 100px);
}
.error-surface p {
    max-width: 480px;
    margin-top: 32px;
}
.error-surface .button {
    margin-top: 28px;
}

/* ============================================
   10. MOTION: OCCASIONAL ACTION FEEDBACK ONLY
============================================ */
.button svg {
    transition: transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
    .button:hover svg {
        transform: translateX(4px);
    }
    .site-header nav a:hover,
    .footer-links a:hover,
    .hero-baseline a:hover,
    .email-address:hover {
        text-decoration: underline;
    }
    .copy-email:hover {
        text-decoration-thickness: 2px;
    }
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .button svg {
        transition: none;
        transform: none !important;
    }
}

/* ============================================
   11. RESPONSIVE COMPOSITIONS
============================================ */
@media (min-width: 1921px) {
    .approach {
        max-width: 1920px;
        margin-inline: auto;
    }
}
@media (max-width: 1100px) {
    .hero-surface {
        border-bottom-right-radius: 88px;
    }
    .hero-art {
        margin-right: -80px;
    }
    .hero-description {
        font-size: 17px;
    }
    .section-heading {
        align-items: flex-start;
    }
    .approach-notes {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .approach-notes article:last-child {
        grid-column: auto;
    }
    .email-address {
        font-size: 30px;
    }
}
@media (max-width: 800px) {
    .site-header {
        min-height: 100px;
        gap: 18px;
    }
    .site-logo img {
        width: 178px;
    }
    .site-header nav {
        gap: 20px;
    }
    .site-header nav a {
        font-size: 13px;
    }
    .site-header .nav-contact {
        padding-inline: 14px;
    }
    .hero-surface {
        padding: 36px;
        padding-bottom: 24px;
        column-gap: 0;
        grid-template-columns: 1.5fr 1fr;
    }
    h1 {
        font-size: clamp(52px, 7.2vw, 72px);
    }
    .hero-description {
        max-width: 350px;
    }
    .hero-art {
        margin-right: -105px;
    }
    .hero-baseline {
        padding-right: 24px;
    }
    .perspective,
    .approach-grid,
    .conversation {
        grid-template-columns: 1fr;
    }
    .perspective h2 br,
    .approach h2 br,
    .conversation h2 br {
        display: none;
    }
    .perspective-copy,
    .approach-content {
        max-width: 680px;
    }
    .section-heading {
        display: block;
    }
    .section-heading > p {
        max-width: 510px;
        margin-top: 24px;
    }
    .scope-surface {
        grid-template-columns: 1fr 1.15fr;
    }
    .scope-intro,
    .scope-panels {
        padding: 28px;
    }
    .scope-panel h3 {
        font-size: 31px;
    }
    .related-work {
        grid-template-columns: 1fr 1.15fr;
    }
    .related-work h3,
    .related-work p {
        padding-inline: 28px;
    }
    .approach-notes {
        grid-template-columns: 1fr 1fr;
    }
    .approach-notes article:last-child {
        grid-column: 1 / -1;
    }
    .conversation-copy > p {
        max-width: 620px;
    }
    .email-address {
        font-size: clamp(32px, 5vw, 44px);
    }
    .email-address br {
        display: none;
    }
    .site-footer {
        align-items: flex-start;
    }
    .footer-links {
        gap: 0 18px;
    }
    .document {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 560px) {
    body {
        font-size: 16px;
    }
    h2 {
        font-size: 36px;
    }
    h3 {
        font-size: 22px;
    }
    .site-header {
        position: relative;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        padding-top: 18px;
        padding-bottom: 16px;
    }
    .site-logo img {
        width: 190px;
    }
    .site-header nav {
        justify-content: center;
        width: 100%;
        gap: 22px;
    }
    .site-header nav a {
        font-size: 13px;
    }
    .site-header .nav-contact {
        padding-inline: 12px;
        padding-block: 6px;
    }
    .hero-surface {
        grid-template-columns: 1fr;
        padding: 28px 24px 24px;
        border-radius: 3px 3px 68px 3px;
    }
    .hero-copy {
        padding-top: 104px;
        padding-bottom: 0;
    }
    h1 {
        font-size: clamp(52px, 12vw, 66px);
        line-height: 1.05;
    }
    .hero-description {
        margin-top: 26px;
        font-size: 16px;
    }
    .hero-art {
        position: absolute;
        top: 14px;
        right: 10px;
        width: 112px;
        margin: 0;
    }
    .hero-baseline {
        display: block;
        margin-top: 42px;
        padding-right: 0;
        font-size: 13px;
    }
    .hero-baseline p br {
        display: none;
    }
    .hero-baseline a {
        gap: 14px;
        margin-top: 12px;
    }
    .perspective {
        gap: 28px;
    }
    .statement {
        font-size: 24px;
    }
    .perspective-copy .statement {
        margin-bottom: 24px;
    }
    .section-heading {
        margin-bottom: 28px;
    }
    .scope-surface {
        grid-template-columns: 1fr;
        border-radius: 36px 0 0 0;
    }
    .scope-intro,
    .scope-panels {
        padding: 28px 24px;
    }
    .context-control {
        margin-top: 28px;
    }
    .scope-panel h3 {
        max-width: 15ch;
        font-size: 32px;
    }
    .related-work {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 28px;
    }
    .related-work h3,
    .related-work p {
        padding-inline: 0;
    }
    .approach-grid {
        gap: 36px;
    }
    .approach-title > p {
        margin-top: 22px;
    }
    .approach-notes {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-top: 36px;
    }
    .approach-notes article:last-child {
        grid-column: auto;
    }
    .conversation {
        gap: 32px;
    }
    .email-surface {
        padding: 28px 24px;
        border-top-right-radius: 48px;
    }
    .email-address {
        font-size: clamp(23px, 6vw, 32px);
    }
    .email-address br {
        display: block;
    }
    .email-actions {
        gap: 8px 20px;
    }
    .site-footer {
        flex-direction: column;
        gap: 12px;
        padding-top: 24px;
        padding-bottom: 24px;
    }
    .footer-links {
        gap: 0 24px;
    }
    .document {
        padding-top: 40px;
        padding-bottom: 72px;
    }
    .document-heading h1 {
        font-size: 48px;
    }
    .document-content h2 {
        font-size: 26px;
    }
    .error-surface {
        border-top-right-radius: 56px;
    }
}
