:root {
    color-scheme: light;
    --paper: #f3f2eb;
    --paper-deep: #e8e8dd;
    --ink: #17221e;
    --ink-soft: #53625b;
    --forest: #14231d;
    --forest-light: #21362c;
    --line: #d7d9cf;
    --accent: #d8f16c;
    --accent-dark: #b8d447;
    --white: #fffef9;
    --mono: "Cascadia Code", Consolas, monospace;
    --sans: "Segoe UI", Inter, system-ui, sans-serif;
    --display: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #4a7f34; outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; left: 16px; top: 12px; padding: 10px 14px; color: var(--white); background: var(--forest); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 750 16px/1 var(--display); letter-spacing: -.03em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: var(--forest); background: var(--accent); font: 500 12px/1 var(--mono); letter-spacing: -.06em; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.7vw, 34px); font-size: 13px; font-weight: 650; }
.site-nav a { color: #425148; text-decoration: none; }
.site-nav a:hover, .site-footer a:hover, .text-links a:hover, .contact-link:hover { color: #176747; }
.site-nav .nav-tool { padding: 9px 13px; border: 1px solid #aab5a4; border-radius: 999px; color: var(--forest); }
.site-nav .nav-tool:hover { border-color: var(--forest); background: var(--accent); }

.hero { min-height: 552px; position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 42px; align-items: center; overflow: hidden; padding: clamp(36px, 6vw, 74px); border-radius: 26px; color: var(--white); background: radial-gradient(ellipse at 100% 20%, rgba(94, 136, 92, .28), transparent 37%), linear-gradient(130deg, #11211b 20%, #182a21 77%, #233b2b); }
.hero::before { content: ""; position: absolute; inset: auto -70px -210px auto; width: 470px; height: 470px; border: 1px solid rgba(216, 241, 108, .19); border-radius: 50%; box-shadow: 0 0 0 34px rgba(216, 241, 108, .035), 0 0 0 70px rgba(216, 241, 108, .025); }
.hero-copy, .hero-portrait { position: relative; z-index: 1; }
.eyebrow { margin: 0 0 14px; color: #607269; font: 500 11px/1.45 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.hero .eyebrow { color: #b0c1b3; }
.status-dot { width: 8px; height: 8px; display: inline-block; margin-right: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(216, 241, 108, .12); vertical-align: 1px; }
.hero h1 { max-width: 690px; margin: 0; font: 700 clamp(42px, 5.5vw, 68px)/1.04 var(--display); letter-spacing: -.065em; }
.hero h1 span { color: var(--accent); }
.hero-intro { max-width: 660px; margin: 25px 0 0; color: #d5ddd5; font-size: 16px; line-height: 1.75; }
.hero-intro strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 27px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 0 18px; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #1a261e; background: var(--accent); }
.button-primary:hover { background: #e3f894; }
.button-quiet { color: var(--white); border-color: rgba(255, 255, 255, .36); background: rgba(255, 255, 255, .04); }
.button-quiet:hover { background: rgba(255, 255, 255, .1); }
.hero-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.hero-stack span, .tag-list span { padding: 5px 9px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 4px; color: #d7e0d7; font: 11px/1.3 var(--mono); }
.hero-portrait { width: min(100%, 320px); justify-self: end; margin: 0 0 12px; transform: rotate(2deg); }
.hero-portrait::before { content: ""; position: absolute; z-index: -1; inset: 13px -13px -13px 13px; border: 1px solid rgba(216, 241, 108, .65); border-radius: 13px; }
.hero-portrait img { width: 100%; height: 380px; object-fit: cover; object-position: 50% 27%; border: 7px solid rgba(255, 255, 255, .94); border-radius: 12px 12px 4px 4px; filter: saturate(.8); }
.hero-portrait figcaption { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 0 0 9px 9px; color: var(--ink); background: var(--white); font-size: 12px; line-height: 1.4; }
.hero-portrait figcaption strong, .hero-portrait figcaption small { display: block; }
.hero-portrait figcaption small { color: #657168; font-size: 11px; }
.portrait-pin { width: 28px; height: 28px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; color: var(--forest); background: var(--accent); font-size: 16px; }
.hero-index { position: absolute; z-index: 1; right: 29px; bottom: 21px; color: rgba(255, 255, 255, .45); font: 10px var(--mono); letter-spacing: .08em; }

.proof-bar { margin-top: 20px; border-block: 1px solid var(--line); background: rgba(255, 255, 255, .31); }
.proof-grid { min-height: 92px; display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; align-items: center; gap: 20px; }
.proof-grid div { display: grid; gap: 1px; }
.proof-grid strong { font: 750 17px/1.4 var(--display); letter-spacing: -.03em; }
.proof-grid span { color: #627068; font-size: 12px; }
.proof-grid > a { justify-self: end; color: #2b6044; font-size: 12px; font-weight: 700; text-decoration: none; }

.section { padding-block: 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 44px; margin-bottom: 38px; }
.section-heading > div { max-width: 670px; }
.section-heading h2, .approach-layout h2, .contact-panel h2 { margin: 0; font: 700 clamp(30px, 4vw, 47px)/1.12 var(--display); letter-spacing: -.055em; }
.section-heading h2 em { color: #477d59; font-style: normal; }
.section-heading > p { max-width: 350px; margin: 0 0 2px; color: var(--ink-soft); font-size: 14px; }
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.work-card { min-width: 0; overflow: hidden; border: 1px solid #dce0d5; border-radius: 13px; background: var(--white); box-shadow: 0 3px 12px rgba(22, 37, 28, .025); }
.work-card-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
.work-image { min-height: 370px; position: relative; overflow: hidden; background: #202a24; }
.work-image img { width: 100%; height: 100%; min-height: 370px; object-fit: cover; }
.work-number { position: absolute; top: 16px; left: 16px; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, .42); border-radius: 4px; color: white; background: rgba(16, 28, 22, .55); font: 11px var(--mono); }
.work-content { padding: 29px 30px 31px; }
.work-kicker { margin: 0 0 9px; color: #657a67; font: 500 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.work-content h3 { margin: 0 0 12px; font: 700 24px/1.22 var(--display); letter-spacing: -.045em; }
.work-content > p:not(.work-kicker) { margin: 0 0 13px; color: #53625b; font-size: 13px; line-height: 1.72; }
.work-detail { padding-top: 12px; border-top: 1px solid #e2e5dc; }
.work-detail strong { color: #253e30; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.tag-list span { border-color: #dce3d8; color: #405848; background: #f1f5ed; }
.platform-card, .package-card, .bip-card { display: flex; flex-direction: column; }
.platform-art { min-height: 192px; position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 24px; color: #dce9d8; background: #182821; }
.platform-art::after { content: ""; position: absolute; width: 180px; height: 180px; right: -35px; top: -88px; border: 1px solid rgba(216, 241, 108, .37); border-radius: 50%; box-shadow: 0 0 0 21px rgba(216, 241, 108, .07), 0 0 0 43px rgba(216, 241, 108, .04); }
.terminal-label, .terminal-prompt { z-index: 1; font: 11px var(--mono); }
.terminal-label { color: #a4bc9c; }
.terminal-prompt { color: var(--accent); }
.pipeline { z-index: 1; display: flex; align-items: center; gap: 11px; font: 10px var(--mono); }
.pipeline i { padding: 8px 9px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 4px; font-style: normal; }
.pipeline b { color: var(--accent); }
.pipeline-line { position: absolute; top: 50%; left: 12%; width: 76%; border-top: 1px dashed rgba(216, 241, 108, .28); }
.platform-card .work-content, .package-card .work-content, .bip-card .work-content { flex: 1; }
.package-mark { min-height: 192px; display: flex; align-items: center; justify-content: center; gap: 13px; color: #f4f5eb; background: #25332d; }
.package-mark span { padding: 8px 9px; border-radius: 5px; color: #1f3025; background: var(--accent); font: 700 11px var(--mono); }
.package-mark b { font: 700 24px var(--display); letter-spacing: -.05em; }
.package-mark i { align-self: center; padding: 5px 7px; border: 1px solid #79887d; border-radius: 4px; color: #c8d6ca; font: 10px var(--mono); font-style: normal; }
.text-links { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 18px; }
.text-links a, .contact-link { color: #236344; font-size: 12px; font-weight: 700; text-decoration: none; }
.bip-art { min-height: 192px; position: relative; display: grid; place-items: center; overflow: hidden; color: #e3edda; background: #283a32; }
.bip-art-label { position: absolute; top: 20px; left: 22px; color: #adbea9; font: 10px var(--mono); letter-spacing: .12em; }
.word-stack { z-index: 1; display: flex; align-items: center; gap: 10px; font: 12px var(--mono); }
.word-stack i, .word-stack strong { padding: 9px 10px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 4px; font-style: normal; }
.word-stack strong { color: #243323; border-color: var(--accent); background: var(--accent); }
.word-stack b { color: var(--accent); font-weight: 400; }
.bip-art-ring { position: absolute; right: 15%; bottom: -97px; width: 200px; height: 200px; border: 1px solid rgba(216, 241, 108, .3); border-radius: 50%; }

.approach-band { padding-block: 83px; color: #f6f7ed; background: var(--forest); }
.approach-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.approach-layout .eyebrow { color: #a6bf99; }
.approach-layout h2 { max-width: 450px; font-size: clamp(31px, 4vw, 44px); }
.approach-list article { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding-block: 17px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.approach-list article:first-child { padding-top: 0; }
.approach-list article > span { padding-top: 4px; color: var(--accent); font: 11px var(--mono); }
.approach-list h3 { margin: 0 0 4px; font: 650 16px var(--display); }
.approach-list p { margin: 0; color: #c1cdc0; font-size: 13px; }
.capability-section { padding-bottom: 92px; }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.capability-grid article { min-height: 194px; padding: 21px; border: 1px solid #dce0d5; border-radius: 9px; background: rgba(255, 255, 255, .43); }
.capability-icon { width: 29px; height: 29px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 8px; color: #233b2d; background: #dce9b3; font: 15px var(--mono); }
.capability-grid h3 { margin: 0 0 8px; font: 700 15px var(--display); }
.capability-grid p { margin: 0; color: #606c63; font-size: 12px; line-height: 1.65; }
.contact-panel { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-bottom: 76px; padding: clamp(27px, 5vw, 52px); border: 1px solid #d7dece; border-radius: 16px; background: #e9eddf; }
.contact-panel > div:first-child { max-width: 610px; }
.contact-panel h2 { font-size: clamp(27px, 3.5vw, 39px); }
.contact-panel > div > p:last-child { margin: 12px 0 0; color: var(--ink-soft); font-size: 14px; }
.contact-actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-start; gap: 13px; }
.contact-actions .button { color: #f7f8ed; background: var(--forest); }
.contact-actions .button:hover { background: #284a35; }
.contact-link { color: #355c42; }
.site-footer { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #6a766d; font-size: 11px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: #46584c; text-decoration: none; }

/* Project index and résumé share the same site shell and visual language. */
.page-intro { padding: 52px 0 43px; }
.page-intro h1 { max-width: 760px; margin: 0; font: 750 clamp(40px, 6vw, 66px)/1.05 var(--display); letter-spacing: -.065em; }
.page-intro h1 em { color: #477d59; font-style: normal; }
.page-intro > p:last-child { max-width: 650px; margin: 17px 0 0; color: var(--ink-soft); font-size: 15px; }
.project-list { display: grid; gap: 16px; padding-bottom: 75px; }
.project-entry { display: grid; grid-template-columns: minmax(190px, .54fr) minmax(0, 1fr); overflow: hidden; border: 1px solid #dce0d5; border-radius: 12px; background: var(--white); }
.project-entry-visual { min-height: 220px; display: grid; place-items: center; overflow: hidden; background: #21362c; }
.project-entry-visual img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.project-entry-copy { padding: 25px 29px; }
.project-entry-copy h2 { margin: 0 0 8px; font: 700 23px/1.2 var(--display); letter-spacing: -.04em; }
.project-entry-copy p { max-width: 710px; margin: 0 0 12px; color: #59675e; font-size: 13px; }
.project-entry-copy .work-kicker { margin-bottom: 8px; }
.project-entry-copy .text-links { margin-top: 11px; }
.no-image-mark { color: var(--accent); font: 700 22px var(--mono); }
.projects-footnote { margin: -45px auto 75px; color: #657168; font-size: 12px; }

.resume-wrap { padding: 27px 0 80px; }
.resume-heading { position: relative; padding: 36px 42px; border-radius: 13px; color: #f7f8ed; background: var(--forest); }
.resume-heading h1 { margin: 0; font: 750 clamp(35px, 5vw, 54px)/1.05 var(--display); letter-spacing: -.06em; }
.resume-heading h2 { margin: 8px 0 0; color: var(--accent); font: 650 19px var(--display); }
.resume-contact { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; color: #c6d1c5; font-size: 12px; }
.resume-contact a { color: var(--accent); text-decoration: none; }
.resume-contact .resume-print { padding: 0; border: 0; color: var(--accent); background: transparent; cursor: pointer; font: inherit; }
.resume-contact .resume-print:hover { color: #e3f894; text-decoration: underline; }
.resume-summary { max-width: 890px; margin: 24px 0 0; color: #e1e8dc; font-size: 14px; }
.resume-section { padding-top: 36px; }
.resume-section > h2 { margin: 0 0 15px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font: 750 22px var(--display); letter-spacing: -.04em; }
.resume-skills { display: flex; flex-wrap: wrap; gap: 7px; }
.resume-skills span { padding: 6px 9px; border: 1px solid #d7dfd3; border-radius: 4px; color: #3d5746; background: #edf2e8; font: 11px var(--mono); }
.resume-role { margin-top: 18px; padding: 23px 25px; border: 1px solid #dce0d5; border-radius: 9px; background: var(--white); }
.resume-role-head { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; }
.resume-role h3 { margin: 0; font: 700 18px var(--display); letter-spacing: -.025em; }
.resume-role .role-company { color: #53735a; font-size: 13px; font-weight: 650; }
.resume-role > p { margin: 9px 0 0; color: #5e6a61; font-size: 13px; }
.resume-role ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 28px; margin: 16px 0 0; padding-left: 19px; color: #394940; font-size: 12px; }
.resume-role li::marker { color: #779643; }
.resume-education { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.resume-education article { padding: 18px 20px; border: 1px solid #dce0d5; border-radius: 8px; background: rgba(255, 255, 255, .45); }
.resume-education h3 { margin: 0 0 5px; font: 700 14px var(--display); }
.resume-education p { margin: 0; color: #5f6b63; font-size: 12px; }

@media (max-width: 820px) {
    .wrap { width: min(100% - 36px, 680px); }
    .hero { grid-template-columns: minmax(0, 1fr) 230px; gap: 22px; padding: 36px; }
    .hero h1 { font-size: clamp(39px, 7vw, 55px); }
    .hero-portrait img { height: 306px; }
    .proof-grid { grid-template-columns: repeat(2, 1fr); padding-block: 16px; }
    .proof-grid > a { justify-self: start; }
    .approach-layout { grid-template-columns: 1fr; gap: 38px; }
    .capability-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-panel { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
    .wrap { width: calc(100% - 32px); }
    .site-header { min-height: 72px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 12px; padding-block: 14px; }
    .site-nav { width: 100%; justify-content: space-between; gap: 7px; font-size: 11px; }
    .site-nav .nav-tool { padding: 7px 8px; }
    .hero { grid-template-columns: 1fr; gap: 30px; padding: 30px 23px 35px; border-radius: 17px; }
    .hero h1 { max-width: 490px; font-size: clamp(39px, 11vw, 54px); }
    .hero-intro { margin-top: 18px; font-size: 14px; }
    .hero-portrait { width: min(78%, 265px); justify-self: start; margin-left: 10px; }
    .hero-portrait img { height: 285px; }
    .hero-stack { margin-top: 23px; }
    .hero-index { right: 20px; bottom: 15px; }
    .proof-grid { gap: 13px 18px; }
    .proof-grid strong { font-size: 14px; }
    .proof-grid span { font-size: 11px; }
    .section { padding-block: 70px; }
    .section-heading { align-items: flex-start; flex-direction: column; gap: 13px; margin-bottom: 26px; }
    .section-heading h2 { font-size: 35px; }
    .work-grid { grid-template-columns: 1fr; gap: 13px; }
    .work-card-wide { grid-column: auto; grid-template-columns: 1fr; }
    .work-image, .work-image img { min-height: 245px; height: 245px; }
    .work-content { padding: 22px; }
    .work-content h3 { font-size: 21px; }
    .pipeline { gap: 6px; font-size: 8px; }
    .pipeline i { padding: 7px 6px; }
    .approach-band { padding-block: 65px; }
    .approach-layout { gap: 30px; }
    .approach-layout h2 { font-size: 34px; }
    .capability-grid { gap: 9px; }
    .capability-grid article { min-height: 180px; padding: 16px; }
    .capability-grid h3 { font-size: 13px; }
    .contact-panel { margin-bottom: 45px; padding: 25px 22px; }
    .contact-panel h2 { font-size: 30px; }
    .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 20px; }
    .site-footer nav { gap: 17px; }
    .page-intro { padding: 35px 0 28px; }
    .page-intro h1 { font-size: 43px; }
    .project-entry { grid-template-columns: 1fr; }
    .project-entry-visual, .project-entry-visual img { min-height: 190px; height: 190px; }
    .project-entry-copy { padding: 21px; }
    .resume-wrap { padding-top: 10px; }
    .resume-heading { padding: 27px 23px; }
    .resume-role { padding: 20px 18px; }
    .resume-role-head { align-items: flex-start; flex-direction: column; gap: 3px; }
    .resume-role ul { grid-template-columns: 1fr; }
    .resume-education { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media print {
    body { background: #fff; }
    .site-header, .site-footer, .skip-link, .resume-print { display: none !important; }
    .wrap { width: 100%; }
    .resume-wrap { padding: 0; }
    .resume-heading { padding: 22px; print-color-adjust: exact; }
    .resume-role, .resume-education article { break-inside: avoid; }
    a { text-decoration: none; }
}
