/* North-star redesign prototype: shared editorial workbench layer. */
:root {
    --color-bg: #f6f8f7;
    --color-bg-raised: #ffffff;
    --color-surface: #eef3f1;
    --color-surface-strong: #e4ece8;
    --color-text: #17231f;
    --color-text-muted: #5f7068;
    --color-text-light: #5d6d64;
    --color-border: #d4dfda;
    --color-accent: #087c70;
    --color-accent-hover: #05645b;
    --color-accent-soft: #d9eee9;
    --color-signal: #c98525;
    --color-coral: #bf5e4c;
    --color-signal-text: #925c13;
    --color-coral-text: #a84f40;
    --color-grid: rgba(23, 35, 31, 0.055);
    --shadow-sm: 0 1px 2px rgba(17, 31, 25, 0.05);
    --shadow-md: 0 14px 35px rgba(17, 31, 25, 0.09);
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    --page-width: 1120px;
    --reading-width: 720px;
    --space-1: 0.375rem;
    --space-2: 0.625rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2.25rem;
    --space-6: 3.5rem;
    --space-7: 5rem;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --color-bg: #111315;
    --color-bg-raised: #181b1e;
    --color-surface: #1d2125;
    --color-surface-strong: #252a2f;
    --color-text: #f0f2f1;
    --color-text-muted: #a9b0ad;
    --color-text-light: #78817d;
    --color-border: #30363b;
    --color-accent: #55c8b4;
    --color-accent-hover: #7bd8c7;
    --color-accent-soft: rgba(85, 200, 180, 0.12);
    --color-signal: #e2a64b;
    --color-coral: #e47b67;
    --color-signal-text: #e2a64b;
    --color-coral-text: #e47b67;
    --color-grid: rgba(255, 255, 255, 0.045);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.18);
    --shadow-md: 0 18px 42px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
}

html {
    scroll-behavior: smooth;
}

body.workbench {
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    letter-spacing: 0;
}

body.workbench::before {
    display: none;
}

body.workbench::after {
    background-image: radial-gradient(circle, var(--color-grid) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 1;
}

body.workbench * {
    letter-spacing: 0;
}

body.workbench .container {
    width: min(100% - 2rem, var(--page-width));
    max-width: var(--page-width);
    padding-inline: 0;
}

body.workbench h1,
body.workbench h2,
body.workbench h3,
body.workbench p {
    text-wrap: pretty;
}

body.workbench h1 {
    color: var(--color-text);
    font-size: 3.75rem;
    font-weight: 720;
    line-height: 1.02;
}

body.workbench h2 {
    color: var(--color-text);
    font-size: 2rem;
    font-style: normal;
    font-weight: 680;
    line-height: 1.2;
    margin: 0;
}

body.workbench h3 {
    color: var(--color-text);
    font-size: 1.35rem;
    font-weight: 680;
    line-height: 1.3;
    margin: 0;
}

body.workbench a {
    color: var(--color-accent);
    text-underline-offset: 0.2em;
}

body.workbench a:hover {
    color: var(--color-accent-hover);
}

body.workbench :focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* Navigation */
:root body.workbench .nav-container {
    background: color-mix(in srgb, var(--color-bg) 92%, transparent);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(14px);
}

body.workbench .nav {
    min-height: 68px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-4);
    align-items: center;
    padding: 0;
}

body.workbench .site-brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

body.workbench .site-brand img {
    width: 42px;
    height: 42px;
    opacity: 1;
}

body.workbench .site-brand:hover {
    color: var(--color-accent);
    text-decoration: none;
}

body.workbench .nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-1);
}

body.workbench .nav-links a {
    color: var(--color-text-muted);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 650;
    padding: 0.55rem 0.7rem;
    text-decoration: none;
    white-space: nowrap;
}

body.workbench .nav-links a:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

body.workbench .nav-links a.active,
body.workbench .nav-links a[aria-current="page"] {
    color: var(--color-accent);
}

body.workbench .nav-actions {
    display: flex;
    align-items: center;
}

body.workbench .theme-toggle {
    position: static;
    width: 38px;
    height: 38px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-bg-raised);
    box-shadow: none;
    color: var(--color-text-muted);
    z-index: auto;
}

body.workbench .theme-toggle:hover {
    background: var(--color-surface);
    box-shadow: none;
    color: var(--color-text);
    transform: none;
}

body.workbench .theme-toggle:hover svg {
    transform: none;
}

body.workbench .theme-toggle .sun-icon,
body.workbench .theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] body.workbench .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] body.workbench .theme-toggle .moon-icon {
    display: none;
}

[data-theme="light"] body.workbench .theme-toggle .sun-icon {
    display: none;
}

[data-theme="light"] body.workbench .theme-toggle .moon-icon {
    display: block;
}

/* Shared commands */
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-items: center;
}

.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    padding: 0.65rem 0.95rem;
    color: var(--color-text);
    background: var(--color-bg-raised);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    text-decoration: none;
}

.button.primary {
    border-color: var(--color-accent);
    background: var(--color-accent);
    color: #ffffff;
}

.button.primary:hover {
    border-color: var(--color-accent-hover);
    background: var(--color-accent-hover);
    color: #ffffff;
}

[data-theme="dark"] .button.primary {
    color: #0e1d18;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.eyebrow,
.work-meta,
.section-index,
.evidence-year,
.project-meta,
.pipeline-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow,
.section-index {
    color: var(--color-accent);
}

/* Homepage masthead */
.workbench-hero {
    padding: var(--space-6) 0 var(--space-7);
}

.hero-identity {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.hero-avatar {
    width: 132px;
    height: 132px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.hero-title-group .eyebrow {
    margin: 0 0 var(--space-2);
}

.hero-lede {
    max-width: 900px;
    margin: 0;
    color: var(--color-text);
    font-size: 1.55rem;
    font-weight: 520;
    line-height: 1.45;
}

.hero-note {
    max-width: var(--reading-width);
    margin: var(--space-3) 0 0;
    color: var(--color-text-muted);
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.social-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-left: var(--space-2);
}

.social-links a,
.social-links button {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.social-links a:hover,
.social-links button:hover {
    background: var(--color-surface);
}

.social-links .iico {
    width: 25px;
    height: 25px;
    opacity: 0.72;
}

[data-theme="dark"] .social-links .iico {
    filter: brightness(0) invert(1);
}

.hero-email {
    min-height: 1.5rem;
    margin-top: var(--space-2);
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

/* Full-width editorial sections */
.section-band {
    padding: var(--space-7) 0;
    border-top: 1px solid var(--color-border);
}

.section-band.tinted {
    background: color-mix(in srgb, var(--color-surface) 72%, transparent);
}

.section-heading {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: var(--space-4);
    align-items: start;
    margin-bottom: var(--space-5);
}

.section-heading-copy {
    max-width: 700px;
}

.section-heading-copy p {
    margin: var(--space-2) 0 0;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

/* Flagship feature */
.radar-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: var(--space-5);
    align-items: stretch;
    padding: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg-raised);
    box-shadow: var(--shadow-sm);
}

.work-meta {
    margin: 0 0 var(--space-2);
    color: var(--color-text-light);
}

.radar-feature h3 {
    font-size: 1.75rem;
}

.radar-feature .feature-summary {
    max-width: 620px;
    margin: var(--space-3) 0;
    color: var(--color-text-muted);
    font-size: 1.03rem;
}

.feature-points {
    display: grid;
    gap: var(--space-2);
    margin: var(--space-4) 0;
    padding: 0;
    list-style: none;
}

.feature-points li {
    position: relative;
    margin: 0;
    padding-left: 1.4rem;
    color: var(--color-text);
    font-size: 0.95rem;
}

.feature-points li::before {
    content: "";
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 0.55rem;
    height: 2px;
    background: var(--color-accent);
}

.feature-points li:nth-child(2)::before {
    background: var(--color-signal);
}

.feature-points li:nth-child(3)::before {
    background: var(--color-coral);
}

.pipeline-figure {
    min-height: 320px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    overflow: hidden;
}

.pipeline-figure-header,
.pipeline-figure-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-3);
    color: var(--color-text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.pipeline-figure-header {
    border-bottom: 1px solid var(--color-border);
}

.pipeline-figure-footer {
    border-top: 1px solid var(--color-border);
}

.pipeline-status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--color-accent);
    font-weight: 700;
}

.pipeline-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.pipeline-flow {
    display: grid;
    align-content: center;
    gap: 0;
    margin: 0;
    padding: var(--space-4);
    list-style: none;
}

.pipeline-flow li {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: var(--space-3);
    position: relative;
    margin: 0;
    padding: 0 0 var(--space-4);
}

.pipeline-flow li:last-child {
    padding-bottom: 0;
}

.pipeline-flow li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 2.25rem;
    bottom: 0.35rem;
    left: 1.2rem;
    width: 1px;
    background: var(--color-border);
}

.pipeline-number {
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-bg-raised);
    color: var(--color-accent);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 800;
    z-index: 1;
}

.pipeline-copy strong {
    display: block;
    color: var(--color-text);
    font-size: 0.95rem;
}

.pipeline-copy span {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

/* Evidence ledger */
.evidence-ledger {
    margin-top: var(--space-5);
    border-top: 1px solid var(--color-border);
}

.evidence-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) minmax(220px, 0.42fr);
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
}

.evidence-year {
    color: var(--color-text-light);
}

.evidence-copy h3 {
    margin-bottom: 0.35rem;
    font-size: 1.12rem;
}

.evidence-copy p {
    margin: 0;
    color: var(--color-text-muted);
}

.evidence-proof {
    justify-self: end;
    color: var(--color-accent);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: right;
}

.evidence-row:nth-child(2) .evidence-proof {
    color: var(--color-signal-text);
}

.evidence-row:nth-child(3) .evidence-proof {
    color: var(--color-coral-text);
}

.research-status {
    line-height: 1.6;
}

.research-status.accepted {
    color: var(--color-accent);
}

.research-status.submitted {
    color: var(--color-signal-text);
}

.research-status.pending {
    color: var(--color-coral-text);
}

.research-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: var(--space-3);
}

/* Public artifacts */
.artifact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.artifact {
    min-height: 260px;
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: var(--space-4);
    align-items: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-4) 0;
}

.artifact img {
    width: 170px;
    height: 150px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    object-fit: cover;
    background: var(--color-bg-raised);
}

.artifact h3 {
    margin-bottom: var(--space-2);
}

.artifact p {
    margin: 0 0 var(--space-3);
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0 0 var(--space-3);
    padding: 0;
    list-style: none;
}

.tag-list li {
    margin: 0;
    color: var(--color-text-light);
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

/* Current threads */
.thread-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.thread {
    min-height: 150px;
    padding: var(--space-4);
    border-right: 1px solid var(--color-border);
}

.thread:last-child {
    border-right: 0;
}

.thread .pipeline-label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-text-light);
}

.thread:nth-child(2) .pipeline-label {
    color: var(--color-signal-text);
}

.thread:nth-child(3) .pipeline-label {
    color: var(--color-coral-text);
}

.thread strong {
    display: block;
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1.45;
}

.thread p {
    margin: var(--space-2) 0 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Footer */
body.workbench footer.site-footer {
    margin: 0;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
}

.footer-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: 110px;
}

.footer-layout p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.footer-links a {
    font-size: 0.82rem;
    font-weight: 700;
}

@media (max-width: 900px) {
    body.workbench .nav {
        grid-template-columns: auto 1fr auto;
        gap: var(--space-2);
    }

    body.workbench .site-brand span {
        display: none;
    }

    body.workbench .nav-links {
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    body.workbench .nav-links::-webkit-scrollbar {
        display: none;
    }

    .section-heading {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .radar-feature {
        grid-template-columns: 1fr;
    }

    .pipeline-figure {
        min-height: 0;
    }

    .evidence-row {
        grid-template-columns: 130px minmax(0, 1fr);
    }

    .evidence-proof {
        grid-column: 2;
        justify-self: start;
        text-align: left;
    }

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

@media (max-width: 640px) {
    :root {
        --space-6: 2.75rem;
        --space-7: 3.75rem;
    }

    body.workbench .container {
        width: min(100% - 1.25rem, var(--page-width));
    }

    body.workbench h1 {
        font-size: 2.55rem;
        line-height: 1.05;
    }

    body.workbench h2 {
        font-size: 1.65rem;
    }

    body.workbench .nav {
        min-height: 0;
        grid-template-columns: 1fr auto;
        padding: 0.55rem 0 0.4rem;
    }

    body.workbench .site-brand img {
        width: 38px;
        height: 38px;
    }

    body.workbench .nav-links {
        grid-column: 1 / -1;
        grid-row: 2;
        gap: 0;
        padding-bottom: 0.15rem;
    }

    body.workbench .nav-links a {
        padding: 0.45rem 0.6rem;
        font-size: 0.78rem;
    }

    body.workbench .nav-actions {
        grid-column: 2;
        grid-row: 1;
    }

    body.workbench .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .workbench-hero {
        padding-top: var(--space-5);
    }

    .hero-identity {
        align-items: flex-start;
        gap: var(--space-3);
    }

    .hero-avatar {
        width: 88px;
        height: 88px;
    }

    .hero-lede {
        font-size: 1.22rem;
        line-height: 1.5;
    }

    .hero-note {
        font-size: 0.95rem;
    }

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

    .social-links {
        flex-basis: 100%;
        margin: var(--space-2) 0 0;
    }

    .section-heading {
        display: block;
    }

    .section-heading .section-index {
        display: block;
        margin-bottom: var(--space-2);
    }

    .radar-feature {
        padding: var(--space-4);
    }

    .radar-feature h3 {
        font-size: 1.5rem;
    }

    .pipeline-flow {
        padding: var(--space-3);
    }

    .evidence-row {
        display: block;
    }

    .evidence-year,
    .evidence-proof {
        display: block;
        margin-bottom: var(--space-2);
    }

    .evidence-proof {
        margin-top: var(--space-2);
    }

    .artifact {
        grid-template-columns: 110px minmax(0, 1fr);
        gap: var(--space-3);
    }

    .artifact img {
        width: 110px;
        height: 110px;
    }

    .thread-list {
        grid-template-columns: 1fr;
    }

    .thread {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .thread:last-child {
        border-bottom: 0;
    }

    .footer-layout {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: var(--space-4) 0;
    }
}

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

/* Inner pages */
.inner-hero {
    padding: var(--space-6) 0 var(--space-7);
}

.inner-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
    gap: var(--space-6);
    align-items: center;
}

.inner-hero .eyebrow {
    margin: 0 0 var(--space-2);
}

body.workbench .inner-hero h1 {
    max-width: 780px;
    font-size: 3.35rem;
}

.inner-lede {
    max-width: 760px;
    margin: var(--space-3) 0 0;
    color: var(--color-text-muted);
    font-size: 1.18rem;
    line-height: 1.65;
}

.inner-copy {
    max-width: 760px;
    margin: var(--space-3) 0 0;
    color: var(--color-text-muted);
}

.profile-rail {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: var(--space-4);
    align-items: center;
    border-left: 1px solid var(--color-border);
    padding-left: var(--space-5);
}

.profile-rail img {
    width: 128px;
    height: 128px;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.profile-facts,
.build-index {
    margin: 0;
}

.profile-fact,
.build-index-row {
    display: grid;
    gap: 0.15rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--color-border);
}

.profile-fact:first-child,
.build-index-row:first-child {
    border-top: 1px solid var(--color-border);
}

.profile-fact dt,
.build-index-row dt {
    color: var(--color-text-light);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
}

.profile-fact dd,
.build-index-row dd {
    margin: 0;
    color: var(--color-text);
    font-size: 0.84rem;
    font-weight: 700;
}

.principle-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.principle {
    min-height: 170px;
    padding: var(--space-4);
    border-right: 1px solid var(--color-border);
}

.principle:last-child {
    border-right: 0;
}

.principle .pipeline-label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-accent);
}

.principle:nth-child(2) .pipeline-label {
    color: var(--color-signal-text);
}

.principle:nth-child(3) .pipeline-label {
    color: var(--color-coral-text);
}

.principle h3 {
    font-size: 1.05rem;
}

.principle p {
    margin: var(--space-2) 0 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Career ledger */
.career-ledger {
    border-top: 1px solid var(--color-border);
}

.career-row {
    display: grid;
    grid-template-columns: 120px 68px minmax(0, 1fr) 190px;
    gap: var(--space-4);
    align-items: start;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
}

.career-period {
    padding-top: 0.45rem;
    color: var(--color-text-light);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.career-logo {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    background: #ffffff;
    overflow: hidden;
}

.career-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    opacity: 1;
}

.career-copy h3 {
    margin-bottom: 0.35rem;
    font-size: 1.13rem;
}

.career-org {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.career-copy p {
    max-width: 660px;
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.94rem;
}

.career-proof {
    padding-top: 0.45rem;
    color: var(--color-text-light);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 750;
    line-height: 1.6;
    text-align: right;
    text-transform: uppercase;
}

.career-row:nth-child(2) .career-proof {
    color: var(--color-signal-text);
}

.outside-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.outside-item {
    padding: var(--space-4);
    border-right: 1px solid var(--color-border);
}

.outside-item:last-child {
    border-right: 0;
}

.outside-item h3 {
    font-size: 1.05rem;
}

.outside-item p {
    margin: var(--space-2) 0 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Builds */
.build-index {
    border-left: 2px solid var(--color-accent);
    padding-left: var(--space-4);
}

.build-index-row {
    grid-template-columns: 42px 1fr;
    align-items: baseline;
}

.build-index-row dt {
    color: var(--color-accent);
    font-size: 0.78rem;
}

.build-ledger {
    border-top: 1px solid var(--color-border);
}

.build-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) minmax(230px, 0.38fr);
    gap: var(--space-4);
    align-items: start;
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--color-border);
}

.build-state {
    display: grid;
    gap: 0.3rem;
    padding-top: 0.25rem;
}

.build-status {
    color: var(--color-accent);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}

.build-status.tuning,
.build-status.operational {
    color: var(--color-signal-text);
}

.build-status.retired {
    color: var(--color-coral-text);
}

.build-date {
    color: var(--color-text-light);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    font-weight: 700;
}

.build-copy h3 {
    margin-bottom: var(--space-2);
    font-size: 1.25rem;
}

.build-copy p {
    max-width: 680px;
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.build-details {
    padding-left: var(--space-4);
    border-left: 1px solid var(--color-border);
}

.build-details strong {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-text-light);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    text-transform: uppercase;
}

.build-details p {
    margin: 0 0 var(--space-3);
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

.build-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.build-tags li {
    margin: 0;
    color: var(--color-text-light);
    font-family: var(--font-mono);
    font-size: 0.64rem;
    font-weight: 700;
    text-transform: uppercase;
}

.build-link {
    display: inline-flex;
    margin-top: var(--space-3);
    font-size: 0.8rem;
    font-weight: 750;
}

.archive-ledger {
    border-top: 1px solid var(--color-border);
}

.archive-row {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 140px;
    gap: var(--space-4);
    align-items: center;
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
}

.archive-row img {
    width: 180px;
    height: 125px;
    border: 1px solid var(--color-border);
    border-radius: 7px;
    background: var(--color-bg-raised);
    object-fit: cover;
}

.archive-row img.contain {
    padding: 0.5rem;
    object-fit: contain;
}

.archive-copy h3 {
    margin-bottom: 0.35rem;
    font-size: 1.15rem;
}

.archive-copy p {
    max-width: 650px;
    margin: 0 0 var(--space-2);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.archive-action {
    justify-self: end;
    font-size: 0.8rem;
    font-weight: 750;
}

.retired-note {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) minmax(230px, 0.38fr);
    gap: var(--space-4);
    padding: var(--space-4) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.retired-note h3 {
    font-size: 1.05rem;
}

.retired-note p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Notes */
.notes-hero .inner-hero-grid {
    align-items: end;
}

.notes-hero .build-index {
    width: 100%;
    max-width: 360px;
    justify-self: end;
}

.notes-ledger {
    border-top: 1px solid var(--color-border);
}

.note-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) 110px;
    gap: var(--space-4);
    align-items: start;
    padding: var(--space-5) 0;
    border-bottom: 1px solid var(--color-border);
}

.note-date {
    padding-top: 0.35rem;
    color: var(--color-text-light);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 750;
    text-transform: uppercase;
}

.note-row-copy .pipeline-label {
    display: block;
    margin-bottom: var(--space-2);
    color: var(--color-coral-text);
}

.note-row-copy h3 {
    font-size: 1.25rem;
}

.note-row-copy h3 a {
    color: var(--color-text);
    text-decoration: none;
}

.note-row-copy h3 a:hover {
    color: var(--color-accent);
}

.note-row-copy p {
    max-width: 700px;
    margin: var(--space-2) 0 0;
    color: var(--color-text-muted);
    font-size: 0.94rem;
}

.note-action {
    justify-self: end;
    padding-top: 0.35rem;
    font-size: 0.8rem;
    font-weight: 750;
    white-space: nowrap;
}

.note-shell {
    min-height: calc(100vh - 180px);
    padding-top: var(--space-5);
    padding-bottom: var(--space-7);
}

.back-link {
    display: inline-flex;
    margin-bottom: var(--space-5);
    font-size: 0.82rem;
    font-weight: 750;
}

.note-header {
    max-width: var(--reading-width);
    padding-bottom: var(--space-5);
    border-bottom: 1px solid var(--color-border);
}

.note-header .eyebrow {
    margin: 0 0 var(--space-2);
}

body.workbench .note-header h1 {
    font-size: 3.25rem;
}

.note-header > p:last-child {
    margin: var(--space-3) 0 0;
    color: var(--color-text-muted);
    font-size: 1.08rem;
}

.note-article {
    max-width: var(--reading-width);
    margin-top: var(--space-5);
    color: var(--color-text);
    font-size: 1.03rem;
    line-height: 1.78;
    overflow-wrap: anywhere;
}

.note-article > :first-child {
    margin-top: 0;
}

.note-article p {
    margin: 0 0 var(--space-4);
}

body.workbench .note-article h2 {
    margin: var(--space-6) 0 var(--space-3);
    font-size: 1.65rem;
}

body.workbench .note-article h3 {
    margin: var(--space-5) 0 var(--space-2);
    font-size: 1.25rem;
}

.note-article ul,
.note-article ol {
    margin: 0 0 var(--space-4);
    padding-left: 1.4rem;
}

.note-article li {
    margin-bottom: 0.5rem;
    padding-left: 0.2rem;
}

.note-article blockquote {
    margin: var(--space-5) 0;
    padding: var(--space-2) 0 var(--space-2) var(--space-4);
    border-left: 3px solid var(--color-accent);
    color: var(--color-text-muted);
}

.note-article blockquote p:last-child {
    margin-bottom: 0;
}

.note-article code {
    border-radius: 4px;
    padding: 0.12em 0.35em;
    background: var(--color-surface-strong);
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 0.88em;
}

.note-article pre {
    max-width: 100%;
    margin: var(--space-5) 0;
    padding: var(--space-4);
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: var(--color-bg-raised);
    line-height: 1.6;
}

.note-article pre code {
    padding: 0;
    background: transparent;
}

.note-article img {
    max-width: 100%;
    height: auto;
    margin: var(--space-4) 0;
    border: 1px solid var(--color-border);
    border-radius: 6px;
}

.note-article table {
    width: 100%;
    display: block;
    margin: var(--space-5) 0;
    overflow-x: auto;
    border-collapse: collapse;
}

.note-article th,
.note-article td {
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--color-border);
    text-align: left;
    white-space: nowrap;
}

.note-article th {
    background: var(--color-surface);
    font-size: 0.88rem;
}

.note-article hr {
    margin: var(--space-6) 0;
    border: 0;
    border-top: 1px solid var(--color-border);
}

.not-found {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
    padding: var(--space-6) 0;
    text-align: center;
}

.not-found-copy {
    max-width: 620px;
}

.error-code {
    display: block;
    color: var(--color-border);
    font-family: var(--font-mono);
    font-size: 8rem;
    font-weight: 800;
    line-height: 0.9;
}

.not-found h1 {
    margin-top: var(--space-4);
    font-size: 2.4rem;
}

.not-found p {
    margin: var(--space-3) auto var(--space-4);
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .inner-hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }

    .profile-rail {
        max-width: 600px;
        border-top: 1px solid var(--color-border);
        border-left: 0;
        padding-top: var(--space-4);
        padding-left: 0;
    }

    .build-index {
        max-width: 600px;
    }

    .career-row {
        grid-template-columns: 100px 64px minmax(0, 1fr);
    }

    .career-proof {
        grid-column: 3;
        text-align: left;
    }

    .build-row,
    .retired-note {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .build-details,
    .retired-note > :last-child {
        grid-column: 2;
    }

    .archive-row {
        grid-template-columns: 150px minmax(0, 1fr);
    }

    .archive-row img {
        width: 150px;
        height: 110px;
    }

    .archive-action {
        grid-column: 2;
        justify-self: start;
    }

    .notes-hero .build-index {
        justify-self: start;
    }

    .note-row {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .note-action {
        grid-column: 2;
        justify-self: start;
        padding-top: 0;
    }
}

@media (max-width: 640px) {
    .inner-hero {
        padding: var(--space-5) 0 var(--space-6);
    }

    body.workbench .inner-hero h1 {
        font-size: 2.45rem;
    }

    .inner-lede {
        font-size: 1rem;
    }

    .profile-rail {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: var(--space-3);
    }

    .profile-rail img {
        width: 88px;
        height: 88px;
    }

    .principle-strip,
    .outside-list {
        grid-template-columns: 1fr;
    }

    .principle,
    .outside-item {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .principle:last-child,
    .outside-item:last-child {
        border-bottom: 0;
    }

    .career-row {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: var(--space-3);
    }

    .career-period {
        grid-column: 1 / -1;
        padding-top: 0;
    }

    .career-logo {
        width: 52px;
        height: 52px;
    }

    .career-logo img {
        width: 42px;
        height: 42px;
    }

    .career-proof {
        grid-column: 2;
    }

    .build-row,
    .retired-note {
        display: block;
    }

    .build-state {
        margin-bottom: var(--space-3);
    }

    .build-details {
        margin-top: var(--space-3);
        padding-top: var(--space-3);
        padding-left: 0;
        border-top: 1px dashed var(--color-border);
        border-left: 0;
    }

    .archive-row {
        grid-template-columns: 100px minmax(0, 1fr);
        gap: var(--space-3);
        align-items: start;
    }

    .archive-row img {
        width: 100px;
        height: 90px;
    }

    .archive-action {
        grid-column: 2;
    }

    .retired-note h3,
    .retired-note p {
        margin-top: var(--space-2);
    }

    .note-row {
        grid-template-columns: 1fr;
        gap: var(--space-2);
        padding: var(--space-4) 0;
    }

    .note-date {
        padding-top: 0;
    }

    .note-action {
        grid-column: auto;
        margin-top: var(--space-2);
    }

    .note-shell {
        padding-top: var(--space-4);
        padding-bottom: var(--space-6);
    }

    .back-link {
        margin-bottom: var(--space-4);
    }

    body.workbench .note-header h1 {
        font-size: 2.35rem;
    }

    .note-header > p:last-child {
        font-size: 1rem;
    }

    .note-article {
        font-size: 1rem;
        line-height: 1.72;
    }

    body.workbench .note-article h2 {
        margin-top: var(--space-5);
        font-size: 1.45rem;
    }

    .error-code {
        font-size: 5.5rem;
    }
}
