:root {
    --bg: #f3f1ec;
    --bg-bright: #f8f6f1;
    --surface: #e7e3db;
    --surface-strong: #d7d1c5;
    --text: #1a1f24;
    --text-secondary: #49525c;
    --divider: #b8b1a5;
    --divider-soft: rgba(184, 177, 165, 0.58);
    --accent: #1f5e63;
    --accent-bright: #2c7479;
    --accent-soft: rgba(31, 94, 99, 0.09);
    --accent-alt: #a9502a;
    --data: #3e6178;
    --success: #4c7a5a;
    --ink-surface: #20272c;
    --radius-lg: 14px;
    --radius-md: 9px;
    --radius-sm: 5px;
    --shadow-nav: 0 8px 24px rgba(26, 31, 36, 0.07);
    --shadow-active: 0 18px 46px rgba(26, 31, 36, 0.1);
    --max-width: 1240px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --duration-fast: 160ms;
    --duration-base: 260ms;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    overflow-x: clip;
    color: var(--text);
    background:
        linear-gradient(90deg, rgba(184, 177, 165, 0.12) 1px, transparent 1px),
        linear-gradient(rgba(184, 177, 165, 0.1) 1px, transparent 1px),
        linear-gradient(180deg, var(--bg-bright), var(--bg));
    background-size: 120px 120px, 120px 120px, 100% 100%;
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

button,
summary,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid rgba(31, 94, 99, 0.42);
    outline-offset: 3px;
}

::selection {
    color: var(--bg-bright);
    background: var(--accent);
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--bg);
    background: var(--text);
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform var(--duration-fast) ease;
}

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

.page-shell {
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: 20px;
}

.site-header {
    position: sticky;
    top: 16px;
    z-index: 30;
}

.nav {
    width: min(100%, var(--max-width));
    min-height: 72px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--divider-soft);
    border-radius: var(--radius-md);
    background: rgba(243, 241, 236, 0.96);
    box-shadow: var(--shadow-nav);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--divider);
    border-radius: var(--radius-sm);
    background: var(--surface);
    font-family: "IBM Plex Mono", monospace;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.brand-lockup {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.brand-name {
    font-weight: 600;
}

.brand-role {
    color: var(--text-secondary);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.74rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav-links a {
    position: relative;
    color: var(--text-secondary);
    font-size: 0.88rem;
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-fast) ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-current {
    color: var(--text);
}

.nav-links a.is-current::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    border: 1px solid var(--divider);
    border-radius: var(--radius-sm);
    color: var(--text);
    background: var(--surface);
    font: 500 0.86rem "IBM Plex Sans", sans-serif;
    cursor: pointer;
}

.menu-icon {
    position: relative;
    width: 14px;
    height: 10px;
    border-top: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
}

.menu-icon::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 14px;
    height: 1px;
    background: currentColor;
    transition: transform var(--duration-fast) ease, opacity var(--duration-fast) ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon {
    border-color: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-icon::after {
    transform: rotate(45deg);
    box-shadow: 0 0 0 0 currentColor;
}

.menu-toggle[aria-expanded="true"] .menu-icon::before {
    content: "";
    position: absolute;
    top: 4px;
    left: 0;
    width: 14px;
    height: 1px;
    background: currentColor;
    transform: rotate(-45deg);
}

.section {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 78px 0;
    scroll-margin-top: 112px;
}

.candidate-snapshot {
    padding-top: 76px;
    padding-bottom: 34px;
}

.snapshot-grid,
.section-heading-split,
.judgment-grid,
.evidence-layout,
.about-layout,
.contact-panel {
    display: grid;
}

.snapshot-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.72fr);
    gap: 30px;
    align-items: start;
}

.eyebrow,
.panel-label,
.section-note,
.project-index,
.project-meta,
.project-signal-grid dt,
.workflow-label,
.trace-role,
.timeline-period,
.timeline-org,
.artifact-type,
.evidence-meta,
.capability-meta,
.principle-index,
.review-matrix dt,
.engineering-decisions dt {
    font-family: "IBM Plex Mono", "Consolas", monospace;
}

.eyebrow,
.panel-label,
.project-index,
.workflow-label,
.review-matrix dt,
.engineering-decisions dt {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--accent);
    font-size: 0.74rem;
}

.intro-band,
.role-strip,
.project-tags,
.evidence-meta,
.capability-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.intro-band span,
.role-strip span,
.project-tags span,
.evidence-meta span,
.capability-meta span {
    padding: 6px 9px;
    border: 1px solid var(--divider-soft);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    background: rgba(231, 227, 219, 0.62);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.72rem;
}

h1,
.section-heading h2 {
    margin: 0;
    letter-spacing: -0.045em;
}

h1 {
    max-width: 15ch;
    margin-top: 22px;
    font-size: clamp(2.65rem, 4.7vw, 4.2rem);
    line-height: 1;
    overflow-wrap: break-word;
}

.snapshot-summary {
    max-width: 64ch;
    margin: 24px 0 0;
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.72;
}

.role-strip {
    margin-top: 20px;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.btn {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid var(--divider);
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--duration-fast) ease, background var(--duration-fast) ease, border-color var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.btn:hover,
.btn:focus-visible {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.btn-primary {
    color: var(--bg-bright);
    background: var(--text);
    border-color: var(--text);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    color: #fff;
    background: var(--accent);
}

.btn-secondary {
    background: rgba(231, 227, 219, 0.5);
}

.snapshot-sidebar {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--divider);
    border-radius: var(--radius-md);
    background: var(--divider);
}

.snapshot-panel {
    padding: 20px;
    background: rgba(243, 241, 236, 0.98);
}

.snapshot-panel-primary {
    padding-top: 24px;
    padding-bottom: 28px;
}

.snapshot-panel-secondary {
    background: rgba(231, 227, 219, 0.82);
}

.panel-label {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 0.7rem;
}

.snapshot-panel h2,
.artifact-panel h3,
.fact-card h3,
.judgment-card h3,
.timeline-copy h3,
.evidence-card h3,
.capability-card h3 {
    margin: 0;
    font-size: 1.16rem;
    line-height: 1.35;
}

.snapshot-panel p:last-child,
.summary-list,
.judgment-intro,
.judgment-card p,
.timeline-copy p,
.evidence-card > p:not(.panel-label),
.capability-card > p:not(.panel-label),
.about-copy,
.fact-card > p:not(.panel-label),
.contact-lead,
.contact-list,
.artifact-copy span {
    color: var(--text-secondary);
    line-height: 1.66;
}

.summary-list {
    margin: 0;
    padding-left: 18px;
}

.summary-list li + li {
    margin-top: 8px;
}

.fast-proof {
    padding-top: 20px;
    padding-bottom: 48px;
}

.fast-proof-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.fast-proof-header .eyebrow,
.section-note {
    margin: 0;
}

.section-note {
    color: var(--text-secondary);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.proof-strip {
    display: flex;
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}

.proof-item {
    flex: 1 1 0;
    min-width: 0;
    min-height: 112px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    padding: 18px;
    border-left: 1px solid var(--divider-soft);
}

.proof-item:first-child {
    padding-left: 0;
    border-left: 0;
}

.proof-value {
    font-size: 1.52rem;
    letter-spacing: -0.035em;
}

.proof-label {
    color: var(--text-secondary);
    font-size: 0.87rem;
    line-height: 1.5;
}

.section-heading {
    max-width: 840px;
    margin-bottom: 40px;
}

.section-heading h2 {
    max-width: 13ch;
    font-size: clamp(2.1rem, 4.2vw, 3.55rem);
    line-height: 1.03;
}

.section-heading-split {
    max-width: none;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.4fr);
    align-items: end;
    gap: 52px;
}

.section-heading-split h2 {
    max-width: 15ch;
}

.reading-modes {
    padding-left: 18px;
    border-left: 2px solid var(--accent);
}

.reading-modes p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.5;
}

.reading-modes p + p {
    margin-top: 10px;
}

.reading-modes span {
    display: block;
    color: var(--text);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.work-section {
    padding-top: 92px;
}

.project-grid {
    display: grid;
    gap: 30px;
}

.project-card {
    overflow: clip;
    border: 1px solid var(--divider);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius-lg);
    background: rgba(243, 241, 236, 0.97);
    box-shadow: 0 8px 26px rgba(26, 31, 36, 0.045);
    transition: border-color var(--duration-fast) ease, box-shadow var(--duration-base) ease;
}

.project-card:nth-child(2) {
    border-left-color: var(--data);
}

.project-card:nth-child(3) {
    border-left-color: var(--accent-alt);
}

.project-card:hover,
.project-card:focus-within,
.project-card.is-expanded {
    box-shadow: var(--shadow-active);
}

.project-overview {
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(430px, 1.18fr);
    grid-template-areas:
        "title workflow"
        "summary workflow"
        "signal workflow"
        "footer footer";
    gap: 18px 34px;
}

.project-title-row {
    grid-area: title;
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
}

.project-index,
.project-meta {
    margin: 0;
    font-size: 0.7rem;
}

.project-index {
    color: var(--accent);
}

.project-meta {
    margin-top: 7px;
    color: var(--text-secondary);
}

.project-title-row h3 {
    margin: 12px 0 0;
    font-size: clamp(1.45rem, 2.4vw, 2.15rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.project-evidence {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    padding: 6px 9px;
    border: 1px solid var(--divider);
    border-radius: var(--radius-sm);
    color: var(--accent);
    background: var(--accent-soft);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
}

.project-evidence span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.project-summary {
    grid-area: summary;
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.98rem;
    line-height: 1.65;
}

.project-signal-grid {
    grid-area: signal;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    margin: 0;
    border: 1px solid var(--divider-soft);
    background: var(--divider-soft);
}

.project-signal-grid > div {
    padding: 12px 14px;
    background: var(--bg-bright);
}

.project-signal-grid dt,
.review-matrix dt,
.engineering-decisions dt {
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 0.66rem;
}

.project-signal-grid dd {
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
}

.workflow-trace {
    grid-area: workflow;
    align-self: stretch;
    padding: 18px;
    border: 1px solid var(--divider-soft);
    background: rgba(231, 227, 219, 0.4);
}

.workflow-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
}

.workflow-heading p {
    margin: 0;
}

.workflow-heading > div > p:last-child {
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.workflow-label {
    color: var(--accent);
    font-size: 0.68rem;
}

.workflow-hint {
    color: var(--text-secondary);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.66rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.workflow-trace ol {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.workflow-trace li {
    position: relative;
}

.workflow-trace li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -8px;
    z-index: 2;
    width: 8px;
    height: 1px;
    background: var(--divider);
    transition: background var(--duration-fast) ease;
}

.workflow-trace li:has(.is-complete)::after {
    background: var(--accent);
}

.trace-step {
    width: 100%;
    min-height: 84px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 11px;
    border: 1px solid var(--divider);
    border-radius: var(--radius-sm);
    color: var(--text);
    background: var(--bg-bright);
    font: 500 0.78rem/1.35 "IBM Plex Sans", sans-serif;
    text-align: left;
    cursor: pointer;
    transition: color var(--duration-fast) ease, background var(--duration-fast) ease, border-color var(--duration-fast) ease, transform var(--duration-fast) ease;
}

.trace-role {
    color: var(--text-secondary);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.trace-step:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

.trace-step.is-complete {
    border-color: rgba(31, 94, 99, 0.42);
    background: var(--accent-soft);
}

.trace-step.is-active {
    border-color: var(--ink-surface);
    color: var(--bg-bright);
    background: var(--ink-surface);
}

.trace-step.is-active .trace-role {
    color: #9fc4c4;
}

.trace-readout {
    min-height: 58px;
    margin: 14px 0 0;
    padding: 12px 14px;
    border-left: 2px solid var(--accent);
    color: var(--text-secondary);
    background: rgba(243, 241, 236, 0.7);
    font-size: 0.84rem;
    line-height: 1.5;
}

.project-overview-footer {
    grid-area: footer;
    padding-top: 2px;
}

.project-review {
    border-top: 1px solid var(--divider);
    background: var(--surface);
}

.project-toggle {
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0 28px;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    transition: color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.project-toggle::-webkit-details-marker {
    display: none;
}

.project-toggle:hover,
.project-toggle:focus-visible {
    color: var(--text);
    background: rgba(243, 241, 236, 0.45);
}

.when-open {
    display: none;
}

.project-review[open] .when-closed {
    display: none;
}

.project-review[open] .when-open {
    display: inline;
}

.toggle-icon {
    position: relative;
    width: 14px;
    height: 14px;
}

.toggle-icon::before,
.toggle-icon::after {
    content: "";
    position: absolute;
    top: 6px;
    left: 1px;
    width: 12px;
    height: 1px;
    background: currentColor;
    transition: transform var(--duration-fast) ease;
}

.toggle-icon::after {
    transform: rotate(90deg);
}

.project-review[open] .toggle-icon::after {
    transform: rotate(0);
}

@supports (interpolate-size: allow-keywords) {
    :root {
        interpolate-size: allow-keywords;
    }

    .project-review::details-content {
        height: 0;
        overflow: clip;
        opacity: 0;
        transition: height var(--duration-base) var(--ease-out), opacity var(--duration-fast) ease, content-visibility var(--duration-base) allow-discrete;
    }

    .project-review[open]::details-content {
        height: auto;
        opacity: 1;
    }
}

.deep-dive-inner {
    display: grid;
    gap: 26px;
    padding: 28px;
    border-top: 1px solid var(--divider);
}

.deep-dive-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.deep-dive-heading h4,
.engineering-decisions h4 {
    margin: 0;
    font-size: 1.2rem;
}

.deep-dive-heading > span {
    color: var(--text-secondary);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.7rem;
}

.review-matrix {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    border: 1px solid var(--divider);
    background: var(--divider);
}

.review-matrix > div {
    padding: 18px;
    background: var(--bg-bright);
}

.review-matrix dd {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.62;
}

.engineering-decisions {
    display: grid;
    grid-template-columns: minmax(200px, 0.38fr) minmax(0, 1fr);
    gap: 30px;
    padding: 22px;
    border: 1px solid var(--divider);
    background: rgba(243, 241, 236, 0.72);
}

.engineering-decisions dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
}

.engineering-decisions dd {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.58;
}

.project-evidence-row {
    padding-top: 20px;
    border-top: 1px solid var(--divider);
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.project-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.project-link:hover,
.project-link:focus-visible {
    color: var(--text);
}

.link-unavailable {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.judgment-section {
    padding-top: 104px;
}

.judgment-grid {
    grid-template-columns: minmax(270px, 0.7fr) minmax(0, 1.3fr);
    gap: 42px;
    padding: 36px 0;
    border-top: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
}

.judgment-intro {
    position: sticky;
    top: 116px;
    align-self: start;
    font-size: 1.04rem;
}

.judgment-intro p {
    margin: 0;
}

.judgment-cards {
    display: grid;
}

.judgment-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 18px;
    padding: 19px 0;
    border-top: 1px solid var(--divider-soft);
}

.judgment-card:first-child {
    padding-top: 0;
    border-top: 0;
}

.judgment-card:last-child {
    padding-bottom: 0;
}

.principle-index {
    margin: 3px 0 0;
    color: var(--accent);
    font-size: 0.72rem;
}

.judgment-card p:last-child {
    margin: 8px 0 0;
}

.timeline-section,
.evidence-section {
    padding-top: 96px;
}

.timeline {
    position: relative;
    display: grid;
    padding-left: 34px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 8px;
    width: 1px;
    background: var(--divider);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--divider);
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 31px;
    left: -31px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--bg);
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
    transition: transform var(--duration-fast) ease, background var(--duration-fast) ease;
}

.timeline-item:hover::before {
    background: var(--accent-alt);
    transform: scale(1.3);
}

.timeline-period,
.timeline-org {
    margin: 0;
    font-size: 0.76rem;
}

.timeline-period {
    color: var(--accent);
}

.timeline-org {
    margin-top: 7px;
    color: var(--text-secondary);
}

.timeline-copy p {
    margin: 10px 0 0;
}

.evidence-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
    gap: 22px;
    align-items: start;
}

.evidence-stack {
    display: grid;
    gap: 12px;
}

.evidence-card {
    padding: 19px;
    border: 1px solid var(--divider);
    border-left: 4px solid var(--data);
    border-radius: var(--radius-md);
    background: rgba(243, 241, 236, 0.96);
    transition: transform var(--duration-fast) ease, box-shadow var(--duration-fast) ease;
}

.evidence-card:nth-child(2) {
    border-left-color: var(--success);
}

.evidence-card:nth-child(3) {
    border-left-color: var(--accent-alt);
}

.evidence-card:hover,
.evidence-card:focus-within {
    box-shadow: 0 10px 26px rgba(26, 31, 36, 0.07);
    transform: translateX(3px);
}

.evidence-card > p:not(.panel-label) {
    margin: 10px 0 0;
}

.evidence-meta,
.capability-meta {
    margin-top: 14px;
}

.artifact-panel {
    position: sticky;
    top: 116px;
    padding: 22px;
    border-radius: var(--radius-md);
    color: var(--bg-bright);
    background: var(--ink-surface);
    box-shadow: var(--shadow-active);
}

.artifact-panel .panel-label,
.artifact-type {
    color: #9fc4c4;
}

.artifact-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.artifact-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 13px;
    border: 1px solid rgba(243, 241, 236, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(243, 241, 236, 0.04);
    text-decoration: none;
    transition: border-color var(--duration-fast) ease, background var(--duration-fast) ease;
}

.artifact-item:hover,
.artifact-item:focus-visible {
    border-color: #9fc4c4;
    background: rgba(243, 241, 236, 0.08);
}

.artifact-type {
    font-size: 0.68rem;
}

.artifact-copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.artifact-copy span {
    color: #c9cec9;
    font-size: 0.84rem;
}

.external-mark {
    color: #9fc4c4;
}

.capabilities-section {
    padding-top: 90px;
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    border-top: 1px solid var(--divider);
    border-left: 1px solid var(--divider);
    background: var(--divider);
}

.capability-card {
    min-height: 230px;
    padding: 24px;
    border-right: 1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
    background: var(--bg);
    transition: background var(--duration-fast) ease;
}

.capability-card:nth-child(2),
.capability-card:nth-child(3) {
    min-height: 268px;
}

.capability-card:hover {
    background: var(--surface);
}

.capability-card > p:not(.panel-label) {
    margin: 12px 0 0;
}

.about-section {
    padding-top: 112px;
    padding-bottom: 112px;
}

.about-layout {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.68fr);
    gap: 54px;
    align-items: start;
}

.about-copy {
    max-width: 65ch;
    font-size: 1.08rem;
}

.about-copy p {
    margin: 0;
}

.about-copy p + p {
    margin-top: 18px;
}

.about-facts {
    border-top: 1px solid var(--divider);
}

.fact-card {
    padding: 20px 0;
    border-bottom: 1px solid var(--divider);
}

.fact-card > p:not(.panel-label) {
    margin: 10px 0 0;
}

.contact-section {
    padding-top: 80px;
}

.contact-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 28px;
    padding: 30px;
    border-radius: var(--radius-lg);
    color: var(--bg-bright);
    background: var(--ink-surface);
    box-shadow: var(--shadow-active);
}

.contact-panel .contact-lead,
.contact-panel .contact-list {
    color: #c9cec9;
}

.contact-lead {
    max-width: 58ch;
    margin: 0;
}

.contact-list {
    margin: 18px 0 0;
    padding-left: 18px;
}

.contact-list li + li {
    margin-top: 7px;
}

.contact-panel .btn-primary {
    color: var(--ink-surface);
    background: var(--bg-bright);
    border-color: var(--bg-bright);
}

.contact-panel .btn-secondary {
    color: var(--bg-bright);
    background: transparent;
    border-color: rgba(243, 241, 236, 0.3);
}

.site-footer {
    width: min(100%, var(--max-width));
    margin: 0 auto;
    padding: 8px 0 34px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--text-secondary);
    font-size: 0.88rem;
}

@media (max-width: 1080px) {
    .snapshot-grid,
    .section-heading-split,
    .judgment-grid,
    .evidence-layout,
    .about-layout,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .section-heading-split,
    .judgment-grid,
    .about-layout {
        gap: 28px;
    }

    .judgment-intro,
    .artifact-panel {
        position: static;
    }

    .project-overview {
        grid-template-columns: minmax(0, 0.72fr) minmax(400px, 1.28fr);
    }

    .capability-card,
    .capability-card:nth-child(2),
    .capability-card:nth-child(3) {
        min-height: auto;
    }
}

@media (max-width: 820px) {
    html.nav-open {
        overflow: hidden;
    }

    .page-shell {
        padding: 14px;
    }

    .site-header {
        top: 10px;
    }

    .nav {
        min-height: 68px;
        flex-wrap: wrap;
        align-items: center;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-links {
        width: 100%;
        max-height: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow: hidden;
        visibility: hidden;
        opacity: 0;
        transition: max-height var(--duration-base) var(--ease-out), opacity var(--duration-fast) ease, visibility var(--duration-fast) step-end, padding var(--duration-base) var(--ease-out);
    }

    .nav-links.is-open {
        max-height: 320px;
        padding: 8px 0 4px;
        visibility: visible;
        opacity: 1;
        transition: max-height var(--duration-base) var(--ease-out), opacity var(--duration-fast) ease, visibility 0s step-start, padding var(--duration-base) var(--ease-out);
    }

    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        border-top: 1px solid var(--divider-soft);
    }

    .nav-links a::after {
        display: none;
    }

    .section {
        padding: 62px 0;
        scroll-margin-top: 94px;
    }

    .candidate-snapshot {
        padding-top: 48px;
        padding-bottom: 28px;
    }

    .fast-proof {
        padding-top: 18px;
        padding-bottom: 36px;
    }

    .proof-strip {
        flex-wrap: wrap;
    }

    .proof-item,
    .proof-item:first-child {
        flex: 1 1 33%;
        min-height: 105px;
        padding: 14px;
        border-top: 1px solid var(--divider-soft);
        border-left: 0;
    }

    .project-overview {
        grid-template-columns: 1fr;
        grid-template-areas: "title" "summary" "signal" "workflow" "footer";
        padding: 22px;
    }

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

    .workflow-trace li:nth-child(2)::after {
        display: none;
    }

    .deep-dive-inner {
        padding: 22px;
    }

    .review-matrix,
    .engineering-decisions,
    .engineering-decisions dl {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }

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

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

@media (max-width: 560px) {
    h1 {
        max-width: none;
        font-size: clamp(2.15rem, 10vw, 2.85rem);
        overflow-wrap: anywhere;
    }

    .section-heading h2,
    .section-heading-split h2 {
        max-width: none;
        font-size: clamp(2rem, 10vw, 2.75rem);
    }

    .intro-band span:nth-child(2) {
        display: none;
    }

    .fast-proof-header,
    .project-title-row,
    .workflow-heading,
    .deep-dive-heading,
    .contact-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .proof-item,
    .proof-item:first-child {
        flex-basis: 50%;
    }

    .project-card {
        border-radius: var(--radius-md);
    }

    .project-evidence {
        align-self: flex-start;
    }

    .workflow-trace ol {
        grid-template-columns: 1fr;
    }

    .workflow-trace li::after {
        display: none;
    }

    .trace-step {
        min-height: 66px;
    }

    .project-toggle {
        padding: 0 20px;
    }

    .hero-actions,
    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .contact-panel {
        padding: 22px;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    body {
        background: #fff;
    }

    .site-header,
    .hero-actions,
    .contact-actions,
    .workflow-hint {
        display: none;
    }

    .page-shell {
        padding: 0;
    }

    .section {
        padding: 28px 0;
    }

    .project-card,
    .evidence-card,
    .artifact-panel,
    .contact-panel {
        box-shadow: none;
        break-inside: avoid;
    }

    .project-review:not([open]) > :not(summary) {
        display: block;
    }

    .project-toggle {
        display: none;
    }
}
