:root {
    --bg: #060706;
    --paper: #e8e1d2;
    --ink: #f4efe4;
    --muted: #9d9687;
    --line: rgba(244, 239, 228, 0.18);
    --line-strong: rgba(244, 239, 228, 0.42);
    --panel: rgba(244, 239, 228, 0.045);
    --teal: #2dd4bf;
    --violet: #a78bfa;
    --rose: #fb7185;
    --amber: #fbbf24;
    --slate: #64748b;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(rgba(244, 239, 228, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(244, 239, 228, 0.025) 1px, transparent 1px),
        radial-gradient(circle at 72% 12%, rgba(45, 212, 191, 0.09), transparent 34rem),
        var(--bg);
    background-size: 48px 48px, 48px 48px, auto, auto;
    color: var(--ink);
    font-family: var(--font-sans);
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 7, 6, 0.82);
    backdrop-filter: blur(18px);
}

.brand,
.print-link,
.site-header nav a,
.signal-rail,
.kicker,
.section-index,
.matrix-meta,
.specimen-grid span,
.field-notes article span,
footer {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand {
    color: var(--paper);
    font-weight: 700;
}

.site-header nav {
    display: flex;
    gap: 18px;
    color: var(--muted);
}

.site-header nav a:hover,
.print-link:hover,
footer a:hover {
    color: var(--paper);
}

.print-link {
    justify-self: end;
    color: var(--teal);
}

.signal-rail {
    position: fixed;
    top: 92px;
    left: 28px;
    width: 132px;
    display: grid;
    gap: 18px;
    color: var(--muted);
}

.signal-rail div {
    display: grid;
    gap: 2px;
}

.signal-rail strong {
    color: var(--paper);
    font-weight: 600;
}

main {
    width: min(1180px, calc(100vw - 56px));
    margin: 0 auto;
    padding: 74px 0 90px;
}

.hero {
    min-height: calc(100vh - 110px);
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
    gap: 54px;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.hero-copy {
    max-width: 760px;
}

.kicker {
    color: var(--muted);
    margin-bottom: 24px;
}

h1 {
    max-width: 900px;
    color: var(--paper);
    font-size: clamp(64px, 10vw, 148px);
    line-height: 0.86;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.lede {
    max-width: 660px;
    margin-top: 34px;
    color: var(--paper);
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.14;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    align-items: center;
    margin-top: 34px;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.primary-action {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--line-strong);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.primary-action:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.hero-specimen {
    display: grid;
    gap: 14px;
}

.hero-specimen img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center;
    border: 1px solid var(--line);
    filter: contrast(1.05) saturate(0.92);
}

.hero-specimen figcaption {
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.essay-section {
    display: grid;
    grid-template-columns: 210px minmax(0, 760px);
    gap: 48px;
    padding: 92px 0;
    border-bottom: 1px solid var(--line);
}

.section-index {
    color: var(--muted);
}

.section-body h2,
.specimens h2,
.field-notes h2,
.closing-panel h2 {
    color: var(--paper);
    font-size: clamp(36px, 6vw, 78px);
    line-height: 0.94;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.section-body p,
.field-notes p,
.closing-panel h2 {
    color: var(--paper);
}

.section-body p {
    max-width: 720px;
    margin-top: 22px;
    font-size: 20px;
    line-height: 1.42;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
}

.system-grid article {
    min-height: 260px;
    padding: 24px;
    border-right: 1px solid var(--line);
    background: var(--panel);
}

.system-grid article:last-child {
    border-right: 0;
}

.system-grid span {
    display: block;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
    margin-bottom: 78px;
}

.system-grid h3,
.specimen-grid h3,
.field-notes h3 {
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 15px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.system-grid p,
.specimen-grid p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 15px;
}

.matrix-panel {
    padding: 28px;
    border: 1px solid var(--line);
    background: rgba(244, 239, 228, 0.035);
}

.matrix-meta {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--muted);
    margin-bottom: 22px;
}

.matrix-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 12px;
}

th,
td {
    padding: 15px 14px;
    border-bottom: 1px solid var(--line);
    text-align: right;
}

th {
    color: var(--muted);
    font-weight: 500;
}

tbody th {
    text-align: left;
    color: var(--paper);
}

td {
    color: var(--paper);
}

.dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 10px;
    border-radius: 2px;
}

.straight { background: var(--teal); }
.left { background: var(--violet); }
.right { background: var(--rose); }
.both { background: var(--amber); }
.pause { background: var(--slate); }

.specimens,
.field-notes,
.closing-panel {
    padding: 92px 0;
    border-bottom: 1px solid var(--line);
}

.specimens .section-index,
.field-notes .section-index {
    margin-bottom: 28px;
}

.specimen-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 1px;
    margin-top: 34px;
    background: var(--line);
}

.specimen-grid article {
    min-height: 250px;
    padding: 22px;
    background: var(--bg);
}

.specimen-grid span {
    display: block;
    color: var(--muted);
    margin-bottom: 74px;
}

.specimen-grid code {
    display: inline-block;
    margin-top: 22px;
    color: var(--teal);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
}

.field-notes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 52px;
}

.field-notes .section-index,
.field-notes h2 {
    grid-column: 1 / -1;
}

.field-notes article {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.field-notes article span {
    color: var(--muted);
}

.field-notes h3 {
    margin-top: 22px;
}

.field-notes p {
    margin-top: 14px;
    max-width: 520px;
    color: var(--muted);
    font-size: 18px;
}

.closing-panel {
    min-height: 58vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.closing-panel h2 {
    max-width: 940px;
    margin-bottom: 32px;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 28px 34px;
    color: var(--muted);
}

@media (max-width: 1360px) {
    .signal-rail {
        display: none;
    }
}

@media (max-width: 1120px) {
    .hero,
    .essay-section {
        grid-template-columns: 1fr;
    }

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

    .system-grid article {
        border-bottom: 1px solid var(--line);
    }

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

@media (max-width: 720px) {
    .site-header {
        position: static;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .site-header nav {
        flex-wrap: wrap;
    }

    .print-link {
        justify-self: start;
    }

    main {
        width: min(100vw - 32px, 1180px);
        padding-top: 42px;
    }

    .hero {
        min-height: auto;
        gap: 34px;
        padding-bottom: 54px;
    }

    .hero-specimen img {
        aspect-ratio: 1 / 1;
    }

    .essay-section,
    .specimens,
    .field-notes,
    .closing-panel {
        padding: 58px 0;
    }

    .system-grid,
    .specimen-grid,
    .field-notes {
        grid-template-columns: 1fr;
    }

    .system-grid article {
        min-height: 220px;
        border-right: 0;
    }

    .matrix-panel {
        padding: 18px;
    }

    .matrix-meta {
        flex-direction: column;
    }

    footer {
        flex-direction: column;
    }
}
