
    @font-face {
      font-family: 'Merriweather';
      src: url('fonts/Merriweather-Regular.woff2') format('woff2'),
           url('fonts/Merriweather-Regular.ttf') format('truetype');
      font-weight: 400;
    }

    @font-face {
      font-family: 'Merriweather';
      src: url('fonts/Merriweather-Bold.woff2') format('woff2'),
           url('fonts/Merriweather-Bold.ttf') format('truetype');
      font-weight: 700;
    }

    @font-face {
      font-family: 'Merriweather';
      src: url('fonts/Merriweather-Italic.woff2') format('woff2'),
           url('fonts/Merriweather-Italic.ttf') format('truetype');
      font-style: italic;
      font-weight: 400;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }


 


    :root {
      --bg: #f8f7f4;
      --surface: #ffffff;
      --text: #1a1a18;
      --muted: #6b6b66;
      --accent: #1D9E75;
      --accent-light: #E1F5EE;
      --border: #e2e0d8;
      --tag-bg: #eef9f5;
      --tag-text: #0F6E56;
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'Merriweather', serif;
      background: var(--bg);
      color: var(--text);
      font-size: 16px;
      line-height: 1.7;
    }

    /* NAV */
    nav {
      position: sticky;
      top: 0;
      background: rgba(248,247,244,0.92);
      backdrop-filter: blur(8px);
      border-bottom: 1px solid var(--border);
      z-index: 100;
      padding: 0 2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 56px;
    }

    .nav-logo {
      font-family: 'Merriweather', serif;
      font-size: 18px;
      color: var(--text);
      text-decoration: none;
      position: absolute;
      left: 2rem;
    }

    .nav-links {
      display: flex;
      gap: 2rem;
      list-style: none;
    }

    .nav-title {
      font-size: 18px;
      font-weight: 500;
      color: var(--text);
      letter-spacing: 0.01em;
      font-family: 'Merriweather', serif;
      text-align: center;
    }

    .nav-links a {
      font-size: 14px;
      color: var(--muted);
      text-decoration: none;
      letter-spacing: 0.01em;
      transition: color 0.2s;
    }
    .nav-links a:hover { color: var(--accent); }

    /* LAYOUT */
    .container {
      max-width: 820px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    section { padding: 80px 0; }
    section + section { border-top: 1px solid var(--border); }

    /* HERO */
    #hero {
      padding: 100px 0 80px;
    }

    .hero-label {
      display: inline-block;
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      background: var(--accent-light);
      padding: 4px 12px;
      border-radius: 100px;
      margin-bottom: 1.5rem;
    }

    .hero-name {
      font-family: 'Merriweather', serif;
      font-size: clamp(42px, 7vw, 64px);
      line-height: 1.1;
      letter-spacing: -0.02em;
      margin-bottom: 1.25rem;
    }

    .hero-name em {
      font-style: italic;
      color: var(--accent);
    }

    .hero-intro {
      font-size: 18px;
      color: var(--muted);
      max-width: 540px;
      line-height: 1.65;
      margin-bottom: 2rem;
    }

    .hero-cta {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }

    /* HERO: image layout */
    .hero-grid {
      display: grid;
      grid-template-columns: 1fr 300px;
      gap: 2rem;
      align-items: center;
    }

    .hero-image img {
      width: 100%;
      height: auto;
      max-width: 320px;
      border-radius: 12px;
      display: block;
      object-fit: cover;
      border: 1px solid var(--border);
    }

    @media (max-width: 880px) {
      .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
      .hero-image { justify-self: center; }
    }

    .btn {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 10px 22px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      text-decoration: none;
      transition: all 0.2s;
      cursor: pointer;
      border: none;
    }

    .btn-primary {
      background: var(--accent);
      color: white;
    }
    .btn-primary:hover { background: #0F6E56; }

    .btn-outline {
      background: transparent;
      color: var(--text);
      border: 1px solid var(--border);
    }
    .btn-outline:hover { border-color: var(--accent); color: var(--accent); }

    /* ABOUT */
    .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: start;
    }

    h2.section-title {
      font-family: 'Merriweather', serif;
      font-size: 32px;
      margin-bottom: 1.25rem;
      letter-spacing: -0.01em;
    }

    .about-text p { color: var(--muted); margin-bottom: 1rem; }
    .about-text p:last-child { margin-bottom: 0; }

    .about-stats {
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .stat-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.25rem 1.5rem;
    }

    .stat-number {
      font-family: 'Merriweather', serif;
      font-size: 32px;
      color: var(--accent);
      line-height: 1;
      margin-bottom: 4px;
    }

    .stat-label {
      font-size: 13px;
      color: var(--muted);
    }

    /* SKILLS */
    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1rem;
      margin-top: 2rem;
    }

    .skill-group {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.25rem 1.5rem;
    }

    .skill-group-title {
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 0.75rem;
    }

    .skill-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .tag {
      font-size: 12px;
      padding: 3px 10px;
      border-radius: 100px;
      background: var(--tag-bg);
      color: var(--tag-text);
      font-weight: 400;
    }

    /* PROJECTS */
    .projects-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.25rem;
      margin-top: 2rem;
    }

    .project-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 1.5rem;
      transition: border-color 0.2s, transform 0.2s;
      text-decoration: none;
      color: inherit;
      display: block;
    }

    .project-card:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
    }

    .project-icon {
      width: 40px;
      height: 40px;
      background: var(--accent-light);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1rem;
      font-size: 20px;
    }

    .project-title {
      font-weight: 500;
      font-size: 16px;
      margin-bottom: 6px;
    }

    .project-desc {
      font-size: 14px;
      color: var(--muted);
      line-height: 1.6;
      margin-bottom: 1rem;
    }

    .project-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    /* CV / TIMELINE */
    .cv-section { margin-top: 2rem; }

    .cv-block { margin-bottom: 2.5rem; }

    .cv-block-title {
      font-size: 12px;
      font-weight: 500;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 1rem;
      padding-bottom: 0.5rem;
      border-bottom: 1px solid var(--border);
    }

    .cv-item {
      display: grid;
      grid-template-columns: 120px 1fr;
      gap: 1rem;
      padding: 0.75rem 0;
    }

    .cv-item + .cv-item {
      border-top: 1px solid var(--border);
    }

    .cv-date {
      font-size: 13px;
      color: var(--muted);
      padding-top: 2px;
    }

    .cv-role { font-weight: 500; font-size: 15px; }
    .cv-org { font-size: 14px; color: var(--accent); margin-bottom: 4px; }
    .cv-detail { font-size: 14px; color: var(--muted); }

    /* CONTACT */
    .contact-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      align-items: start;
    }

    .contact-intro { color: var(--muted); margin-bottom: 1.5rem; }

    .contact-links {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 2rem;
    }

    .contact-link {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 14px;
      color: var(--muted);
      text-decoration: none;
      transition: color 0.2s;
    }
    .contact-link:hover { color: var(--accent); }

    .contact-link-icon {
      width: 36px;
      height: 36px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      flex-shrink: 0;
    }

    .contact-form {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .contact-form input,
    .contact-form textarea {
      width: 100%;
      padding: 10px 14px;
      border: 1px solid var(--border);
      border-radius: 8px;
      font-family: 'Merriweather', serif;
      font-size: 14px;
      background: var(--surface);
      color: var(--text);
      outline: none;
      transition: border-color 0.2s;
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
      border-color: var(--accent);
    }

    .contact-form textarea { resize: vertical; min-height: 100px; }

    /* FOOTER */
    footer {
      border-top: 1px solid var(--border);
      padding: 2rem;
      text-align: center;
      font-size: 13px;
      color: var(--muted);
    }

    /* RESPONSIVE */
    @media (max-width: 640px) {
      .about-grid, .projects-grid, .contact-grid { grid-template-columns: 1fr; }
      .cv-item { grid-template-columns: 1fr; gap: 2px; }
      nav { padding: 0 1rem; }
      .container { padding: 0 1.25rem; }
      section { padding: 60px 0; }
    }
