:root {
  color-scheme: light;
  --paper: #ffffff;
  --surface: #f5f5f7;
  --ink: #111111;
  --muted: #626269;
  --line: #e4e4e7;
  --text: #52525a;
  --hero-text: #414147;
  --headline-muted: #7a7a80;
  --subtle: #929297;
  --button-hover: #363638;
  --selection: #e5e5e5;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #101012;
  --surface: #19191d;
  --ink: #f5f5f7;
  --muted: #ababb4;
  --line: #303037;
  --text: #c1c1c9;
  --hero-text: #d4d4dc;
  --headline-muted: #acacb5;
  --subtle: #a1a1aa;
  --button-hover: #d9d9df;
  --selection: #383842;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --paper: #101012;
    --surface: #19191d;
    --ink: #f5f5f7;
    --muted: #ababb4;
    --line: #303037;
    --text: #c1c1c9;
    --hero-text: #d4d4dc;
    --headline-muted: #acacb5;
    --subtle: #a1a1aa;
    --button-hover: #d9d9df;
    --selection: #383842;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--sans); overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1, h2, h3 { font-weight: 600; line-height: 1.12; letter-spacing: -.035em; }
em { font-style: normal; font-weight: inherit; }
::selection { background: var(--selection); color: var(--ink); }
.skip-link { position: absolute; top: -8rem; left: 1rem; z-index: 10; padding: .75rem 1rem; background: var(--ink); color: var(--paper); border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.site-header, .hero, .section, .agent-section, .site-footer { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 1.375rem; font-weight: 650; letter-spacing: -.055em; text-decoration: none; }
.wordmark span { color: var(--subtle); }
.site-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.75rem; min-width: 0; }
.site-header nav a { padding-block: .375rem; font-size: .875rem; text-decoration: none; color: var(--muted); transition: color .15s ease; }
.site-header nav a:hover { color: var(--ink); }
.header-note { font-size: .875rem; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.theme-toggle { display: inline-grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; }
.theme-toggle[hidden] { display: none; }
.theme-toggle svg { grid-area: 1 / 1; width: 20px; height: 20px; }
.sun-icon { display: none; }
:root[data-theme="dark"] .sun-icon { display: block; }
:root[data-theme="dark"] .moon-icon { display: none; }
.hero { padding-block: 5.5rem 6rem; }
.eyebrow { color: var(--muted); font-size: .875rem; font-weight: 500; letter-spacing: .03em; line-height: 1.5; }
.hero .eyebrow { display: inline-block; padding: .375rem .875rem; background: var(--surface); border-radius: 100px; letter-spacing: 0; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); line-height: 1.08; letter-spacing: -.055em; margin-top: 1.5rem; }
h1 em { color: var(--headline-muted); }
.hero-aside { max-width: 43rem; margin-top: 1.75rem; }
.hero-aside > p { font-size: 1.25rem; line-height: 1.55; color: var(--hero-text); }
.hero-aside .secondary { font-size: 1rem; color: var(--muted); margin-top: .875rem; }
.button { display: inline-block; margin-top: 1.5rem; padding: .75rem 1.25rem; border-radius: 100px; background: var(--ink); color: var(--paper); font-size: .9375rem; line-height: 1.5; font-weight: 500; text-decoration: none; transition: background .15s ease; }
.button:hover { background: var(--button-hover); }
.section { padding-block: 4.5rem; }
.projects { padding-top: 4.5rem; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 22rem); gap: 1rem 3rem; margin-bottom: 2.5rem; }
.section-heading > .eyebrow { grid-column: 1 / -1; }
h2 { font-size: clamp(1.875rem, 3.2vw, 2.625rem); }
h2 em { color: var(--muted); }
.section-heading > p:last-child { align-self: end; color: var(--muted); }
.project { min-width: 0; padding: 2rem; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); }
.project h3 { font-size: 1.75rem; margin-bottom: .875rem; }
.project p { color: var(--text); font-size: 1rem; }
.project-featured { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 3rem; padding: 2.5rem; }
.project-copy { min-width: 0; }
.project-copy > .eyebrow { font-size: .8125rem; }
.project-copy h3 { font-size: 2.25rem; margin-top: 1.25rem; }
.project-engineering { margin-top: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.tags span { min-width: 0; max-width: 100%; padding: .25rem .625rem; border-radius: 6px; background: var(--surface); color: var(--muted); font-size: .875rem; line-height: 1.4; }
.project-visual { min-width: 0; align-self: start; margin: 0; display: flex; flex-direction: column; gap: 1rem; padding: 1rem; background: var(--surface); border-radius: 14px; }
.screenshot-link { display: block; min-width: 0; border-radius: 10px; }
.project-visual img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 10px; border: 1px solid var(--line); }
.visual-caption { color: var(--muted); font-size: .875rem; line-height: 1.5; }
.visual-caption span { display: block; margin-top: .25rem; }
.project details { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.project summary, .agent-practices summary { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; font-size: .875rem; font-weight: 500; line-height: 1.5; cursor: pointer; list-style: none; }
.project summary::-webkit-details-marker, .agent-practices summary::-webkit-details-marker { display: none; }
.project summary:after, .agent-practices summary:after { content: '+'; flex: 0 0 auto; font-size: 1.25rem; font-weight: 400; line-height: 1; color: var(--muted); }
.project details[open] summary:after, .agent-practices[open] summary:after { content: '−'; }
.project-detail { padding-top: 1rem; }
.project-detail p + p { margin-top: .75rem; }
.project-detail h4 { margin: 0 0 .75rem; font-size: 1.125rem; line-height: 1.35; letter-spacing: -.015em; font-weight: 600; overflow-wrap: anywhere; }
.project-detail strong { font-weight: 600; color: var(--ink); }
.project-website { margin-top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.career-list { border-top: 1px solid var(--line); }
.career-entry { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2rem; padding-block: 2.5rem; border-bottom: 1px solid var(--line); }
.career-date { color: var(--muted); font-size: .875rem; padding-top: .25rem; }
.career-entry h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.career-role { font-weight: 500; margin-bottom: 1rem; }
.career-entry > div > p:not(.career-role) { color: var(--text); max-width: 47rem; }
.career-progression { font-size: .875rem; margin-bottom: .75rem; }
.career-project { margin-top: 1rem; }
.skill-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.skill-tags span { min-width: 0; max-width: 100%; padding: .25rem .625rem; border-radius: 6px; background: var(--surface); color: var(--text); font-size: .875rem; line-height: 1.4; }
.agent-section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; margin-top: 1rem; padding: 3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.agent-intro { max-width: 47rem; }
.agent-intro h2 { margin-top: 1rem; }
.agent-intro > p:not(.eyebrow) { margin-top: 1.5rem; font-size: 1.125rem; }
.agent-intro .agent-control { color: var(--text); font-size: 1rem; }
.workflow-label { color: var(--muted); font-size: .875rem; letter-spacing: .03em; margin-bottom: 1rem; }
.sdlc-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(9rem, 30%)), 1fr)); gap: 1rem; }
.sdlc-steps li { min-width: 0; padding: 1.25rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.step-number { font-size: .8125rem; color: var(--muted); }
.sdlc-steps h3 { font-size: 1.0625rem; letter-spacing: -.02em; margin-block: .75rem .5rem; }
.sdlc-steps p { color: var(--text); font-size: 1rem; line-height: 1.5; }
.agent-practices { border-top: 1px solid var(--line); }
.agent-practices summary { padding-top: 1rem; font-size: 1rem; }
.llm-practices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 3rem; padding-top: 1.5rem; }
.llm-practices .eyebrow { font-size: .8125rem; }
.llm-practices h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.025em; margin-block: .75rem 1rem; }
.llm-practices article > p:last-child { color: var(--text); font-size: 1rem; }
.skills { padding-top: 5rem; }
.skill-list { border-top: 1px solid var(--line); }
.skill-row { display: grid; grid-template-columns: 2rem minmax(0, .8fr) minmax(0, 1.2fr); gap: 1.5rem; padding-block: 2rem; border-bottom: 1px solid var(--line); }
.skill-number { color: var(--muted); font-size: .875rem; }
.skill-row h3 { font-size: 1.25rem; line-height: 1.3; }
.skill-body > p { color: var(--text); }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 1.5rem; padding-block: 2rem 3rem; border-top: 1px solid var(--line); }
.site-footer p { color: var(--muted); font-size: .875rem; margin-top: .25rem; }
.back-top { font-size: .875rem; }
.hero > *, .section-heading > *, .project-featured > *, .career-entry > *, .llm-practices > *, .skill-row > * { min-width: 0; }
@media (max-width: 1000px) {
  .header-note { display: none; }
  .project-featured { gap: 2rem; padding: 2rem; }
  .career-entry { grid-template-columns: 11rem minmax(0, 1fr); }
  .agent-section { padding: 2rem; }
}
@media (max-width: 700px) {
  .site-header, .hero, .section, .agent-section, .site-footer { width: calc(100% - min(2.5rem, 40px)); }
  .site-header { padding-block: 1.25rem; gap: min(1rem, 16px); }
  .site-header nav { order: 3; width: 100%; justify-content: space-between; gap: .5rem 1rem; }
  .hero { padding-block: 3.5rem 4.5rem; }
  h1 { font-size: clamp(2.125rem, 8vw, 3.5rem); letter-spacing: -.045em; }
  .hero-aside > p { font-size: 1.125rem; }
  .hero-aside .secondary { font-size: 1rem; }
  .section { padding-block: 3rem; }
  .projects { padding-top: 3rem; }
  .section-heading { grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-bottom: 1.75rem; }
  h2 { font-size: 1.875rem; }
  .project { padding: min(1.5rem, 24px); border-radius: 16px; }
  .project-featured { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .project-copy h3 { font-size: 2rem; }
  .project-visual { padding: min(1rem, 16px); }
  .career-entry { grid-template-columns: minmax(0, 1fr); gap: .75rem; padding-block: 2rem; }
  .career-date br { display: none; }
  .agent-section { padding: min(1.25rem, 20px); gap: 1.5rem; border-radius: 18px; }
  .agent-intro > p:not(.eyebrow) { font-size: 1rem; }
  .sdlc-steps { grid-template-columns: minmax(0, 1fr); }
  .sdlc-steps li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: min(.875rem, 14px); }
  .sdlc-steps .step-number { flex: 0 0 auto; }
  .sdlc-steps h3 { flex: 0 0 auto; max-width: 100%; margin: 0; }
  .sdlc-steps p { flex-basis: 100%; }
  .llm-practices { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding-top: 1.5rem; }
  .skill-row { grid-template-columns: 1.5rem minmax(0, 1fr); gap: .75rem; padding-block: 1.75rem; }
  .skill-body { grid-column: 2; }
  .skills { padding-top: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
}
@media print {
  :root, :root[data-theme], :root:not([data-theme]) { color-scheme: light; --paper: #ffffff; --surface: #f5f5f7; --ink: #111111; --muted: #626269; --line: #e4e4e7; --text: #52525a; --hero-text: #414147; --headline-muted: #7a7a80; --subtle: #929297; --button-hover: #363638; --selection: #e5e5e5; }
  .site-header nav, .button, .back-top, .project-visual, .theme-toggle { display: none; }
  .hero, .section, .agent-section { padding-block: 1.5rem; }
  .agent-section { background: white; border: 0; padding-inline: 0; }
  .project, .career-entry, .sdlc-steps li { break-inside: avoid; }
  .project-featured { display: block; break-inside: auto; }
  .projects > .section-heading { break-inside: avoid; break-after: avoid; }
}
