@font-face {
    font-family: "IBM Plex Sans";
    src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Sans";
    src: url("/fonts/ibm-plex-sans-latin-700-normal.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Serif";
    src: url("/fonts/ibm-plex-serif-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "IBM Plex Mono";
    src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-sans: "IBM Plex Sans", Arial, sans-serif;
    --font-serif: "IBM Plex Serif", Georgia, serif;
    --font-mono: "IBM Plex Mono", Consolas, monospace;
    --black: #090909;
    --white: #fafaf6;
    --gray-100: #f0f0ea;
    --gray-200: #d8d8cf;
    --gray-500: #6b6b63;
    --gray-800: #242421;
    --accent-red: #b4252d;
    --accent-blue: #23647a;
    --radius: 8px;
    --container: min(1120px, calc(100vw - 32px));
    --article: min(840px, calc(100vw - 32px));
    --line: rgb(9 9 9 / 0.16);
    --shadow: 0 18px 45px rgb(0 0 0 / 0.12);
    --paper: var(--white);
    --paper-soft: var(--gray-100);
    --ink: var(--black);
    --ink-soft: var(--gray-800);
    --muted: var(--gray-500);
    --inverse-paper: var(--black);
    --inverse-ink: var(--white);
}

:root[data-theme="dark"] {
    --paper: var(--black);
    --paper-soft: var(--gray-800);
    --ink: var(--white);
    --ink-soft: var(--gray-200);
    --muted: #b8b8b0;
    --line: rgb(250 250 246 / 0.2);
    --inverse-paper: var(--white);
    --inverse-ink: var(--black);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 128px;
    background: var(--paper);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    color: var(--ink);
    background:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px),
        var(--paper);
    background-size: 48px 48px;
    line-height: 1.58;
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.app-body--simple {
    background-size: 40px 40px;
}

a {
    color: currentColor;
    text-underline-offset: 0.24em;
}

button,
input,
textarea {
    font: inherit;
}

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

button,
a {
    touch-action: manipulation;
}

:focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 4px;
}

::selection {
    background: var(--ink);
    color: var(--paper);
}

.skip-link {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 100;
    transform: translateY(-180%);
    border: 1px solid currentColor;
    border-radius: var(--radius);
    padding: 10px 14px;
    background: var(--paper);
    color: var(--ink);
}

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

.app-page-shell {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    color: var(--ink);
    backdrop-filter: blur(16px);
}

.nav-shell {
    width: var(--container);
    min-height: 72px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
}

.brand-mark {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    text-decoration: none;
}

.brand-mark strong {
    display: grid;
    gap: 1px;
    line-height: 1.1;
}

.brand-mark small {
    max-width: 34ch;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.brand-mark span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-mono);
    font-size: 13px;
}

.nav-links {
    justify-self: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nav-links a,
.theme-toggle,
.section-nav a,
.app-link-button,
.app-card-actions a {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
}

.nav-links a,
.theme-toggle {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: transparent;
    color: currentColor;
    font-size: 15px;
}

.nav-links a[aria-current="page"],
.nav-links a:hover,
.theme-toggle:hover {
    background: var(--ink);
    color: var(--paper);
}

.theme-toggle {
    cursor: pointer;
}

.theme-toggle span:first-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-size: 15px;
    line-height: 1;
}

.section-nav {
    width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 0 0 10px;
}

.section-nav > span {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
}

.section-nav > div {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.section-nav a {
    flex: 0 0 auto;
    padding: 6px 9px;
    color: var(--ink-soft);
    font-size: 13px;
    white-space: nowrap;
}

.section-nav a:hover,
.section-nav a:focus-visible {
    background: var(--ink);
    color: var(--paper);
}

.toc-link--subsection {
    opacity: 0.82;
}

.app-main-text,
.report-shell {
    width: var(--container);
    margin: 0 auto;
}

.app-main-text {
    padding: 48px 0 96px;
}

.app-main-text--simple {
    min-height: 68vh;
}

.app-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 64px 0;
}

.app-hero--curated {
    border-bottom: 1px solid var(--line);
}

.app-hero--compact {
    max-width: var(--article);
}

.app-hero__eyebrow,
.app-section-kicker,
.app-card-kicker {
    margin: 0 0 12px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0;
    text-transform: uppercase;
}

.app-hero h1,
.app-section-heading h2 {
    margin: 0;
    max-width: 12ch;
    font-size: 64px;
    line-height: 0.96;
    letter-spacing: 0;
}

.app-hero__statement {
    max-width: 760px;
    margin: 24px 0 0;
    color: var(--ink-soft);
    font-size: 22px;
    line-height: 1.36;
}

.app-hero__supporting {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--ink-soft);
    font-size: 18px;
}

.app-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.app-link-button,
.app-card-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 13px;
    background: var(--ink);
    color: var(--paper);
    font-weight: 700;
}

.app-link-button--ghost,
.app-card-actions a:hover,
.app-link-button:hover {
    background: transparent;
    color: var(--ink);
}

.section--ink .app-link-button--ghost,
.section--ink .app-card-actions a:hover,
.section--ink .app-link-button:hover {
    color: currentColor;
}

.app-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: color-mix(in srgb, var(--paper) 92%, var(--ink));
}

.app-hero-metrics li {
    min-height: 128px;
    padding: 18px;
    border-right: 1px solid var(--line);
}

.app-hero-metrics li:last-child {
    border-right: 0;
}

.app-hero-metrics span {
    display: block;
    margin-bottom: 18px;
    font-family: var(--font-mono);
    color: var(--muted);
}

.app-hero-metrics strong {
    display: block;
    max-width: 16ch;
    font-size: 24px;
    line-height: 1.08;
}

.app-section {
    padding: 72px 0;
    scroll-margin-top: 128px;
}

.section--ink {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: calc((100vw - min(1120px, calc(100vw - 32px))) / 2);
    padding-right: calc((100vw - min(1120px, calc(100vw - 32px))) / 2);
    background: var(--inverse-paper);
    color: var(--inverse-ink);
}

.app-section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1fr);
    gap: 24px;
    align-items: end;
    margin-bottom: 32px;
}

.app-section-heading .app-section-kicker {
    grid-column: 1 / -1;
    margin: 0;
}

.app-section-heading p {
    max-width: 62ch;
    margin: 0;
    color: color-mix(in srgb, currentColor 76%, transparent);
}

.app-card-grid,
.practice-grid,
.contact-grid {
    display: grid;
    gap: 16px;
}

.app-card-grid--featured {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

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

.app-card-grid--resume,
.practice-grid,
.contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-showcase-card,
.method-card,
.contact-card {
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    border-radius: var(--radius);
    background: color-mix(in srgb, currentColor 5%, transparent);
    overflow: hidden;
}

.app-showcase-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 100%;
}

.app-showcase-card--large {
    grid-row: auto;
}

.app-card-media {
    position: relative;
    min-height: 260px;
    border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    background:
        linear-gradient(currentColor 1px, transparent 1px),
        linear-gradient(90deg, currentColor 1px, transparent 1px);
    background-size: 24px 24px;
    overflow: hidden;
}

.app-card-media-static {
    position: absolute;
    inset: 0;
}

.app-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
}

.app-card-image--active,
.app-card-media--single .app-card-image {
    opacity: 1;
}

.app-showcase-card--research .app-card-media {
    --research-card-grid-line: color-mix(in srgb, var(--paper) 18%, transparent);
    --research-card-grid-surface: var(--inverse-paper);
    background:
        linear-gradient(var(--research-card-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--research-card-grid-line) 1px, transparent 1px),
        var(--research-card-grid-surface);
    background-size: 48px 48px;
}

.app-showcase-card--research .app-card-image {
    object-fit: contain;
    padding: 12px;
}

.app-card-media--image-container {
    background: var(--white);
}

.app-card-image-container {
    position: absolute;
    inset: 0;
    box-sizing: border-box;
    display: grid;
    gap: 2.4px;
    background: var(--black);
}

.app-card-image-container--depth-1 {
    padding: 0;
}

.app-card-image-container--depth-2 {
    padding: 0;
}

.app-card-image-container--depth-3 {
    padding: 0;
}

.app-card-image-container--replacement {
    z-index: 0;
}

.app-card-image-container--is-replacing {
    z-index: 2;
    pointer-events: none;
    transition: transform var(--app-card-slide-duration, 900ms) cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
}

.app-card-image-container--slide-out {
    transform: translate(var(--app-card-slide-x, 0), var(--app-card-slide-y, 0));
}

.app-card-image-container__space {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: var(--white);
}

.app-card-image-container img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.app-card-image-container--count-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

.app-card-image-container--count-2.app-card-image-container--split-horizontal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-card-image-container--count-2.app-card-image-container--split-vertical {
    grid-template-rows: repeat(2, minmax(0, 1fr));
}

.app-card-image-container--count-3.app-card-image-container--split-horizontal {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-card-image-container--count-3.app-card-image-container--split-vertical {
    grid-template-rows: repeat(3, minmax(0, 1fr));
}

.app-card-image-container--count-3.app-card-image-container--merged.app-card-image-container--split-horizontal.app-card-image-container--merge-start {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.app-card-image-container--count-3.app-card-image-container--merged.app-card-image-container--split-horizontal.app-card-image-container--merge-end {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

.app-card-image-container--count-3.app-card-image-container--merged.app-card-image-container--split-vertical.app-card-image-container--merge-start {
    grid-template-rows: minmax(0, 2fr) minmax(0, 1fr);
}

.app-card-image-container--count-3.app-card-image-container--merged.app-card-image-container--split-vertical.app-card-image-container--merge-end {
    grid-template-rows: minmax(0, 1fr) minmax(0, 2fr);
}

@media (prefers-reduced-motion: reduce) {
    .app-card-image-container--is-replacing {
        transition-duration: 1ms;
    }
}

.app-card-media--placeholder {
    display: grid;
    place-items: center;
}

.app-card-placeholder {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 20px;
    color: currentColor;
    font-family: var(--font-mono);
    text-align: center;
}

.app-card-body,
.method-card,
.contact-card {
    padding: 22px;
}

.app-card-meta {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    color: color-mix(in srgb, currentColor 72%, transparent);
    font-family: var(--font-mono);
    font-size: 13px;
}

.app-card-date {
    white-space: nowrap;
}

.app-showcase-card h3,
.method-card h3,
.contact-card h3 {
    margin: 0 0 12px;
    font-size: 26px;
    line-height: 1.08;
    letter-spacing: 0;
}

.app-card-summary,
.method-card p,
.contact-card p {
    margin: 0;
    color: color-mix(in srgb, currentColor 78%, transparent);
}

.app-card-detail-list {
    display: grid;
    gap: 10px;
    margin: 20px 0 0;
}

.app-card-detail-list div {
    display: grid;
    gap: 4px;
    padding-top: 10px;
    border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.app-card-detail-list dt {
    font-family: var(--font-mono);
    font-size: 12px;
    color: color-mix(in srgb, currentColor 62%, transparent);
    text-transform: uppercase;
}

.app-card-detail-list dd {
    margin: 0;
    color: color-mix(in srgb, currentColor 82%, transparent);
}

.app-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.app-tag-list li {
    border: 1px solid color-mix(in srgb, currentColor 28%, transparent);
    border-radius: var(--radius);
    padding: 5px 8px;
    font-size: 13px;
}

.app-card-actions {
    margin-top: 22px;
}

.method-card {
    min-height: 260px;
}

.method-card > span {
    display: block;
    margin-bottom: 42px;
    font-family: var(--font-mono);
    color: color-mix(in srgb, currentColor 64%, transparent);
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 220px;
    min-width: 0;
}

.contact-card h3 {
    max-width: 100%;
}

.contact-card__value {
    color: inherit;
    overflow-wrap: anywhere;
    word-break: break-word;
    text-decoration: none;
}

.contact-card__value[href]:hover,
.contact-card__value[href]:focus-visible {
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.contact-card .app-card-actions {
    margin-top: auto;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
}

.section-inner {
    width: var(--container);
    margin: 0 auto;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
}

.footer-grid p {
    margin: 0;
}

/* Long-form reports */
.report-shell {
    padding: 56px 0 104px;
}

.main-text {
    width: var(--article);
    margin: 0 auto;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--paper) 96%, var(--ink));
    box-shadow: var(--shadow);
}

.main-text > :first-child {
    margin-top: 0;
}

.main-text .report-lead {
    font-size: 1.05rem;
    color: var(--ink-soft);
    border-left: 3px solid var(--line);
    padding-left: 18px;
    margin: 28px 0;
}

.main-text h1,
.main-text h2,
.main-text h3,
.main-text h4 {
    letter-spacing: 0;
    line-height: 1.12;
}

.main-text h1 {
    margin: 0 0 24px;
    font-size: 44px;
}

.main-text h2 {
    margin: 42px 0 14px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    font-size: 30px;
}

.main-text--crypto-ai > h1 + h2 {
    margin: -10px 0 28px;
    padding-top: 0;
    border-top: 0;
    color: var(--muted);
    font-size: 22px;
    line-height: 1.32;
}

.main-text h3 {
    margin: 30px 0 10px;
    font-size: 22px;
}

.main-text h4 {
    margin: 24px 0 8px;
    font-size: 18px;
}

.main-text p,
.main-text li,
.main-text dd,
.main-text td,
.main-text th {
    font-size: 16px;
    line-height: 1.62;
}

.main-text p {
    margin: 0 0 18px;
}

.main-text ul,
.main-text ol {
    padding-left: 24px;
}

.main-text li {
    margin-bottom: 8px;
}

.report-title {
    margin-bottom: 28px;
}

.report-title h1 {
    max-width: 18ch;
}

.byline {
    margin: 4px 0;
    color: var(--muted);
    font-family: var(--font-mono);
}

.abstract-box,
.report-note {
    margin: 26px 0;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper-soft);
}

.abstract-box h3 {
    margin-top: 0;
}

figure {
    margin: 28px 0;
}

figcaption,
.fig {
    margin: 8px auto 0;
    max-width: 72ch;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.main-text figure img,
.main-text img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.main-text .grid-container img,
.main-text .figure-grid img {
    width: 100%;
}

.theme-figure-image {
    display: block;
}

.theme-figure-image__asset--dark {
    display: none;
}

:root[data-theme="dark"] .theme-figure-image__asset--light {
    display: none;
}

:root[data-theme="dark"] .theme-figure-image__asset--dark {
    display: block;
}

.main-text > img + .fig {
    margin-bottom: 28px;
}

.main-text .grid-container + .fig,
.main-text .figure-grid + .fig {
    margin-bottom: 28px;
}

.figure-grid,
.grid-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

.grid-item {
    min-width: 0;
}

.figure-grid--triple {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.subfigure {
    margin: 0;
}

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

.grid-cols-225px-auto {
    grid-template-columns: 225px minmax(0, 1fr);
}

.report-table,
.center-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 12px;
}

th,
td {
    padding: 9px 8px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    font-weight: 700;
}

.report-table--compact td,
.report-table--compact th {
    font-size: 13px;
}

.eqn,
.equation-group,
pre,
code {
    font-family: var(--font-mono);
}

.eqn,
.equation-group,
pre,
.center-command {
    overflow-x: auto;
    margin: 22px 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--paper-soft) 82%, var(--paper));
}

.center-command {
    text-align: center;
}

.center-command p {
    margin: 0;
    font-family: var(--font-mono);
}

/* Justified body copy, matching the LaTeX source. Tables stay left-aligned. */
.main-text--justified p,
.main-text--justified li,
.main-text--justified dd {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
}

.main-text--justified .center-command p,
.main-text--justified figcaption,
.main-text--justified .fig {
    text-align: center;
    hyphens: manual;
}

.main-text--justified th,
.main-text--justified td {
    text-align: left;
    hyphens: manual;
}

.report-note--algorithm h4,
.report-note--proposition h4,
.report-note--proof h4 {
    margin-top: 0;
}

.report-note--algorithm > :last-child,
.report-note--proposition > :last-child,
.report-note--proof > :last-child {
    margin-bottom: 0;
}

.equation-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

.equation-number {
    color: var(--muted);
}

.math-inline,
.math-display {
    font-family: var(--font-mono);
}

.math-display {
    display: inline-block;
}

.math-overline {
    text-decoration: overline;
}

.report-references,
.report-footnotes {
    word-break: break-word;
}

/* LaTeX \begin{description} glossaries: a bold run-in term over its body. */
.report-definitions {
    margin: 0 0 16px;
}

.report-definitions dt {
    margin: 16px 0 4px;
    font-weight: 700;
}

.report-definitions dd {
    margin: 0;
}

.report-definitions dd > :first-child {
    margin-top: 0;
}

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

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

.text-center {
    text-align: center;
}

.fs-14 {
    font-size: 14px;
}

.pl-1-2em {
    padding-left: 1.2em;
}

.table-w-210 {
    width: 210px;
}

.table-margin-left-50 {
    margin-left: 50px;
}

.col-w-80 {
    width: 80px;
}

.col-w-20p {
    width: 20%;
}

.transform-flipX {
    transform: scaleX(-1);
}

.at {
    vertical-align: top;
}

.pb10 {
    padding-bottom: 12px;
}

.CHARS {
    padding-top: 25px;
}

.ai-art-main.app-main-text {
    width: 100%;
    padding: 0;
}

.ai-art-showcase-section {
    position: relative;
    width: 100vw;
    min-height: calc(100dvh - 72px);
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background: var(--white);
}

.ai-art-intro-panel {
    position: relative;
    z-index: 4;
    width: min(560px, calc(100vw - 32px));
    margin: clamp(16px, 2.4vw, 28px);
    border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
    border-radius: var(--radius);
    padding: clamp(18px, 2.4vw, 28px);
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    color: var(--ink);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.ai-art-intro-panel h1 {
    margin: 0;
    max-width: 11ch;
    font-size: clamp(36px, 4.2vw, 62px);
    line-height: 0.96;
}

.ai-art-intro-panel__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.ai-art-intro-panel__header .app-hero__eyebrow {
    margin: 0;
}

.ai-art-hide-button {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 6px 10px;
    background: transparent;
    color: currentColor;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.ai-art-hide-button:hover,
.ai-art-hide-button:focus-visible {
    background: var(--ink);
    color: var(--paper);
}

.ai-art-intro-panel .app-hero__supporting {
    max-width: none;
    margin-top: 16px;
    font-size: 16px;
}

.ai-art-window.app-card-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: var(--white);
    box-shadow: none;
}

.ai-art-window .app-card-image-container {
    gap: 0;
}

.ai-art-window .app-card-image-container img {
    animation: ai-art-ken-burns 26s ease-in-out infinite alternate;
    transition: filter 160ms ease, transform 160ms ease;
    will-change: transform;
}

.ai-art-window .app-card-image-container img:hover,
.ai-art-window .app-card-image-container img:focus-visible {
    filter: contrast(1.04) saturate(1.04);
}

.ai-art-window .app-card-image-container__space:nth-child(2n) > img,
.ai-art-window .app-card-image-container__space:nth-child(2n) > .app-card-image-container img {
    animation-delay: -7s;
    animation-direction: alternate-reverse;
}

.ai-art-window .app-card-image-container__space:nth-child(3n) > img,
.ai-art-window .app-card-image-container__space:nth-child(3n) > .app-card-image-container img {
    animation-delay: -13s;
}

@keyframes ai-art-ken-burns {
    from {
        transform: scale(1.02) translate3d(-0.7%, -0.6%, 0);
    }

    to {
        transform: scale(1.08) translate3d(0.7%, 0.6%, 0);
    }
}

.app-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgb(0 0 0 / 0.82);
}

.app-lightbox[hidden] {
    display: none;
}

.app-lightbox__dialog {
    display: grid;
    gap: 12px;
    max-width: 94vw;
    max-height: 94vh;
}

.app-lightbox__content {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 0;
}

.app-lightbox__media {
    width: auto;
    height: auto;
    max-width: 94vw;
    max-height: calc(94vh - 80px);
}

.app-lightbox__media--framed {
    padding: 12px;
    background: var(--paper);
}

.app-lightbox__caption {
    margin: 0;
    color: #fff;
    font-size: 13px;
    text-align: center;
}

.app-lightbox-target {
    cursor: zoom-in;
}

/* ---- Research series: hub overview ---- */
.series-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.series-overview-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.series-overview-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--ink);
}

.series-overview-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.5;
}

/* ---- Research series: companion documents outside the numbered arc ---- */
.series-companion-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.series-companion-card {
    margin: 0;
}

/* ---- Research series: timeline ---- */
.series-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 20px;
}

.series-timeline__item {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.series-timeline__rail {
    position: relative;
    display: flex;
    justify-content: center;
}

.series-timeline__rail::before {
    content: "";
    position: absolute;
    top: 44px;
    bottom: -20px;
    width: 2px;
    background: var(--line);
}

.series-timeline__item:last-child .series-timeline__rail::before {
    display: none;
}

.series-timeline__index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--paper);
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--muted);
}

.series-timeline__card {
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.series-timeline__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.series-timeline__phase {
    font-family: var(--font-mono);
    font-size: 13px;
    text-transform: uppercase;
    color: var(--accent-blue);
}

.series-timeline__year {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
}

.series-timeline__card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.15;
}

.series-timeline__card h3 a {
    color: inherit;
    text-decoration: none;
}

.series-timeline__card h3 a:hover {
    text-decoration: underline;
}

.series-timeline__note {
    margin: 0 0 16px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.55;
}

/* A part whose report is still being written: present in the arc, but visibly
   not yet openable. */
.series-timeline__card--upcoming {
    border-style: dashed;
    box-shadow: none;
    background: color-mix(in srgb, var(--paper) 96%, var(--ink));
}

.series-timeline__card--upcoming h3 {
    color: var(--ink-soft);
}

.series-timeline__status {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--muted);
}

/* ---- Research series: per-report nav within report-shell ---- */
.series-nav {
    width: var(--article);
    margin: 0 auto;
    box-sizing: border-box;
}

.series-nav--top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 28px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--paper) 96%, var(--ink));
}

.series-nav--top .series-nav__home {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    color: inherit;
}

.series-nav__series-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
}

.series-nav__position {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    color: var(--muted);
}

.series-nav__overview {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-blue);
    text-decoration: none;
    white-space: nowrap;
}

.series-nav__overview:hover {
    text-decoration: underline;
}

.series-nav--bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.series-nav__cell--next {
    text-align: right;
}

.series-nav__cell a {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
    color: inherit;
}

.series-nav__cell--next a {
    align-items: flex-end;
}

.series-nav__dir {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    color: var(--muted);
}

.series-nav__label {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.series-nav__cell a:hover .series-nav__label {
    color: var(--accent-blue);
}

.series-nav__overview--bottom {
    justify-self: center;
}

/* Collection (non-chronological) bottom nav: a sibling list, not prev/next. */
.series-nav--collection {
    width: var(--article);
    margin: 48px auto 0;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 18px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.series-nav__more-label {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    color: var(--muted);
}

.series-nav__more-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
}

.series-nav__more-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
}

.series-nav__more-links a:hover {
    color: var(--accent-blue);
}

.series-nav__more-all {
    color: var(--accent-blue) !important;
    font-family: var(--font-mono);
    font-size: 13px !important;
    font-weight: 400 !important;
}

@media (max-width: 860px) {
    .series-overview-grid,
    .series-companion-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 620px) {
    .series-timeline__item {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 12px;
    }

    .series-timeline__index {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .series-timeline__rail::before {
        top: 34px;
    }

    .series-timeline__card {
        padding: 18px;
    }

    .series-nav--bottom {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .series-nav__cell--next,
    .series-nav__cell--next a {
        text-align: left;
        align-items: flex-start;
    }

    .series-nav__overview--bottom {
        justify-self: start;
        order: 3;
    }
}

@media (max-width: 1180px) {
    .ai-art-intro-panel {
        width: min(520px, calc(100vw - 32px));
    }
}

@media (max-width: 980px) {
    .nav-shell {
        grid-template-columns: 1fr auto;
    }

    .nav-links {
        grid-column: 1 / -1;
        justify-self: start;
        order: 3;
    }

    .section-nav,
    .app-section-heading,
    .app-card-grid--featured,
    .app-card-grid--portfolio,
    .app-card-grid--resume,
    .practice-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .app-hero h1,
    .app-section-heading h2 {
        max-width: 14ch;
        font-size: 48px;
    }

    .main-text {
        padding: 28px;
    }

    .ai-art-showcase-section {
        min-height: calc(100dvh - 120px);
    }

    .ai-art-intro-panel h1 {
        max-width: 12ch;
    }

    .figure-grid,
    .figure-grid--triple,
    .grid-container,
    .grid-cols-auto-auto,
    .grid-cols-225px-auto {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    html {
        scroll-padding-top: 168px;
    }

    .nav-shell {
        min-height: auto;
        padding: 12px 0;
    }

    .brand-mark small {
        display: none;
    }

    .nav-links a,
    .theme-toggle {
        min-height: 36px;
        padding: 7px 9px;
        font-size: 14px;
    }

    .section-nav {
        padding-bottom: 8px;
    }

    .app-main-text {
        padding-top: 24px;
    }

    .app-hero {
        padding: 44px 0;
    }

    .app-hero h1,
    .app-section-heading h2 {
        font-size: 36px;
        line-height: 1.02;
    }

    .app-hero__statement {
        font-size: 19px;
    }

    .app-hero__supporting {
        font-size: 16px;
    }

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

    .app-hero-metrics li {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .app-hero-metrics li:last-child {
        border-bottom: 0;
    }

    .app-section {
        padding: 48px 0;
    }

    .app-card-media {
        min-height: 210px;
    }

    .main-text {
        padding: 20px;
    }

    .main-text h1 {
        font-size: 32px;
    }

    .main-text h2 {
        font-size: 25px;
    }

    .ai-art-showcase-section {
        min-height: calc(100dvh - 120px);
    }

    .ai-art-intro-panel {
        width: calc(100vw - 24px);
        margin: 12px;
        padding: 16px;
    }

    .ai-art-intro-panel h1 {
        font-size: 34px;
    }

    .ai-art-intro-panel .app-hero__supporting {
        font-size: 15px;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==== Deep Wave Research ================================================= */
/* The outpost page and the affiliation lockup borrow deepwave.ca's palette:
   warm paper, deep navy ink, a teal research accent, and a brass signal color.
   Everything is namespaced so the firm's colors never leak into the portfolio's
   own pages. */

:root {
    --dw-brand: #08736b;
    --dw-brand-strong: #034f4b;
}

:root[data-theme="dark"] {
    --dw-brand: #42b9a7;
    --dw-brand-strong: #9be0d2;
}

/* ---- Card affiliations: who the work belongs to, above the title ---- */
/* One row so the equalizer treats it as a single slot, whether a card carries
   the company mark, the series or collection it sits in, or both. */
.app-card-affiliations {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
}

/* The parent series or collection, named rather than iconified. */
.app-card-grouping {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 12px;
    border: 1px dashed color-mix(in srgb, currentColor 34%, transparent);
    border-radius: 999px;
    color: inherit;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.app-card-grouping:hover,
.app-card-grouping:focus-visible {
    border-style: solid;
    background: color-mix(in srgb, currentColor 8%, transparent);
}

/* ---- Affiliation lockup: chip inside a research card ---- */
.dw-attribution--chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 4px 11px 4px 5px;
    border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
    border-radius: 999px;
    color: inherit;
    text-decoration: none;
}

.dw-attribution--chip:hover,
.dw-attribution--chip:focus-visible {
    border-color: color-mix(in srgb, currentColor 52%, transparent);
    background: color-mix(in srgb, currentColor 8%, transparent);
}

.dw-attribution__mark {
    flex: 0 0 auto;
    border-radius: 6px;
}

.dw-attribution--chip .dw-attribution__name {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ---- Affiliation lockup: banner under a hub page hero ---- */
.dw-attribution--banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: 28px 0 0;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--dw-brand);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--paper) 94%, var(--ink));
}

.dw-attribution--banner .dw-attribution__mark {
    border-radius: 8px;
}

.dw-attribution__text {
    flex: 1 1 320px;
    display: grid;
    gap: 2px;
    margin: 0;
}

.dw-attribution__note {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
}

.dw-attribution--banner .dw-attribution__name {
    justify-self: start;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
}

.dw-attribution--banner .dw-attribution__name:hover {
    color: var(--dw-brand);
}

.dw-attribution__site {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--dw-brand);
    text-decoration: none;
    white-space: nowrap;
}

.dw-attribution__site:hover {
    text-decoration: underline;
}

/* ---- Outpost page: scoped tokens ---- */
.dw-scope {
    --dw-paper: #f4f2ec;
    --dw-paper-strong: #fffdf8;
    --dw-surface: #fbfaf5;
    --dw-surface-muted: #e8ebe7;
    --dw-ink: #11151a;
    --dw-text: #172027;
    --dw-muted: #4a5760;
    --dw-line: #c6cec8;
    --dw-line-strong: #7d8781;
    --dw-teal: #08736b;
    --dw-teal-strong: #034f4b;
    --dw-brass: #b78948;
    --dw-oxide: #8b3b2f;
    --dw-green: #3f6250;
    --dw-wave-start: #3f6250;
    --dw-wave-mid: #81764d;
    --dw-wave-end: #b78948;
    --dw-grid: color-mix(in srgb, #3f6250 16%, transparent);
    --dw-dot-border: #5f6848;
    --dw-dot-fill: color-mix(in srgb, #fffdf8 52%, #3f6250 48%);
    --dw-shadow: 0 20px 50px rgb(17 21 26 / 12%);
    /* Accent for the inverted band, which flips surface with the theme: light
       brass reads on the navy band, darker brass on the cream one. */
    --dw-ink-accent: #d3a45c;
}

:root[data-theme="dark"] .dw-scope {
    --dw-paper: #11151a;
    --dw-paper-strong: #171c21;
    --dw-surface: #1b2228;
    --dw-surface-muted: #242d32;
    --dw-ink: #f3efe5;
    --dw-text: #f2efe6;
    --dw-muted: #bec5c2;
    --dw-line: #46514c;
    --dw-line-strong: #7d8781;
    --dw-teal: #42b9a7;
    --dw-teal-strong: #9be0d2;
    --dw-brass: #d3a45c;
    --dw-oxide: #d46b59;
    --dw-green: #8fb39c;
    --dw-wave-start: #42b9a7;
    --dw-wave-mid: #a8b0b3;
    --dw-wave-end: #d3a45c;
    --dw-grid: color-mix(in srgb, #f3efe5 10%, transparent);
    --dw-dot-border: color-mix(in srgb, #42b9a7 60%, #11151a);
    --dw-dot-fill: color-mix(in srgb, #171c21 40%, transparent);
    --dw-shadow: 0 20px 50px rgb(0 0 0 / 36%);
    --dw-ink-accent: #7d5518;
}

/* ---- Outpost page: hero ---- */
.dw-hero {
    position: relative;
    isolation: isolate;
    margin: 32px 0 0;
    border: 1px solid var(--dw-line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--dw-paper);
    color: var(--dw-text);
}

.dw-hero__field {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-color: var(--dw-paper);
    background-image:
        repeating-linear-gradient(to right, var(--dw-grid) 0 1px, transparent 1px 72px),
        repeating-linear-gradient(to bottom, var(--dw-grid) 0 1px, transparent 1px 72px),
        linear-gradient(120deg, var(--dw-paper), var(--dw-surface-muted));
}

.dw-hero__field::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        color-mix(in srgb, var(--dw-paper) 92%, transparent) 0%,
        color-mix(in srgb, var(--dw-paper) 34%, transparent) 78%
    );
}

.dw-hero__field svg {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    height: 62%;
}

.dw-veil {
    fill: none;
    stroke: color-mix(in srgb, var(--dw-green) 26%, transparent);
    stroke-width: 1.4;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
}

.dw-wave {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.dw-wave--primary {
    stroke: url("#dw-wave-gradient");
    stroke-width: 6;
    opacity: 0.78;
}

.dw-wave--teal {
    stroke: var(--dw-teal);
    stroke-width: 2.4;
    opacity: 0.44;
}

.dw-wave--brass {
    stroke: var(--dw-brass);
    stroke-width: 2.8;
    opacity: 0.42;
}

.dw-dots rect {
    fill: var(--dw-dot-fill);
    stroke: var(--dw-dot-border);
    stroke-width: 1;
}

.dw-hero__inner {
    position: relative;
    z-index: 1;
    padding: clamp(28px, 4vw, 56px);
}

.dw-lockup {
    display: inline-grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: inherit;
    text-decoration: none;
}

.dw-lockup img {
    border-radius: 11px;
}

.dw-lockup span {
    display: grid;
    line-height: 1.05;
}

.dw-lockup strong {
    font-size: 18px;
    font-weight: 700;
    color: var(--dw-ink);
}

.dw-lockup small {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--dw-teal);
}

.dw-eyebrow,
.dw-kicker {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--dw-teal-strong);
}

.dw-hero__inner h1,
.dw-section__head h2 {
    margin: 0;
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.02;
    color: var(--dw-ink);
}

.dw-hero__inner h1 {
    max-width: 16ch;
    font-size: clamp(40px, 6vw, 68px);
}

.dw-hero__statement {
    max-width: 46ch;
    margin: 22px 0 0;
    font-family: var(--font-serif);
    font-size: clamp(20px, 2.2vw, 26px);
    line-height: 1.24;
    color: var(--dw-teal-strong);
}

.dw-hero__supporting {
    max-width: 68ch;
    margin: 18px 0 0;
    font-size: 17px;
    color: var(--dw-text);
}

.dw-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.dw-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--dw-teal-strong);
    border-radius: var(--radius);
    background: var(--dw-teal-strong);
    color: var(--dw-paper-strong);
    font-weight: 600;
    text-decoration: none;
}

.dw-button:hover,
.dw-button:focus-visible {
    background: transparent;
    color: var(--dw-teal-strong);
}

.dw-button--ghost {
    background: transparent;
    border-color: var(--dw-line-strong);
    color: var(--dw-ink);
}

.dw-button--ghost:hover,
.dw-button--ghost:focus-visible {
    border-color: var(--dw-ink);
    background: var(--dw-ink);
    color: var(--dw-paper);
}

/* ---- Outpost page: sections ---- */
.dw-section {
    padding: 72px 0;
    scroll-margin-top: 128px;
    color: var(--dw-text);
}

.dw-section__head {
    max-width: 62ch;
    margin-bottom: 32px;
}

.dw-section__head h2 {
    font-size: clamp(30px, 3.6vw, 44px);
}

.dw-lede {
    max-width: 62ch;
    margin: 16px 0 0;
    color: var(--dw-muted);
}

.dw-section--ink {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: calc((100vw - min(1120px, calc(100vw - 32px))) / 2);
    padding-right: calc((100vw - min(1120px, calc(100vw - 32px))) / 2);
    background: var(--dw-ink);
    color: var(--dw-paper);
}

.dw-section--ink .dw-kicker {
    color: var(--dw-ink-accent);
}

.dw-section--ink .dw-section__head h2 {
    color: var(--dw-paper);
}

.dw-section--ink .dw-lede {
    color: color-mix(in srgb, var(--dw-paper) 74%, transparent);
}

/* The companion band to `--ink`: same full-bleed treatment, opposite surface,
   so the arc and the work section always read light against dark. */
.dw-section--paper {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding-left: calc((100vw - min(1120px, calc(100vw - 32px))) / 2);
    padding-right: calc((100vw - min(1120px, calc(100vw - 32px))) / 2);
    background: var(--dw-paper);
    color: var(--dw-text);
}

/* ---- Outpost page: research cards on the paper band ---- */
/* The shared showcase card paints itself from currentColor, which reads as a
   translucent film over a tinted band. On this page the surfaces are opaque. */
.dw-work .app-showcase-card {
    border-color: var(--dw-line);
    background: var(--dw-surface);
    color: var(--dw-text);
}

.dw-work .app-card-media {
    border-bottom-color: var(--dw-line);
}

.dw-work .app-showcase-card h3 {
    color: var(--dw-ink);
}

.dw-work .app-card-detail-list div {
    border-top-color: var(--dw-line);
}

.dw-work .app-card-detail-list dt {
    color: var(--dw-muted);
}

.dw-work .app-tag-list li {
    border-color: var(--dw-line);
}

.dw-work .app-card-actions a {
    border-color: var(--dw-teal-strong);
    background: var(--dw-teal-strong);
    color: var(--dw-paper-strong);
}

.dw-work .app-card-actions a:hover,
.dw-work .app-card-actions a:focus-visible {
    background: transparent;
    color: var(--dw-teal-strong);
}

/* ---- Outpost page: about + house rules ---- */
.dw-about {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 32px;
    align-items: start;
}

.dw-about__body p {
    max-width: 62ch;
    margin: 0 0 18px;
    font-size: 17px;
}

.dw-principle {
    margin: 24px 0 0 !important;
    padding-left: 18px;
    border-left: 3px solid var(--dw-brass);
    font-family: var(--font-serif);
    font-size: 19px !important;
    line-height: 1.4;
    color: var(--dw-ink);
}

.dw-standard {
    padding: 26px;
    border: 1px solid var(--dw-line);
    border-radius: var(--radius);
    background: var(--dw-surface);
    box-shadow: var(--dw-shadow);
}

.dw-kicker--panel {
    margin-bottom: 10px;
}

.dw-standard__lede {
    margin: 0 0 20px;
    font-size: 15px;
    color: var(--dw-muted);
}

.dw-standard__list {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dw-standard__list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--dw-line);
}

.dw-standard__list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.dw-standard__index {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--dw-teal);
}

.dw-standard__list h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: var(--dw-ink);
}

.dw-standard__list p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--dw-muted);
}

/* ---- Outpost page: the arc, read top to bottom on the inverted band ---- */
.dw-arc {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid color-mix(in srgb, var(--dw-paper) 26%, transparent);
}

.dw-arc__item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 24px;
    padding: 26px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--dw-paper) 26%, transparent);
}

.dw-arc__period {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--dw-ink-accent);
}

.dw-arc__body h3 {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.14;
    color: var(--dw-paper);
}

.dw-arc__body p {
    max-width: 68ch;
    margin: 0;
    color: color-mix(in srgb, var(--dw-paper) 74%, transparent);
}

.dw-arc__link {
    display: inline-block;
    margin-top: 12px;
    font-weight: 600;
    color: var(--dw-ink-accent);
    text-decoration: none;
}

.dw-arc__link:hover,
.dw-arc__link:focus-visible {
    text-decoration: underline;
}

@media (max-width: 980px) {
    .dw-about {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 620px) {
    .dw-section {
        padding: 48px 0;
    }

    .dw-arc__item {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .dw-attribution--banner {
        padding: 12px 14px;
    }
}

/* ---- About, capabilities, and enriched resume pages ---- */

.about-prose {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 32px;
    align-items: start;
}

.about-prose__body p {
    margin: 0 0 18px;
    max-width: 68ch;
    font-size: 18px;
}

.about-prose__body p:last-child {
    margin-bottom: 0;
}

.about-pull {
    margin: 0;
    border-left: 3px solid currentColor;
    padding: 4px 0 4px 20px;
    font-family: var(--font-serif);
    font-size: 21px;
    line-height: 1.42;
}

.about-principle-list {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-principle {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    border-radius: var(--radius);
    background: color-mix(in srgb, currentColor 5%, transparent);
    padding: 22px 24px;
}

.about-principle__index {
    font-family: var(--font-mono);
    font-size: 13px;
    color: color-mix(in srgb, currentColor 62%, transparent);
}

.about-principle__body h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.16;
}

.about-principle__body p {
    margin: 0 0 10px;
    max-width: 72ch;
}

.about-principle__proof {
    border-left: 2px solid color-mix(in srgb, currentColor 32%, transparent);
    padding-left: 14px;
    color: color-mix(in srgb, currentColor 76%, transparent);
    font-size: 15px;
}

.about-principle__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    text-underline-offset: 0.3em;
}

.about-track-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.about-track {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    border-radius: var(--radius);
    background: color-mix(in srgb, currentColor 5%, transparent);
    padding: 24px;
}

.about-track__index {
    font-family: var(--font-mono);
    font-size: 13px;
    color: color-mix(in srgb, currentColor 62%, transparent);
}

.about-track h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.16;
}

.about-track p {
    margin: 0;
    max-width: 60ch;
}

.about-track__evidence {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    color: color-mix(in srgb, currentColor 74%, transparent);
    font-size: 14px;
}

.about-track__evidence span {
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, currentColor 62%, transparent);
}

.about-track .app-card-actions {
    margin-top: 4px;
}

.about-fact-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.about-fact {
    display: grid;
    grid-template-columns: minmax(120px, 0.32fr) minmax(0, 1fr);
    gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.about-fact:nth-child(odd) {
    border-right: 1px solid var(--line);
}

.about-fact dt {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.about-fact dd {
    margin: 0;
    font-size: 15px;
}

.capability-legend {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 28px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}

.capability-legend__keys {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.capability-legend__keys li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    font-size: 15px;
    color: color-mix(in srgb, currentColor 82%, transparent);
}

.capability-legend__caveat {
    margin: 0;
    font-size: 15px;
    color: color-mix(in srgb, currentColor 78%, transparent);
}

.capability-tier {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    border: 1px solid color-mix(in srgb, currentColor 34%, transparent);
    border-radius: 999px;
    padding: 3px 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.capability-tier--demonstrated {
    border-color: transparent;
    background: var(--ink);
    color: var(--paper);
}

.section--ink .capability-tier--demonstrated {
    background: var(--inverse-ink);
    color: var(--inverse-paper);
}

.capability-tier--supporting {
    color: color-mix(in srgb, currentColor 78%, transparent);
}

.capability-tier--exposure {
    border-style: dashed;
    color: color-mix(in srgb, currentColor 66%, transparent);
}

.capability-rows {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.capability-row {
    display: grid;
    align-content: start;
    gap: 6px;
    border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
    border-radius: var(--radius);
    background: color-mix(in srgb, currentColor 4%, transparent);
    padding: 16px 18px;
}

/* Grid rather than flex so a long skill name wraps inside its own column and
   the tier chip stays pinned to the top right instead of dropping below. */
.capability-row__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
}

.capability-row__head h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.24;
}

.capability-row__source {
    margin: 0;
    font-size: 14px;
    color: color-mix(in srgb, currentColor 74%, transparent);
}

.role-card .app-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.role-card h3 {
    margin: 0;
}

.role-card__location {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: color-mix(in srgb, currentColor 64%, transparent);
}

.role-card__context {
    margin: 0;
    border-left: 2px solid color-mix(in srgb, currentColor 28%, transparent);
    padding-left: 14px;
    font-size: 15px;
    color: color-mix(in srgb, currentColor 74%, transparent);
}

.role-card__note {
    margin: 0;
    border: 1px dashed color-mix(in srgb, currentColor 34%, transparent);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 14px;
    color: color-mix(in srgb, currentColor 82%, transparent);
}

.contact-interest-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.contact-interest-list li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    border-radius: var(--radius);
    background: color-mix(in srgb, currentColor 5%, transparent);
    padding: 20px;
}

.contact-interest-list span {
    font-family: var(--font-mono);
    font-size: 13px;
    color: color-mix(in srgb, currentColor 62%, transparent);
}

.contact-interest-list p {
    margin: 0;
}

.home-practice-actions {
    margin-top: 24px;
}

@media (max-width: 980px) {
    .about-prose,
    .capability-legend,
    .about-track-grid,
    .capability-rows,
    .contact-interest-list,
    .about-fact-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .about-fact:nth-child(odd) {
        border-right: 0;
    }
}

@media (max-width: 620px) {
    .about-principle,
    .contact-interest-list li {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .about-fact {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
    }

    .about-prose__body p {
        font-size: 17px;
    }

    .about-pull {
        font-size: 19px;
    }
}
