:root {
  color-scheme: light;
  --bg: #f6f4ed;
  --paper: #fffdf7;
  --text: #203d32;
  --muted: #58665b;
  --line: #d8dcd0;
  --accent: #a3452c;
  --green: #244f3e;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.75 "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: #dce5b8; color: #203d32; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--green); color: white; padding: 12px 20px; }
.skip-link:focus { top: 12px; }
.topbar { max-width: var(--max); margin: auto; padding: 22px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: var(--bg); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; letter-spacing: -.04em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--paper); font-family: "Instrument Serif", Georgia, serif; font-size: 20px; font-weight: 400; }
.brand-dot { color: var(--accent); }
.nav { display: flex; gap: 26px; align-items: center; font-size: 13px; font-weight: 500; }
.nav a { padding: 8px 0; }
.nav a:hover, .nav a.active { color: var(--accent); }
.nav a.active { text-decoration: underline; text-underline-offset: 7px; }
.nav .nav-cta { border: 1px solid var(--green); padding: 10px 18px; border-radius: 4px; }
.nav-cta span { margin-left: 10px; }
.menu-toggle { display: none; }
.section { max-width: var(--max); margin: auto; padding: 96px 32px; }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; align-items: center; padding-top: 75px; padding-bottom: 92px; position: relative; }
.eyebrow { margin: 0 0 24px; font: 11px/1.6 "DM Mono", monospace; letter-spacing: .12em; color: var(--accent); }
.status-dot { display: inline-block; width: 7px; height: 7px; background: var(--accent); border-radius: 50%; margin-right: 10px; }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }
.hero h1 { font-size: clamp(48px, 5.7vw, 78px); line-height: 1.04; letter-spacing: -.035em; margin: 0; }
.hero-emphasis { color: var(--accent); font-style: italic; }
.hero-lede { max-width: 490px; color: var(--muted); font-size: 16px; margin: 26px 0; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 12px 20px; border-radius: 4px; font-size: 13px; font-weight: 600; transition: background .2s, transform .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: #173c2d; }
.button-quiet { padding-left: 8px; text-decoration: underline; text-underline-offset: 5px; }
.hero-meta { display: flex; gap: 22px; border-top: 1px solid var(--line); padding-top: 25px; margin-top: 35px; }
.hero-meta > span:not(.meta-divider) { flex: 1; max-width: 150px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.hero-meta strong { display: block; color: var(--text); font: 36px/1.2 "Instrument Serif", Georgia, serif; margin-bottom: 5px; }
.meta-divider { display: none; }
.hero-portrait { width: min(100%, 300px); margin: 0 auto 12px; position: relative; padding: 0 10px; }
.portrait-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font: 10px "DM Mono", monospace; letter-spacing: .08em; }
.portrait-heading > span:last-child { font: 30px Georgia, serif; }
.portrait-frame { aspect-ratio: 4 / 4.7; overflow: hidden; border-radius: 50%; background: #c75b46; }
.portrait-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; transform: scale(1.055); }
.hero-portrait figcaption { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); }
.hero-portrait figcaption strong { display: block; font-size: 17px; }
.hero-portrait figcaption div > span { display: block; font-size: 12px; color: var(--muted); }
.portrait-signature { font: italic 48px "Instrument Serif", Georgia, serif; color: var(--accent); }
.portrait-note { position: absolute; bottom: 103px; left: -40px; padding: 16px 20px; background: #e7edcd; box-shadow: 0 8px 25px #203d3214; transform: rotate(-5deg); font-size: 12px; line-height: 1.5; border: 1px solid #d2daba; }
.portrait-note > span { float: left; font-size: 32px; margin-right: 14px; line-height: 1.1; }
.hero-bottom-label { position: absolute; bottom: 28px; left: 32px; display: flex; align-items: center; gap: 14px; color: var(--muted); font: 9px "DM Mono", monospace; letter-spacing: .12em; }
.scroll-line { width: 50px; height: 1px; background: var(--muted); }
.trust-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 40px; padding: 26px 24px; background: var(--green); color: #f3f3e6; font: 11px/1.6 "DM Mono", monospace; letter-spacing: .07em; }
.section-heading { margin-bottom: 42px; }
.section-heading .eyebrow { margin-bottom: 15px; }
.section-heading h2, .contact-content h2 { font-size: clamp(38px, 4.7vw, 58px); line-height: 1.1; letter-spacing: -.025em; margin: 0; }
.muted-heading { color: #6b7864; font-style: italic; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; }
.about-copy p { color: var(--muted); margin-top: 0; font-size: 15px; }
.about-copy .large-copy { color: var(--text); font-size: 21px; line-height: 1.6; }
.inline-links, .project-actions { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 25px; }
.inline-links a, .text-link, .project-actions a { font-size: 13px; font-weight: 600; padding: 8px 0; text-decoration: underline; text-decoration-color: #aeb8a6; text-underline-offset: 6px; }
a:hover { text-decoration-color: var(--accent); }
.inline-links span, .text-link span, .project-actions span { margin-left: 8px; }
.principle { display: grid; grid-template-columns: 32px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.principle-number { color: var(--accent); font: 12px/2 "DM Mono", monospace; }
.principle h3 { margin: 0 0 7px; font-size: 17px; line-height: 1.4; }
.principle p { margin: 0; font-size: 14px; color: var(--muted); }
.expertise-section, .work-section, .experience-section, .education-section { border-top: 1px solid var(--line); }
.expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); background: var(--paper); border-radius: 6px; overflow: hidden; }
.expertise-card { padding: 26px 22px; border-right: 1px solid var(--line); }
.expertise-card:last-child { border: 0; }
.card-icon { color: var(--accent); font-size: 30px; }
.card-index { font: 9px/1.7 "DM Mono", monospace; color: var(--muted); margin: 20px 0 12px; }
.expertise-card h3 { font-size: 19px; line-height: 1.35; letter-spacing: -.025em; margin: 0 0 14px; }
.expertise-card > p:not(.card-index) { font-size: 14px; color: var(--muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tag-list span { background: #edf0e5; border-radius: 3px; padding: 4px 8px; font-size: 10px; color: #465641; }
.skills-panel { display: grid; grid-template-columns: 200px 1fr; gap: 30px; padding: 30px 0 0; }
.skills-panel .eyebrow { margin-bottom: 5px; }
.skills-panel h3 { margin: 0; font-size: 18px; }
.skills-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.skills-cloud span { font-size: 12px; border: 1px solid var(--line); border-radius: 4px; padding: 5px 11px; }
.section-heading-row { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.project-card { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--paper); }
.project-visual { position: relative; height: 250px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.cogs-visual { background: #e0e7cb; }
.marketplace-visual { background: #efdacf; }
.integrations-visual { background: #dce6e3; }
.open-source-visual { background: #e8e1cf; }
.visual-label { font: 10px/1.5 "DM Mono", monospace; text-transform: uppercase; letter-spacing: .05em; position: relative; z-index: 1; }
.visual-number { position: absolute; right: 10px; top: 15px; font: 190px/1 "Instrument Serif", Georgia, serif; color: #203d3210; }
.visual-title { font: italic 43px/1.1 "Instrument Serif", Georgia, serif; max-width: 250px; position: relative; }
.visual-caption { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.visual-caption span { font-size: 24px; }
.project-content { padding: 28px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font: 10px/1.6 "DM Mono", monospace; color: var(--muted); }
.project-status { color: var(--green); }
.project-content h3 { font-size: 21px; letter-spacing: -.025em; line-height: 1.4; margin: 18px 0 12px; }
.project-content p { color: var(--muted); font-size: 14px; margin: 0; }
.section-note { color: var(--muted); font-size: 12px; margin-top: 24px; }
.timeline-item { display: grid; grid-template-columns: 190px 20px 1fr; gap: 24px; position: relative; }
.timeline-date { font: 11px/1.7 "DM Mono", monospace; padding-top: 6px; color: var(--muted); }
.timeline-marker { position: relative; border-left: 1px solid var(--line); margin-left: 7px; }
.timeline-marker::before { content: ""; position: absolute; top: 9px; left: -5px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.timeline-content { padding: 0 0 38px; }
.timeline-item:last-child .timeline-content { padding-bottom: 0; }
.timeline-title-row { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.timeline-content h3 { margin: 0; font-size: 21px; line-height: 1.4; }
.timeline-content p, .timeline-content li { font-size: 14px; color: var(--muted); }
.timeline-content .company { color: var(--green); margin: 5px 0 16px; }
.company span { color: var(--muted); }
.timeline-content ul { padding-left: 20px; }
.timeline-badge { font-size: 10px; background: #e5ebd5; border-radius: 4px; padding: 4px 10px; white-space: nowrap; }
.education-grid { border-top: 1px solid var(--line); }
.education-card { display: grid; grid-template-columns: 90px 1fr 30px; gap: 24px; align-items: center; border-bottom: 1px solid var(--line); padding: 26px 0; }
.education-year { font: 13px "DM Mono", monospace; color: var(--accent); }
.education-card h3 { font-size: 17px; margin: 0 0 5px; }
.education-card p { font-size: 14px; color: var(--muted); margin: 0; }
.education-icon { color: var(--accent); font-size: 26px; }
.contact-section { margin: 0 auto 64px; background: var(--green); color: var(--paper); padding: 64px; border-radius: 6px; display: grid; grid-template-columns: 1fr 230px; gap: 55px; }
.contact-content .eyebrow { color: #d7e6ae; }
.contact-content > p:not(.eyebrow) { font-size: 15px; color: #d3dfd2; max-width: 570px; margin: 24px 0; }
.contact-section .button-primary { background: #e7edcd; color: #203d32; }
.contact-section .button-primary:hover { background: white; }
.button-outline { border: 1px solid #7c9988; }
.contact-side { align-self: center; border-left: 1px solid #64816f; padding-left: 30px; }
.contact-symbol { font: italic 80px/1 "Instrument Serif", Georgia, serif; color: #e7edcd; }
.contact-side p { font-size: 14px; color: #d3dfd2; }
.contact-side a { font-size: 12px; text-decoration: underline; text-underline-offset: 5px; overflow-wrap: anywhere; }
.footer { max-width: var(--max); margin: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 32px 35px; border-top: 1px solid var(--line); }
.footer p { font-size: 12px; color: var(--muted); }
.footer-links { display: flex; gap: 18px; font-size: 12px; }
.footer-links a { padding: 8px 0; }
.copyright { font-size: 11px; color: var(--muted); }
.back-to-top { position: fixed; bottom: 20px; right: 20px; width: 44px; height: 44px; border: 1px solid #82917c; border-radius: 50%; background: var(--paper); color: var(--green); cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 15; }
.back-to-top.visible { opacity: 1; visibility: visible; }
@media (max-width: 1100px) {
  .hero { gap: 45px; }
  .nav { gap: 18px; }
  .expertise-grid { grid-template-columns: 1fr 1fr; }
  .expertise-card:nth-child(2) { border-right: 0; }
  .expertise-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .contact-section { margin-left: 24px; margin-right: 24px; padding: 45px; }
}
@media (max-width: 800px) {
  .topbar { padding: 18px 24px; flex-wrap: wrap; }
  .menu-toggle { display: none; }
  .js .menu-toggle { display: flex; flex-direction: column; gap: 6px; justify-content: center; align-items: center; width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; }
  .menu-toggle span { display: block; width: 19px; height: 2px; background: var(--green); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav { width: 100%; flex-wrap: wrap; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 20px 24px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 14px 20px #203d3210; }
  .js .nav.open { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
  .nav a { padding: 10px; }
  .hero { grid-template-columns: 1.2fr 1fr; gap: 28px; }
  .hero h1 { font-size: 48px; }
  .portrait-note { left: -15px; padding: 12px; font-size: 10px; }
  .hero-meta { gap: 12px; }
  .about-grid { gap: 35px; }
  .section { padding: 70px 24px; }
  .hero { padding-bottom: 80px; }
  .timeline-item { grid-template-columns: 140px 12px 1fr; gap: 16px; }
  .contact-section { grid-template-columns: 1fr; padding: 40px; }
  .contact-side { border-left: 0; border-top: 1px solid #64816f; padding: 24px 0 0; }
  .contact-symbol { font-size: 48px; }
}
@media (max-width: 600px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 42px; }
  .hero h1 { font-size: clamp(46px, 10.5vw, 64px); }
  .hero-lede { font-size: 15px; }
  .hero-portrait { width: min(100%, 260px); margin: 0 auto; padding: 0 12px; }
  .portrait-note { left: -6px; }
  .hero-meta strong { font-size: 32px; }
  .hero-meta > span:not(.meta-divider) { font-size: 10px; }
  .hero-bottom-label { bottom: 22px; left: 24px; }
  .trust-strip { gap: 14px 24px; font-size: 9px; }
  .section { padding: 60px 24px; }
  .hero { padding-top: 42px; padding-bottom: 70px; }
  .section-heading { margin-bottom: 30px; }
  .about-grid, .expertise-grid, .project-grid, .skills-panel { grid-template-columns: 1fr; }
  .expertise-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .skills-panel { gap: 20px; }
  .section-heading-row { flex-direction: column; align-items: start; gap: 18px; }
  .project-grid { gap: 24px; }
  .project-content { padding: 24px; }
  .timeline-item { grid-template-columns: 12px 1fr; gap: 0 18px; }
  .timeline-marker { grid-column: 1; grid-row: 1 / 3; }
  .timeline-date { grid-column: 2; grid-row: 1; padding: 0 0 12px; }
  .timeline-content { grid-column: 2; }
  .timeline-title-row { flex-direction: column; }
  .timeline-badge { margin-bottom: 10px; }
  .education-card { grid-template-columns: 44px 1fr; gap: 16px; }
  .education-icon { display: none; }
  .education-card h3 { font-size: 16px; }
  .education-card p { font-size: 13px; }
  .contact-section { padding: 36px 24px; margin: 0 16px 40px; gap: 30px; }
  .contact-content h2 { font-size: 38px; }
  .footer { padding: 24px; gap: 16px; }
  .footer p { flex-basis: 100%; margin: 0; }
  .footer-links { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
