/* Technical folio / v02. Local system fonts; no network dependencies. */
:root {
  color-scheme: light;
  --paper: #f5f3ed;
  --surface: #fcfbf7;
  --wash: #eaece4;
  --ink: #202b27;
  --muted: #59645b;
  --line: #c9cec2;
  --accent: #365c49;
  --rust: #9a4b31;
  --dark: #233c31;
  --display: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, Helvetica, sans-serif;
  --mono: Consolas, 'Courier New', monospace;
  --space-section: clamp(3.5rem, 7vw, 6.5rem);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: #d9dfca; color: #202b27; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .25em; }
a:hover { color: var(--rust); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--rust); outline-offset: 5px; border-radius: 2px; }
[id] { scroll-margin-top: 2rem; }
.skip { position: absolute; left: 1rem; top: -6rem; padding: .75rem 1rem; background: var(--surface); z-index: 10; }
.skip:focus { top: 1rem; }
.container { width: min(1200px, calc(100% - 6rem)); margin-inline: auto; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding-block: 1.8rem; border-bottom: 1px solid var(--line); }
.identity { display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); font-size: .95rem; font-weight: 650; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.identity-mark { display: grid; grid-template-columns: auto auto; align-content: center; justify-content: center; width: 2.7rem; height: 2.7rem; border: 1px solid var(--ink); font: italic 1.55rem/1 var(--display); letter-spacing: -.1em; }
.identity-mark span { color: var(--rust); }
nav { display: flex; flex-wrap: wrap; gap: .5rem 1.65rem; font-size: .83rem; line-height: 1.5; }
nav a { padding-block: .45rem; color: var(--muted); text-decoration: none; }
nav a:hover, nav [aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: .5em; }
nav [aria-current] { text-decoration-color: var(--rust); }
h1, h2, h3, h4, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; }
h1 { font-size: clamp(3.5rem, 6vw, 5.6rem); line-height: 1.04; letter-spacing: -.055em; }
h2 { font-size: clamp(2rem, 3.25vw, 3rem); line-height: 1.15; letter-spacing: -.04em; }
h3 { font-size: 1.17rem; font-weight: 600; line-height: 1.35; letter-spacing: -.025em; }
p + p { margin-top: 1rem; }
.eyebrow, .section-number, .era { font: .72rem/1.65 var(--mono); letter-spacing: .075em; text-transform: uppercase; color: var(--muted); }
.section-number { color: var(--rust); }
.hero { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: end; padding-block: 5rem 5.7rem; }
.hero > div > .eyebrow { max-width: 46ch; }
.hero h1 { margin-block: 2rem 1.9rem; }
.hero h1 em { font-weight: 400; color: var(--accent); }
.hero-profession { display: block; margin-bottom: .9rem; font: 400 clamp(1.35rem, 2.4vw, 2rem)/1.3 var(--display); letter-spacing: -.025em; }
.lead { max-width: 61ch; color: var(--muted); font-size: 1.08rem; line-height: 1.8; }
.hero .lead { max-width: 53ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 1.7rem; margin-top: 2rem; font-size: .85rem; }
.button { display: inline-flex; justify-content: space-between; align-items: center; gap: 1.7rem; padding: .9rem 1.2rem; border: 1px solid var(--dark); background: var(--dark); color: var(--surface); text-decoration: none; font-weight: 600; font-size: .86rem; line-height: 1.5; }
.button:hover { background: #345643; border-color: #345643; color: var(--surface); }
.hero-aside { padding-bottom: .15rem; }
.hero-aside > .eyebrow { margin-top: 2rem; }
.hero-aside > p:last-child { margin-top: .8rem; font-size: .88rem; line-height: 1.8; color: var(--muted); }
/* An original typographic study, not a diagram of an employer system. */
.system-study { position: relative; padding: 1.5rem 0 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.study-index, .study-caption { display: block; font: .63rem/1.5 var(--mono); color: var(--muted); letter-spacing: .05em; }
.study-index { margin-bottom: 1.5rem; text-transform: uppercase; }
.system-layer { display: flex; align-items: center; gap: 1rem; min-height: 3.8rem; padding: .8rem 1rem; border: 1px solid #889887; background: var(--surface); font: .82rem/1.4 var(--sans); }
.system-layer + .system-layer { margin-top: .55rem; }
.system-layer:nth-of-type(2) { margin-left: 1rem; background: #ebeee5; }
.system-layer:nth-of-type(3) { margin-left: 2rem; background: #dee5d7; }
.system-layer span { color: var(--muted); font: .68rem/1 var(--mono); }
.study-caption { margin-top: 1.3rem; }
.section { padding-block: var(--space-section); border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 5rem; margin-bottom: 2.8rem; }
.section-heading h2 { margin-top: .8rem; max-width: 20ch; }
.section-heading > p { align-self: end; color: var(--muted); font-size: .93rem; max-width: 62ch; }
.value-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.2rem; counter-reset: focus; }
.value-grid article { padding: 1.5rem 0 0; border-top: 1px solid var(--accent); counter-increment: focus; }
.value-grid article::before { display: block; content: '0' counter(focus); margin-bottom: 1.8rem; color: var(--rust); font: .75rem/1 var(--mono); }
.value-grid h3 { max-width: 24ch; }
.value-grid p { margin-top: .9rem; color: var(--muted); font-size: .9rem; line-height: 1.8; }
.proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.proof-card { display: flex; flex-direction: column; min-width: 0; padding: 1.65rem; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.proof-card .eyebrow { min-height: 3.3em; font-size: .65rem; }
.proof-card h3 { font: 400 1.8rem/1.16 var(--display); letter-spacing: -.04em; margin-block: 1.4rem 1.1rem; }
.proof-card > p:not(.eyebrow):not(.proof-outcome) { color: var(--muted); font-size: .88rem; line-height: 1.8; }
.proof-outcome { margin-top: 1.3rem; padding-block: .9rem; border-block: 1px solid var(--line); }
.proof-outcome > strong { display: block; font: .65rem/1.6 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.proof-outcome > span { display: block; margin-top: .35rem; font: 1.07rem/1.5 var(--display); color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; margin: 1.3rem 0 0; }
.tags li { max-width: 100%; padding: .25rem .6rem; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--muted); font: .7rem/1.5 var(--sans); overflow-wrap: anywhere; }
.proof-card details { margin-top: auto; padding-top: 1.5rem; }
summary { padding-block: .9rem .2rem; border-top: 1px solid var(--line); cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--accent); }
summary::marker { color: var(--rust); }
summary:hover { color: var(--rust); }
details p { margin-top: .85rem; font-size: .85rem; color: var(--muted); }
.note { color: var(--muted); font-size: .75rem; }
.capability-list { margin: 0; }
.capability-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr) minmax(7rem, .55fr); gap: 2rem; padding-block: 1.4rem; border-top: 1px solid var(--line); font-size: .9rem; }
.capability-row dt { font-weight: 600; }
.capability-row dd { margin: 0; color: var(--muted); }
.capability-row dd:last-child { text-align: right; font-size: .8rem; }
.capability-row a { display: inline-block; padding-block: .15rem; }
.cv-route { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding: clamp(1.7rem, 4vw, 3rem); background: var(--dark); color: var(--surface); }
.cv-route h2 { max-width: 25ch; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.cv-route p { margin-top: 1rem; color: #d3dece; font-size: .92rem; max-width: 60ch; }
.cv-route a { color: var(--surface); }
.cv-route .button { flex-shrink: 0; border-color: #93a28e; background: transparent; }
.cv-route .button:hover { background: #345643; }
.cv-route :focus-visible { outline-color: #edb392; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6rem; align-items: start; }
.contact-grid h2 { margin-block: .8rem 1.5rem; max-width: 19ch; }
.contact-grid > div > p:not(.section-number) { color: var(--muted); font-size: .95rem; }
.contact-preview { padding: 2rem; background: var(--surface); border: 1px solid var(--line); }
fieldset { margin: 1rem 0 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; margin-bottom: .2rem; font: 1.6rem/1.2 var(--display); letter-spacing: -.035em; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { display: block; margin-top: 1.2rem; font-size: .78rem; color: var(--muted); }
input, textarea { display: block; width: 100%; margin-top: .5rem; padding: .7rem; border: 1px solid #aeb9a9; border-radius: 0; background: var(--paper); font: inherit; }
textarea { min-height: 8rem; resize: vertical; }
input:disabled, textarea:disabled { opacity: 1; color: var(--ink); cursor: not-allowed; }
.optional { font-size: .7rem; }
.form-submit { margin-top: 1.4rem; cursor: pointer; }
.form-submit:disabled { cursor: wait; opacity: .68; }
.honeypot-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile-widget { min-height: 65px; margin-top: 1.25rem; }
.contact-preview .note[data-state="error"] { color: #893921; }
.contact-preview .note[data-state="success"] { color: var(--accent); font-weight: 600; }
.contact-preview > .note { margin-top: 1.2rem; font-size: .73rem !important; }
footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 2rem; border-top: 1px solid var(--line); font-size: .77rem; color: var(--muted); }
footer > p { margin-right: auto; }
.experience-hero { padding-block: 5rem 3.5rem; }
.experience-hero h1 { margin-block: 1.3rem 1.5rem; }
.experience-hero .lead { max-width: 75ch; }
.jump-links { margin-top: 2rem; gap: .5rem 2rem; }
.jump-links a { text-decoration: underline; text-decoration-color: var(--line); }
#roles > h2 { padding-bottom: 1.5rem; font-size: 1.45rem; }
.roles { list-style: none; padding: 0; margin: 0; }
.role { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr); gap: 5rem; padding-block: 2.8rem; border-top: 1px solid var(--line); }
.role-meta h3 { font-size: 1rem; }
.role-meta p { margin-top: .55rem; font-size: .85rem; color: var(--muted); }
.role-meta .era { font-size: .7rem; color: var(--rust); margin-top: .9rem; }
.role > div:last-child > h3 { font: 400 1.65rem/1.2 var(--display); letter-spacing: -.03em; }
.role > div:last-child > p { margin-top: .8rem; color: var(--muted); font-size: .87rem; }
.role ul:not(.tags) { padding-left: 1.1rem; margin-block: 1.2rem; color: var(--muted); font-size: .92rem; }
.role li + li { margin-top: .65rem; }
.role li::marker { color: #7e8a77; }
.role .tags li + li { margin-top: 0; }
.chapter-link { display: inline-block; margin-top: 1.3rem; font-size: .8rem; }
.education-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 5rem; }
.education-grid h2 { margin-bottom: 1.5rem; font-size: 2rem; }
.education-grid h3 { margin-bottom: .5rem; }
.education-grid p { font-size: .9rem; color: var(--muted); }
.education-grid .era { margin-top: .75rem; font-size: .7rem; }
@media (max-width: 1050px) {
  .container { width: calc(100% - 4rem); }
  .site-header { gap: 1.5rem; }
  nav { gap: .5rem 1rem; }
  .hero { gap: 2.5rem; padding-block: 3.8rem 4rem; }
  .hero h1 { font-size: clamp(3.6rem, 6vw, 5rem); }
  .section-heading, .role { gap: 3rem; }
  .contact-grid { gap: 3rem; }
  .proof-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .proof-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 3rem; padding: 2rem; }
  .proof-card > .eyebrow, .proof-card > h3 { grid-column: 1; }
  .proof-card > .eyebrow { min-height: 0; }
  .proof-card > h3 { grid-row: 2 / span 2; margin-top: 1rem; }
  .proof-card > p:not(.eyebrow), .proof-card > .tags, .proof-card > details { grid-column: 2; }
  .proof-card > p:not(.eyebrow):not(.proof-outcome) { grid-row: 1 / span 2; }
  .proof-card details { margin-top: 0; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 2.5rem); }
  .site-header { align-items: flex-start; flex-direction: column; gap: 1.15rem; padding-block: 1.3rem; }
  nav { gap: .4rem 1.2rem; font-size: .78rem; }
  .hero { grid-template-columns: 1fr; gap: 3rem; }
  .hero h1 { font-size: clamp(3.4rem, 9vw, 5rem); }
  .hero-profession { font-size: clamp(1.2rem, 4vw, 1.8rem); }
  .hero-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; align-items: start; }
  .system-study { grid-row: 1 / span 2; }
  .hero-aside > .eyebrow { margin-top: 0; }
  .hero-aside > p:last-child { margin-top: .6rem; }
  .section-heading { grid-template-columns: 1fr; gap: 1.25rem; }
  .section-heading h2 { max-width: 24ch; }
  .value-grid { gap: 1.5rem; }
  .value-grid h3 { font-size: 1rem; }
  .capability-row { grid-template-columns: 1fr 1.5fr; gap: .6rem 2rem; }
  .capability-row dd:last-child { grid-column: 2; text-align: left; }
  .cv-route { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid h2 { max-width: 24ch; }
  .role { grid-template-columns: 1fr; gap: 1.5rem; }
  .role-meta h3 { max-width: none; }
  .education-grid { gap: 2rem; }
}
@media (max-width: 480px) {
  .hero { padding-block: 2.8rem 3.5rem; }
  .hero h1 { font-size: clamp(2.8rem, 10.7vw, 3.8rem); }
  .hero > div > .eyebrow { font-size: .64rem; }
  .hero-aside { display: block; }
  .system-study { max-width: 24rem; }
  .hero-aside > .eyebrow { margin-top: 1.5rem; }
  .value-grid { grid-template-columns: 1fr; gap: 2rem; }
  .value-grid article::before { margin-bottom: 1rem; }
  .value-grid h3 { font-size: 1.15rem; max-width: none; }
  .proof-card { display: flex; padding: 1.5rem; }
  .proof-card h3 { margin-block: 1.3rem 1rem; }
  .capability-row { grid-template-columns: 1fr; gap: .6rem; }
  .capability-row dd:last-child { grid-column: auto; }
  .contact-preview { padding: 1.5rem; }
  .field-grid, .education-grid { grid-template-columns: 1fr; }
  .field-grid { gap: 0; }
  .education-grid { gap: 3rem; }
  footer { align-items: flex-start; }
  footer p { flex-basis: 100%; }
  .experience-hero { padding-top: 3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (forced-colors: active) {
  .button, .cv-route, .identity-mark, .system-layer, .tags li { border: 1px solid CanvasText; }
  .cv-route, .cv-route p, .cv-route a, .button { color: CanvasText; background: Canvas; }
}
@media print {
  .skip, .site-header nav, .actions, .contact-grid, footer, .system-study, .jump-links { display: none; }
  :root { --paper: #fff; --surface: #fff; --ink: #000; --muted: #333; --accent: #000; --line: #bbb; }
  body { background: white; font-size: 10pt; }
  .container { width: 100%; }
  .site-header { padding-block: .5rem; }
  .experience-hero { padding-block: 1.5rem; }
  h1 { font-size: 30pt; }
  h2 { font-size: 22pt; }
  .section { padding-block: 1.5rem; }
  .role { grid-template-columns: 1fr 2fr; gap: 1.5rem; break-inside: avoid; padding-block: 1.2rem; }
  .cv-route { background: white; color: black; border: 1px solid #bbb; }
  .cv-route p, .cv-route a { color: black; }
  .proof-card { break-inside: avoid; }
}

/* Home v02: one statement, followed by quiet practical detail. */
.hero-statement {
  display: block;
  position: relative;
  padding-block: clamp(2.8rem, 5vw, 4.5rem) 2.1rem;
}
.hero-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .15rem .65rem;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.65;
  letter-spacing: -.01em;
}
.hero-identity strong { color: var(--ink); font-weight: 600; }
.hero-identity > span { color: var(--rust); }
.hero-statement h1 {
  max-width: 21ch;
  margin-block: 1.5rem 1.65rem;
  font-size: clamp(3rem, 6.15vw, 5.5rem);
  line-height: 1.04;
  letter-spacing: -.05em;
  text-wrap: balance;
}
.hero-statement h1 em { color: var(--accent); }
.hero-statement .lead { max-width: 64ch; font-size: 1.05rem; line-height: 1.75; }
.hero-statement .actions { margin-top: 1.6rem; gap: 1rem 1.8rem; }
.hero-statement .actions > a:not(.button) { padding-block: .7rem; }
.hero-annotations {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.8rem;
  margin: 2.7rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.6;
}
.hero-annotations li { display: flex; align-items: center; gap: .6rem; }
.hero-annotations li::before { content: ''; width: .25rem; height: .25rem; background: var(--rust); }
@media (max-width: 760px) {
  .hero-statement { padding-block: 2.6rem 1.7rem; }
  .hero-statement h1 { max-width: 20ch; font-size: clamp(2.7rem, 7.4vw, 3.8rem); }
  .hero-break { display: none; }
  .hero-statement .lead { max-width: 53ch; font-size: 1rem; }
  .hero-annotations { margin-top: 2.1rem; gap: .5rem 1.3rem; }
}
@media (max-width: 480px) {
  .hero-identity { display: block; font-size: .8rem; }
  .hero-identity > span { display: none; }
  .hero-identity strong { display: block; }
  .hero-statement h1 { margin-block: 1.3rem 1.4rem; font-size: clamp(2.45rem, 10.2vw, 3.1rem); }
  .hero-statement .actions { gap: .45rem 1.5rem; }
  .hero-annotations { font-size: .72rem; gap: .45rem 1.1rem; }
}
@media (forced-colors: active) {
  .hero-annotations li::before { background: CanvasText; }
}
@media print {
  .hero-statement { padding-block: 1.5rem; }
  .hero-statement h1 { font-size: 30pt; }
  .hero-annotations { margin-top: 1.5rem; }
}
