:root {
  --ink: #102620;
  --green: #0b765d;
  --green-dark: #075442;
  --mint: #d7f5a3;
  --paper: #f5f1e8;
  --white: #fffdf9;
  --muted: #66736e;
  --line: #d7d2c8;
  --warm: #f19c79;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; left: 12px; top: -50px; z-index: 99; padding: 10px 14px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header { width: min(1180px, calc(100% - 40px)); margin: 20px auto 0; padding: 11px 14px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; border: 1px solid rgba(16,38,32,.15); background: rgba(255,253,249,.86); backdrop-filter: blur(14px); border-radius: 16px; position: sticky; top: 14px; z-index: 30; box-shadow: 0 12px 34px rgba(16,38,32,.07); }
.identity { display: flex; align-items: center; gap: 11px; }
.identity strong { display: block; font-size: 14px; letter-spacing: -.02em; }
.identity small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }
.monogram { width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: var(--mint); border-radius: 10px; font: italic 700 13px Georgia, serif; }
.site-header nav { display: flex; gap: 27px; color: #4d5b56; font-size: 13px; }
.site-header nav a:hover { color: var(--green); }
.resume-link { justify-self: end; padding: 10px 13px; border-radius: 9px; background: var(--ink); color: white; font-size: 12px; font-weight: 700; }
.resume-link span { color: var(--mint); margin-left: 12px; }

.hero { min-height: 690px; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 100px 0 80px; display: grid; grid-template-columns: 1.45fr .55fr; gap: 80px; align-items: center; position: relative; }
.hero:before { content: ""; position: absolute; width: 620px; height: 620px; border: 1px solid rgba(11,118,93,.1); border-radius: 50%; left: -260px; top: 25px; box-shadow: 0 0 0 75px rgba(11,118,93,.025), 0 0 0 150px rgba(11,118,93,.015); pointer-events: none; }
.hero > * { position: relative; }
.availability { display: inline-flex; align-items: center; gap: 9px; border: 1px solid rgba(11,118,93,.2); background: rgba(215,245,163,.24); color: var(--green-dark); border-radius: 99px; padding: 8px 12px; font-size: 11px; font-weight: 750; }
.availability i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(11,118,93,.1); }
.kicker { margin: 28px 0 13px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 850px; margin: 0; font: 500 clamp(57px, 7.1vw, 91px)/.95 Georgia, 'Times New Roman', serif; letter-spacing: -.055em; }
.hero h1 em { color: var(--green); font-weight: 500; }
.intro { max-width: 720px; margin: 27px 0 0; color: #53615c; font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; gap: 10px; margin-top: 32px; }
.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; gap: 28px; padding: 0 20px; border-radius: 10px; font-size: 13px; font-weight: 750; }
.button.primary { background: var(--ink); color: white; box-shadow: 0 8px 20px rgba(16,38,32,.18); }
.button.primary span { color: var(--mint); }
.button.secondary { border: 1px solid var(--line); background: rgba(255,255,255,.45); }
.button:hover { transform: translateY(-1px); }
.hero-card { padding: 18px; border: 1px solid rgba(16,38,32,.15); background: rgba(255,253,249,.78); border-radius: 18px; box-shadow: 0 22px 60px rgba(16,38,32,.09); transform: rotate(1.5deg); }
.portrait-placeholder { aspect-ratio: 4/4.5; border-radius: 12px; padding: 23px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg, var(--green-dark), var(--ink)); color: white; overflow: hidden; position: relative; }
.portrait-placeholder:before, .portrait-placeholder:after { content: ""; position: absolute; border: 1px solid rgba(215,245,163,.22); border-radius: 50%; }
.portrait-placeholder:before { width: 260px; height: 260px; top: -90px; right: -100px; }
.portrait-placeholder:after { width: 180px; height: 180px; bottom: -60px; left: -75px; }
.portrait-placeholder span { font: italic 500 70px Georgia, serif; color: var(--mint); }
.portrait-placeholder b { font-size: 13px; line-height: 1.5; font-weight: 600; }
.hero-card dl { margin: 14px 0 0; }
.hero-card dl div { display: flex; justify-content: space-between; padding: 10px 4px; border-bottom: 1px solid #e4e0d7; font-size: 11px; }
.hero-card dl div:last-child { border-bottom: 0; }
.hero-card dt { color: var(--muted); }
.hero-card dd { margin: 0; font-weight: 800; }

.proof-strip { padding: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; color: #69746f; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.proof-strip b { color: #b2b8b4; }
.section { padding: 100px max(24px, calc((100vw - 1180px)/2)); background: var(--white); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.section-heading h2 { max-width: 690px; margin: 12px 0 0; font: 500 clamp(39px, 4.5vw, 59px)/1.02 Georgia, serif; letter-spacing: -.045em; }
.section-heading > p { max-width: 390px; margin: 0 0 5px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.section-number { color: var(--green); font-size: 10px; letter-spacing: .15em; font-weight: 850; }

.timeline { margin-top: 55px; border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: 210px 1fr; gap: 40px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.role-date { color: var(--muted); font-size: 12px; line-height: 1.8; }
.role-date span { display: inline-block; margin-right: 8px; padding: 4px 7px; border-radius: 99px; background: var(--mint); color: var(--ink); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.company { margin: 0 0 9px; color: var(--green); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.role h3 { margin: 0; font: 500 29px Georgia, serif; letter-spacing: -.025em; }
.role-body > p:not(.company) { max-width: 760px; color: #5f6b66; font-size: 14px; line-height: 1.7; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags span { padding: 6px 9px; border: 1px solid #dad7cf; border-radius: 99px; color: #66716d; background: #faf8f3; font-size: 10px; }
.role.compact { padding: 25px 0; }
.role.compact h3 { font-size: 23px; }
.role.compact .role-body > p:not(.company) { margin-bottom: 0; }

.projects-section { background: var(--ink); color: white; }
.section-heading.light > p { color: #a8b5b0; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 52px; }
.project-card { overflow: hidden; border: 1px solid #3b4c46; border-radius: 16px; background: #172f28; }
.project-image { aspect-ratio: 16/9; overflow: hidden; background: #ebe7dc; }
.project-image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.project-image.api img { object-position: left top; }
.project-content { padding: 28px; }
.project-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--mint); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.project-meta b { color: #aab7b2; font-weight: 600; }
.project-card h3 { margin: 18px 0 9px; font: 500 37px Georgia, serif; letter-spacing: -.035em; }
.project-lead { color: #d7dfdb; line-height: 1.6; font-size: 14px; }
.project-card ul { margin: 20px 0; padding-left: 18px; color: #acb9b4; font-size: 12px; line-height: 1.8; }
.project-card .tags span { border-color: #40524c; color: #c4cdc9; background: transparent; }
.project-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: #f2c879; font-size: 12px; font-weight: 700; text-decoration: none; }
.project-link:hover { color: #ffe2a5; }

.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 52px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skills-grid article { padding: 28px 24px 32px 0; margin-right: 24px; border-right: 1px solid var(--line); }
.skills-grid article:last-child { border-right: 0; margin-right: 0; }
.skill-index { color: var(--green); font: italic 500 16px Georgia, serif; }
.skills-grid h3 { margin: 28px 0 10px; font: 500 23px Georgia, serif; }
.skills-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.education { padding: 70px max(24px, calc((100vw - 1180px)/2)); display: grid; grid-template-columns: 180px 1fr 320px; gap: 38px; align-items: center; background: #ebe6da; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.education h2 { margin: 0; font: 500 30px Georgia, serif; letter-spacing: -.025em; }
.education p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.contact { padding: 100px max(24px, calc((100vw - 1180px)/2)); text-align: center; background: var(--green-dark); color: white; }
.contact .section-number { color: var(--mint); }
.contact h2 { max-width: 900px; margin: 22px auto; font: 500 clamp(43px, 5.6vw, 73px)/1 Georgia, serif; letter-spacing: -.05em; }
.contact > p { max-width: 680px; margin: 0 auto; color: #c3d5ce; font-size: 15px; line-height: 1.7; }
.contact-actions { display: flex; gap: 9px; justify-content: center; margin-top: 32px; }
.button.accent { background: var(--mint); color: var(--ink); }
.button.outline-light { border: 1px solid rgba(255,255,255,.25); color: white; }
footer { width: min(1180px, calc(100% - 40px)); margin: auto; padding: 30px 0; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; }
.monogram.small { width: 30px; height: 30px; border-radius: 8px; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; gap: 38px; }
  .hero-card { max-width: 390px; transform: none; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .project-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .skills-grid article:nth-child(2) { border-right: 0; }
  .education { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header { width: calc(100% - 24px); }
  .site-header .identity small { display: none; }
  .hero { width: calc(100% - 32px); padding-top: 70px; }
  .hero h1 { font-size: 51px; }
  .intro { font-size: 16px; }
  .hero-actions, .contact-actions { flex-direction: column; }
  .role { grid-template-columns: 1fr; gap: 10px; }
  .skills-grid { grid-template-columns: 1fr; }
  .skills-grid article { border-right: 0; border-bottom: 1px solid var(--line); margin-right: 0; }
  .truth-banner { grid-template-columns: 1fr; gap: 10px; }
  .project-content { padding: 22px; }
  footer { align-items: flex-start; flex-direction: column; gap: 18px; }
}

@media (prefers-reduced-motion: no-preference) {
  a, .button { transition: color .18s ease, background .18s ease, transform .18s ease; }
}
