*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    :root {
      --ink: #1a1a18; --ink-2: #4a4a46; --ink-3: #8a8a84;
      --paper: #fafaf7; --paper-2: #f0f0eb; --paper-3: #e4e4dd;
      --accent: #2a6b4a; --accent-2: #e8f2ec; --accent-3: #1a4a32;
      --serif: 'DM Serif Display', Georgia, serif;
      --sans: 'DM Sans', system-ui, sans-serif;
      --max: 1100px; --radius: 10px;
    }
    html { scroll-behavior: smooth; }
    body { font-family: var(--sans); background: var(--paper); color: var(--ink); font-size: 16px; line-height: 1.7; font-weight: 300; }

    /* NAV */
    nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(250,250,247,0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--paper-3); }
    .nav-inner { max-width: var(--max); margin: 0 auto; padding: 0 2rem; height: 60px; display: flex; align-items: center; justify-content: space-between; }
    .nav-logo { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); text-decoration: none; }
    .nav-links { display: flex; gap: 2rem; list-style: none; }
    .nav-links a { font-size: 0.85rem; font-weight: 400; color: var(--ink-2); text-decoration: none; letter-spacing: 0.04em; text-transform: uppercase; transition: color 0.2s; }
    .nav-links a:hover { color: var(--accent); }

    /* HERO */
    #home { min-height: 100vh; display: flex; align-items: center; padding: 0 2rem; border-bottom: 1px solid var(--paper-3); }
    .hero-inner { max-width: var(--max); margin: 0 auto; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
    .hero-left { display: flex; flex-direction: column; }
    .hero-top { display: flex; align-items: center; gap: 2rem; margin-bottom: 1.75rem; }
    .hero-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: 55% 15%; border: 3px solid var(--paper-3); flex-shrink: 0; box-shadow: 0 4px 20px rgba(0,0,0,0.09); }
    .hero-title-block { display: flex; flex-direction: column; gap: 0.35rem; }
    .hero-eyebrow { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; justify-content: center; gap: 0.5rem; width: 100%; }
    .hero-eyebrow::before, .hero-eyebrow::after { content: ''; flex: 1; height: 1px; background: var(--accent); }
    .hero-name { font-family: var(--serif); font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 1.08; color: var(--ink); }
    .hero-name em { font-style: italic; color: var(--accent); }
    .hero-bio { font-size: 1.05rem; color: var(--ink-2); max-width: 480px; margin-bottom: 2.5rem; line-height: 1.75; }
    .hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
    .btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--accent); color: #fff; padding: 0.75rem 1.75rem; border-radius: var(--radius); font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: background 0.2s, transform 0.15s; }
    .btn-primary:hover { background: var(--accent-3); transform: translateY(-1px); }
    .btn-outline { display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid var(--paper-3); color: var(--ink-2); padding: 0.75rem 1.75rem; border-radius: var(--radius); font-size: 0.9rem; font-weight: 400; text-decoration: none; transition: border-color 0.2s, color 0.2s, transform 0.15s; }
    .btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
    .hero-right { display: flex; flex-direction: column; gap: 1.25rem; }
    .stat-card { background: var(--paper-2); border: 1px solid var(--paper-3); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 1.25rem; transition: transform 0.2s; }
    .stat-card:hover { transform: translateX(4px); }
    .stat-icon { width: 42px; height: 42px; background: var(--accent-2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
    .stat-label { font-size: 0.78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
    .stat-value { font-size: 1rem; font-weight: 500; color: var(--ink); margin-top: 1px; }

    /* SECTIONS */
    section { padding: 6rem 2rem; border-bottom: 1px solid var(--paper-3); }
    .section-inner { max-width: var(--max); margin: 0 auto; }
    .section-label { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem; }
    .section-title { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; color: var(--ink); margin-bottom: 1rem; }
    .section-sub { font-size: 1rem; color: var(--ink-2); max-width: 560px; margin-bottom: 3.5rem; }

    /* ABOUT */
    .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
    .about-text p { color: var(--ink-2); margin-bottom: 1.25rem; }
    .about-text p:last-child { margin-bottom: 0; }
    .highlight-box { background: var(--accent-2); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.25rem 1.5rem; margin: 2rem 0; }
    .highlight-box p { color: var(--accent-3); font-size: 0.95rem; margin: 0; }
    .about-right { display: flex; flex-direction: column; gap: 1.5rem; }
    .about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .about-stat { background: var(--paper-2); border: 1px solid var(--paper-3); border-radius: var(--radius); padding: 1.5rem; text-align: center; }
    .about-stat-num { font-family: var(--serif); font-size: 2rem; color: var(--accent); display: block; }
    .about-stat-label { font-size: 0.8rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }

    /* CERTS */
    .certs-wrap { background: var(--paper-2); border: 1px solid var(--paper-3); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
    .certs-title { font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 0.85rem; }
    .certs-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
    .cert-badge { font-size: 0.72rem; font-weight: 500; background: var(--paper); color: var(--ink-2); border: 1px solid var(--paper-3); padding: 4px 10px; border-radius: 20px; text-decoration: none; transition: border-color 0.2s, color 0.2s; display: inline-block; position: relative; }
    .cert-badge:hover { border-color: var(--accent); color: var(--accent); }
    .cert-badge[data-tip]:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 0.68rem; padding: 4px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; z-index: 10; }

    /* SKILLS */
    #skills { background: var(--paper-2); }
    .skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
    .skill-card { background: var(--paper); border: 1px solid var(--paper-3); border-radius: var(--radius); padding: 1.5rem; transition: transform 0.2s, box-shadow 0.2s; }
    .skill-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
    .skill-card-icon { width: 40px; height: 40px; background: var(--accent-2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: 1rem; }
    .skill-card-title { font-weight: 500; font-size: 1rem; margin-bottom: 0.4rem; color: var(--ink); }
    .skill-card-desc { font-size: 0.85rem; color: var(--ink-3); line-height: 1.6; }
    .skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
    .tag { font-size: 0.72rem; font-weight: 500; background: var(--accent-2); color: var(--accent-3); padding: 3px 10px; border-radius: 20px; }
    .tag-neutral { font-size: 0.72rem; font-weight: 500; background: var(--paper-2); color: var(--ink-3); border: 1px solid var(--paper-3); padding: 3px 10px; border-radius: 20px; }

    /* PROJECTS */
    .projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.5rem; }
    .project-card { background: var(--paper); border: 1px solid var(--paper-3); border-radius: var(--radius); overflow: hidden; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; cursor: pointer; }
    .project-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
    .project-card:active { transform: translateY(-2px); }
    .project-thumb { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; overflow: hidden; text-decoration: none; cursor: pointer; background: var(--paper-2); }
    .project-thumb img { width: 100%; height: 100%; max-height: 240px; object-fit: contain; object-position: center; transition: transform 0.3s; display: block; padding: 0.5rem; background: var(--paper-2); }
    .project-thumb:hover img { transform: scale(1.02); }
    .project-thumb-placeholder { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: opacity 0.2s; }
    .project-thumb-placeholder:hover { opacity: 0.88; }
    .project-card-header { padding: 1.25rem 1.5rem 0.75rem; border-bottom: 1px solid var(--paper-3); }
    .project-type { font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.2rem; }
    .project-title { font-weight: 500; font-size: 1.05rem; color: var(--ink); text-decoration: none; display: block; }
    .project-title:hover { color: var(--accent); }
    .project-badge-coming { display: inline-block; font-size: 0.68rem; font-weight: 500; background: var(--paper-3); color: var(--ink-3); padding: 2px 10px; border-radius: 20px; margin-top: 0.4rem; letter-spacing: 0.04em; }
    .social-icon { width: 20px; height: 20px; flex-shrink: 0; }
    .project-card-body { padding: 1rem 1.5rem; flex: 1; }
    .project-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
    .project-bullets li { font-size: 0.85rem; color: var(--ink-2); padding-left: 1.1rem; position: relative; line-height: 1.55; }
    .project-bullets li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); font-size: 0.7rem; top: 3px; }
    .project-bullets li strong { color: var(--accent); font-weight: 500; }
    .project-coming { padding: 1rem 1.5rem; flex: 1; }
    .project-coming-text { font-size: 0.88rem; color: var(--ink-2); line-height: 1.65; }
    .project-coming-text strong { color: var(--accent); font-weight: 500; }
    .project-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--paper-3); display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap; min-height: 52px; }
    .project-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
    .project-link { font-size: 0.8rem; font-weight: 500; color: var(--accent); text-decoration: none; display: flex; align-items: center; gap: 0.3rem; white-space: nowrap; }
    .project-link:hover { color: var(--accent-3); }
    .coming-soon { font-size: 0.78rem; color: var(--ink-3); font-style: italic; }

    /* PLACEHOLDER SVG GRAPHICS */
    .ph-hospital { background: linear-gradient(135deg, #e8f0fe 0%, #d2e3fc 100%); }

    /* EXPERIENCE */
    #experience { background: var(--paper-2); }
    .edu-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 3.5rem; }
    .edu-card { background: var(--paper); border: 1px solid var(--paper-3); border-radius: var(--radius); padding: 1.25rem 1.5rem; display: flex; align-items: flex-start; gap: 1rem; }
    .edu-card-icon { width: 40px; height: 40px; background: var(--accent-2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
    .edu-card-period { font-size: 0.72rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.2rem; }
    .edu-card-title { font-weight: 500; font-size: 0.95rem; color: var(--ink); line-height: 1.35; }
    .edu-card-org { font-size: 0.82rem; color: var(--ink-3); margin-top: 0.2rem; }
    .exp-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; align-items: start; }
    .timeline { position: relative; padding-left: 2rem; border-left: 1px solid var(--paper-3); display: flex; flex-direction: column; gap: 2.5rem; }
    .timeline-item { position: relative; }
    .timeline-dot { position: absolute; left: -2.38rem; top: 6px; width: 10px; height: 10px; background: var(--accent); border-radius: 50%; border: 2px solid var(--paper-2); }
    .timeline-period { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 0.3rem; }
    .timeline-role { font-weight: 500; font-size: 1.05rem; color: var(--ink); }
    .timeline-org { font-size: 0.9rem; color: var(--ink-3); margin-bottom: 0.75rem; }
    .timeline-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
    .timeline-bullets li { font-size: 0.88rem; color: var(--ink-2); padding-left: 1.1rem; position: relative; line-height: 1.6; }
    .timeline-bullets li::before { content: '▸'; position: absolute; left: 0; color: var(--accent); font-size: 0.7rem; top: 3px; }
    .resume-aside { display: flex; flex-direction: column; gap: 1.25rem; }
    .resume-card { background: var(--paper); border: 1px solid var(--paper-3); border-radius: var(--radius); padding: 1.5rem; }
    .resume-card-title { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 1rem; }
    .resume-btn { display: flex; align-items: center; justify-content: center; gap: 0.5rem; background: var(--accent); color: #fff; padding: 0.75rem 1.25rem; border-radius: var(--radius); font-size: 0.88rem; font-weight: 500; text-decoration: none; transition: background 0.2s, transform 0.15s; width: 100%; }
    .resume-btn:hover { background: var(--accent-3); transform: translateY(-1px); }
    .lang-list { display: flex; flex-direction: column; gap: 0.6rem; }
    .lang-item { display: flex; justify-content: space-between; font-size: 0.88rem; }
    .lang-name { color: var(--ink); }
    .lang-level { color: var(--ink-3); font-size: 0.8rem; }

    /* CONTACT */
    .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
    .contact-text p { color: var(--ink-2); margin-bottom: 1rem; }
    .contact-links { display: flex; flex-direction: column; gap: 1rem; }
    .contact-link-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; background: var(--paper-2); border: 1px solid var(--paper-3); border-radius: var(--radius); text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
    .contact-link-card:hover { border-color: var(--accent); transform: translateX(4px); }
    .contact-link-icon { width: 38px; height: 38px; background: var(--accent-2); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
    .contact-link-label { font-size: 0.75rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; }
    .contact-link-value { font-size: 0.9rem; font-weight: 500; color: var(--ink); }

    footer { padding: 2rem; text-align: center; font-size: 0.8rem; color: var(--ink-3); }

    .fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
    .fade-up.visible { opacity: 1; transform: translateY(0); }

    @media (max-width: 768px) {
      .hero-inner, .about-grid, .contact-grid, .exp-layout, .edu-strip { grid-template-columns: 1fr; gap: 2rem; }
      .hero-right { display: none; }
      .nav-links { display: none; }
      section { padding: 4rem 1.25rem; }
      .hero-top { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
      .project-thumb { min-height: 170px; }
      .project-thumb img { max-height: 200px; }
      .project-thumb, .project-thumb-placeholder { height: 220px; }
      .project-card-header, .project-card-body, .project-footer { padding-left: 1.15rem; padding-right: 1.15rem; }
      .hero-cta { width: 100%; }
    }

/* FEATURED PROJECT */
.featured-project-section { background: var(--paper-2); }
.featured-project-card { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: stretch; background: var(--paper); border: 1px solid var(--paper-3); border-radius: var(--radius); overflow: hidden; }
.featured-project-image { background: var(--paper); min-height: 340px; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.featured-project-image img { width: 100%; height: 100%; max-height: 360px; object-fit: contain; display: block; }
.featured-project-content { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.featured-project-title { font-family: var(--serif); font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.15; margin: 0.35rem 0 1rem; color: var(--ink); }
.featured-project-text { font-size: 1rem; color: var(--ink-2); line-height: 1.7; margin-bottom: 1.25rem; }
.featured-project-highlights { display: flex; flex-direction: column; gap: 0.8rem; }
.featured-highlight { background: var(--paper-2); border: 1px solid var(--paper-3); border-radius: var(--radius); padding: 0.9rem 1rem; font-size: 0.9rem; color: var(--ink-2); line-height: 1.6; }

/* HERO UPGRADES */
.hero-inner-upgraded { align-items: start; padding-top: 3rem; }
.hero-kicker { font-size: 1rem; font-weight: 500; color: var(--accent); margin-bottom: 1rem; max-width: 560px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2rem; max-width: 700px; }
.hero-proof-item { background: var(--paper-2); border: 1px solid var(--paper-3); border-radius: var(--radius); padding: 1rem 1rem 0.9rem; }
.hero-proof-number { display: block; font-family: var(--serif); font-size: 1.4rem; color: var(--accent); line-height: 1.1; margin-bottom: 0.25rem; }
.hero-proof-label { display: block; font-size: 0.8rem; color: var(--ink-3); line-height: 1.45; }

/* IN-PROGRESS section */
#in-progress { background: var(--paper-2); }

@media (max-width: 900px) {
  .hero-proof { grid-template-columns: 1fr; }
  .featured-project-card { grid-template-columns: 1fr; }
  .featured-project-image { min-height: 260px; }
}
@media (max-width: 768px) {
  .hero-inner-upgraded { padding-top: 1.5rem; }
  .featured-project-content { padding: 1.4rem; }
}

.hero-mini-proof {
  font-size: 0.9rem;
  color: var(--ink-3);
  margin-bottom: 1.5rem;
  max-width: 520px;
}