  /* ── Reset & Base ──────────────────────────────────────────────── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --green-900: #0a2e1c;
    --green-800: #1b4332;
    --green-700: #2d6a4f;
    --green-500: #40916c;
    --green-400: #52b788;
    --green-200: #b7e4c7;
    --green-100: #d8f3dc;
    --green-50:  #f0faf3;
    --sand:      #f5f0e8;
    --ink:       #1a1a1a;
    --ink-60:    #666;
    --ink-40:    #999;
    --white:     #ffffff;
    --radius:    12px;
    --ease:      cubic-bezier(.16,1,.3,1);
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Inter', sans-serif;
    background: var(--sand);
    color: var(--ink);
    overflow-x: hidden;
    font-size: 15px;
    line-height: 1.6;
  }

  /* ── Noise texture overlay ─────────────────────────────────────── */
  body::before {
    content: '';
    position: fixed; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: .4;
  }

  /* ── Custom cursor ─────────────────────────────────────────────── */
  .cursor {
    width: 10px; height: 10px;
    background: var(--green-500);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform .15s var(--ease), opacity .3s;
    mix-blend-mode: multiply;
  }
  .cursor-ring {
    width: 36px; height: 36px;
    border: 1.5px solid var(--green-500);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform .35s var(--ease), opacity .3s;
    opacity: .5;
  }

  /* ── Progress bar ──────────────────────────────────────────────── */
  #progress {
    position: fixed; top: 0; left: 0;
    height: 2px;
    background: var(--green-400);
    z-index: 1000;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform .1s linear;
  }

  /* ── Nav ───────────────────────────────────────────────────────── */
  nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.4rem 4rem;
    mix-blend-mode: normal;
    transition: background .4s, backdrop-filter .4s, padding .4s;
  }
  nav.scrolled {
    background: rgba(245,240,232,.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 4rem;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--green-800);
    text-decoration: none;
    letter-spacing: .02em;
  }
  .nav-links { display: flex; gap: 2.5rem; list-style: none; }
  .nav-links a {
    font-size: .8rem; font-weight: 500; letter-spacing: .1em;
    text-transform: uppercase; color: var(--ink-60);
    text-decoration: none;
    transition: color .2s;
  }
  .nav-links a:hover { color: var(--green-700); }

  /* ── Hero ──────────────────────────────────────────────────────── */
  #hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
  }

  .hero-left {
    background: var(--green-800);
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 8rem 5rem 6rem;
    position: relative;
    overflow: hidden;
  }

  .hero-left::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 30% 80%, rgba(82,183,136,.25) 0%, transparent 60%);
  }

  /* Decorative ring */
  .hero-ring {
    position: absolute; top: 10%; right: -15%;
    width: 500px; height: 500px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 50%;
  }
  .hero-ring::after {
    content: '';
    position: absolute; inset: 40px;
    border: 1px solid rgba(255,255,255,.04);
    border-radius: 50%;
  }

  .hero-eyebrow {
    font-size: .72rem; font-weight: 600; letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--green-400);
    margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: .8rem;
  }
  .hero-eyebrow::before {
    content: '';
    display: block; width: 28px; height: 1px;
    background: var(--green-400);
  }

  .hero-name {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 5vw, 4.2rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: .5rem;
  }
  .hero-name em {
    font-style: italic;
    color: var(--green-200);
  }

  .hero-role {
    font-size: .95rem; font-weight: 300;
    color: rgba(255,255,255,.55);
    letter-spacing: .04em;
    margin-bottom: 3rem;
  }

  .hero-cta {
    display: inline-flex; align-items: center; gap: .8rem;
    font-size: .8rem; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green-200);
    text-decoration: none;
    transition: gap .3s var(--ease);
  }
  .hero-cta:hover { gap: 1.4rem; }
  .hero-cta svg { width: 18px; height: 18px; }

  .hero-right {
    background: var(--sand);
    /* 2 zonas: foto em cima, meta em baixo */
    display: grid;
    grid-template-rows: 70% 30%;
    padding: 0;
    position: relative;
  }

  /* Photo placeholder */
  .photo-wrap {
    position: relative;
    overflow: hidden;
  }
  .photo-placeholder {
    width: 100%; height: 100%;
    background: linear-gradient(160deg, var(--green-100) 0%, var(--green-200) 40%, var(--green-400) 100%);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }
  .photo-placeholder svg {
    width: 72px; height: 72px;
    opacity: .4;
    color: var(--green-700);
  }
  .photo-placeholder span {
    font-size: .75rem; letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--green-700);
    opacity: .6;
  }
  .photo-real {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
  }

  .hero-meta {
    position: relative;
    z-index: 2;
    display: flex; flex-direction: column; gap: .5rem;
    width: 100%;
    height: 100%;
    align-self: stretch;
    justify-self: stretch;
    justify-content: flex-end;
    margin: 0;
    padding: 1.2rem 1.2rem;
    border-radius: 0;
    background: var(--green-100);
    border: none;
    box-shadow: none;
  }
  .hero-meta-title {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(10, 46, 28, .55);
    margin-bottom: auto; /* empurra os itens para o fundo */
  }
  .hero-meta-item {
    font-size: .9rem;
    color: rgba(10, 46, 28, .72);
    /* Grid para alinhar o ícone ao topo quando o texto quebra linha */
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: start;
    column-gap: .65rem;
    padding: .35rem 0;
    background: transparent;
    border: none;
  }
  .hero-meta-item svg {
    width: 14px; height: 14px;
    display: block;
    justify-self: center; /* ícone sempre centrado na coluna */
    margin-top: .12rem; /* alinhamento visual com a primeira linha */
    color: var(--green-700);
  }
  .hero-meta-item span {
    color: var(--green-800);
    font-weight: 400;
    letter-spacing: .01em;
    display: block;
    line-height: 1.4; /* evita “saltos” quando há wrap */
  }

  /* ── Section base ──────────────────────────────────────────────── */
  section { padding: 8rem 10vw; }

  .section-label {
    font-size: .7rem; font-weight: 600; letter-spacing: .18em;
    text-transform: uppercase; color: var(--green-500);
    display: flex; align-items: center; gap: .8rem;
    margin-bottom: 1.5rem;
  }
  .section-label::before {
    content: '';
    display: block; width: 24px; height: 1px;
    background: var(--green-500);
  }

  h2.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 3rem;
    color: var(--ink);
  }

  /* ── About ─────────────────────────────────────────────────────── */
  #about {
    background: var(--white);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: start;
  }
  .about-left { position: sticky; top: 8rem; }

  .about-quote {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--green-700);
    line-height: 1.6;
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--green-400);
  }

  .about-body {
    font-size: .95rem;
    color: var(--ink-60);
    line-height: 1.85;
    margin-top: 1.5rem;
  }
  .about-body strong { color: var(--ink); font-weight: 600; }

  .about-tags {
    display: flex; flex-wrap: wrap; gap: .6rem;
    margin-top: 2.5rem;
  }
  .tag {
    font-size: .72rem; font-weight: 600; letter-spacing: .08em;
    text-transform: uppercase;
    padding: .4rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--green-200);
    color: var(--green-700);
    background: var(--green-50);
  }

  /* ── Experience ────────────────────────────────────────────────── */
  #experience { background: var(--sand); }

  /* ── Community (bloco antes da formação) ───────────────────────── */
  #community { background: var(--white); }
  #community .exp-item {
    border-bottom: none;
    padding-bottom: 0;
  }
  #community .exp-item::before { display: none; }

  .exp-grid {
    display: flex; flex-direction: column; gap: 0;
  }

  .exp-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
    transition: background .3s;
    cursor: default;
    position: relative;
  }
  .exp-item:last-child { border-bottom: none; }

  .exp-item::before {
    content: '';
    position: absolute; left: -10vw; right: -10vw; top: 0; bottom: 0;
    background: var(--green-50);
    opacity: 0;
    transition: opacity .4s var(--ease);
    pointer-events: none;
    z-index: 0;
  }
  .exp-item:hover::before { opacity: 1; }
  .exp-item > * { position: relative; z-index: 1; }

  .exp-meta { padding-top: .2rem; }
  .exp-dates {
    font-size: .75rem; font-weight: 500; letter-spacing: .05em;
    color: var(--green-500); text-transform: uppercase; margin-bottom: .4rem;
  }
  .exp-company {
    font-size: .85rem; color: var(--ink-60); font-weight: 400;
  }

  .exp-role {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem; font-weight: 700;
    color: var(--ink); margin-bottom: .6rem; line-height: 1.2;
  }

  .exp-desc {
    font-size: .88rem; color: var(--ink-60); line-height: 1.75;
    margin-bottom: 1rem;
  }

  .exp-bullets {
    display: flex; flex-direction: column; gap: .3rem;
    margin-top: .8rem;
  }
  .exp-bullet {
    font-size: .82rem; color: var(--ink-60);
    display: flex; align-items: baseline; gap: .6rem;
    line-height: 1.6;
  }
  .exp-bullet::before {
    content: '';
    display: block; width: 5px; height: 5px; min-width: 5px;
    background: var(--green-400); border-radius: 50%;
    margin-top: .4rem;
  }

  /* ── Formation ─────────────────────────────────────────────────── */
  #formation {
    background: var(--green-800);
    color: var(--white);
  }
  #formation .section-label { color: var(--green-400); }
  #formation .section-label::before { background: var(--green-400); }
  #formation h2.section-title { color: var(--white); }

  .form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-top: 0;
  }

  .form-card {
    background: rgba(255,255,255,.04);
    padding: 2.5rem 2rem;
    border-radius: 2px;
    transition: background .3s var(--ease), transform .3s var(--ease);
    cursor: default;
  }
  .form-card:hover {
    background: rgba(255,255,255,.09);
    transform: translateY(-4px);
  }

  .form-year {
    font-size: .7rem; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--green-400);
    margin-bottom: 1rem;
  }
  .form-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem; font-weight: 700;
    color: var(--white); line-height: 1.3; margin-bottom: .5rem;
  }
  .form-school {
    font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.5;
  }
  .form-note {
    font-size: .78rem; font-style: italic;
    color: var(--green-200); margin-top: .8rem; line-height: 1.5;
  }

  /* ── Skills ────────────────────────────────────────────────────── */
  #skills {
    background: var(--sand);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: start;
  }

  .skills-right { padding-top: 1rem; }

  .skill-group { margin-bottom: 2.5rem; }
  .skill-group-title {
    font-size: .7rem; font-weight: 600; letter-spacing: .14em;
    text-transform: uppercase; color: var(--ink-40);
    margin-bottom: 1rem;
  }

  .skill-list {
    display: flex; flex-wrap: wrap; gap: .5rem;
  }
  .skill-chip {
    font-size: .8rem; font-weight: 500;
    padding: .5rem 1.1rem;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid rgba(0,0,0,.07);
    color: var(--ink);
    transition: background .2s, border-color .2s, color .2s, transform .2s;
    cursor: default;
  }
  .skill-chip:hover {
    background: var(--green-700);
    border-color: var(--green-700);
    color: var(--white);
    transform: translateY(-2px);
  }

  .hobbies-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
  .hobby-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
    border: 1px solid rgba(0,0,0,.06);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    cursor: default;
  }
  .hobby-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,.08);
  }
  .hobby-icon { font-size: 2rem; margin-bottom: .8rem; }
  .hobby-name {
    font-weight: 600; font-size: .9rem; color: var(--ink);
    margin-bottom: .2rem;
  }
  .hobby-desc {
    font-size: .78rem; color: var(--ink-60); line-height: 1.5;
  }

  /* ── Contact bar ───────────────────────────────────────────────── */
  #contact {
    background: var(--white);
    padding: 5rem 10vw;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 2rem;
  }
  .contact-left h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; margin-bottom: .5rem;
  }
  .contact-left p { color: var(--ink-60); font-size: .9rem; }

  .contact-items { display: flex; gap: 3rem; flex-wrap: wrap; }
  .contact-item {
    display: flex; flex-direction: column; gap: .25rem;
  }
  .contact-item-label {
    font-size: .67rem; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; color: var(--green-500);
  }
  .contact-item-value {
    font-size: .9rem; color: var(--ink); font-weight: 500;
  }

  /* ── Footer ────────────────────────────────────────────────────── */
  footer {
    background: var(--green-900);
    padding: 2rem 10vw;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
  }
  footer span {
    font-size: .75rem; color: rgba(255,255,255,.3);
  }
  .footer-dot {
    width: 6px; height: 6px; background: var(--green-400); border-radius: 50%;
  }

  /* ── Reveal animations ─────────────────────────────────────────── */
  .reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
  }
  .reveal.visible {
    opacity: 1; transform: none;
  }
  .reveal-delay-1 { transition-delay: .1s; }
  .reveal-delay-2 { transition-delay: .2s; }
  .reveal-delay-3 { transition-delay: .3s; }
  .reveal-delay-4 { transition-delay: .4s; }

  /* ── Responsive ────────────────────────────────────────────────── */
  @media (max-width: 900px) {
    nav { padding: 1.2rem 2rem; }
    nav.scrolled { padding: .9rem 2rem; }
    .nav-links { display: none; }

    #hero { grid-template-columns: 1fr; min-height: auto; }
    .hero-left { padding: 7rem 2.5rem 4rem; }
    .hero-right {
      display: grid;
      grid-template-rows: 62vh auto;
      min-height: 0;
    }
    .photo-wrap { height: 62vh; }
    .hero-meta { padding: 1.4rem 2rem; }

    section { padding: 5rem 6vw; }
    #about, #skills { grid-template-columns: 1fr; gap: 3rem; }
    .about-left { position: static; }
    .form-grid { grid-template-columns: 1fr; }
    .exp-item { grid-template-columns: 1fr; gap: .8rem; }
    #contact { flex-direction: column; align-items: flex-start; }
    footer { flex-direction: column; text-align: center; }
  }
