:root {
  --bg: #f7f4ec;
  --paper: #fffdf8;
  --ink: #1f2a24;
  --muted: #657068;
  --sage: #8c9b7a;
  --sage-dark: #52634b;
  --khaki: #c9b58f;
  --line: #ded8ca;
  --dark: #243129;
  --shadow: 0 18px 50px rgba(50, 57, 46, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "DM Sans", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247,244,236,.92); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(222,216,202,.7); }
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark { width: 42px; height: 42px; display: block; border-radius: 14px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 600; }
.nav-links a:hover { color: var(--sage-dark); }
.nav-cta { padding: 10px 16px; background: var(--dark); color: white !important; border-radius: 999px; }
.menu-btn { display: none; border: 0; background: transparent; font-size: 24px; }
.hero { padding: 92px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: center; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 700; color: var(--sage-dark); margin-bottom: 16px; }
.eyebrow.light { color: #d9d6c9; }
h1,h2,h3 { margin: 0; line-height: 1.12; }
h1,h2 { font-family: "Playfair Display", serif; }
h1 { font-size: clamp(46px, 6vw, 78px); max-width: 820px; letter-spacing: -.03em; }
h2 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -.02em; }
h3 { font-size: 20px; }
.hero-text { max-width: 720px; color: var(--muted); font-size: 18px; margin: 24px 0 30px; }
.hero-actions, .contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font-weight: 700; font-size: 14px; border: 1px solid var(--dark); transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(40,49,42,.12); }
.btn-primary { background: var(--dark); color: white; }
.btn-secondary { background: transparent; }
.quick-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 42px; max-width: 670px; }
.quick-stats div { padding-top: 16px; border-top: 1px solid var(--line); }
.quick-stats strong, .quick-stats span { display: block; }
.quick-stats strong { font-size: 17px; }
.quick-stats span { font-size: 12px; color: var(--muted); margin-top: 4px; }
.hero-card { background: var(--paper); border: 1px solid var(--line); border-radius: 32px; padding: 34px; box-shadow: var(--shadow); position: relative; }
.hero-card::before { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; background: rgba(201,181,143,.22); right: -60px; top: -70px; }
.profile-badge { width: 88px; height: 88px; border-radius: 24px; object-fit: contain; margin-bottom: 28px; position: relative; z-index: 2; }
.mini-label { font-size: 11px; letter-spacing: .18em; font-weight: 700; color: var(--muted); }
.hero-card h2 { font-size: 34px; font-family: "DM Sans", sans-serif; margin: 8px 0 22px; }
.pill-wrap, .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-wrap span, .tags span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; background: rgba(247,244,236,.7); }
.hero-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.section { padding: 92px 0; }
.section-soft { background: #efeee7; }
.two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; align-items: start; }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading.centered { text-align: center; margin-left: auto; margin-right: auto; }
.about-profile { display: block; width: min(100%, 320px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; margin: 0 auto 28px; }
.about-copy { font-size: 18px; color: var(--muted); }
.about-copy p:first-child { margin-top: 0; }
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.skill-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 24px; min-height: 230px; }
.skill-card .icon { font-size: 27px; margin-bottom: 28px; }
.skill-card p { color: var(--muted); font-size: 14px; }
.timeline { position: relative; margin-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding-left: 42px; margin-bottom: 24px; }
.timeline-dot { position: absolute; left: 0; top: 26px; width: 15px; height: 15px; border-radius: 50%; background: var(--sage-dark); border: 4px solid var(--bg); box-shadow: 0 0 0 1px var(--sage-dark); }
.timeline-card { background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px; }
.timeline-tag { font-size: 11px; letter-spacing: .13em; text-transform: uppercase; color: var(--sage-dark); font-weight: 700; }
.timeline-card h3 { margin: 8px 0 3px; }
.org { font-weight: 600; color: var(--sage-dark); margin: 0 0 12px; }
.timeline-card p:last-child { color: var(--muted); margin-bottom: 0; }
.section-dark { background: var(--dark); color: white; }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.projects-grid .project-card:last-child { grid-column: auto; }
.project-card { height: 612px; position: relative; background: #314137; border: 1px solid rgba(255,255,255,.12); border-radius: 26px; padding: 28px; overflow: hidden; }
.project-card.featured { grid-row: auto; min-height: 510px; display: flex; flex-direction: column; justify-content: flex-start; }
.project-number { position: absolute; right: 22px; bottom: 16px; font-size: 72px; font-family: "Playfair Display", serif; opacity: .08; }
.project-image { width: 100%; height: 300px; object-fit: cover; border-radius: 16px; margin-bottom: 28px; }
.project-card.featured .project-image { width: 100%; height: 220px; }
.project-card:not(.featured) .project-image { height: 220px; margin-bottom: 20px; }
.project-card:not(.featured) .project-side .project-image { width: 493px; height: 220px; margin: 0; }
.project-content { margin-top: auto; }
.project-card.featured .project-content { margin-top: 0; }
.project-side { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.project-side .project-image { width: 493px; height: 220px; margin: 0; }
.project-side .project-content { margin-top: 0; }
.project-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #c9d3c6; font-weight: 700; }
.project-card h3 { font-size: 27px; margin: 12px 0; }
.project-card p { color: #d0d8d1; }
.project-card .tags span { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.06); }
.text-link { display: inline-block; margin-top: 20px; font-weight: 700; font-size: 14px; }
.services-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.services-list span { padding: 13px 17px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; font-weight: 600; font-size: 14px; }
.contact-section { padding-top: 20px; }
.contact-card { background: var(--khaki); border-radius: 32px; padding: 44px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.contact-card p { max-width: 650px; }
.contact-actions { justify-content: flex-end; }
footer { padding: 30px 0 50px; }
.footer-wrap { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted); font-size: 13px; }
.footer-wrap strong, .footer-wrap span { display: block; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (max-width: 980px) {
  .hero-grid, .two-col, .contact-card { grid-template-columns: 1fr; gap: 36px; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { height: auto; }
  .project-card.featured { grid-row: auto; min-height: 380px; }
  .project-image { height: 200px; }
  .project-card.featured .project-image { height: 200px; }
  .project-side { align-items: stretch; }
  .project-card:not(.featured) .project-side .project-image { width: 100%; height: 200px; }
  .contact-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; top: 74px; left: 20px; right: 20px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .hero { padding-top: 64px; }
  .quick-stats { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .contact-card { padding: 30px 24px; }
  .footer-wrap { flex-direction: column; }
}


/* Tools & Applications */
.section-intro{max-width:760px;margin:0 auto 30px;color:var(--muted)}
.tools-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.tool-card{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:22px;text-align:center;transition:transform .2s ease,box-shadow .2s ease}
.tool-card:hover{transform:translateY(-4px);box-shadow:0 16px 35px rgba(44,52,44,.08)}
.tool-badge{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 14px;border-radius:16px;background:var(--sage);color:white;font-weight:800;letter-spacing:.05em;object-fit:contain}
.tool-card h3{margin:0 0 6px;font-size:1rem}
.tool-card p{margin:0;color:var(--muted);font-size:.88rem}
@media(max-width:900px){.tools-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:420px){.tools-grid{grid-template-columns:1fr}}
