
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --black: #0a0a0a; --red: #e01f1f; --red-dark: #b01515;
    --white: #f5f2ee; --gray-mid: #888; --gray-light: #c8c4be;
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
  }
  html { scroll-behavior: smooth; }
  body { background: var(--black); color: var(--white); font-family: var(--font-body); font-size: 16px; line-height: 1.6; overflow-x: hidden; }

  /* NAV */
  nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 3rem; background: rgba(10,10,10,0.9); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-logo { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.08em; color: var(--gray-light); text-decoration: none; }
  .nav-logo span { color: var(--red); }
  nav ul { display: flex; gap: 2.5rem; list-style: none; }
  nav ul a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-mid); text-decoration: none; transition: color 0.2s; }
  nav ul a:hover { color: var(--white); }
  .nav-cta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); text-decoration: none; border: 1px solid var(--red); padding: 0.5rem 1.2rem; transition: background 0.2s, color 0.2s; }
  .nav-cta:hover { background: var(--red); color: var(--white); }

  /* HERO */
  #hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: end; position: relative; overflow: hidden; }
  .hero-left { padding: 7rem 3rem 5rem 3rem; display: flex; flex-direction: column; justify-content: flex-end; position: relative; z-index: 2; }
  .hero-tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
  .hero-tag::before { content: ''; display: block; width: 24px; height: 1px; background: var(--red); }
  .hero-name { font-family: var(--font-display); font-size: clamp(80px, 10vw, 130px); line-height: 0.9; letter-spacing: 0.02em; color: var(--white); margin-bottom: 2rem; }
  .hero-name em { color: var(--red); font-style: normal; display: block; }
  .hero-desc { font-size: 15px; line-height: 1.7; color: var(--gray-light); max-width: 420px; margin-bottom: 3rem; font-weight: 300; }
  .hero-desc strong { color: var(--white); font-weight: 500; }
  .hero-actions { display: flex; align-items: center; gap: 1.5rem; }
  .btn-primary { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--red); color: var(--white); text-decoration: none; padding: 1rem 2rem; transition: background 0.2s; }
  .btn-primary:hover { background: var(--red-dark); }
  .btn-ghost { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-mid); text-decoration: none; transition: color 0.2s; }
  .btn-ghost:hover { color: var(--white); }
  .hero-stats { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; gap: 3rem; }
  .stat-num { font-family: var(--font-display); font-size: 42px; line-height: 1; }
  .stat-num span { color: var(--red); }
  .stat-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-mid); margin-top: 0.3rem; }
  .hero-right { position: relative; height: 100vh; overflow: hidden; background: #111; }
  .hero-right::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: var(--red); z-index: 3; }
  .hero-right img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; filter: grayscale(20%) contrast(1.05); }
  .hero-right::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,10,10,0.35) 0%, transparent 40%), linear-gradient(to top, rgba(10,10,10,0.5) 0%, transparent 50%); z-index: 2; pointer-events: none; }
  .hero-bg-text { position: absolute; bottom: -2rem; right: -1rem; font-family: var(--font-display); font-size: 220px; line-height: 1; color: rgba(255,255,255,0.025); pointer-events: none; white-space: nowrap; z-index: 1; }

  @keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
  .hero-left > * { animation: fadeUp 0.8s ease forwards; opacity: 0; }
  .hero-left > *:nth-child(1) { animation-delay: 0.1s; }
  .hero-left > *:nth-child(2) { animation-delay: 0.25s; }
  .hero-left > *:nth-child(3) { animation-delay: 0.4s; }
  .hero-left > *:nth-child(4) { animation-delay: 0.55s; }
  .hero-left > *:nth-child(5) { animation-delay: 0.7s; }

  /* SOBRE */
  #sobre { padding: 8rem 3rem; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 80px 1fr; gap: 4rem; align-items: start; }
  .section-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red); writing-mode: vertical-rl; transform: rotate(180deg); }
  .red-divider { width: 48px; height: 3px; background: var(--red); margin-bottom: 2rem; }
  .sobre-headline { font-family: var(--font-display); font-size: clamp(48px, 5vw, 72px); line-height: 0.95; margin-bottom: 2.5rem; }
  .sobre-headline span { color: var(--red); }
  .sobre-text { font-size: 16px; line-height: 1.8; color: var(--gray-light); font-weight: 300; max-width: 700px; margin-bottom: 1.5rem; }
  .sobre-text strong { color: var(--white); font-weight: 500; }

  /* LIDERANÇA */
  #lideranca { background: #0f0f0f; padding: 8rem 3rem; border-top: 1px solid rgba(255,255,255,0.06); }
  .lider-inner { max-width: 1200px; margin: 0 auto; }
  .section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 4rem; }
  .section-title { font-family: var(--font-display); font-size: clamp(48px, 6vw, 90px); line-height: 0.9; }
  .section-title span { color: var(--red); }
  .section-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gray-mid); }
  .lideranca-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
  .lider-card { background: #111; padding: 3rem; position: relative; overflow: hidden; }
  .lider-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red); }
  .lider-card:first-child::before { opacity: 0.4; }
  .lider-num { font-family: var(--font-display); font-size: 80px; line-height: 1; color: rgba(255,255,255,0.04); position: absolute; top: 1.5rem; right: 2rem; }
  .lider-period { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
  .lider-supertitle { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-mid); margin-bottom: 0.3rem; }
  .lider-title { font-family: var(--font-display); font-size: 36px; line-height: 1.05; margin-bottom: 1.5rem; }
  .lider-desc { font-size: 14px; color: var(--gray-light); line-height: 1.8; font-weight: 300; margin-bottom: 2rem; }
  .lider-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-mid); border: 1px solid rgba(255,255,255,0.1); padding: 0.3rem 0.75rem; }

  /* CASES */
  #cases { padding: 8rem 3rem; border-top: 1px solid rgba(255,255,255,0.06); }
  .cases-inner { max-width: 1200px; margin: 0 auto; }
  .cases-grid { margin-top: 4rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .case-card { background: #111; display: flex; flex-direction: column; overflow: hidden; }
  .case-card.featured { grid-column: span 2; }

  /* CAROUSEL */
  .carousel { position: relative; width: 100%; aspect-ratio: 16/9; background: #1a1a1a; overflow: hidden; flex-shrink: 0; }
  .case-card.featured .carousel { aspect-ratio: 21/9; }
  .carousel-slides { display: flex; width: 100%; height: 100%; transition: transform 0.45s cubic-bezier(0.4,0,0.2,1); }
  .carousel-slide { min-width: 100%; height: 100%; background: #1c1c1c; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
  .carousel-slide img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
  .slide-placeholder { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; z-index: 1; }
  .slide-placeholder svg { opacity: 0.15; }
  .slide-placeholder span { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #444; }
  .carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1); color: var(--white); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; transition: background 0.2s; padding: 0; }
  .carousel-btn:hover { background: var(--red); border-color: var(--red); }
  .carousel-btn.prev { left: 10px; }
  .carousel-btn.next { right: 10px; }
  .carousel-dots { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 10; }
  .dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: background 0.2s, transform 0.2s; }
  .dot.active { background: var(--red); transform: scale(1.3); }
  .case-body { padding: 2rem; display: flex; flex-direction: column; flex: 1; }
  .case-brand { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); margin-bottom: 0.75rem; }
  .case-metric { font-family: var(--font-display); font-size: 48px; color: var(--red); line-height: 1; margin-bottom: 0.15rem; }
  .case-metric-label { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-mid); margin-bottom: 1rem; }
  .case-title { font-size: 20px; font-weight: 500; color: var(--white); margin-bottom: 0.75rem; }
  .case-card.featured .case-title { font-size: 26px; }
  .case-desc { font-size: 13px; color: var(--gray-mid); line-height: 1.7; font-weight: 300; flex: 1; margin-bottom: 1.5rem; }

  .case-link-wrap { position: relative; }
  .case-link-btn { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); background: none; border: 1px solid rgba(224,31,31,0.3); padding: 0.4rem 0.9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; transition: background 0.2s, border-color 0.2s; white-space: nowrap; }
  .case-link-btn:hover, .case-link-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }
  .case-link-btn .btn-arrow { font-size: 8px; transition: transform 0.2s; }
  .case-link-btn.active .btn-arrow { transform: rotate(180deg); }
  .case-dropdown { display: none; position: absolute; bottom: calc(100% + 6px); right: 0; background: #111; border: 1px solid #2a2a2a; min-width: 200px; z-index: 100; }
  .case-dropdown.open { display: block; }
  .case-dropdown a { display: flex; align-items: center; gap: 0.6rem; padding: 0.65rem 1rem; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: #aaa; text-decoration: none; border-bottom: 1px solid #1a1a1a; transition: background 0.15s, color 0.15s; }
  .case-dropdown a:last-child { border-bottom: none; }
  .case-dropdown a:hover { background: var(--red); color: var(--white); }
  .case-dropdown .dd-icon { font-size: 12px; opacity: 0.7; }
  .case-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.06); gap: 1rem; }
  .case-type { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: #444; }
  .case-link { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red); text-decoration: none; border: 1px solid rgba(224,31,31,0.3); padding: 0.4rem 0.9rem; white-space: nowrap; transition: background 0.2s, border-color 0.2s; display: inline-flex; align-items: center; gap: 0.4rem; }
  .case-link:hover { background: var(--red); border-color: var(--red); color: var(--white); }

  /* CASE DRAWER (modal para projetos) */
  .case-drawer { position: fixed; top: 0; bottom: 0; right: -100%; width: 600px; max-width: 90vw; background: #0a0a0a; border-left: 3px solid var(--red); z-index: 200; transition: right 0.4s cubic-bezier(0.4,0,0.2,1); overflow-y: auto; box-shadow: -20px 0 60px rgba(0,0,0,0.7); }
  .case-drawer.open { right: 0; }
  .case-drawer-inner { padding: 3rem; }
  .case-drawer-close { position: absolute; top: 1.5rem; right: 1.5rem; background: transparent; border: 1px solid rgba(255,255,255,0.1); color: var(--gray-mid); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; transition: all 0.2s; }
  .case-drawer-close:hover { background: var(--red); border-color: var(--red); color: var(--white); }
  .case-drawer-brand { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; }
  .case-drawer-title { font-family: var(--font-display); font-size: 42px; line-height: 1.05; margin-bottom: 2rem; }
  .case-drawer-section { margin-bottom: 2.5rem; }
  .case-drawer-section-title { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red); margin-bottom: 1rem; border-bottom: 1px solid rgba(224,31,31,0.2); padding-bottom: 0.5rem; }
  .case-drawer-text { font-size: 15px; color: var(--gray-light); line-height: 1.8; font-weight: 300; margin-bottom: 1rem; }
  .case-drawer-text strong { color: var(--white); font-weight: 500; }
  .case-drawer-text a { color: var(--red); text-decoration: none; border-bottom: 1px solid rgba(224,31,31,0.3); transition: border-color 0.2s; }
  .case-drawer-text a:hover { border-color: var(--red); }
  .case-drawer-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
  .case-drawer-links { display: flex; flex-direction: column; gap: 0.75rem; }
  .case-drawer-links a { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray-mid); text-decoration: none; padding: 0.75rem 1rem; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); transition: all 0.2s; }
  .case-drawer-links a:hover { background: var(--red); border-color: var(--red); color: var(--white); }
  .case-drawer-links .link-icon { font-size: 14px; opacity: 0.7; }

  /* EXPERTISES */
  #competencias { background: #0f0f0f; padding: 8rem 3rem; border-top: 1px solid rgba(255,255,255,0.06); }
  .comp-inner { max-width: 1200px; margin: 0 auto; }
  .skills-grid { margin-top: 4rem; display: grid; grid-template-columns: repeat(2, 1fr); }
  .skill-row { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); gap: 2rem; }
  .skill-row:nth-child(odd) { padding-right: 3rem; }
  .skill-row:nth-child(even) { padding-left: 3rem; border-left: 1px solid rgba(255,255,255,0.06); }
  .skill-name { font-size: 15px; font-weight: 400; }
  .skill-dot { width: 6px; height: 6px; background: var(--red); flex-shrink: 0; }

  /* TRAJETÓRIA — horizontal timeline */
  #trajetoria { padding: 8rem 3rem; border-top: 1px solid rgba(255,255,255,0.06); overflow: hidden; }
  .traj-inner { max-width: 1200px; margin: 0 auto; }
  .traj-intro { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray-mid); margin-bottom: 5rem; }

  .htimeline {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0;
    overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-width: thin;
    scrollbar-color: #222 transparent;
  }
  .htimeline::-webkit-scrollbar { height: 3px; }
  .htimeline::-webkit-scrollbar-track { background: transparent; }
  .htimeline::-webkit-scrollbar-thumb { background: #333; }

  /* The horizontal line */
  .htimeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0; right: 0;
    height: 1px;
    background: rgba(255,255,255,0.08);
    z-index: 0;
  }

  .tl-node {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    min-width: 160px;
    cursor: pointer;
  }

  .tl-node.highlight .tl-node-dot {
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(224,31,31,0.15);
    width: 14px; height: 14px;
    top: 14px;
  }

  .tl-node-dot {
    position: relative;
    z-index: 2;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--black);
    border: 1px solid rgba(255,255,255,0.25);
    margin-bottom: 1.25rem;
    top: 16px;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
  }

  .tl-node:hover .tl-node-dot { border-color: var(--red); }

  .tl-node-content { padding-top: 1rem; padding-right: 1.5rem; }

  .tl-node-year {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    color: var(--red);
    margin-bottom: 0.4rem;
  }

  .tl-node-role {
    font-size: 13px;
    font-weight: 500;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 0.2rem;
  }

  .tl-node.highlight .tl-node-role { color: var(--white); font-size: 14px; }

  .tl-node-co {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin-bottom: 0.6rem;
  }

  .tl-expand-btn {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--red);
    background: none;
    border: 1px solid rgba(224,31,31,0.3);
    padding: 0.25rem 0.6rem;
    cursor: pointer;
    transition: background 0.2s;
    display: none;
  }

  .tl-node.highlight .tl-expand-btn { display: inline-flex; align-items: center; gap: 0.3rem; }
  .tl-expand-btn:hover { background: rgba(224,31,31,0.1); }

  /* Expandable drawer */
  .tl-drawer {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: #111;
    border-top: 2px solid var(--red);
    padding: 2.5rem 3rem;
    animation: slideUp 0.3s ease;
  }

  .tl-drawer.open { display: block; }

  @keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  .drawer-inner { max-width: 800px; margin: 0 auto; position: relative; }

  .drawer-close {
    position: absolute;
    top: 0; right: 0;
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--gray-mid);
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.2s, border-color 0.2s;
  }
  .drawer-close:hover { color: var(--white); border-color: var(--red); }

  .drawer-period { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--red); margin-bottom: 0.5rem; }
  .drawer-title { font-family: var(--font-display); font-size: 36px; line-height: 1; margin-bottom: 1.5rem; }
  .drawer-body { font-size: 14px; color: var(--gray-light); line-height: 1.8; font-weight: 300; }
  .drawer-body ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
  .drawer-body ul li::before { content: "— "; color: var(--red); }
  .drawer-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }

  /* CONTATO */
  #contato { background: var(--red); padding: 7rem 3rem; text-align: center; position: relative; overflow: hidden; }
  #contato::before { content: 'CONTATO'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--font-display); font-size: 200px; color: rgba(0,0,0,0.08); white-space: nowrap; pointer-events: none; }
  .contato-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 1.5rem; }
  .contato-headline { font-family: var(--font-display); font-size: clamp(52px, 7vw, 90px); line-height: 0.95; color: var(--white); margin-bottom: 2.5rem; }
  .contato-desc { font-size: 16px; color: rgba(255,255,255,0.75); font-weight: 300; margin-bottom: 3rem; }
  .contato-links { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; }
  .contato-link { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); text-decoration: none; border: 1px solid rgba(255,255,255,0.4); padding: 1rem 2.5rem; transition: background 0.2s, border-color 0.2s; }
  .contato-link:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.7); }
  .contato-link.solid { background: var(--black); border-color: var(--black); }
  .contato-link.solid:hover { background: #1a1a1a; }

  footer { background: var(--black); padding: 2rem 3rem; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.06); }
  .footer-name { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: #333; }
  .footer-name span { color: var(--red); }
  .footer-copy { font-family: var(--font-mono); font-size: 11px; color: #333; }

  /* CATEGORY TABS */
  .proj-tabs { display: flex; gap: 0; margin-bottom: 3rem; border-bottom: 1px solid #222; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .proj-tabs::-webkit-scrollbar { display: none; }
  .proj-tab { flex-shrink: 0; padding: 1rem 1.5rem; font-family: 'Space Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #555; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.2s, border-color 0.2s; background: none; border-top: none; border-left: none; border-right: none; white-space: nowrap; }
  .proj-tab.active { color: var(--red); border-bottom-color: var(--red); }
  .proj-tab:hover:not(.active) { color: #999; }
  .proj-tab-count { display: inline-block; background: #1a1a1a; color: #555; font-size: 10px; padding: 1px 6px; margin-left: 6px; border-radius: 2px; }
  .proj-tab.active .proj-tab-count { background: rgba(224,31,31,0.12); color: var(--red); }

  /* CATEGORY PANELS */
  .proj-panel { display: none; }
  .proj-panel.active { display: block; }

  /* CHANNEL LOGO BADGE */
  .case-logo { width: 40px; height: 40px; object-fit: contain; background: rgba(26,26,26,0.85); border-radius: 3px; padding: 5px; position: absolute; top: 10px; left: 10px; z-index: 5; }
  .case-logo-placeholder { width: 52px; height: 52px; background: #1a1a1a; border-radius: 4px; border: 1px solid #2a2a2a; position: absolute; top: 12px; left: 12px; z-index: 5; display: flex; align-items: center; justify-content: center; }
  .case-logo-placeholder span { font-family: 'Space Mono', monospace; font-size: 8px; color: #444; letter-spacing: 0.05em; text-align: center; line-height: 1.3; padding: 4px; }
  .carousel { position: relative; }

  /* CATEGORY BADGE */
  .case-category-badge { display: inline-block; font-family: 'Space Mono', monospace; font-size: 9px; letter-spacing: 0.15em; text-transform: uppercase; color: #555; background: #161616; border: 1px solid #222; padding: 3px 8px; margin-bottom: 0.6rem; }

  /* RESPONSIVE TABS */
  @media (max-width: 768px) {
    .proj-tab { padding: 0.85rem 1rem; font-size: 10px; }
  }

  /* ── HAMBURGER BUTTON ─────────────────────────────────────────────────────── */
  .nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; z-index: 110; }
  .nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--white); transition: transform 0.3s, opacity 0.3s; }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-cta-mobile { display: none; }

  /* ── MOBILE (≤ 768px) ─────────────────────────────────────────────────────── */
  @media (max-width: 768px) {

    /* NAV */
    nav { padding: 1rem 1.5rem; }
    .nav-hamburger { display: flex; }
    .nav-cta { display: none; }
    nav ul {
      display: none;
      flex-direction: column;
      gap: 0;
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(10,10,10,0.98);
      backdrop-filter: blur(16px);
      justify-content: center;
      align-items: center;
      z-index: 105;
      padding: 2rem;
    }
    nav ul.open { display: flex; }
    nav ul a { font-size: 14px; padding: 1.2rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); width: 100%; text-align: center; letter-spacing: 0.15em; }
    .nav-cta-mobile { display: block; margin-top: 1rem; }
    .nav-cta-mobile a { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); text-decoration: none; border: 1px solid var(--red); padding: 0.75rem 2rem; display: inline-block; }

    /* HERO */
    #hero { grid-template-columns: 1fr; min-height: 100svh; }
    .hero-right { height: 50vh; order: -1; }
    .hero-left { padding: 2rem 1.5rem 3rem; justify-content: flex-start; }
    .hero-name { font-size: clamp(60px, 18vw, 90px); }
    .hero-desc { font-size: 14px; max-width: 100%; margin-bottom: 2rem; }
    .hero-actions { flex-wrap: wrap; gap: 1rem; }
    .hero-stats { gap: 1.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
    .stat-num { font-size: 34px; }
    .hero-bg-text { display: none; }

    /* SOBRE */
    #sobre { padding: 4rem 1.5rem; grid-template-columns: 1fr; gap: 1.5rem; }
    .section-label { writing-mode: horizontal-tb; transform: none; }

    /* LIDERANÇA */
    #lideranca { padding: 4rem 1.5rem; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; margin-bottom: 2.5rem; }
    .lideranca-grid { grid-template-columns: 1fr; }
    .lider-card { padding: 2rem 1.5rem; }
    .lider-title { font-size: 28px; }

    /* CASES */
    #cases { padding: 4rem 1.5rem; }
    .cases-grid { grid-template-columns: 1fr; margin-top: 2rem; }
    .case-card.featured { grid-column: span 1; }
    .case-card.featured .carousel { aspect-ratio: 16/9; }
    .case-card.featured .case-title { font-size: 20px; }
    .case-body { padding: 1.25rem; }
    .case-footer { flex-wrap: wrap; gap: 0.75rem; }

    /* DRAWER (cases) */
    .case-drawer { width: 100%; max-width: 100%; border-left: none; border-top: 3px solid var(--red); top: auto; height: 90vh; right: 0 !important; bottom: -100%; transition: bottom 0.4s cubic-bezier(0.4,0,0.2,1); }
    .case-drawer.open { bottom: 0; }
    .case-drawer-inner { padding: 2rem 1.5rem; }
    .case-drawer-title { font-size: 30px; }

    /* EXPERTISES */
    #competencias { padding: 4rem 1.5rem; }
    .skills-grid { grid-template-columns: 1fr; }
    .skill-row:nth-child(odd) { padding-right: 0; }
    .skill-row:nth-child(even) { padding-left: 0; border-left: none; }

    /* TRAJETÓRIA */
    #trajetoria { padding: 4rem 1.5rem; }
    .traj-intro { margin-bottom: 3rem; }
    .tl-node { min-width: 130px; }

    /* TIMELINE DRAWER */
    .tl-drawer { padding: 2rem 1.5rem; }
    .drawer-title { font-size: 26px; }

    /* CONTATO */
    #contato { padding: 5rem 1.5rem; }
    #contato::before { font-size: 80px; }
    .contato-links { flex-direction: column; align-items: stretch; }
    .contato-link { text-align: center; padding: 1rem; }

    /* FOOTER */
    footer { padding: 1.5rem; flex-direction: column; gap: 0.5rem; text-align: center; }
  }

  /* ── TABLET (769px – 1024px) ──────────────────────────────────────────────── */
  @media (min-width: 769px) and (max-width: 1024px) {
    nav { padding: 1.25rem 2rem; }
    #hero { grid-template-columns: 1fr 1fr; }
    .hero-left { padding: 5rem 2rem 3rem; }
    #sobre { padding: 6rem 2rem; }
    #lideranca { padding: 6rem 2rem; }
    .lideranca-grid { grid-template-columns: 1fr 1fr; }
    #cases { padding: 6rem 2rem; }
    .cases-grid { grid-template-columns: repeat(2, 1fr); }
    .case-card.featured { grid-column: span 2; }
    #competencias { padding: 6rem 2rem; }
    #trajetoria { padding: 6rem 2rem; }
    #contato { padding: 6rem 2rem; }
    footer { padding: 1.5rem 2rem; }
  }

