:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#18231d;background:#f7f8f6;font-synthesis:none}*{box-sizing:border-box}html,body{margin:0;min-height:100%;width:100%}body{font-size:14px;line-height:1.5}a{color:inherit;text-decoration:none}button,input,select{font:inherit}a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #609b34;outline-offset:3px}h1,h2,h3,p{margin:0}h1,h2,h3{line-height:1.13;letter-spacing:-.045em}p{color:#65716b}.shell{width:min(1480px,calc(100% - 64px));height:100dvh;min-height:600px;margin:auto;display:flex;flex-direction:column}.skip{position:absolute;left:10px;top:-100px;background:#18231d;color:white;padding:12px;z-index:10}.skip:focus{top:10px}.header{flex:none;height:76px;display:flex;align-items:center;border-bottom:1px solid #e0e6df;gap:30px}.brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:750;letter-spacing:-.07em}.logo{height:36px;width:36px;border-radius:9px;display:grid;place-items:center;background:#17261b;color:white;font-size:20px}.logo span,.brand-dot{color:#92c66a}.nav{margin-left:auto;display:flex;align-items:center;gap:6px;padding:4px;background:#eff2ec;border-radius:10px}.nav a{padding:9px 15px;color:#59665c;border-radius:7px;font-weight:600;font-size:13px;white-space:nowrap}.nav a:hover,.nav a[aria-current=page]{color:#1a291d;background:#fff;box-shadow:0 1px 4px #20352112}.github{font-size:13px;border:1px solid #dce2da;border-radius:9px;padding:9px 15px;font-weight:600}.github:hover{background:#fff}.main{flex:1;min-height:0;padding:22px 0;display:flex;outline:none}.footer{flex:none;border-top:1px solid #e0e6df;min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#79857b;font-size:11px}.footer a{font-weight:600;color:#3e5140}.layout{width:100%;height:100%;display:grid;grid-template-columns:minmax(310px,.82fr) minmax(0,1.8fr);gap:18px}.panel{background:#fff;border:1px solid #e2e8e0;border-radius:16px;min-width:0;min-height:0}.intro{padding:clamp(24px,3.1vw,52px);display:flex;flex-direction:column;justify-content:center;background:radial-gradient(circle at 0% 0%,#f0f6e9 0,white 50%)}.eyebrow{font-size:11px;letter-spacing:.11em;text-transform:uppercase;color:#63805e;font-weight:750;display:flex;align-items:center;gap:9px}.dot{height:7px;width:7px;border-radius:99px;background:#74ac44;display:inline-block}.intro h1{font-size:clamp(37px,3.6vw,66px);margin:26px 0 24px;font-weight:710}.intro h1 em{font-style:normal;color:#6a9b4a}.intro p{font-size:clamp(14px,1.17vw,17px);line-height:1.8;max-width:420px}.pills{display:flex;flex-wrap:wrap;gap:7px;margin-top:26px}.pills span{background:#f0f4ed;border:1px solid #e4ebe0;border-radius:99px;padding:6px 10px;font-size:11px;color:#597055;font-weight:650}.intro-actions{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-top:30px}.primary{display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;min-height:43px;background:#1b2b1f;color:#fff;border-radius:9px;font-weight:700;font-size:12px;white-space:nowrap}.primary:hover{background:#36553a}.subtle{font-weight:700;font-size:12px;color:#425b43}.subtle:hover{text-decoration:underline}.work{padding:clamp(18px,2vw,32px);display:flex;flex-direction:column;gap:15px;overflow:hidden}.section-header{display:flex;align-items:end;justify-content:space-between;gap:20px;flex:none}.section-header h2{font-size:clamp(23px,2vw,32px);margin-top:8px}.all-link{font-size:12px;font-weight:700;white-space:nowrap;color:#527947}.all-link:hover{text-decoration:underline}.projects{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:10px;min-height:0;flex:1}.project{border:1px solid #e2e8e0;border-radius:12px;background:#fbfcfa;padding:clamp(12px,1.3vw,22px);min-width:0;min-height:0;display:flex;flex-direction:column}.project:hover{border-color:#a7c89b;background:#f7faf5}.project-meta{display:flex;justify-content:space-between;gap:8px;color:#668264;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.06em}.project-meta span:last-child{font-size:17px;line-height:1}.project h3{font-size:clamp(17px,1.45vw,23px);margin:16px 0 7px}.project p{font-size:clamp(11px,.83vw,13px);line-height:1.5}.project>a{margin-top:auto;padding-top:12px;font-size:11px;font-weight:750;color:#315a33;min-height:30px}.project>a:hover{text-decoration:underline}.full{width:100%;height:100%;padding:clamp(22px,3vw,42px);display:flex;flex-direction:column;overflow:hidden}.full h1{font-size:clamp(30px,3.4vw,52px);margin:14px 0}.full>.section-header p,.page-lead{font-size:15px;line-height:1.6}.controls{display:flex;gap:10px;flex:none;margin:18px 0}.controls label{border:1px solid #dfe6dd;border-radius:9px;padding:0 12px;display:flex;align-items:center;min-height:42px}.controls input,.controls select{border:0;outline:none;background:none;width:100%;min-height:38px;color:#23392a}.controls label:first-child{width:min(340px,60%)}.projects-full{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:minmax(0,1fr)}.empty{margin:20px}.topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-content:center;flex:1}.topic-grid article{border:1px solid #e2e8e0;border-radius:12px;padding:clamp(18px,2.5vw,36px);background:#fbfcfa}.topic-grid article>span{font-size:11px;color:#63805e;text-transform:uppercase;font-weight:750}.topic-grid h2{font-size:clamp(22px,2vw,32px);margin:26px 0 12px}.topic-grid p{font-size:14px;line-height:1.7}.full>.primary{align-self:start}.about{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:6vw}.about h1{font-size:clamp(37px,4.5vw,70px);max-width:580px}.about-text h2{font-size:clamp(25px,2.7vw,40px);margin-bottom:22px}.about-text p{font-size:clamp(14px,1.15vw,17px);line-height:1.8;margin-bottom:18px}.sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:1100px){.shell{width:calc(100% - 36px)}.layout{grid-template-columns:minmax(280px,.8fr) minmax(0,1.5fr)}.projects{grid-template-columns:repeat(2,minmax(0,1fr))}.projects-full{grid-template-columns:repeat(3,minmax(0,1fr))}.projects-full .project:nth-child(7){display:flex}.project h3{margin:8px 0 5px}.project{padding:12px}.intro{padding:27px}}@media(min-width:1101px) and (max-height:760px){.project{padding:12px}.project h3{margin:8px 0 4px}.intro h1{margin:16px 0}.intro-actions,.pills{margin-top:15px}.main{padding:12px 0}}@media(max-width:760px){.shell{height:auto;min-height:100dvh;width:calc(100% - 28px)}.header{height:auto;min-height:72px;flex-wrap:wrap;gap:10px;padding:13px 0}.nav{order:3;width:100%;overflow-x:auto;justify-content:space-between}.nav a{padding:8px 10px}.github{margin-left:auto}.main{padding:14px 0}.layout,.about{grid-template-columns:1fr;height:auto}.intro{min-height:280px}.intro h1{font-size:clamp(35px,8vw,54px)}.work{overflow:visible}.projects{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:auto}.project:nth-child(7){display:flex}.project{min-height:160px}.project h3{font-size:20px}.project p{font-size:13px}.full{height:auto;overflow:visible}.projects-full{grid-template-columns:repeat(2,minmax(0,1fr))}.topic-grid{grid-template-columns:1fr}.footer{padding:14px 0;flex-wrap:wrap}.about{gap:30px}}@media(max-width:430px){.projects,.projects-full{grid-template-columns:1fr}.project{min-height:145px}.intro{padding:24px}.full{padding:22px}.controls{flex-direction:column}.controls label:first-child{width:100%}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Layout correction: predictable grids; never crop card content. */
@media (min-width:761px) {
  .shell { min-height:0; }
  .layout { min-height:0; }
  .work { overflow:auto; }
  .work > .projects {
    flex:1 1 auto;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-template-rows:repeat(2,minmax(0,1fr));
    grid-auto-rows:auto;
    overflow:visible;
  }
  .work .project { min-height:0; padding:clamp(10px,1.2vw,19px); }
  .work .project h3 { font-size:clamp(17px,1.25vw,21px); margin:10px 0 5px; }
  .work .project p { font-size:clamp(11px,.85vw,13px); line-height:1.4; }
  .work .project > a { padding-top:6px; }
  .full { overflow:auto; }
  .projects-full {
    flex:1 1 auto;
    min-height:0;
    grid-template-columns:repeat(4,minmax(0,1fr));
    grid-template-rows:repeat(2,minmax(0,1fr));
    grid-auto-rows:auto;
  }
  .projects-full .project { min-height:0; }
  .topic-grid { min-height:0; }
}
@media (min-width:761px) and (max-height:770px) {
  .header { height:62px; }
  .footer { min-height:40px; }
  .main { padding:12px 0; }
  .intro h1 { font-size:clamp(32px,3.1vw,52px); margin:14px 0; }
  .intro p { font-size:14px; line-height:1.5; }
  .intro .pills,.intro .intro-actions { margin-top:14px; }
  .work { padding:14px; gap:10px; }
  .section-header h2 { font-size:24px; }
  .work .project h3 { margin:6px 0 4px; }
  .work .project > a { padding-top:4px; }
}
@media (min-width:761px) and (max-width:1100px) {
  .layout { grid-template-columns:minmax(260px,0.75fr) minmax(0,1.65fr); }
  .work > .projects { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .projects-full { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .shell { min-height:100dvh; height:auto; }
  .layout { height:auto; }
  .work,.full { overflow:visible; }
  .work > .projects,.projects-full { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:auto; }
}
@media (max-width:430px) {
  .work > .projects,.projects-full { grid-template-columns:1fr; }
}
