:root {
  --ink: #21382e;
  --accent: #365e45;
  --muted: #667067;
  --rule: #dcded4;
  --paper: #f5f4ee;
  font-family: 'Avenir Next', Avenir, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  line-height: 1.65;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; }
.app-root { display: contents; }
a { color: inherit; text-underline-offset: 5px; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #a07636; outline-offset: 5px; }
main:focus { outline: none; }
::selection { background: #d6dfb5; color: #21382e; }
h1, h2, h3, p { margin-top: 0; }
.resume { max-width: 1200px; margin: auto; padding: 0 56px; }
.skip-link { position: fixed; top: -100px; left: 12px; background: white; padding: 12px; z-index: 10; }
.skip-link:focus { top: 12px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 106px; border-bottom: 1px solid var(--rule); }
.wordmark { font-size: 36px; letter-spacing: -.09em; font-weight: 750; text-decoration: none; line-height: 1; }
.wordmark span { color: #7b9163; }
.nav-links { display: flex; gap: 34px; }
.nav-links a, .print-button { font-size: 13px; font-weight: 500; text-decoration: none; }
.nav-links a { padding: 10px 0; }
.nav-links a:hover, .quiet-link:hover, .back-top:hover { color: #557c35; }
.print-button { border: 1px solid #bfc7b9; background: transparent; color: var(--ink); border-radius: 6px; padding: 10px 15px; }
.print-button span { margin-left: 16px; }
.print-button:hover { background: #e9ebe0; }
.band { display: grid; grid-template-columns: 1.12fr 1fr; align-items: center; gap: 65px; padding: 72px 0 64px; }
.eyebrow, .mono, .section-label, .focus-strip, .step-number { font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace; }
.eyebrow { display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .075em; font-size: 10px; font-weight: 500; color: var(--accent); margin-bottom: 27px; }
.eyebrow-divider { margin: 0 2px; color: #a3aa99; }
.status-dot { display: inline-block; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #729155; }
h1 { font-size: clamp(70px, 7.7vw, 100px); line-height: .99; letter-spacing: -.065em; font-weight: 550; margin-bottom: 28px; }
h1 span { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; font-style: italic; letter-spacing: -.06em; color: var(--accent); }
.tagline { font-size: 18px; line-height: 1.65; max-width: 410px; color: var(--muted); margin-bottom: 30px; }
.hero-actions { display: flex; align-items: center; gap: 27px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; background: var(--ink); border: 1px solid var(--ink); border-radius: 5px; color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; padding: 13px 20px; min-height: 48px; transition: background .18s, transform .18s; }
.button:hover { background: #3c5f3f; transform: translateY(-2px); }
.button:disabled { opacity: .6; cursor: wait; transform: none; }
.quiet-link { display: inline-flex; align-items: center; gap: 14px; font-size: 12px; text-decoration: none; min-height: 44px; }
.system-card { background: #e9ecdf; border: 1px solid #d9dece; border-radius: 12px; padding: 26px; position: relative; overflow: hidden; }
.system-card::after { content: ''; position: absolute; width: 150px; height: 150px; border: 1px solid #cbd4bb; border-radius: 50%; right: -75px; top: 49px; pointer-events: none; }
.card-topline { display: flex; justify-content: space-between; align-items: center; color: #596b50; margin-bottom: 25px; font-size: 18px; }
.mono { font-size: 10px; letter-spacing: .12em; }
.system-card h2 { font-size: 30px; line-height: 1.2; font-weight: 500; letter-spacing: -.035em; margin-bottom: 26px; }
em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
.system-card h2 em { color: #536a41; }
.pipeline { position: relative; z-index: 1; }
.pipeline-step { display: flex; align-items: center; gap: 12px; border: 1px solid #d4dac9; background: #f5f6ee; border-radius: 6px; padding: 12px; }
.step-icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 34px; flex-shrink: 0; border: 1px solid #dce1d2; border-radius: 4px; color: #557348; font: 17px Consolas, monospace; }
.pipeline-step strong { display: block; font-size: 12px; font-weight: 600; line-height: 1.5; }
.pipeline-step div > span { display: block; font-size: 10px; color: #6d7866; margin-top: 2px; }
.step-number { font-size: 10px; color: #7c886e; margin-left: auto; }
.pipeline-connector { height: 14px; border-left: 1px dashed #a7b495; margin-left: 28px; }
.final-step { background: #263f30; color: #f5f6ee; border-color: #263f30; }
.final-step .step-icon { background: #39523b; border-color: #516248; color: #cad8ae; }
.final-step div > span, .final-step .step-number { color: #bdcbb1; }
.card-bottomline { display: flex; align-items: center; gap: 7px; font-size: 10px; color: #5c6b52; margin-top: 20px; }
.focus-strip { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 21px 0; border-block: 1px solid var(--rule); font-size: 10px; letter-spacing: .12em; color: #637057; }
.focus-strip span:nth-child(even) { font-size: 18px; color: #7d8c67; }
.section-grid { display: grid; grid-template-columns: 235px 1fr; gap: 35px; padding: 48px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 25px; }
.section-label { display: flex; flex-direction: column; gap: 9px; font-size: 11px; font-weight: 400; margin: 5px 0 0; }
.section-label > span { color: #828b78; font-size: 10px; }
.section-title { font-size: 32px; font-weight: 500; line-height: 1.22; letter-spacing: -.035em; margin-bottom: 22px; }
.section-title span { color: #708063; }
.summary p { font-size: 16px; color: var(--muted); margin: 0; max-width: 640px; }
.section-intro { font-size: 15px; margin-bottom: 18px; color: var(--muted); }
.skills ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.skills li { display: flex; align-items: center; gap: 15px; border: 1px solid var(--rule); border-radius: 5px; padding: 9px 15px; font-size: 12px; background: #fafaf5; }
.skills li > span { font-size: 12px; color: #7e906c; }
.job-card + .job-card { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--rule); }
.job-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
h3 { font-size: 23px; font-weight: 500; letter-spacing: -.03em; line-height: 1.3; margin-bottom: 4px; }
.org { color: var(--accent); font-size: 12px; margin: 0 0 9px; }
.dates { display: flex; align-items: center; gap: 7px; border: 1px solid #d5ddc7; background: #e9eedf; border-radius: 30px; padding: 3px 10px; font-size: 10px; margin: 0; }
.stack { color: var(--muted); font-size: 12px; }
.experience ul { list-style: none; padding: 0; margin: 22px 0 0; }
.experience li { position: relative; padding-left: 20px; margin-top: 12px; font-size: 14px; color: var(--muted); }
.experience li::before { content: '↗'; position: absolute; left: 0; color: #809264; }
.contact-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 58px; background: #e9eddf; border: 1px solid #dce1d3; padding: 42px; border-radius: 10px; margin: 54px 0 0; scroll-margin-top: 24px; }
.contact-panel h2 { font-size: 42px; line-height: 1.12; letter-spacing: -.045em; font-weight: 500; margin-bottom: 22px; }
.contact-panel h2 em { color: #587345; }
.contact-copy > p:not(.eyebrow) { font-size: 14px; color: #5d6b54; }
.contact-panel .eyebrow { font-size: 10px; margin-bottom: 24px; }
.contact-location { display: flex; align-items: center; gap: 12px; margin-top: 48px; font-size: 12px; }
.contact-location > span { display: flex; align-items: center; justify-content: center; border: 1px solid #cbd5bd; width: 36px; height: 36px; border-radius: 50%; }
.contact-location div > span { display: block; font-size: 10px; color: #66765c; margin-top: 2px; }
form { position: relative; min-width: 0; }
form label { display: block; font-size: 11px; font-weight: 600; margin-bottom: 7px; }
form label span { color: #6b7a5f; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row > div { min-width: 0; }
input, textarea { width: 100%; border: 1px solid #c8d1bc; border-radius: 5px; background: #f9faf4; color: var(--ink); padding: 11px 12px; font-size: 12px; margin-bottom: 18px; }
input::placeholder, textarea::placeholder { color: #747b6d; opacity: 1; }
input:focus, textarea:focus { border-color: #55743c; }
textarea { resize: vertical; min-height: 130px; display: block; line-height: 1.7; }
.message-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.message-label > span { font-size: 10px; color: #68745e; }
.form-bottom { display: flex; align-items: center; gap: 17px; }
.privacy-note { font-size: 10px; color: #65735b; margin: 0; }
.demo-notice { border: 1px solid #cbd5ba; border-radius: 5px; padding: 9px 11px; font-size: 11px; color: #4e6340; margin: 0 0 18px; background: #f1f4e9; }
.form-error, .form-success { border-radius: 5px; padding: 10px 12px; font-size: 12px; }
.form-error { color: #8d2727; background: #fff0eb; border: 1px solid #e5b9ac; }
.form-success { color: #28502e; background: #f4f8eb; border: 1px solid #b9ce9c; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--muted); padding: 35px 0; }
footer .wordmark { font-size: 30px; color: var(--ink); }
footer > span > span { color: #a3ac99; margin: 0 10px; }
.back-top { text-decoration: none; padding: 10px 0; }
.back-top span { margin-left: 14px; }
.profile-links { list-style: none; padding: 0; display: flex; gap: 16px; font-size: 12px; }
@media (max-width: 950px) {
  .resume { padding: 0 32px; }
  .band { gap: 32px; }
  .eyebrow { font-size: 9px; gap: 7px; }
  .system-card { padding: 22px; }
  .system-card h2 { font-size: 27px; }
  .section-grid { grid-template-columns: 170px 1fr; gap: 30px; }
  .contact-panel { padding: 30px; gap: 30px; }
  .contact-panel h2 { font-size: 36px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-bottom { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 680px) {
  .resume { padding: 0 22px; }
  .topbar { min-height: 85px; gap: 16px; flex-wrap: wrap; padding: 18px 0; }
  .wordmark { font-size: 32px; }
  .nav-links { gap: 18px; margin-left: auto; }
  .nav-links a { font-size: 12px; }
  .print-button { padding: 8px 10px; font-size: 11px; }
  .print-button span { margin-left: 6px; }
  .band { grid-template-columns: 1fr; gap: 35px; padding: 44px 0 35px; }
  .eyebrow { font-size: 9px; margin-bottom: 24px; }
  h1 { font-size: clamp(66px, 17vw, 90px); }
  .tagline { font-size: 17px; max-width: 400px; }
  .hero-actions { gap: 23px; flex-wrap: wrap; }
  .system-card { padding: 24px; }
  .system-card h2 { font-size: 30px; }
  .pipeline-step strong { font-size: 13px; }
  .pipeline-step div > span { font-size: 11px; }
  .focus-strip { gap: 10px; font-size: 8px; letter-spacing: .025em; padding: 17px 0; }
  .focus-strip span:nth-child(even) { font-size: 12px; }
  .section-grid { grid-template-columns: 1fr; gap: 25px; padding: 32px 0; }
  .section-label { flex-direction: row; gap: 12px; }
  .section-title { font-size: 30px; }
  .summary p { font-size: 15px; }
  .skills li { padding: 8px 12px; gap: 10px; }
  h3 { font-size: 22px; }
  .job-heading { gap: 12px; }
  .contact-panel { grid-template-columns: 1fr; gap: 27px; padding: 26px 22px; margin-top: 32px; }
  .contact-panel h2 { font-size: 40px; }
  .contact-location { margin-top: 25px; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  input, textarea { font-size: 16px; }
  .form-bottom { align-items: center; }
  footer { flex-wrap: wrap; gap: 15px; padding: 25px 0; }
  footer > span { order: 3; width: 100%; font-size: 10px; }
}
@media (max-width: 390px) {
  .topbar { gap: 10px; }
  .nav-links { gap: 12px; }
  .print-button { font-size: 10px; }
  .print-button span { display: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .focus-strip { font-size: 7px; }
  .message-label > span { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  @page { margin: 14mm; }
  :root { background: white; color: #18251d; }
  body { font-size: 10pt; }
  .resume { max-width: none; padding: 0; }
  .topbar, .hero-actions, .system-card, .focus-strip, .contact-panel, footer, .skip-link { display: none; }
  .band { display: block; padding: 0 0 22px; }
  h1 { font-size: 42pt; margin-bottom: 15px; }
  h1 br { display: none; }
  h1 span::before { content: ' '; }
  .tagline { font-size: 12pt; max-width: none; margin-bottom: 0; }
  .eyebrow { margin-bottom: 12px; }
  .section-grid { grid-template-columns: 115px 1fr; gap: 20px; padding: 20px 0; break-inside: avoid; }
  .section-title { font-size: 20pt; }
  .summary p { font-size: 10pt; }
  .skills li { font-size: 9pt; padding: 3px 8px; }
  .experience li { font-size: 10pt; }
  .button { display: none; }
  a { text-decoration: none; }
}
