:root {
    --ink: #151816;
    --paper: #f3f0e7;
    --paper-dark: #e5e0d2;
    --acid: #d5ff36;
    --orange: #ef5b2a;
    --muted: #686c65;
    --line: rgba(21, 24, 22, 0.18);
    --serif: "Instrument Serif", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
}

body.admin-bar .site-header {
    top: 32px;
}

body:not(.home) .site-header {
    border-color: var(--line);
    color: var(--ink);
    background: rgba(243, 240, 231, 0.96);
}

body:not(.home) .brand > span:last-child > span {
    color: var(--orange);
}

.content-shell {
    min-height: 70vh;
    padding: 10rem 6vw 6rem;
}

.content-entry {
    max-width: 860px;
    margin: 0 auto;
}

.content-entry h1 {
    margin-bottom: 2rem;
    color: var(--ink);
    font-size: clamp(3rem, 7vw, 6rem);
}

.content-entry img {
    height: auto;
}

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

a {
    color: inherit;
}

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

.skip-link:focus {
    z-index: 100;
    top: 1rem;
    left: 1rem;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0.7rem 1rem;
    clip: auto;
    background: var(--acid);
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    display: flex;
    width: 100%;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    padding: 0 4vw;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: white;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.site-header.scrolled {
    border-color: var(--line);
    color: var(--ink);
    background: rgba(243, 240, 231, 0.94);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: inherit;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.brand > span:last-child > span {
    color: var(--acid);
}

.site-header.scrolled .brand > span:last-child > span,
.brand-footer > span:last-child > span {
    color: var(--orange);
}

.brand-mark {
    position: relative;
    display: inline-flex;
    width: 31px;
    height: 31px;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.brand-mark span {
    display: block;
    width: 3px;
    height: 13px;
    background: currentColor;
    transform: skew(-16deg);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav a {
    text-decoration: none;
}

.nav-cta {
    padding: 0.65rem 1rem;
    border: 1px solid currentColor;
    border-radius: 100px;
}

.menu-toggle {
    display: none;
}

.hero {
    position: relative;
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    grid-template-rows: 1fr auto;
    overflow: hidden;
    padding: 10rem 6vw 3.5rem;
    color: white;
    background: var(--ink);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.17;
    background-image:
        linear-gradient(rgba(255,255,255,.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.2) 1px, transparent 1px);
    background-size: 76px 76px;
    mask-image: linear-gradient(to right, black, transparent 72%);
}

.hero-copy {
    position: relative;
    z-index: 2;
    align-self: center;
    max-width: 780px;
}

.eyebrow {
    margin: 0 0 1.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--acid);
}

h1,
h2 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 400;
    line-height: 0.93;
    letter-spacing: -0.045em;
}

h1 {
    max-width: 800px;
    font-size: clamp(4.6rem, 8.4vw, 9.2rem);
}

h1 em {
    color: var(--acid);
    font-weight: 400;
}

h2 {
    font-size: clamp(3rem, 5.5vw, 6.3rem);
}

.hero-intro {
    max-width: 590px;
    margin: 2.2rem 0 0;
    color: #c6cbc5;
    font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2.2rem;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--ink);
    background: var(--acid);
}

.button-dark {
    color: white;
    background: var(--ink);
}

.text-link {
    font-size: 0.85rem;
    text-underline-offset: 5px;
}

.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
}

.drawing-frame {
    position: relative;
    z-index: 2;
    width: min(83%, 520px);
    padding: 1rem;
    color: var(--ink);
    background: #f8f7f2;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
    transform: rotate(3deg);
}

.drawing-frame img {
    width: 100%;
    filter: contrast(1.1);
}

.drawing-label {
    display: flex;
    justify-content: space-between;
    padding: 0 0 0.7rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(213, 255, 54, 0.42);
    border-radius: 50%;
}

.orbit-one {
    width: 520px;
    height: 520px;
}

.orbit-two {
    width: 650px;
    height: 650px;
    border-style: dashed;
    animation: rotate 35s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

.hero-facts {
    position: relative;
    z-index: 2;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
    margin: 4rem 0 0;
    border-top: 1px solid rgba(255,255,255,.2);
}

.hero-facts div {
    padding: 1.2rem 1rem 0 0;
}

.hero-facts div + div {
    padding-left: 2rem;
    border-left: 1px solid rgba(255,255,255,.2);
}

.hero-facts dt {
    color: #8f958f;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-facts dd {
    margin: 0.25rem 0 0;
    font-family: var(--serif);
    font-size: 1.45rem;
}

.section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(45px, 0.12fr) minmax(260px, 0.8fr) minmax(300px, 1fr);
    gap: 4vw;
    padding: 9rem 6vw;
    border-bottom: 1px solid var(--line);
}

.section-number {
    color: var(--orange);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.section-heading h2 {
    max-width: 720px;
}

.statement-copy {
    max-width: 680px;
    padding-top: 2.8rem;
}

.statement-copy p {
    color: var(--muted);
}

.statement-copy .lead {
    margin-top: 0;
    color: var(--ink);
    font-family: var(--serif);
    font-size: clamp(1.7rem, 2.6vw, 2.6rem);
    line-height: 1.15;
}

.source-note {
    margin-top: 2rem;
    padding: 1.1rem 0 0 1.2rem;
    border-top: 1px solid var(--line);
    border-left: 3px solid var(--orange);
    font-size: 0.8rem;
}

.mechanism {
    grid-template-rows: auto auto auto;
    background: var(--paper-dark);
}

.mechanism-diagram,
.system-grid {
    grid-column: 2 / -1;
}

.mechanism-diagram {
    display: grid;
    grid-template-columns: 1fr 60px 1fr 60px 1fr;
    margin-top: 3rem;
}

.mechanism-card {
    position: relative;
    min-height: 330px;
    padding: 1.5rem;
    border: 1px solid var(--ink);
    background: var(--paper);
}

.card-index {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--orange);
    font-family: var(--serif);
    font-size: 1.4rem;
}

.motion-icon {
    position: relative;
    width: 95px;
    height: 95px;
    margin: 2rem 0 3.5rem;
    border: 1px solid var(--ink);
    border-radius: 50%;
}

.motion-icon i {
    position: absolute;
    inset: 12px;
    display: block;
}

.motion-linear i::before,
.motion-linear i::after {
    position: absolute;
    top: 50%;
    width: 26px;
    height: 1px;
    content: "";
    background: var(--orange);
}

.motion-linear i::before { left: 0; box-shadow: 0 0 0 0; }
.motion-linear i::after { right: 0; }

.motion-linear i {
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    background: linear-gradient(var(--ink), var(--ink)) center / 100% 3px no-repeat;
}

.motion-angular i {
    border: 3px solid var(--orange);
    border-bottom-color: transparent;
    border-radius: 50%;
    transform: rotate(-25deg);
}

.motion-rotation i {
    border: 3px dashed var(--orange);
    border-radius: 50%;
}

.mechanism-card h3,
.system-grid h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1;
}

.mechanism-card p,
.system-grid article > p:last-child {
    color: var(--muted);
    font-size: 0.9rem;
}

.connector {
    position: relative;
    align-self: center;
    height: 1px;
    background: var(--ink);
}

.connector::after {
    position: absolute;
    top: -4px;
    right: 0;
    width: 8px;
    height: 8px;
    border-top: 1px solid;
    border-right: 1px solid;
    content: "";
    transform: rotate(45deg);
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 6rem;
    border-top: 1px solid var(--line);
}

.system-grid article {
    padding: 2rem 2rem 0 0;
}

.system-grid article + article {
    padding-left: 2rem;
    border-left: 1px solid var(--line);
}

.system-grid .eyebrow {
    color: var(--orange);
}

.detail {
    grid-template-columns: minmax(45px, .12fr) minmax(300px, 1fr) minmax(300px, .8fr);
    color: white;
    background: var(--orange);
}

.detail .section-number {
    color: var(--ink);
}

.detail-visual {
    overflow: hidden;
    aspect-ratio: 8 / 5;
    align-self: center;
    background: white;
}

.detail-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.detail-copy {
    align-self: center;
}

.detail-copy h2 {
    margin-bottom: 3rem;
}

.figure-list {
    margin: 0 0 2.5rem;
    padding: 0;
    list-style: none;
    border-top: 1px solid rgba(255,255,255,.45);
}

.figure-list li {
    display: grid;
    grid-template-columns: 70px 1fr;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255,255,255,.45);
    font-size: 0.9rem;
}

.figure-list span {
    font-weight: 600;
}

.publication {
    grid-template-columns: minmax(45px, .12fr) minmax(260px, .7fr) minmax(360px, 1fr);
}

.publication-data {
    margin: 0;
    border-top: 1px solid var(--ink);
}

.publication-data div {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.publication-data dt {
    color: var(--muted);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.publication-data dd {
    margin: 0;
    font-weight: 500;
}

.publication-action {
    grid-column: 3;
    margin-top: 2rem;
}

.publication-action p {
    max-width: 520px;
    color: var(--muted);
}

.contact-section {
    grid-template-columns: minmax(45px, .12fr) minmax(260px, .7fr) minmax(360px, 1fr);
    align-items: start;
    background: var(--paper-dark);
}

.contact-copy h2 {
    max-width: 620px;
}

.contact-copy > p:not(.eyebrow) {
    max-width: 570px;
    color: var(--muted);
}

.contact-note {
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: .82rem;
}

.contact-form {
    position: relative;
    display: grid;
    gap: 1.5rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid var(--ink);
    background: var(--paper);
    box-shadow: 18px 18px 0 var(--acid);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.contact-form label {
    display: grid;
    gap: .45rem;
}

.contact-form label > span {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--orange);
    outline: 2px solid rgba(239, 91, 42, .18);
    outline-offset: 1px;
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-field-wide {
    grid-column: 1 / -1;
}

.contact-honeypot {
    position: absolute !important;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-feedback {
    padding: .9rem 1rem;
    border-left: 4px solid;
    font-size: .9rem;
    font-weight: 600;
}

.contact-feedback-success {
    border-color: #597c12;
    background: rgba(213, 255, 54, .28);
}

.contact-feedback-error {
    border-color: var(--orange);
    background: rgba(239, 91, 42, .12);
}

.contact-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
}

.contact-form-footer button {
    cursor: pointer;
}

.contact-form-footer span {
    max-width: 270px;
    color: var(--muted);
    font-size: .75rem;
    line-height: 1.45;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: end;
    gap: 2rem;
    padding: 4rem 6vw;
    color: #a9afa9;
    background: var(--ink);
    font-size: 0.8rem;
}

.brand-footer {
    color: white;
}

.footer-meta {
    text-align: right;
}

@media (max-width: 980px) {
    .site-nav {
        position: fixed;
        top: 78px;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        padding: 1.5rem 4vw 2rem;
        color: var(--ink);
        background: var(--paper);
        box-shadow: 0 20px 30px rgba(0,0,0,.15);
    }

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

    .menu-toggle {
        display: grid;
        width: 42px;
        height: 42px;
        place-content: center;
        gap: 6px;
        padding: 0;
        border: 1px solid currentColor;
        border-radius: 50%;
        color: inherit;
        background: transparent;
    }

    .menu-toggle span:not(.sr-only) {
        width: 17px;
        height: 1px;
        background: currentColor;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 9rem;
    }

    .hero-visual {
        min-height: 700px;
    }

    .drawing-frame {
        width: min(70%, 480px);
    }

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

    .statement-copy,
    .mechanism-diagram,
    .system-grid,
    .publication-data,
    .publication-action,
    .contact-form {
        grid-column: 2;
    }

    .mechanism-diagram {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .connector {
        width: 1px;
        height: 45px;
        margin-left: 50%;
    }

    .connector::after {
        top: auto;
        right: -4px;
        bottom: 0;
        transform: rotate(135deg);
    }

    .detail {
        grid-template-columns: 45px 1fr;
    }

    .detail-copy {
        grid-column: 2;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }

    .footer-meta {
        text-align: left;
    }
}

@media (max-width: 640px) {
    body.admin-bar .site-header {
        top: 46px;
    }

    .site-header {
        min-height: 68px;
    }

    .site-nav {
        top: 68px;
    }

    .hero {
        padding: 8.5rem 1.2rem 2rem;
    }

    h1 {
        font-size: clamp(3.8rem, 20vw, 6rem);
    }

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

    .hero-visual {
        min-height: 520px;
    }

    .drawing-frame {
        width: 85%;
    }

    .orbit-one {
        width: 390px;
        height: 390px;
    }

    .orbit-two {
        width: 480px;
        height: 480px;
    }

    .hero-facts {
        grid-template-columns: 1fr;
    }

    .hero-facts div + div {
        padding-left: 0;
        border-left: 0;
    }

    .section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 6rem 1.2rem;
    }

    .section-number,
    .statement-copy,
    .mechanism-diagram,
    .system-grid,
    .detail-copy,
    .publication-data,
    .publication-action {
        grid-column: 1;
    }

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

    .system-grid article + article {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

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

    .detail-visual {
        min-height: 0;
    }

    .publication-data div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
    }

    .contact-field-wide {
        grid-column: 1;
    }

    .contact-form {
        box-shadow: 10px 10px 0 var(--acid);
    }

    .contact-form-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-footer {
        padding: 3rem 1.2rem;
    }
}

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

    .orbit-two {
        animation: none;
    }
}
