@font-face { font-family: Manrope; src: url('assets/fonts/manrope.woff2') format('woff2'); font-style: normal; font-weight: 400 800; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url('assets/fonts/source-serif-4-italic.woff2') format('woff2'); font-style: italic; font-weight: 400; font-display: swap; }
:root {
  color-scheme: light dark;
  --paper: #f5f3ee; --ink: #242922; --body: #50554d; --muted: #62695d;
  --accent: #aa422c; --rule: #d4d7cc; --wash: #eaece3; --button-hover-text: #fff;
  --font: Manrope, 'Segoe UI', Arial, sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --mono: Consolas, 'Courier New', monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--body); font: 17px/1.75 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, dl { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
em { font: italic 400 1.08em/1 var(--serif); letter-spacing: -.055em; }
a { color: var(--accent); text-underline-offset: .3em; text-decoration-thickness: 1px; transition: color 180ms, background-color 180ms, border-color 180ms; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
main:focus { outline: none; }
::selection { background: var(--ink); color: var(--paper); }
img { display: block; max-width: 100%; height: auto; }
.site { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 12px 20px; background: var(--ink); color: var(--paper); }
.skip-link:focus { top: 12px; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: 32px; min-height: 100px; border-bottom: 1px solid var(--rule); }
.wordmark { display: inline-flex; gap: 16px; align-items: center; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.brand-mark { font-size: 36px; font-weight: 800; letter-spacing: -.09em; line-height: 1; padding-bottom: 5px; }
.brand-mark > span { color: var(--accent); }
.masthead nav { display: flex; align-items: center; flex-wrap: wrap; gap: 32px; font-size: 13px; font-weight: 600; }
.masthead nav a { color: var(--ink); text-decoration: none; }
.masthead nav a:hover { color: var(--accent); }
.nav-resume { border-left: 1px solid var(--rule); padding-left: 32px; }
.nav-resume span { margin-left: 8px; }
.eyebrow { font: 12px/1.6 var(--mono); letter-spacing: .025em; text-transform: uppercase; color: var(--muted); }
.intro { padding: 64px 0 72px; }
.intro h1 { font-size: clamp(44px, 5.6vw, 80px); font-weight: 500; letter-spacing: -.065em; line-height: 1.12; margin: 24px 0; max-width: 1150px; }
.intro-actions { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; padding-bottom: 5px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; padding: 15px 20px; text-decoration: none; }
.button:hover { background: var(--accent); color: var(--button-hover-text); }
.text-link { display: inline-flex; align-items: center; gap: 24px; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--ink); padding: 8px 0; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.text-link > span, .contact-email > span { display: inline-block; transition: transform 180ms; }
.text-link:hover > span, .contact-email:hover > span { transform: translate(2px, -2px); }

.home .site { max-width: 1080px; }
.intro h1 em { color: var(--accent); }
.intro-copy { max-width: 640px; font-size: 20px; line-height: 1.7; margin-bottom: 28px; }
.file-type { font: 12px var(--mono); opacity: .85; }
.home-section { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 48px 0; border-top: 1px solid var(--rule); }
.section-label .eyebrow { margin-bottom: 16px; }
.section-label h2 { font-size: 25px; font-weight: 500; letter-spacing: -.04em; line-height: 1.3; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline-entry { display: grid; grid-template-columns: 132px minmax(0, 1fr); }
.timeline-date { color: var(--muted); font: 12px/1.8 var(--mono); padding-top: 1px; padding-right: 16px; }
.timeline-detail { position: relative; padding: 0 0 32px 28px; border-left: 1px solid var(--rule); }
.timeline-detail::before { content: ''; position: absolute; width: 7px; height: 7px; border: 1px solid var(--muted); border-radius: 50%; background: var(--paper); top: 7px; left: -4px; }
.timeline-entry:first-child .timeline-detail::before { background: var(--accent); border-color: var(--accent); }
.timeline-entry:last-child .timeline-detail { padding-bottom: 0; border-left-color: transparent; }
.timeline-detail h3 { font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
.timeline-detail h3 a { color: var(--ink); text-decoration: none; }
.timeline-detail h3 a:hover { color: var(--accent); }
.entry-meta { font-size: 12px; color: var(--muted); margin-top: 5px; }
.timeline-detail > p:not(.entry-meta) { font-size: 14px; line-height: 1.7; margin-top: 12px; max-width: 430px; }
.project-category + .project-category { margin-top: 28px; }
.category-title { font: 12px/1.6 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .025em; margin-bottom: 8px; }
.project-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.project-row:hover { border-color: var(--accent); }
.project-row:hover h4 { color: var(--accent); }
.project-row h4 { font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -.025em; transition: color 180ms; }
.project-summary > p { color: var(--body); font-size: 13px; line-height: 1.6; margin-top: 4px; }
.project-tech { font: 12px/1.7 var(--mono); color: var(--muted); }
.project-arrow { color: var(--accent); transition: transform 180ms; }
.project-row:hover .project-arrow { transform: translate(2px, -2px); }
.contact-email { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); font-size: 27px; line-height: 1.4; letter-spacing: -.04em; text-decoration: none; overflow-wrap: anywhere; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.contact-email:hover { color: var(--accent); border-color: var(--accent); }
.contact-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; }
.contact-links a { color: var(--body); font-size: 13px; text-decoration: none; }
.contact-links a:hover { color: var(--accent); }
.contact-links a span { margin-left: 8px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font: 12px/1.7 var(--mono); color: var(--muted); padding: 24px 0; }
.home .footer { border-top: 1px solid var(--rule); }
.footer a { color: var(--muted); }
figcaption { font: 12px/1.7 var(--mono); color: var(--muted); margin-top: 12px; }
.art-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 24px; font: 12px/1.5 var(--mono); }
.art-topline > span:first-child { font-weight: 700; }
.agent-art { color: #e6ebdb; background: #253c33; padding: 24px; }
.agent-art .art-topline { color: #b9cbbb; }
.agent-art-title { font-size: 29px; color: #e6ebdb; letter-spacing: -.045em; line-height: 1.35; margin: 12px 0 32px; }
.agent-art-title em { color: #c3d8b1; }
.agent-cycle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 0; list-style: none; }
.agent-cycle li { position: relative; border: 1px solid #6e8a77; padding: 16px 12px; }
.agent-cycle li:not(:last-child)::after { content: '→'; position: absolute; right: -20px; top: 26px; color: #bbcebe; }
.agent-cycle li:nth-child(2) { background: #d5dfbf; border-color: #d5dfbf; color: #253c33; }
.agent-cycle span { display: block; font: 12px/1.5 var(--mono); margin-bottom: 16px; }
.agent-cycle strong { font-size: 20px; font-weight: 500; }
.agent-feedback { display: flex; justify-content: space-between; gap: 8px; font: 12px/1.7 var(--mono); color: #b9cbbb; padding: 12px 32px 0; }
.agent-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; border-top: 1px solid #607b68; padding-top: 20px; margin-top: 32px; }
.agent-methods strong { display: block; font-size: 13px; font-weight: 600; }
.agent-methods span { display: block; font-size: 12px; color: #b9cbbb; margin-top: 5px; }
/* Case studies share the homepage grid, typography, and visual treatments. */
.back-link { display: inline-block; margin-top: 32px; color: var(--muted); font-size: 13px; text-decoration: none; }
.article-header { padding: 32px 0 40px; }
.article-header h1 { font-size: clamp(44px, 6vw, 80px); font-weight: 500; letter-spacing: -.065em; margin: 20px 0 24px; }
.article-lead { font-size: 23px; line-height: 1.6; color: var(--ink); max-width: 860px; letter-spacing: -.025em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px 32px; font-size: 12px; margin-top: 24px; }
.article-meta strong { font-weight: 700; margin-right: 8px; color: var(--ink); }
.article-visual { padding: 32px; background: var(--wash); margin-bottom: 64px; }
.application-shot > a { display: block; max-width: 940px; margin-inline: auto; }
.application-shot img { border: 1px solid var(--rule); width: 100%; }
.article-visual figcaption { max-width: 940px; margin: 16px auto 0; }
.brawl-stats-shot { background: #22232a; }
.brawl-stats-shot img { border-color: #3b3b46; }
.brawl-stats-shot figcaption { color: #c4c3ce; }
.brawl-stats-shot figcaption a { color: #f3b19d; }
.agent-hero { padding: 0; background: none; }
.agent-hero .agent-art { padding: 40px 64px; }
.agent-hero .agent-art-title { font-size: 40px; }
.agent-hero .agent-cycle { gap: 40px; }
.agent-hero .agent-cycle li { padding: 24px; }
.agent-hero .agent-cycle li:not(:last-child)::after { right: -28px; top: 40px; }
.agent-hero figcaption { max-width: none; }
.article-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; border-top: 1px solid var(--rule); padding-top: 40px; }
.article-index { align-self: start; position: sticky; top: 32px; }
.article-index nav { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.article-index nav a { display: flex; gap: 16px; color: var(--body); font-size: 13px; text-decoration: none; }
.article-index nav a:hover { color: var(--accent); }
.article-index nav a span { color: var(--muted); font: 12px/1.9 var(--mono); }
.prose { max-width: 740px; min-width: 0; }
.prose > section { margin-bottom: 48px; }
.prose h2 { font-size: 30px; font-weight: 600; letter-spacing: -.045em; margin-bottom: 24px; }
.prose p + p { margin-top: 16px; }
.prose p, .prose li { font-size: 17px; line-height: 1.85; }
.prose figure { margin: 32px 0; }
.prose code { font: .9em var(--mono); overflow-wrap: anywhere; }
.diagram { background: var(--wash); border: 1px solid var(--rule); padding: 24px; }
.diagram figcaption { border-top: 1px solid var(--rule); padding-top: 16px; margin-top: 24px; }
.flow { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.flow li { font-size: 14px; line-height: 1.8; }
.flow strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 8px; }
.figure-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.figure-table th, .figure-table td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.figure-table th { color: var(--ink); font-weight: 700; }
.figure-table th:last-child, .figure-table td:last-child { padding-right: 0; }
.prose .reading-note { color: var(--muted); font: 12px/1.7 var(--mono); margin-top: 24px; }
.article-end { display: flex; justify-content: space-between; align-items: center; gap: 32px; border-block: 1px solid var(--rule); padding: 32px 0; margin-top: 24px; }
.article-end > a { text-decoration: none; font-size: 13px; }
.article-end > a:first-child > span:first-child { display: block; color: var(--muted); font: 12px var(--mono); margin-bottom: 12px; }
.next-title { display: block; font-size: 30px; font-weight: 500; letter-spacing: -.04em; color: var(--ink); }
.article-end a:hover .next-title { color: var(--accent); }

@media (prefers-color-scheme: dark) {
  :root { --paper: #1d201e; --ink: #eeefe5; --body: #c5cbbf; --muted: #a4ae9c; --accent: #f0a38c; --rule: #41493e; --wash: #2a3028; --button-hover-text: #1d201e; }
}
@media (max-width: 1100px) {
  .site { width: calc(100% - 64px); }
  .home-section { grid-template-columns: 190px minmax(0, 1fr); gap: 32px; }
  .timeline-entry { grid-template-columns: 116px minmax(0, 1fr); }
  .project-row { gap: 16px; }
  .project-tech { max-width: 120px; text-align: right; }
  .article-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 800px) {
  .masthead { min-height: 88px; gap: 24px; }
  .masthead nav { gap: 20px; }
  .nav-resume { padding-left: 20px; }
  .wordmark { gap: 12px; }
  .intro { padding: 48px 0; }
  .intro h1 { font-size: clamp(48px, 8vw, 64px); }
  .intro-copy { font-size: 18px; max-width: 600px; }
  .home-section { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; }
  .section-label { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
  .section-label .eyebrow { margin: 0; }
  .section-label h2 { font-size: 22px; }
  .section-label h2 br { display: none; }
  .timeline-entry { grid-template-columns: 132px minmax(0, 1fr); }
  .project-tech { max-width: none; }
  .article-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; }
  .article-index { position: static; border-bottom: 1px solid var(--rule); padding-bottom: 24px; }
  .article-index nav { flex-direction: row; flex-wrap: wrap; gap: 12px 24px; margin-top: 16px; }
  .article-index nav a { gap: 8px; }
  .article-visual { margin-bottom: 32px; padding: 20px; }
  .agent-hero { padding: 0; }
  .agent-hero .agent-art { padding: 32px; }
  .agent-hero .agent-cycle { gap: 24px; }
  .agent-hero .agent-cycle li { padding: 16px; }
  .agent-hero .agent-cycle li:not(:last-child)::after { right: -20px; }
  .article-end { flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .site { width: calc(100% - 40px); }
  .masthead { flex-wrap: wrap; gap: 16px; padding: 20px 0; }
  .wordmark { font-size: 13px; }
  .brand-mark { font-size: 32px; }
  .masthead nav { justify-content: space-between; width: 100%; gap: 12px; font-size: 12px; }
  .nav-resume { padding-left: 12px; }
  .intro { padding: 32px 0 40px; }
  .intro h1 { font-size: clamp(44px, 12vw, 60px); margin: 20px 0; }
  .intro-copy { font-size: 17px; line-height: 1.75; }
  .intro-actions { gap: 16px 24px; }
  .button { gap: 16px; padding: 13px 16px; }
  .section-label { display: block; }
  .section-label .eyebrow { margin-bottom: 8px; }
  .timeline-entry { display: block; position: relative; padding-left: 24px; border-left: 1px solid var(--rule); }
  .timeline-date { padding: 0 0 8px; }
  .timeline-detail { position: static; border: 0; padding: 0 0 28px; }
  .timeline-detail::before { left: -4px; top: 7px; }
  .timeline-entry:last-child { border-color: transparent; }
  .timeline-detail h3 { font-size: 16px; }
  .project-row { grid-template-columns: minmax(0, 1fr) 16px; gap: 4px 16px; padding: 18px 0; }
  .project-summary { grid-column: 1; }
  .project-tech { grid-column: 1; grid-row: 2; text-align: left; margin-top: 4px; }
  .project-arrow { grid-column: 2; grid-row: 1 / 3; }
  .contact-email { font-size: 23px; }
  .footer > span:nth-child(2) { display: none; }
  .article-header { padding: 24px 0 32px; }
  .article-header h1 { font-size: 44px; }
  .article-lead { font-size: 20px; }
  .article-meta { gap: 12px; }
  .article-visual { padding: 12px; }
  .agent-hero { padding: 0; }
  .art-topline { align-items: flex-start; gap: 12px; padding-bottom: 16px; }
  .art-topline > span:last-child { text-align: right; }
  .agent-art, .agent-hero .agent-art { padding: 20px 16px; }
  .agent-art-title, .agent-hero .agent-art-title { font-size: 27px; margin: 12px 0 24px; }
  .agent-cycle, .agent-hero .agent-cycle { gap: 16px; }
  .agent-cycle li, .agent-hero .agent-cycle li { padding: 12px 7px; }
  .agent-cycle li:not(:last-child)::after, .agent-hero .agent-cycle li:not(:last-child)::after { right: -14px; top: 32px; font-size: 12px; }
  .agent-cycle strong { font-size: 17px; }
  .agent-cycle span { min-height: 36px; margin-bottom: 12px; }
  .agent-feedback { padding-inline: 12px; }
  .agent-methods { gap: 8px; margin-top: 24px; }
  .agent-methods strong { font-size: 12px; }
  .agent-methods span { font-size: 12px; line-height: 1.5; }
  .prose h2 { font-size: 27px; }
  .prose p { font-size: 16px; }
  .diagram { padding: 16px; }
  .flow { grid-template-columns: 1fr; gap: 24px; }
  .figure-table { font-size: 12px; overflow-wrap: anywhere; }
  .figure-table th, .figure-table td { padding-right: 10px; }
  .next-title { font-size: 27px; }
}
@media (max-width: 360px) {
  .agent-cycle, .agent-hero .agent-cycle { grid-template-columns: 1fr; gap: 24px; }
  .agent-cycle li, .agent-hero .agent-cycle li { display: flex; justify-content: space-between; align-items: center; padding: 16px; gap: 16px; }
  .agent-cycle span { min-height: 0; margin: 0; }
  .agent-cycle li:not(:last-child)::after, .agent-hero .agent-cycle li:not(:last-child)::after { content: '↓'; top: auto; right: 50%; bottom: -23px; }
  .agent-methods { grid-template-columns: 1fr; gap: 12px; }
  .agent-methods > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .agent-methods span { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  @page { size: letter; margin: 16mm; }
  :root { color-scheme: light; --paper: #fff; --ink: #111; --body: #222; --muted: #444; --accent: #111; --rule: #bbb; --wash: #f5f5f5; }
  body { font-size: 10.5pt; }
  .site { width: 100%; }
  .masthead { min-height: 0; padding-bottom: 12pt; }
  .masthead nav, .skip-link, .intro-actions, .article-index, .back-link, .article-end, .footer { display: none; }
  .intro { padding: 18pt 0; }
  .intro h1 { font-size: 32pt; margin: 12pt 0; }
  .intro-copy { font-size: 11pt; max-width: none; margin-bottom: 0; }
  .home-section { grid-template-columns: 140px minmax(0, 1fr); gap: 20pt; padding: 18pt 0; }
  .section-label { display: block; }
  .section-label h2 { font-size: 16pt; }
  .timeline-entry { display: grid; grid-template-columns: 85px minmax(0, 1fr); border: 0; padding: 0; break-inside: avoid; }
  .timeline-detail { position: relative; padding: 0 0 14pt 15pt; border-left: 1px solid var(--rule); }
  .timeline-detail h3 { font-size: 11pt; }
  .timeline-detail > p:not(.entry-meta) { font-size: 10pt; }
  .timeline-date, .entry-meta, .category-title, .project-tech { font-size: 8pt; }
  .project-row { padding: 10pt 0; break-inside: avoid; }
  .project-row h4 { font-size: 12pt; }
  .project-summary > p { font-size: 10pt; }
  .contact-email { font-size: 16pt; }
  .article-header { padding: 18pt 0; }
  .article-header h1 { font-size: 30pt; }
  .article-lead { font-size: 13pt; }
  .article-layout { display: block; padding-top: 18pt; }
  .prose { max-width: none; }
  .prose > section { margin-bottom: 20pt; }
  .prose h2 { font-size: 18pt; margin-bottom: 12pt; }
  .prose p, .prose li { font-size: 10.5pt; line-height: 1.65; }
  .article-visual { padding: 12pt; margin-bottom: 18pt; }
  .application-shot img { max-height: 105mm; width: auto; margin-inline: auto; }
  .brawl-stats-shot { background: #fff; }
  .brawl-stats-shot figcaption, .brawl-stats-shot figcaption a { color: #222; }
  h1, h2, h3 { break-after: avoid; }
  figure { break-inside: avoid; }
  p { orphans: 3; widows: 3; }
}
