:root{
  --bg: #EEF1F0;
  --surface: #FFFFFF;
  --ink: #1B241F;
  --ink-muted: #5B665F;
  --line: #D8DED9;
  --accent: #21604F;
  --accent-dark: #164438;
  --brass: #B8863E;
  --font-display: "Fraunces", serif;
  --font-body: "Work Sans", sans-serif;
  --maxw: 1120px;
  --radius: 14px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%; display:block;}
a{color:inherit; text-decoration:none;}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{animation-duration:.001ms !important; transition-duration:.001ms !important;}
}

/* ---------- Nav ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(238,241,240,0.88);
  backdrop-filter:blur(8px);
  border-bottom:1px solid var(--line);
}
.nav__inner{
  max-width:var(--maxw); margin:0 auto;
  display:flex; align-items:center; gap:28px;
  padding:20px 24px;
}
.nav__name{
  font-family:var(--font-display); font-weight:600; font-size:1.05rem;
  color:var(--ink);
}
.nav__links{display:flex; gap:30px; margin-left:auto;}
.nav__links a{
  font-size:14.5px; color:var(--ink-muted);
  position:relative; padding-bottom:4px;
  transition:color .2s ease;
}
.nav__links a:hover{color:var(--accent);}
.nav__links a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:1px;
  background:var(--accent); transform:scaleX(0); transform-origin:right;
  transition:transform .25s ease;
}
.nav__links a:hover::after{transform:scaleX(1); transform-origin:left;}
.lang-switch{
  display:flex; align-items:center; gap:8px;
  font-size:13.5px; font-weight:600; color:var(--ink);
  background:var(--surface); border:1px solid var(--line);
  padding:7px 14px 7px 8px; border-radius:24px;
  transition:border-color .2s ease, transform .15s ease;
}
.lang-switch:hover{border-color:var(--accent); transform:translateY(-1px);}
.flag-icon{width:22px; height:14px; border-radius:3px; display:block; flex-shrink:0;}

.nav__toggle{display:none; margin-left:8px; background:none; border:none; cursor:pointer; width:26px; height:20px; flex-direction:column; justify-content:space-between; padding:0;}
.nav__toggle span{display:block; height:2px; background:var(--ink);}

@media (max-width:820px){
  .nav__links{display:none;}
  .lang-switch{margin-left:auto;}
  .nav__toggle{display:flex;}
  .nav__inner{position:relative;}
  .nav__links.is-open{
    display:flex; flex-direction:column; position:absolute; top:100%; left:0; right:0;
    background:var(--surface); padding:18px 24px; gap:16px; border-bottom:1px solid var(--line);
  }
}

/* ---------- Hero ---------- */
.hero{max-width:var(--maxw); margin:0 auto; padding:88px 24px 80px;}
.hero__inner{display:grid; grid-template-columns:1.2fr 0.8fr; gap:64px; align-items:center;}
@media (max-width:880px){.hero__inner{grid-template-columns:1fr; gap:44px;} .hero{padding:56px 20px 60px;}}

.hero__kicker{
  font-size:14px; letter-spacing:.06em; text-transform:uppercase;
  color:var(--accent); font-weight:600; margin:0 0 18px;
}
.hero__title{
  font-family:var(--font-display); font-weight:600;
  font-size:clamp(2.4rem, 4.6vw, 3.4rem);
  line-height:1.12; margin:0 0 24px; color:var(--ink);
}
.highlight{position:relative; white-space:normal; display:inline;}
.highlight__stroke{
  position:absolute; left:-2%; right:-2%; bottom:-6px; width:104%; height:16px;
  overflow:visible;
}
.highlight__stroke path{
  fill:none; stroke:var(--brass); stroke-width:6; stroke-linecap:round;
  opacity:.55;
}
.hero__lead{font-size:1.08rem; color:var(--ink-muted); max-width:52ch; margin:0 0 34px;}
.hero__actions{display:flex; gap:16px; flex-wrap:wrap;}

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 26px; border-radius:30px;
  font-weight:600; font-size:14.5px;
  border:1.5px solid transparent;
  transition:transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover{transform:translateY(-2px);}
.btn--primary{background:var(--accent); color:#fff;}
.btn--primary:hover{background:var(--accent-dark);}
.btn--outline{border-color:var(--ink); color:var(--ink);}
.btn--outline:hover{border-color:var(--accent); color:var(--accent);}

.hero__portrait{display:flex; flex-direction:column; align-items:center; gap:16px;}
.portrait__frame{
  width:100%; max-width:320px; aspect-ratio:4/5;
  border-radius:var(--radius); overflow:hidden;
  background:var(--surface);
  box-shadow:0 24px 48px -24px rgba(27,36,31,.35);
  border:6px solid var(--surface);
}
.portrait__frame img{width:100%; height:100%; object-fit:cover;}
.portrait__tag{
  display:flex; align-items:center; gap:8px;
  font-size:13px; font-weight:600; color:var(--accent-dark);
  background:var(--surface); border:1px solid var(--line);
  padding:8px 16px; border-radius:24px;
}
.portrait__dot{width:8px; height:8px; border-radius:50%; background:var(--accent); animation:pulse 1.8s ease infinite;}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(33,96,79,.4);}70%{box-shadow:0 0 0 6px rgba(33,96,79,0);}}

/* ---------- Sections ---------- */
.section{max-width:var(--maxw); margin:0 auto; padding:96px 24px;}
.section--tint{background:var(--surface); max-width:none; padding:96px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.section--tint > *{max-width:var(--maxw); margin-left:auto; margin-right:auto; padding-left:24px; padding-right:24px;}

.section__header{margin-bottom:52px; max-width:640px;}
.eyebrow{font-size:13.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--accent); font-weight:600; margin:0 0 10px;}
.section__title{font-family:var(--font-display); font-weight:600; font-size:2.1rem; margin:0; color:var(--ink);}

/* About */
.about__grid{display:grid; grid-template-columns:1.3fr 1fr; gap:60px;}
@media (max-width:880px){.about__grid{grid-template-columns:1fr; gap:36px;}}
.lead-paragraph{font-size:1.1rem; color:var(--ink); font-weight:500; margin:0 0 20px;}
.about__body p{color:var(--ink-muted); margin:0 0 18px;}
.about__facts{display:flex; flex-direction:column; gap:22px;}
.fact{padding-bottom:20px; border-bottom:1px solid var(--line);}
.fact:last-child{border-bottom:none;}
.fact__label{font-size:12.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--accent); font-weight:600; margin:0 0 6px;}
.fact__value{font-size:14.5px; color:var(--ink); margin:0;}

/* Experience */
.experience__timeline{display:grid; gap:22px; max-width:760px;}
.experience__item{
  display:grid; grid-template-columns:140px 1fr; gap:24px;
  align-items:flex-start; padding:22px 0; border-bottom:1px solid var(--line);
}
.experience__item:last-child{border-bottom:none;}
.experience__date{
  font-size:13px; font-weight:700; letter-spacing:.04em; text-transform:uppercase;
  color:var(--accent); background:var(--surface); border:1px solid var(--line);
  padding:9px 12px; border-radius:24px; text-align:center;
}
.experience__content h3{font-family:var(--font-display); font-size:1.18rem; margin:0 0 6px;}
.experience__company{font-size:13.5px; font-weight:700; color:var(--accent-dark); margin:0 0 8px; text-transform:uppercase; letter-spacing:.04em;}
.experience__content p:last-child{margin:0; color:var(--ink-muted);}
@media (max-width:700px){.experience__item{grid-template-columns:1fr; gap:12px;} .experience__date{justify-self:start;}}

/* Skills */
.skills__grid{display:grid; grid-template-columns:repeat(3,1fr); gap:44px;}
@media (max-width:820px){.skills__grid{grid-template-columns:1fr;}}
.skills__group h3{font-family:var(--font-display); font-size:1.15rem; font-weight:600; margin:0 0 18px;}
.pill-row{display:flex; flex-wrap:wrap; gap:10px;}
.pill{
  font-size:13.5px; font-weight:500; color:var(--accent-dark);
  background:var(--bg); border:1px solid var(--line);
  padding:8px 16px; border-radius:24px;
}
.pill-row--small{margin-bottom:18px;}
.pill--muted{background:var(--bg); color:var(--ink-muted); font-size:12.5px; padding:6px 13px;}

/* Projects */
.projects__grid{display:grid; grid-template-columns:repeat(2,1fr); gap:36px;}
@media (max-width:820px){.projects__grid{grid-template-columns:1fr;}}
.project-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  overflow:hidden; transition:transform .25s ease, box-shadow .25s ease;
}
.project-card:hover{transform:translateY(-5px); box-shadow:0 20px 40px -24px rgba(27,36,31,.3);}
.project-card__image{aspect-ratio:16/10; overflow:hidden;}
.project-card__image img{width:100%; height:100%; object-fit:cover;}
.project-card__body{padding:26px;}
.project-card__body h3{font-family:var(--font-display); font-size:1.3rem; margin:0 0 10px; display:flex; align-items:center; gap:10px; font-weight:600;}
.tag-beta{font-size:10.5px; text-transform:uppercase; letter-spacing:.04em; background:var(--brass); color:#fff; padding:3px 10px; border-radius:20px; font-weight:600;}
.project-card__body p{color:var(--ink-muted); font-size:14.5px; margin:0 0 16px;}
.project-card__link{font-weight:600; font-size:14px; color:var(--accent); border-bottom:1.5px solid var(--accent); padding-bottom:2px; transition:opacity .2s ease;}
.project-card__link:hover{opacity:.7;}

/* Contact */
.section--contact{text-align:center; padding-bottom:110px;}
.contact__title{font-family:var(--font-display); font-weight:600; font-size:clamp(1.8rem, 3.6vw, 2.6rem); margin:0 0 18px;}
.contact__lead{color:var(--ink-muted); max-width:52ch; margin:0 auto 34px; font-size:1.05rem;}
.contact__actions{display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-bottom:22px;}
.contact__alt{color:var(--ink-muted); font-size:14px;}
.contact__alt a{color:var(--accent); font-weight:600; border-bottom:1px solid var(--accent);}

.footer{text-align:center; padding:30px 24px; color:var(--ink-muted); font-size:13px; border-top:1px solid var(--line);}

/* Reveal */
.reveal{opacity:0; transform:translateY(16px); transition:opacity .6s ease, transform .6s ease;}
.reveal.is-visible{opacity:1; transform:translateY(0);}