:root {
  color-scheme: light;
  --paper: #f6f7f4;
  --surface: #fff;
  --ink: #18211d;
  --muted: #68736d;
  --line: #e2e7e1;
  --green: #456b56;
  --green-dark: #294936;
  --lime: #d6e4a5;
  --serif: "Segoe UI", "Aptos", Arial, sans-serif;
  --sans: "Segoe UI", "Aptos", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(226, 231, 225, .85);
  background: rgba(246, 247, 244, .91);
  backdrop-filter: blur(16px);
}
.nav { display: flex; min-height: 76px; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 14px; font-weight: 800; letter-spacing: -.03em; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--green-dark); color: white; font-family: var(--sans); font-size: 11px; letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; transition: color .2s ease; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--green-dark); }
.nav-links .nav-resume { padding: 9px 15px; border: 1px solid #cbd5cc; border-radius: 3px; color: var(--ink); }
.nav-links .nav-resume:hover { border-color: var(--green); background: var(--green); color: white; }

.hero { display: grid; grid-template-columns: 1.06fr .74fr; gap: clamp(54px, 10vw, 132px); align-items: center; padding-block: 83px 91px; }
.hero-copy { padding-block: 12px; }
.eyebrow { margin: 0 0 17px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .15em; line-height: 1.5; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #6f9876; vertical-align: 1px; }
h1, h2, h3 { font-family: var(--serif); }
.hero h1 { margin: 0; font-size: clamp(42px, 5.5vw, 69px); font-weight: 600; letter-spacing: -.065em; line-height: 1.13; }
.hero h1 span { color: var(--green); }
.hero-lead { max-width: 520px; margin: 25px 0 0; color: #5f6b64; font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 21px; padding: 0 19px; border: 1px solid transparent; border-radius: 3px; font-size: 12px; font-weight: 700; text-decoration: none; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--green-dark); color: white; }
.button-primary:hover { background: #1e3928; }
.button-secondary { border-color: #d7ded7; color: var(--ink); }
.button-secondary:hover { border-color: var(--green); color: var(--green-dark); }
.hero-note { display: flex; align-items: center; gap: 11px; margin-top: 38px; color: #7a857e; font-size: 11px; letter-spacing: .03em; }
.note-rule { width: 27px; height: 1px; background: #9aaa9a; }
.hero-visual { position: relative; width: min(100%, 370px); justify-self: end; padding: 0 18px 27px 0; }
.portrait-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #e5e8df; }
.portrait-frame::after { position: absolute; inset: 0; border: 1px solid rgba(20, 40, 25, .08); content: ""; pointer-events: none; }
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.portrait-caption { position: absolute; right: 0; bottom: 0; left: 33px; display: flex; min-height: 59px; align-items: center; gap: 10px; padding-inline: 16px; background: var(--surface); color: #536159; font-size: 10px; font-weight: 600; letter-spacing: .025em; box-shadow: 0 12px 28px rgba(32, 48, 36, .08); }
.caption-mark { color: var(--green); font-size: 16px; }
.caption-location { margin-left: auto; color: #8b958e; font-size: 9px; }
.hero-index { position: absolute; top: -23px; right: -6px; color: #839087; font-size: 9px; letter-spacing: .14em; writing-mode: vertical-rl; }

.quick-facts { border-block: 1px solid var(--line); background: #eef1ec; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { display: flex; min-height: 112px; align-items: center; gap: 16px; padding: 18px 22px; border-right: 1px solid #dce2db; text-decoration: none; }
.fact:first-child { border-left: 1px solid #dce2db; }
.fact-number { align-self: flex-start; margin-top: 2px; color: var(--green); font-family: var(--serif); font-size: 11px; font-weight: 700; }
.fact h2 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.fact p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.fact-link { transition: background .2s ease; }
.fact-link:hover { background: #e4eae1; }

.content-layout { display: grid; grid-template-columns: 242px minmax(0, 1fr); gap: clamp(44px, 8vw, 105px); padding-block: 80px 98px; }
.profile-rail { display: flex; flex-direction: column; gap: 39px; }
.rail-block .eyebrow { margin-bottom: 12px; }
.rail-copy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.skill-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.skill-list li { padding: 9px 0; border-bottom: 1px solid var(--line); color: #4f5c54; font-size: 11px; }
.contact-block a { display: block; margin-top: 9px; color: var(--ink); font-size: 11px; font-weight: 600; text-decoration: none; }
.contact-block a:hover { color: var(--green); }
.contact-block a span { color: var(--green); }
.main-column { min-width: 0; }
.content-section { margin: 0 0 75px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 27px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.section-heading .eyebrow { margin-bottom: 6px; }
.section-heading h2 { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -.045em; line-height: 1.3; }
.section-heading h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -.045em; line-height: 1.3; }
.section-index { padding-bottom: 3px; color: #929d94; font-size: 10px; letter-spacing: .1em; }
.timeline { margin-left: 7px; padding-left: 23px; border-left: 1px solid #d4ddd4; }
.timeline-item { position: relative; padding: 0 0 30px 7px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; top: 5px; left: -28px; width: 9px; height: 9px; border: 2px solid var(--green); border-radius: 50%; background: var(--paper); }
.timeline-meta { margin-bottom: 4px; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.timeline-item h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.025em; }
.timeline-item p { max-width: 630px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.projects-section { margin-bottom: 74px; }
.project-card { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; margin-bottom: 17px; border: 1px solid var(--line); background: var(--surface); }
.project-image { height: 280px; min-height: 0; overflow: hidden; background: #e8ebe5; }
.project-image img { width: 100%; height: 100%; min-height: 0; object-fit: cover; transition: transform .5s ease; }
.project-card:hover .project-image img { transform: scale(1.025); }
.project-body { display: flex; flex-direction: column; justify-content: center; padding: clamp(22px, 4vw, 38px); }
.project-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--green); font-size: 8px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.project-meta span + span { color: #909a92; font-weight: 500; letter-spacing: .04em; text-transform: none; }
.project-body h3 { margin: 18px 0 8px; font-size: 21px; font-weight: 600; letter-spacing: -.04em; line-height: 1.3; }
.project-body p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.project-web .project-body { order: 1; }
.project-image-secondary { order: 2; }
.project-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 17px; }
.project-links a { color: var(--green-dark); font-size: 10px; font-weight: 700; text-decoration: none; }
.project-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.project-links span { color: var(--green); }
.resume-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px; background: #e9eee7; }
.resume-cta .eyebrow { margin-bottom: 5px; }
.resume-cta h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.035em; }
.resume-cta p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.button-dark { flex: 0 0 auto; background: var(--green-dark); color: white; }
.button-dark:hover { background: #1e3928; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; min-height: 87px; align-items: center; gap: 23px; }
.footer-brand { flex: 0 0 auto; font-size: 12px; }
.footer-brand .brand-mark { width: 29px; height: 29px; font-size: 9px; }
.footer-inner p { margin: 0 auto 0 0; color: var(--muted); font-size: 10px; }
.footer-inner > a:not(.brand) { color: var(--green-dark); font-size: 10px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.copyright { color: #919a93; font-size: 9px; white-space: nowrap; }

.gallery { padding-block: 75px 90px; }
.gallery .section-heading { margin-bottom: 30px; }
.gallery .section-heading h1 { max-width: 620px; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.photo-card { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--line); background: #e8ebe5; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.photo-card:hover img, .photo-card:focus-within img { transform: scale(1.035); }
.lightbox { position: fixed; inset: 0; z-index: 20; display: none; align-items: center; justify-content: center; padding: 28px; background: rgba(17, 24, 19, .93); }
.lightbox.open { display: flex; }
.lightbox img { width: auto; height: auto; max-width: min(92vw, 1200px); max-height: 86vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 24px; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: transparent; color: white; font-size: 27px; cursor: pointer; }
:focus-visible { outline: 3px solid #6d8d70; outline-offset: 4px; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr .7fr; gap: 42px; padding-block: 65px 70px; }
  .hero h1 { font-size: clamp(40px, 7vw, 58px); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 1px solid #dce2db; }
  .fact:nth-child(n+3) { border-top: 1px solid #dce2db; }
  .content-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 40px; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .container { width: min(100% - 36px, 520px); }
  .nav { min-height: 65px; }
  .brand { gap: 8px; font-size: 12px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-links { gap: 13px; }
  .nav-links a { font-size: 10px; }
  .nav-links a:nth-child(1), .nav-links a:nth-child(3) { display: none; }
  .nav-links .nav-resume { padding: 7px 10px; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 53px 53px; }
  .hero h1 { font-size: clamp(43px, 11vw, 61px); }
  .hero-lead { margin-top: 18px; font-size: 14px; }
  .hero-note { margin-top: 26px; }
  .hero-visual { width: min(82%, 360px); justify-self: center; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact { min-height: 92px; gap: 10px; padding: 13px 10px; }
  .fact h2 { font-size: 12px; }
  .fact p { font-size: 9px; }
  .content-layout { grid-template-columns: 1fr; gap: 52px; padding-block: 54px 67px; }
  .profile-rail { display: grid; grid-template-columns: 1fr 1fr; gap: 27px 22px; }
  .contact-block { grid-column: 1 / -1; }
  .content-section { margin-bottom: 56px; }
  .project-card { grid-template-columns: 1fr; }
  .project-image { height: 230px; max-height: 300px; }
  .project-web .project-body { order: 2; }
  .project-image-secondary { order: 1; }
  .resume-cta { align-items: flex-start; flex-direction: column; padding: 25px; }
  .footer-inner { min-height: 100px; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; padding-block: 17px; }
  .footer-inner p { display: none; }
  .footer-brand { margin-right: auto; }
  .copyright { width: 100%; }
  .gallery { padding-block: 48px 60px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
