:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #627069;
  --copy: #46534c;
  --paper: #bec0b6;
  --panel: #c9cbc1;
  --chrome: #a7aaa0;
  --forest: #173f32;
  --forest-light: #2f6752;
  --line: #849188;
  --control-line: #718075;
  --location-dot: #235543;
  --motif-line: rgba(23, 63, 50, .22);
  --motif-ring: rgba(23, 63, 50, .045);
  --soft: #bec9be;
  --grid-line: rgba(23, 63, 50, .035);
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --sans: Inter, Avenir, "Avenir Next", "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #eef3ed;
  --muted: #b4c0b9;
  --copy: var(--muted);
  --paper: #111b17;
  --panel: #19251f;
  --chrome: #0b1410;
  --forest: #194735;
  --forest-light: #94c6a7;
  --line: #3a4b42;
  --control-line: #52675b;
  --location-dot: #94c6a7;
  --motif-line: rgba(148, 198, 167, .2);
  --motif-ring: rgba(148, 198, 167, .045);
  --soft: #263b30;
  --grid-line: rgba(148, 198, 167, .025);
}

:root[data-personality="on"] {
  --serif: Orbitron, "Segoe UI", sans-serif;
  --sans: "Space Grotesk", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; min-width: 320px; overflow-x: hidden; color: var(--ink); background: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px), var(--paper); background-size: 42px 42px; font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.page-section { position: relative; z-index: 1; width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 86px; padding: 0 max(32px, calc((100% - 1180px) / 2)); border-bottom: 1px solid var(--line); background: var(--chrome); }
.wordmark { display: flex; align-items: center; gap: 10px; color: var(--forest); font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: -.04em; line-height: .9; text-decoration: none; }
.wordmark-icon { width: 32px; height: 32px; flex: none; }
.wordmark-copy { display: flex; flex-direction: column; }
.wordmark-subtitle { margin-top: 5px; color: var(--muted); font-family: var(--sans); font-size: 8px; font-weight: 700; letter-spacing: .09em; line-height: 1; text-transform: uppercase; }
.wordmark-location { margin-top: 3px; color: var(--muted); font-family: var(--sans); font-size: 8px; font-weight: 700; letter-spacing: .09em; line-height: 1; text-transform: uppercase; }
:root[data-theme="dark"] .wordmark { color: var(--forest-light); }
.site-header nav { display: flex; gap: clamp(16px, 2.4vw, 32px); margin-left: auto; margin-right: 30px; }
.site-header nav a { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--forest-light); }

.theme-toggle { position: relative; display: flex; width: 54px; height: 26px; align-items: center; justify-content: space-between; padding: 0; border: 1px solid var(--control-line); border-radius: 999px; color: var(--forest-light); background: var(--soft); cursor: pointer; }
.theme-toggle svg { z-index: 1; width: 12px; margin: 0 7px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.65; }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--panel); box-shadow: 0 2px 5px rgba(0,0,0,.2); transition: transform 180ms ease; }
.moon-icon { opacity: .58; }
:root[data-theme="dark"] .sun-icon { opacity: .58; }
:root[data-theme="dark"] .moon-icon { opacity: 1; }
:root[data-theme="dark"] .toggle-thumb { transform: translateX(28px); }
.theme-toggle:hover, .theme-toggle:focus-visible { outline: 2px solid var(--forest-light); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; clip-path: inset(50%); }

.page-section { padding: clamp(74px, 11vw, 148px) 0; }
.eyebrow, .section-label, .aside-label, .case-kicker { margin: 0; color: var(--forest-light); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.eyebrow > span, .availability > span:first-child { width: 7px; height: 7px; border-radius: 50%; background: #91c9a5; box-shadow: 0 0 0 4px rgba(145, 201, 165, .15); }
.eyebrow > span { background: var(--location-dot); box-shadow: 0 0 0 4px rgba(35, 85, 67, .16); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.045em; }
h1 { max-width: 880px; margin-bottom: 28px; font-size: clamp(48px, 7vw, 96px); line-height: .92; }
h2 { max-width: 690px; margin-bottom: 0; font-size: clamp(38px, 4.6vw, 62px); line-height: .98; }
h3 { margin-bottom: 12px; font-size: 25px; line-height: 1.04; }
.hero { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(270px, .7fr); align-items: stretch; min-height: clamp(680px, 82vh, 900px); padding-top: clamp(80px, 12vh, 150px); background: var(--paper); box-shadow: 0 0 0 100vmax var(--paper); clip-path: inset(0 -100vmax); }
.hero::before { position: absolute; z-index: 0; top: 12%; left: -390px; width: 360px; height: 360px; border: 1px solid var(--motif-line); border-radius: 50%; box-shadow: 0 0 0 44px var(--motif-ring), 0 0 0 88px color-mix(in srgb, var(--motif-ring) 70%, transparent); content: ""; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: 20px clamp(32px, 7vw, 100px) 60px 0; }
.hero-summary { max-width: 620px; margin-bottom: 36px; color: var(--copy); font-size: clamp(16px, 1.7vw, 19px); line-height: 1.65; }
.hero-aside { position: relative; z-index: 1; display: flex; min-height: 560px; flex-direction: column; overflow: hidden; padding: 38px; color: #f5f1e8; background: var(--forest); }
.hero-aside::after { position: absolute; right: -216px; bottom: 36px; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; box-shadow: 0 0 0 36px rgba(255,255,255,.03), 0 0 0 72px rgba(255,255,255,.02); content: ""; }
.hero-aside > * { position: relative; z-index: 1; }
.hero-aside .aside-label { margin-bottom: 7px; }
.hero-location { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: #f5f1e8; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero-location span { width: 7px; height: 7px; border-radius: 50%; background: #91c9a5; box-shadow: 0 0 0 4px rgba(145,201,165,.15); }
.aside-label { color: rgba(245,241,232,.55); }
.availability { display: flex; align-items: flex-start; gap: 11px; font-size: 11px; font-weight: 700; letter-spacing: .1em; line-height: 1.55; text-transform: uppercase; }
.availability > span:first-child { margin-top: calc((1.55em - 7px) / 2); }
.availability-negative { display: flex; width: 100%; min-height: calc(1.55em * 3); gap: 0; margin-top: 7px; cursor: default; outline: none; }
.availability-negative[hidden] { display: none; }
:root[data-personality="on"] .availability-negative { min-height: calc(1.55em * 4); }
.availability-negative > span:first-child { flex: none; margin-top: calc((1.55em - 7px) / 2); margin-right: 10px; background: #e2b46b; box-shadow: 0 0 0 4px rgba(226,180,107,.12); }
.availability-negative:focus-visible { outline: 1px solid rgba(245,241,232,.72); outline-offset: 4px; }
.status-message-stack { min-width: 0; flex: 1; white-space: normal; }
.hero-profile { margin-bottom: 32px; }
.hero-name { margin: 0 0 12px; color: rgba(245,241,232,.95); font-family: var(--serif); font-size: 32px; letter-spacing: -.03em; }
.hero-email { margin: -5px 0 18px; font-size: 12px; }
.hero-photo { display: block; width: 132px; aspect-ratio: 1; margin: 0 0 24px; border: 1px solid rgba(255,255,255,.22); object-fit: cover; object-position: center top; }
.hero-role { padding: 0 0 34px; }
.hero-role p:first-child { margin-bottom: 19px; font-family: var(--serif); font-size: 28px; line-height: .98; }
.hero-email, .hero-role p:last-child { color: #adb8ae; }
.hero-role p:last-child { margin-bottom: 0; font-size: 12px; line-height: 1.7; }
.hero-links { display: flex; gap: 20px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); }
.hero-links a { display: inline-flex; align-items: center; gap: 5px; color: rgba(245,241,232,.8); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.hero-links a:hover, .hero-links a:focus-visible { color: white; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; gap: 20px; min-height: 50px; padding: 0 18px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: background-color 180ms ease, color 180ms ease; }
.button span { margin-left: auto; font-size: 17px; }
.button-icon { display: block; width: 17px; height: 17px; background-color: currentColor; }
.button-icon-download { -webkit-mask: url("../images/download.svg") center / contain no-repeat; mask: url("../images/download.svg") center / contain no-repeat; }
.button-icon-external { -webkit-mask: url("../images/external.svg") center / contain no-repeat; mask: url("../images/external.svg") center / contain no-repeat; }
.button-icon-email { -webkit-mask: url("../images/resume-email-icon.svg") center / contain no-repeat; mask: url("../images/resume-email-icon.svg") center / contain no-repeat; }
.button-icon-arrow { -webkit-mask: url("../images/arrow.svg") center / contain no-repeat; mask: url("../images/arrow.svg") center / contain no-repeat; }
.button-icon-linkedin, .footer-icon-linkedin { -webkit-mask: url("../images/linkedin.svg") center / contain no-repeat; mask: url("../images/linkedin.svg") center / contain no-repeat; transform: translateY(-1px); }
.button-icon-github, .footer-icon-github { -webkit-mask: url("../images/github.svg") center / contain no-repeat; mask: url("../images/github.svg") center / contain no-repeat; }
.button-primary { color: #f5f1e8; background: var(--forest); }
.button-primary:hover, .button-primary:focus-visible { background: var(--forest-light); }
.button-secondary { border: 1px solid var(--control-line); }
.button-secondary:hover, .button-secondary:focus-visible { background: var(--soft); }

.impact { border-top: 1px solid var(--line); }
.section-intro { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(0, 1.45fr); gap: 28px; margin-bottom: 68px; }
.section-intro > p:not(.section-label) { max-width: 600px; grid-column: 2; margin: -35px 0 0; color: var(--copy); line-height: 1.7; }
.experience .section-intro > p:not(.section-label) { margin-top: 20px; }
.resume .section-intro > p:not(.section-label) { margin-top: 20px; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.impact-grid article { min-height: 280px; padding: 30px 30px 28px 0; border-right: 1px solid var(--line); }
.impact-grid article + article { padding-left: 30px; }
.impact-grid article:last-child { border-right: 0; }
.impact-number { margin-bottom: 20px; color: var(--forest-light); font-family: var(--serif); font-size: clamp(31px, 3.5vw, 50px); letter-spacing: -.06em; line-height: 1; }
.impact-number i { font-family: var(--sans); font-size: .6em; font-style: normal; }
.impact-grid h3 { font-size: 22px; }
.impact-grid p:last-child, .case-study > p:not(.case-number):not(.case-kicker), .focus-grid p { margin-bottom: 0; color: var(--copy); font-size: 14px; line-height: 1.65; }

.experience { background: var(--panel); box-shadow: 0 0 0 100vmax var(--panel); clip-path: inset(0 -100vmax); }
.experience::before { position: absolute; z-index: 0; right: -390px; bottom: 9%; width: 350px; height: 350px; border: 1px solid var(--motif-line); border-radius: 50%; box-shadow: 0 0 0 42px var(--motif-ring), 0 0 0 84px color-mix(in srgb, var(--motif-ring) 70%, transparent); content: ""; }
.experience > * { position: relative; z-index: 1; }
.timeline { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.timeline > li { display: grid; grid-template-columns: 150px minmax(190px, .8fr) minmax(250px, 1.25fr); gap: 28px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.timeline-period { color: var(--forest-light); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.timeline-period span { color: var(--muted); }
.timeline h3 { margin-bottom: 5px; font-size: 25px; }
.company { margin: 0; color: var(--copy); font-size: 14px; }
.timeline-summary { margin: 0 0 24px; color: var(--copy); font-size: 14px; line-height: 1.65; }
.timeline-role .tags { margin-top: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.tags li { padding: 5px 8px; border: 1px solid var(--control-line); border-radius: 999px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

.case-studies { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.case-study { display: flex; min-height: 335px; flex-direction: column; padding: 31px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-study-featured { grid-column: span 2; display: grid; grid-template-columns: 90px 1.1fr .9fr; gap: 30px; min-height: 300px; }
.case-study-featured .tags { grid-column: 2 / -1; align-self: end; }
.case-number { margin-bottom: 42px; color: var(--forest-light); font-size: 11px; font-weight: 700; letter-spacing: .1em; }
.case-kicker { margin-bottom: 16px; font-size: 10px; }
.case-study h3 { font-size: clamp(26px, 2.7vw, 40px); }
.case-study > .tags { margin-top: auto; }
.case-study:not(.case-study-featured) > .tags { margin-top: 40px; }

.focus { border-bottom: 1px solid var(--line); }
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px; }
.focus-grid h3 { font-size: 25px; }
.resume { border-bottom: 1px solid var(--line); }
.resume-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.resume-grid article { min-height: 230px; padding: 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.resume-label { margin-bottom: 42px; color: var(--forest-light); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.resume-grid h3 { font-size: 25px; }
.resume-grid article > p:not(.resume-label) { margin-bottom: 0; color: var(--copy); font-size: 14px; line-height: 1.65; }
.certification-date { margin-top: -6px !important; margin-bottom: 12px !important; color: var(--muted) !important; font-size: 11px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.credential-link { display: inline-flex; gap: 8px; margin-top: 20px; color: var(--forest-light); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.credential-link:hover, .credential-link:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.resume-downloads { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; }
.resume-downloads > p { margin: 0; color: var(--copy); font-size: 14px; }
.resume-downloads > div { display: flex; flex-wrap: wrap; gap: 10px; }
.resume-download-buttons { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 12px; }
.contact { max-width: 800px; margin-left: max(32px, calc((100% - 1180px) / 2)); }
.contact h2 { margin: 18px 0 25px; }
.contact > p:not(.section-label) { max-width: 570px; margin-bottom: 36px; color: var(--copy); font-size: 16px; line-height: 1.7; }
.contact .contact-note { margin-top: -20px; font-size: 13px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.not-found { display: grid; min-height: calc(100vh - 186px); place-items: center; text-align: center; }
.not-found > div { max-width: 720px; }
.not-found h1 { margin: 18px 0 24px; }
.not-found p:not(.section-label) { max-width: 480px; margin: 0 auto 36px; color: var(--copy); line-height: 1.7; }
.site-footer { position: relative; z-index: 1; display: flex; width: 100%; align-items: center; justify-content: space-between; min-height: 100px; padding: 0 max(32px, calc((100% - 1180px) / 2)); border-top: 1px solid var(--line); color: var(--muted); background: var(--chrome); font-size: 11px; }
.site-footer div { display: flex; gap: 20px; }
.site-footer a { font-weight: 700; text-decoration: none; }
.footer-social { display: inline-flex; align-items: center; gap: 5px; }
.footer-icon { display: block; width: 12px; height: 12px; background-color: currentColor; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--forest-light); }

@media (max-width: 800px) {
  .page-section { width: min(100% - 40px, 1180px); }
  .site-header { padding: 0 20px; }
  .site-footer { padding: 0 20px; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-copy { min-height: 560px; padding-right: 0; }
  .hero-aside { min-height: 430px; }
  .section-intro { grid-template-columns: 1fr; margin-bottom: 45px; }
  .section-intro > p:not(.section-label) { grid-column: auto; margin: 0; }
  .impact-grid { grid-template-columns: 1fr; }
  .impact-grid article, .impact-grid article + article { min-height: 0; padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .impact-grid article:last-child { border-bottom: 0; }
  .impact-number { margin-bottom: 22px; }
  .timeline > li { grid-template-columns: 130px 1fr; }
  .timeline-summary { grid-column: 2; }
  .case-study-featured { grid-template-columns: 70px 1fr; }
  .case-study-featured > p:not(.case-number):not(.case-kicker), .case-study-featured .tags { grid-column: 2; }
  .resume-grid { grid-template-columns: 1fr; }
  .resume-grid article { min-height: 0; }
  .resume-downloads { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .page-section { width: calc(100% - 32px); }
  .site-header { padding: 0 16px; }
  .site-footer { padding: 0 16px; }
  .site-header { min-height: 70px; }
  .page-section { padding: 72px 0; }
  h1 { font-size: clamp(44px, 13vw, 64px); }
  h2 { font-size: clamp(35px, 10.5vw, 49px); }
  .hero { margin-left: 0; width: 100%; }
  .hero-copy { width: calc(100% - 32px); margin: 0 auto; min-height: 500px; }
  .hero-aside { min-height: 520px; padding: 30px 16px; }
  .hero-photo { width: 116px; }
  .hero-role { padding-bottom: 28px; }
  .hero-links { gap: 16px; }
  .hero-actions { display: grid; }
  .button { justify-content: space-between; }
  .timeline > li { grid-template-columns: 1fr; gap: 16px; }
  .timeline-summary { grid-column: auto; }
  .case-studies { grid-template-columns: 1fr; }
  .case-study-featured { grid-column: auto; display: flex; min-height: 0; }
  .case-study { min-height: 0; padding: 25px; }
  .case-study-featured > p:not(.case-number):not(.case-kicker), .case-study-featured .tags { display: flex; }
  .case-number { margin-bottom: 28px; }
  .case-study h3 { font-size: 29px; }
  .case-study > .tags { margin-top: 28px; }
  .focus-grid { grid-template-columns: 1fr; gap: 34px; }
  .resume-downloads > div, .resume-download-buttons { display: grid; width: 100%; }
  .resume-downloads .button { justify-content: space-between; }
  .contact { width: calc(100% - 32px); margin-left: auto; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
