:root {
  --ink: #20372e;
  --muted: #63756b;
  --green: #315c49;
  --sage: #b6c9b7;
  --paper: #f1f3ec;
  --line: #d9e1d5;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: radial-gradient(circle at 80% 0,#dce9da,transparent 40%),var(--paper);
  color: var(--ink);
  font: 15px/1.65 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
body:before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(#45654e 0.6px,transparent .6px);
  background-size: 7px 7px;
  opacity: .09;
  z-index: -1;
}
a {
  color: inherit;
  text-decoration: none;
}
button,a {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,button:focus-visible {
  outline: 3px solid #719b70;
  outline-offset: 4px;
}
.nav,main,footer {
  max-width: 1240px;
  margin: auto;
  padding-inline: 38px;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
  gap: 20px;
}
.brand {
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 12px;
}
.mark {
  background: #254c3a;
  color: #e7f1e1;
  border-radius: 12px;
  padding: 5px 10px;
  font: italic 24px Georgia;
}
.nav nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 13px;
}
.navcta {
  border: 1px solid #b4c6b5;
  padding: 9px 16px;
  border-radius: 99px;
}
.hero {
  display: grid;
  grid-template-columns: 1.4fr .75fr;
  gap: 55px;
  padding: 64px 0 46px;
  align-items: center;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: #5a7966;
  margin: 0 0 18px;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #85b28a;
  box-shadow: 0 0 0 5px #85b28a25;
  margin-right: 7px;
}
h1,h2 {
  font-family: Georgia,serif;
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1.03;
  margin: 0;
}
h1 {
  font-size: clamp(55px,7.4vw,104px);
}
h1 em,h2 em {
  color: #548165;
  font-weight: 400;
}
h2 {
  font-size: clamp(38px,5vw,64px);
}
h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}
p {
  margin: 0;
  color: var(--muted);
}
.intro {
  font-size: 18px;
  max-width: 570px;
  margin: 26px 0;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 13px 20px;
  border-radius: 9px;
  font-weight: 650;
  font-size: 14px;
  transition: transform .2s;
}
.button:hover {
  transform: translateY(-3px);
}
.primary {
  background: #28523e;
  color: #f4f7ef;
  box-shadow: 0 8px 20px #234d3722;
}
.secondary {
  border: 1px solid #b9c9b9;
}
.herofoot {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--muted);
  margin-top: 45px;
  max-width: 550px;
}
.portrait {
  position: relative;
  padding: 10px;
  border: 1px solid #c8d7c6;
  border-radius: 28px;
  background: #ffffff70;
  box-shadow: 0 24px 60px #24483218;
  transform: rotate(1deg);
}
.portrait img {
  width: 100%;
  height: 410px;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 20px;
  display: block;
}
.portrait-label {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  background: #f5f8eee8;
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.portrait-label small {
  display: block;
  color: var(--muted);
}
.proof {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border-block: 1px solid var(--line);
  padding: 24px 0;
  gap: 20px;
}
.proof strong {
  font: 27px Georgia;
  display: block;
}
.proof span {
  font-size: 12px;
  color: var(--muted);
}
section:not(.hero) {
  padding-top: 92px;
}
.sectionhead {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.sectionhead>p {
  max-width: 310px;
}
.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.project {
  background: #f9faf5;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px #254c3809;
  transition: transform .25s,box-shadow .25s;
}
.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px #254c3819;
}
.visual {
  height: 235px;
  background: var(--tone);
  color: #eef3e9;
  position: relative;
  padding: 23px;
  overflow: hidden;
  background-image: radial-gradient(#ffffff22 .7px,transparent .7px);
  background-size: 8px 8px;
}
.visual small {
  letter-spacing: .13em;
  font-size: 10px;
}
.visual svg {
  width: 100%;
  height: 155px;
  display: block;
}
.visual .vtitle {
  font: 25px Georgia;
}
.projectbody {
  padding: 24px;
}
.projectbody h3 {
  font: 31px Georgia;
  letter-spacing: -.04em;
  margin: 8px 0;
}
.projectbody p {
  min-height: 50px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0;
}
.tags span {
  border: 1px solid #dce4d8;
  border-radius: 99px;
  padding: 4px 9px;
  font-size: 11px;
  color: #526b5a;
}
.projectbutton {
  background: none;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 15px 0 0;
  width: 100%;
  text-align: left;
  color: var(--green);
  font: 600 14px system-ui;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.timeline article {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 25px;
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.timeline article>span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .08em;
}
.timeline p {
  margin-top: 8px;
  max-width: 740px;
}
.skills {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 15px;
}
.skills article,.other {
  padding: 24px;
  background: #f9faf5;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.skills p,.other p {
  margin-top: 10px;
}
.other {
  margin-top: 16px;
}
.other a {
  display: inline-block;
  margin-top: 12px;
  color: var(--green);
  font-weight: 600;
}
.contact {
  margin-top: 85px;
  padding: 50px!important;
  border-radius: 25px;
  background: #203e30;
  color: #f0f5eb;
  background-image: radial-gradient(#ffffff15 .7px,transparent .7px);
  background-size: 8px 8px;
}
.contact .eyebrow,.contact p {
  color: #b9cfba;
}
.contact h2 em {
  color: #b2d0ad;
}
.contact p {
  margin: 20px 0;
}
.contact .primary {
  background: #dcebd7;
  color: #254c38;
}
footer {
  display: flex;
  justify-content: space-between;
  padding-block: 30px;
  color: var(--muted);
  font-size: 12px;
}
dialog {
  width: min(780px,94vw);
  max-height: 90vh;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 30px;
  background: #f7f9f3;
  color: var(--ink);
  box-shadow: 0 30px 100px #172e2450;
}
dialog::backdrop {
  background: #152d25aa;
  backdrop-filter: blur(5px);
}
.close {
  float: right;
  border: 0;
  background: #e3eade;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 24px;
  cursor: pointer;
}
dialog h2 {
  margin: 12px 0;
  font-size: 48px;
}
dialog h3 {
  margin: 24px 0 8px;
}
dialog p {
  margin: 10px 0;
}
dialog .visual {
  border-radius: 14px;
  margin-top: 20px;
}
dialog .button {
  margin-top: 20px;
}
.detailfacts {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
  margin: 20px 0;
}
.detailfacts div {
  background: #e8eee3;
  padding: 15px;
  border-radius: 10px;
}
.detailfacts strong {
  display: block;
  font-size: 23px;
}
@media(max-width:760px) {
  .nav,main,footer {
    padding-inline: 20px;
  }
  .nav nav {
    gap: 12px;
  }
  .nav nav a:nth-child(2),.nav nav a:nth-child(3) {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 35px;
    gap: 28px;
  }
  .portrait {
    max-width: 400px;
    transform: none;
  }
  .portrait img {
    height: 320px;
  }
  .proof {
    grid-template-columns: 1fr 1fr;
  }
  .projects,.skills {
    grid-template-columns: 1fr;
  }
  .sectionhead {
    display: block;
  }
  .sectionhead>p {
    margin-top: 12px;
  }
  .timeline article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .contact {
    padding: 30px!important;
  }
  section:not(.hero) {
    padding-top: 65px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior: auto!important;
    transition: none!important;
  }
}
:root {
  --ink: #182f25;
  --muted: #40594b;
  --green: #28583e;
  --paper: #edf1e9;
  --line: #cbd7ca;
  --ease: cubic-bezier(.22,1,.36,1);
}
body {
  background: var(--paper);
  isolation: isolate;
}
body:before {
  z-index: -1;
  opacity: .65;
  background-image: url('assets/grain.png');
  background-size: 128px 128px;
}
.nav {
  position: sticky;
  top: 12px;
  z-index: 10;
  max-width: 1164px;
  margin: 12px auto 0;
  padding: 12px 20px;
  background: #f6f8f0f2;
  border: 1px solid #cbd7ca;
  border-radius: 18px;
  backdrop-filter: blur(16px);
}
.navcta:hover {
  background: #e0eadb;
}
.hero {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0,1.35fr) minmax(0,.8fr);
  gap: clamp(24px,4vw,58px);
  margin-top: 28px;
  padding: clamp(28px,5vw,64px);
  border-radius: 28px;
  background: #142f23;
  color: #f4f7ed;
  overflow: hidden;
}
.hero:before,.contact:before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url('assets/grain.png'),radial-gradient(ellipse at 100% 0,#507c58 0%,transparent 58%),repeating-radial-gradient(ellipse at 110% 100%,transparent 0 23px,#c7e2b912 24px 25px,transparent 26px 42px);
  background-size: 128px 128px,auto,auto;
  opacity: .75;
}
.hero h1 {
  font-size: clamp(48px,6.2vw,88px);
  line-height: 1.05;
  text-wrap: balance;
}
.hero h1 em,.contact h2 em {
  color: #c4e0b4;
}
.hero .eyebrow,.hero .herofoot {
  color: #c6d9c2;
}
.hero .intro {
  color: #e0ebdc;
  font-size: 17px;
  max-width: 48ch;
}
.hero .primary,.contact .primary {
  background: #d5e8c5;
  color: #193b28;
}
.hero .secondary {
  color: #f4f7ed;
  border-color: #9db59b;
  background: #ffffff08;
}
.herofoot {
  gap: 12px;
  flex-wrap: wrap;
}
.portrait {
  transform: none;
  background: #ffffff12;
  border-color: #a9c5a477;
  padding: 8px;
  box-shadow: 0 20px 50px #081d2355;
}
.portrait img {
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.portrait-label {
  position: static;
  margin-top: 8px;
  background: #eaf1e4;
  color: #193b28;
  padding: 11px 12px;
}
.eyebrow {
  color: #42634d;
  line-height: 1.6;
  letter-spacing: .12em;
}
.button {
  border-radius: 99px;
  min-height: 46px;
  transition: transform .3s var(--ease),box-shadow .3s var(--ease),background .2s;
  gap: 16px;
}
.button span,.projectbutton span {
  display: inline-block;
  transition: transform .3s var(--ease);
}
.button:hover span,.projectbutton:hover span {
  transform: translate(3px,-3px);
}
.button:hover {
  box-shadow: 0 9px 22px #10291e33;
}
.button:active,.projectbutton:active {
  transform: scale(.97);
}
.proof {
  margin-top: 26px;
  gap: 18px;
}
.proof strong {
  font-size: clamp(21px,2.4vw,29px);
}
.proof span {
  font-size: 13px;
}
.project {
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease),box-shadow .4s var(--ease),border-color .3s;
}
.project:hover {
  border-color: #8cae90;
  transform: translateY(-4px);
}
.visual {
  height: auto;
  min-height: 230px;
  display: grid;
  grid-template-rows: auto minmax(100px,1fr) auto;
  gap: 12px;
  padding: 22px;
  background-image: radial-gradient(ellipse at var(--mx,80%) var(--my,15%),#ffffff16,transparent 55%),radial-gradient(#ffffff20 .65px,transparent .65px);
  background-size: auto,9px 9px;
  color: #f6f8f2;
}
.visual small {
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .09em;
}
.visual svg {
  height: 130px;
  max-width: 100%;
}
.visual .vtitle {
  font-size: clamp(20px,2.3vw,27px);
  line-height: 1.2;
}
.projectbody {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.projectbody p {
  min-height: 0;
}
.tags {
  margin-top: auto;
  padding-top: 18px;
}
.tags span {
  color: #385542;
  font-size: 12px;
}
.projectbutton {
  min-height: 44px;
  align-items: center;
  padding: 12px 0 0;
}
.contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #18382a;
}
.contact p,.contact .eyebrow {
  color: #d1e3cd;
}
section[id] {
  scroll-margin-top: 100px;
}
.reveal-ready {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s var(--ease),transform .65s var(--ease);
}
.reveal-ready.revealed {
  opacity: 1;
  transform: none;
}
dialog {
  max-height: 85dvh;
  overflow: auto;
}
dialog .close {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #193b28;
}
dialog[open] {
  animation: appear .25s var(--ease);
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media(max-width:900px) {
  .nav {
    margin-inline: 20px;
  }
  .hero {
    padding: 30px;
    gap: 24px;
  }
  .hero h1 {
    font-size: clamp(43px,6vw,66px);
  }
}
@media(max-width:760px) {
  .hero {
    grid-template-columns: 1fr;
    margin-top: 18px;
    padding: 24px;
  }
  .hero h1 {
    font-size: clamp(42px,10vw,66px);
  }
  .hero .intro {
    font-size: 16px;
  }
  .portrait {
    max-width: 360px;
    width: 100%;
    justify-self: center;
  }
  .nav {
    padding: 10px 12px;
    gap: 8px;
    margin-inline: 12px;
  }
  .nav nav {
    gap: 8px;
  }
  .navcta {
    padding: 8px 10px;
  }
  .brand {
    gap: 6px;
    font-size: 13px;
  }
  .mark {
    font-size: 20px;
  }
  .proof {
    gap: 16px;
  }
  .herofoot {
    font-size: 10px;
  }
}
@media(max-width:380px) {
  .nav nav a:first-child {
    display: none;
  }
  .hero {
    padding: 20px;
  }
  .actions .button {
    width: 100%;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
  }
  .reveal-ready {
    opacity: 1;
    transform: none;
  }
}

/* Mineral refinement: shared geometry and interaction */
:root { --radius-panel: 24px; --radius-card: 18px; }
.button, .navcta { font: 650 14px/1.3 system-ui, sans-serif; border-radius: 999px; min-height: 46px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; cursor: pointer; white-space: normal; text-align: center; }
button.primary { border: 1px solid transparent; }
.navcta { background: #edf3e8; color: #203d2e; border: 1px solid #b4c6b5; }
.hero, .contact, .engineering-process { border-radius: var(--radius-panel); }
.project, .skills article, .other { border-radius: var(--radius-card); }
.skills { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; align-items: stretch; }
.capabilities, .learning-grid, #additional .skills { grid-template-columns: repeat(2,minmax(0,1fr)); }
.skills article { min-width: 0; padding: clamp(20px,3vw,30px); background: #f9faf5; }
.skills article p { color: #40594b; overflow-wrap: anywhere; }
.skills article .eyebrow { font-size: 11px; color: #42634d; }
.sectionhead h2 { text-wrap: balance; }
.sectionhead > p { color: #40594b; }
.visual { grid-template-rows: minmax(32px,auto) 130px minmax(64px,auto); min-height: 270px; background-size: auto, 7px 7px; }
.visual svg { width: 100%; overflow: visible; }
.visual .vtitle { align-self: end; overflow-wrap: anywhere; }
.visual small { color: #f1f5ed; }
.engineering-process { padding: clamp(12px,3vw,32px); margin-bottom: 20px; background: radial-gradient(ellipse at 90% 0,#dce8d8,transparent 65%),#f8faf4; border: 1px solid #cbd7ca; color: #203d2e; overflow: auto; }
.engineering-process svg { display: block; min-width: 460px; }
.process-node circle, .visual svg circle { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease), filter .35s var(--ease), stroke .25s; }
.process-node text, .visual svg text { pointer-events: none; }
@media (hover:hover) and (pointer:fine) {
  .process-node:hover circle, .visual svg circle:hover { transform: scale(1.18); filter: drop-shadow(0 3px 5px #315c4966); stroke: #a7c69b; }
  .skills article:hover { border-color: #91ae91; box-shadow: 0 8px 22px #254c3810; }
  .navcta:hover { transform: translateY(-1px); }
}
.about-content { max-width: 760px; font-size: 17px; line-height: 1.8; }
.about-content p { margin: 0 0 18px; }
.experience-company { font-weight: 650; color: #315c49; }
.contact .actions { justify-content: center; }
#contact-dialog { width: min(480px,calc(100% - 28px)); padding: clamp(22px,5vw,36px); background: radial-gradient(ellipse at top right,#315c49,transparent 65%),#203d2e; color: #f1f4eb; border: 1px solid #688b70; border-radius: 24px; }
#contact-dialog h2 { font-size: clamp(30px,7vw,42px); line-height: 1.1; }
#contact-dialog p { color: #d5e4d1; }
#contact-dialog .eyebrow, #contact-dialog small { color: #bed5ae; }
.contact-close { float: right; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #8ba68c; background: #ffffff10; color: #f1f4eb; font-size: 24px; cursor: pointer; }
.contact-method { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; margin-top: 12px; border: 1px solid #ffffff30; border-radius: 14px; background: #ffffff08; }
.contact-method div { min-width: 0; overflow-wrap: anywhere; }
.contact-method small { display: block; font-size: 10px; letter-spacing: .12em; }
.contact-method button { border: 1px solid #8ba68c; background: #ffffff10; color: #f1f4eb; border-radius: 999px; min-height: 40px; padding: 8px 14px; cursor: pointer; }
#copy-status { min-height: 1.5em; font-size: 13px; margin-bottom: 0; }
.contact-location { font-size: 13px; }
@media(max-width: 760px) {
  .nav { flex-wrap: wrap; justify-content: center; }
  .nav nav { flex-wrap: wrap; justify-content: center; gap: 10px 14px; }
  .nav nav a:first-child { display: inline; }
  section[id] { scroll-margin-top: 155px; }
  .skills { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .visual { grid-template-rows: auto 120px auto; min-height: 220px; }
}
@media(max-width: 520px) {
  .skills, .capabilities, .learning-grid, #additional .skills { grid-template-columns: minmax(0,1fr); }
  .actions .button { width: 100%; }
  .navcta { min-height: 40px; padding: 8px 12px; }
  .contact-method { padding: 12px; }
  .contact-method a { font-size: 13px; }
}
