:root {
  color-scheme: dark;
  --bg: #101415;
  --panel: #151b1c;
  --deep: #0d1313;
  --rule: #293638;
  --text: #ecf2ee;
  --muted: #aebeba;
  --green: #a6f2c5;
  --green-deep: #203a30;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --width: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1rem/1.6 var(--sans); }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--green); }
p, h1, h2, h3, h4 { margin: 0; }
h1, h2, h3, h4 { line-height: 1.12; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
[tabindex="-1"]:focus { outline: none; }
[id] { scroll-margin-top: 1rem; }
.wrap { width: min(var(--width), calc(100% - 5rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 1rem; left: 1rem; z-index: 5; padding: .6rem 1rem; background: var(--green); color: var(--deep); transform: translateY(-200%); }
.skip:focus { transform: none; color: var(--deep); }
.site-header { border-bottom: 1px solid var(--rule); background: var(--bg); }
.header-inner, .footer-inner { min-height: 4.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .62rem; font: 700 .98rem/1 var(--mono); white-space: nowrap; }
.brand-icon { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 1px solid #3a6452; border-radius: .4rem; color: var(--green); background: #192722; font-size: .88rem; }
.brand-suffix { color: var(--green); }
.site-header nav { display: flex; justify-content: flex-end; flex-wrap: wrap; align-items: center; gap: clamp(.8rem, 3vw, 1.9rem); color: var(--muted); font: .88rem/1.35 var(--mono); }
.site-header nav a { padding-block: .45rem; }
.site-header nav a[aria-current=page] { color: var(--green); }
.site-header nav a:last-child { color: var(--green); border: 1px solid var(--rule); border-radius: .4rem; padding: .43rem .7rem; }
.site-header nav a:last-child:hover { border-color: var(--green); }

.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 78% 22%, #1b342970, transparent 58%),
    linear-gradient(#385a4a22 1px, transparent 1px),
    linear-gradient(90deg, #385a4a22 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  border-bottom: 1px solid var(--rule);
}
.hero-inner { min-height: 35rem; display: grid; grid-template-columns: 1.17fr 1fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3rem, 7.5vw, 6rem); }
.eyebrow { color: var(--green); font: .79rem/1.45 var(--mono); text-transform: uppercase; letter-spacing: .075em; }
.hero-kicker { margin-bottom: 1.15rem; }
.hero-kicker span { padding: 0 .3rem; color: #719789; }
.hero h1, .page-overview h1, .case-header h1 { font-size: clamp(3rem, 7.25vw, 6.1rem); letter-spacing: -.072em; line-height: .98; }
.hero h1 span, .page-overview h1 span, .case-header h1 span { color: var(--green); }
.hero-role { margin-top: 1.25rem; font-size: clamp(1.14rem, 2.1vw, 1.45rem); color: var(--text); }
.hero-role strong { color: var(--green); font-weight: 650; }
.hero-description { max-width: 29rem; margin-top: .6rem; color: var(--muted); font-size: 1.08rem; }
.hero-experience { margin-top: .85rem; color: var(--muted); font: .87rem/1.55 var(--mono); }
.actions { margin-top: 1.55rem; display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.actions .text-link { margin-left: .35rem; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 2.65rem; border: 1px solid #40504e; border-radius: .4rem; padding: .48rem .85rem; font-weight: 650; font-size: .92rem; white-space: nowrap; transition: background .15s, border-color .15s; }
.button:hover { border-color: var(--green); background: #25362d; }
.button.primary { border-color: var(--green); background: var(--green); color: #12251c; }
.button.primary:hover { background: #c2fcdc; color: #12251c; }
.text-link { color: var(--green); font-weight: 650; font-size: .92rem; }
.text-link:hover, .subtle-link:hover { text-decoration: underline; text-underline-offset: .24em; }
.subtle-link { color: var(--muted); font-size: .92rem; }

.terminal { min-width: 0; border: 1px solid #3a554c; border-radius: .7rem; background: var(--deep); overflow: hidden; box-shadow: 0 1.25rem 4rem #05080865; }
.terminal-bar { display: grid; grid-template-columns: 3rem 1fr 3rem; align-items: center; min-height: 2.85rem; padding: 0 1rem; border-bottom: 1px solid var(--rule); background: #192120; }
.terminal-bar h2 { text-align: center; color: #bad0c6; font: .85rem/1.3 var(--mono); }
.terminal-dots { display: flex; gap: .28rem; }
.terminal-dots i { width: .52rem; height: .52rem; border: 1px solid #79a48f; border-radius: 50%; }
.terminal-dots i:first-child { background: #79a48f; }
.terminal-body { padding: 1rem; font: .875rem/1.55 var(--mono); }
.terminal-screen { height: 9.2rem; overflow-y: auto; overscroll-behavior: contain; padding: .1rem .25rem .5rem; scrollbar-color: #456456 var(--deep); }
.terminal-output p { color: #c0cec8; overflow-wrap: anywhere; }
.terminal-output .terminal-echo { color: var(--green); }
.terminal-output .terminal-echo:not(:first-child) { margin-top: .65rem; }
.terminal-form { display: flex; align-items: center; gap: .6rem; padding: .2rem .25rem .25rem .6rem; border: 1px solid #3b5148; border-radius: .35rem; background: #151e1b; }
.terminal-form:focus-within { border-color: var(--green); }
.terminal-form label { flex: none; color: var(--green); }
.terminal-form input { flex: 1; min-width: 0; border: 0; padding: .3rem 0; color: var(--text); background: transparent; outline: none; }
.terminal-form input::placeholder { color: #9aada4; }
.terminal-form button { color: var(--green); border: 0; border-radius: .25rem; background: var(--green-deep); padding: .28rem .55rem; }
.terminal-form button:hover, .command-list button:hover { color: #10231a; background: var(--green); }
.command-list { display: flex; flex-wrap: wrap; gap: .34rem; margin-top: .7rem; }
.command-list button { font-size: .82rem; color: var(--muted); background: transparent; border: 1px solid var(--rule); border-radius: .25rem; padding: .15rem .45rem; }

.section { padding-block: clamp(2.75rem, 6vw, 4.75rem); }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { display: flex; gap: .85rem; align-items: center; margin-bottom: 1.65rem; }
.section-head h2, .contact-panel h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.055em; }
.section-line { display: block; width: 1.5rem; height: 2px; background: var(--green); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.project-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(1.1rem, 2.5vw, 1.7rem); border: 1px solid var(--rule); border-radius: .55rem; background: linear-gradient(145deg, #182021, #14191a 68%); transition: border-color .15s; }
.project-card:hover, .project-card:focus-within { border-color: #517563; }
.card-top { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .65rem; margin-bottom: .75rem; }
.card-top .eyebrow { color: var(--muted); white-space: nowrap; }
.project-mark { display: grid; place-items: center; min-width: 2.45rem; height: 2.45rem; padding-inline: .3rem; border: 1px solid #355346; border-radius: .4rem; background: #1b2c25; color: var(--green); font: 700 1.15rem/1 var(--mono); }
.project-card h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); letter-spacing: -.035em; }
.project-subtitle { margin-top: .28rem; font: .87rem/1.5 var(--mono); color: var(--green); }
.card-summary { max-width: 32rem; padding-block: .65rem .9rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; list-style: none; }
.tags li { padding: .18rem .46rem; border-radius: .25rem; border: 1px solid var(--rule); background: #101717; color: #c6d4ce; font: .82rem/1.45 var(--mono); }
.card-links { width: 100%; display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; margin-top: auto; padding-top: 1.05rem; }

.experience-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(14rem, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.employer + .employer { margin-top: 1.65rem; }
.employer h3 { font-size: 1.37rem; letter-spacing: -.03em; }
.employer > ol { margin: .75rem 0 0; padding: 0 0 0 1rem; border-left: 1px solid #3c554b; list-style: none; }
.role { position: relative; padding-block: .35rem .9rem; }
.role:last-child { padding-bottom: 0; }
.role::before { content: ""; width: .44rem; height: .44rem; position: absolute; left: -1.26rem; top: .63rem; border-radius: 50%; background: var(--green); }
.role-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem 1.1rem; }
.role-head p { color: var(--muted); font: .875rem/1.5 var(--mono); }
.highlights { color: var(--muted); padding-left: 1.05rem; margin: .32rem 0 .38rem; }
.highlights li { padding-left: .14rem; margin-top: .24rem; }
.skills-panel { border: 1px solid var(--rule); border-radius: .55rem; background: var(--panel); padding: 1.3rem; }
.skills-panel h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.skills-panel div + div { border-top: 1px solid var(--rule); margin-top: .7rem; padding-top: .7rem; }
.skills-panel h4 { font: .85rem/1.4 var(--mono); color: var(--green); }
.skills-panel p { color: var(--muted); margin-top: .17rem; }
.contact-panel { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; padding: clamp(1.2rem, 4vw, 2.5rem); border: 1px solid #3a5549; background: linear-gradient(130deg, #192b23, #151b1c); border-radius: .55rem; }
.contact-panel p { color: var(--muted); margin-top: .4rem; }
.contact-panel .actions { margin: 0; }
.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font: .86rem/1.5 var(--mono); }

.page-overview h1, .case-header h1 { font-size: clamp(2.6rem, 6vw, 4.65rem); }
.page-overview > p { margin-top: .8rem; margin-bottom: 1.6rem; color: var(--muted); }
.case-layout { padding-block: clamp(2rem, 5vw, 4.5rem); max-width: 860px; }
.case-header { padding-bottom: 1.55rem; border-bottom: 1px solid var(--rule); }
.back-link { display: inline-block; margin-bottom: 1.6rem; }
.case-header .eyebrow { margin-bottom: .5rem; }
.case-subtitle { color: var(--muted); margin-block: .7rem .85rem; font-size: 1.16rem; }
.case-body { max-width: 46rem; }
.case-section, .decision, .case-links { margin-top: 1.7rem; }
.case-section h2, .decision h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); letter-spacing: -.025em; }
.case-section p, .decision > p:last-child { margin-top: .5rem; color: var(--muted); }
.flow { margin: .9rem 0 0; padding-left: 1.75rem; }
.flow > li { margin-bottom: .55rem; padding: .85rem 1rem; border: 1px solid var(--rule); border-radius: .45rem; background: var(--panel); }
.flow > li::marker { color: var(--green); font: .85rem var(--mono); }
.flow h3 { font-size: 1rem; }
.flow p { margin-top: .22rem; }
.decision { padding: 1rem 1.2rem; border-left: 3px solid var(--green); background: #19241f; border-radius: 0 .4rem .4rem 0; }
.decision h2 { margin-top: .24rem; }
.case-links { display: flex; flex-wrap: wrap; gap: .5rem; }

.resume-sheet { max-width: 830px; margin-block: 2rem; padding: clamp(1rem, 4vw, 2.6rem); background: var(--panel); border: 1px solid var(--rule); border-radius: .5rem; }
.resume-header { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; }
.resume-sheet h1 { font-size: clamp(1.85rem, 5vw, 2.75rem); letter-spacing: -.055em; }
.resume-title { font-size: 1.1rem; font-weight: 600; color: var(--green); margin-top: .2rem; }
.resume-sheet a:not(.button) { color: var(--green); text-decoration: underline; text-underline-offset: .16em; }
.resume-contact { margin-block: .25rem .55rem; }
.resume-sheet section { margin-top: 1.35rem; }
.resume-sheet h2 { border-bottom: 1px solid var(--rule); padding-bottom: .3rem; margin-bottom: .38rem; font-size: 1.25rem; }
.resume-role { margin-bottom: .54rem; }
.resume-role h3 { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .1rem .7rem; font-size: 1rem; }
.resume-role h3 span { color: var(--muted); font: .88rem/1.45 var(--mono); }
.resume-sheet ul { padding-left: 1.1rem; margin: .2rem 0 0; }
.resume-sheet section p + p { margin-top: .28rem; }

@media (max-width: 980px) {
  .hero-inner { gap: 2rem; }
  .hero h1 { font-size: clamp(3rem, 7.8vw, 5.2rem); }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2.5rem); }
  .hero-inner { grid-template-columns: 1fr; min-height: initial; padding-block: 3rem; gap: 1.8rem; }
  .hero h1 { font-size: clamp(2.9rem, 11vw, 5rem); }
  .terminal { max-width: 34rem; }
  .experience-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 2rem); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: .45rem; padding-block: .75rem; }
  .site-header nav { justify-content: flex-start; gap: .3rem .95rem; }
  .site-header nav a:last-child { padding-inline: 0; border-color: transparent; }
  .project-grid { grid-template-columns: 1fr; }
  .hero-description { font-size: 1rem; }
  .actions .text-link { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@page { size: A4; margin: 13mm 15mm; }
@media print {
  :root { color-scheme: light; }
  .site-header, .site-footer, .skip, .print-hide { display: none !important; }
  body { background: white; color: #16241d; font: 9.8pt/1.38 var(--sans); }
  .resume-sheet { width: auto; max-width: none; margin: 0; padding: 0; background: white; border: 0; }
  .resume-sheet h1 { font-size: 25pt; }
  .resume-title { font-size: 13pt; }
  .resume-title, .resume-sheet a:not(.button) { color: #23563e; }
  .resume-sheet section { margin-top: .95rem; }
  .resume-sheet h2 { color: #23563e; border-color: #b7c9bd; font-size: 12pt; }
  .resume-role h3 { font-size: 10.5pt; }
  .resume-role h3 span { color: #3a4b43; font: 9pt/1.35 var(--sans); }
  .resume-role, .resume-sheet section > p { break-inside: avoid; }
}
