/* Reset / Normalize */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Root variables */
:root { --ink: #101111; --cream: #f2f2ef; --gray: #d8d8d4; --line: rgba(16,17,17,.18); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: Manrope, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
.skip-link { position: absolute; top: -100%; left: 0; z-index: 9999; padding: 12px 20px; background: var(--ink); color: var(--cream); font: 600 13px "DM Mono", monospace; text-decoration: underline; border-bottom-right-radius: 4px; transition: top .15s; }
.skip-link:focus { top: 0; }
.topbar { height: 76px; padding: 0 4vw; border-bottom: 1px solid rgba(239,238,232,.18); display: flex; align-items: center; justify-content: space-between; position: relative; background: var(--ink); color: var(--cream); z-index: 5; }
.brand { display: flex; width: 118px; }.brand img { width: 100%; height: auto; }
nav { display: flex; gap: 24px; font: 500 11px/1 "DM Mono", monospace; letter-spacing: .04em; text-transform: uppercase; }.topbar-right { display: flex; align-items: center; gap: 18px; }.lang-switch { display: inline-flex; align-items: center; gap: 2px; border: 1px solid rgba(239,238,232,.3); border-radius: 30px; padding: 3px 5px; font: 500 10.5px/1 "DM Mono", monospace; letter-spacing: .05em; }.lang-btn { background: transparent; border: none; color: rgba(239,238,232,.55); padding: 4px 8px; border-radius: 20px; font: inherit; cursor: pointer; transition: all .18s ease; }.lang-btn.active { background: var(--cream); color: var(--ink); font-weight: 600; }.lang-btn:hover:not(.active) { color: var(--cream); }.lang-sep { color: rgba(239,238,232,.28); font-size: 10px; user-select: none; }.contact-link { font: 600 12px/1 "DM Mono", monospace; border-bottom: 1px solid var(--cream); padding-bottom: 4px; }
.hero { min-height: calc(100svh - 76px); display: grid; grid-template-columns: 1fr 1fr; background: var(--ink); color: var(--cream); }.eyebrow,.section-label,.feature-kicker { font: 500 11px/1.4 "DM Mono", monospace; letter-spacing: .08em; }.hero-copy { padding: clamp(40px,7vw,110px) clamp(28px,8vw,130px) clamp(34px,5vw,76px); display: flex; flex-direction: column; justify-content: space-between; }.hero-statement { margin: auto 0; }.hero-statement > p:first-child { margin: 0 0 16px; font: 500 11px "DM Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }.hero-logo { display: block; width: min(100%,430px); height: auto; }.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }.hero-description { max-width: 300px; margin: 42px 0 0; font-size: 15px; line-height: 1.55; }.hero-cta { width: max-content; display: flex; gap: 28px; align-items: center; font: 500 11px "DM Mono",monospace; letter-spacing: .04em; text-transform: uppercase; }.hero-cta span { width: 38px; height: 38px; border: 1px solid rgba(239,238,232,.5); border-radius: 50%; display: grid; place-items: center; font-size: 17px; }.hero-portrait { margin: 0; min-height: 100%; overflow: hidden; }.hero-portrait img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 92% 15%; filter: grayscale(1) contrast(1.08); }
.split-section,.about { border-top: 1px solid var(--line); padding: 25px 4vw 8vw; display: grid; grid-template-columns: 22% 1fr; gap: 30px; }.section-content h2,.feature h2 { margin: 0 0 5vw; max-width: 900px; font-size: clamp(35px, 5vw, 74px); letter-spacing: -.065em; line-height: .94; text-wrap: balance; }.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }.card { min-height: 300px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; }.card span { font: 11px "DM Mono", monospace; }.card h3 { margin: auto 0 9px; font-size: 27px; letter-spacing: -.06em; }.card p { margin: 0; max-width: 260px; font-size: 14px; line-height: 1.5; }.card-dark { background: var(--ink); color: var(--cream); }.card-gray { background: var(--gray); }.card-light { background: #e6e6e2; }
.feature { background: var(--ink); color: var(--cream); padding: 25px 4vw 7vw; }.feature-grid { margin: 7vw 0 5vw; display: grid; grid-template-columns: 1.05fr .95fr; gap: 5vw; }.feature h2 { margin: 8px 0 0; }.feature-copy { max-width: 480px; font-size: 17px; line-height: 1.6; }.metric { margin-top: 55px; border-top: 1px solid rgba(239,238,232,.35); padding-top: 15px; display: flex; gap: 24px; align-items: baseline; }.metric strong { color: var(--cream); font-size: clamp(36px,5vw,70px); letter-spacing: -.08em; white-space: nowrap; }.metric span { font-size: 12px; max-width: 170px; line-height: 1.4; }.toolbelt { display: flex; flex-wrap: wrap; gap: 8px; }.toolbelt span { border: 1px solid rgba(239,238,232,.4); padding: 9px 13px; border-radius: 30px; font: 11px "DM Mono", monospace; }
.projects { padding: 25px 4vw 8vw; }.project-heading { margin: 7vw 0 5vw; display: grid; grid-template-columns: 1.1fr .45fr; justify-content: space-between; gap: 9vw; }.project-heading h2 { margin: 0; max-width: 750px; font-size: clamp(35px,5vw,74px); letter-spacing: -.065em; line-height: .94; text-wrap: balance; }.project-heading p { margin: 0; font-size: 14px; line-height: 1.55; }.project-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }.project-card { min-height: 480px; background: #ddd; position: relative; overflow: hidden; }.project-card img { width: 100%; height: 100%; object-fit: cover; position: absolute; transition: transform .65s cubic-bezier(0.16, 1, 0.3, 1); will-change: transform; }.project-card:hover img { transform: scale(1.035); }.project-card div { position: absolute; inset: auto 0 0; padding: 25px; color: var(--cream); background: linear-gradient(transparent,rgba(0,0,0,.72)); transition: background .35s ease; }.project-card:hover div { background: linear-gradient(transparent,rgba(0,0,0,.86)); }.project-card span { font: 10px "DM Mono",monospace; letter-spacing: .08em; }.project-card h3 { margin: 8px 0 0; font-size: clamp(24px,3vw,40px); letter-spacing: -.06em; }.project-card-wide { grid-column: span 1; }
.about { padding-bottom: 12vw; }.about-copy { max-width: 760px; }.large-copy { margin: 0 0 35px; font-size: clamp(29px,4vw,55px); line-height: 1.02; letter-spacing: -.06em; text-wrap: balance; }.about-copy > p:not(.large-copy) { font-size: 16px; max-width: 510px; line-height: 1.6; }.button { margin-top: 34px; background: var(--ink); color: var(--cream); padding: 16px 18px; display: inline-flex; gap: 40px; font: 500 12px "DM Mono", monospace; }.button span { color: var(--cream); }
footer { background: var(--ink); color: var(--cream); padding: 34px 4vw 24px; display: flex; flex-direction: column; gap: 24px; font: 11px "DM Mono", monospace; letter-spacing: .05em; border-top: 1px solid rgba(239,238,232,.14); }
.footer-colophon { display: grid; grid-template-columns: 22% 1fr; gap: 30px; padding-bottom: 24px; border-bottom: 1px solid rgba(239,238,232,.16); align-items: start; }
.footer-colophon-label { font: 500 11px/1.4 "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: rgba(239,238,232,.55); margin: 0; }
.footer-colophon-text { margin: 0; max-width: 780px; font: 400 13.5px/1.6 Manrope, Arial, sans-serif; letter-spacing: normal; color: rgba(239,238,232,.84); }
.footer-colophon-text strong { color: var(--cream); font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; width: 100%; }

/* ==========================================================================
   Página de Detalhes do Projeto (Editorial & Espaçamento Amplo)
   ========================================================================== */
.project-page { background: var(--cream); color: var(--ink); padding-bottom: 4vw; }
.project-intro { padding: 40px 4vw 60px; border-bottom: 1px solid var(--line); }
.project-nav-back { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; font: 500 11px/1.4 "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.back-link { display: inline-flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 3px; transition: opacity .2s ease; }
.back-link:hover { opacity: .6; }
.project-category-tag { color: rgba(16,17,17,.6); }
.project-title-block { max-width: 980px; margin-bottom: 50px; }
.project-main-title { font-size: clamp(48px, 8vw, 110px); letter-spacing: -.065em; line-height: .92; margin: 0 0 24px; text-wrap: balance; }
.project-tagline { font-size: clamp(18px, 2.2vw, 26px); line-height: 1.4; letter-spacing: -.02em; color: rgba(16,17,17,.75); max-width: 760px; margin: 0; }
.project-meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 35px; border-top: 1px solid var(--line); margin: 0; }
.project-meta-item dt { font: 500 11px "DM Mono", monospace; letter-spacing: .08em; color: rgba(16,17,17,.5); margin-bottom: 8px; }
.project-meta-item dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.35; }

.project-hero-media, .project-full-media { padding: 5vw 4vw; }
.media-frame { margin: 0; background: #eaeae6; overflow: hidden; display: flex; justify-content: center; align-items: center; border-radius: 2px; }
.media-frame img { width: 100%; height: auto; display: block; object-fit: cover; }
.media-frame-hero { background: #fdfdfb; padding: 3vw; border: 1px solid rgba(16,17,17,.06); }
.media-frame-hero img { max-height: 75vh; object-fit: contain; width: auto; max-width: 100%; margin: 0 auto; }

.project-narrative-split { padding: 6vw 4vw; border-top: 1px solid var(--line); display: grid; grid-template-columns: 22% 1fr; gap: 30px; }
.narrative-body { max-width: 820px; }
.narrative-heading { font-size: clamp(32px, 4vw, 56px); letter-spacing: -.05em; line-height: 1.05; margin: 0 0 28px; }
.narrative-lead { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.4; letter-spacing: -.02em; color: var(--ink); margin: 0 0 24px; font-weight: 500; }
.narrative-paragraph { font-size: 17px; line-height: 1.65; color: rgba(16,17,17,.85); margin: 0 0 20px; }

.releitura-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.releitura-card { background: var(--ink); color: var(--cream); padding: 30px 24px; display: flex; flex-direction: column; justify-content: flex-start; min-height: 260px; }
.card-step { font: 500 11px "DM Mono", monospace; letter-spacing: .08em; color: rgba(239,238,232,.5); margin-bottom: 16px; }
.releitura-card h3 { font-size: 24px; letter-spacing: -.04em; margin: 0 0 12px; }
.releitura-card p { margin: 0; font-size: 14px; line-height: 1.55; color: rgba(239,238,232,.85); }

.project-gallery-grid { padding: 2vw 4vw 6vw; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project-statement-banner { background: var(--ink); color: var(--cream); padding: 8vw 4vw; margin-top: 4vw; }
.banner-inner { max-width: 900px; margin: 0 auto; }
.banner-label { color: rgba(239,238,232,.5); margin-bottom: 30px; }
.banner-quote { font-size: clamp(24px, 3.2vw, 42px); line-height: 1.25; letter-spacing: -.04em; margin: 0 0 35px; border-left: 2px solid var(--cream); padding-left: 30px; font-style: normal; }
.banner-closing { font-size: 18px; line-height: 1.6; color: rgba(239,238,232,.85); margin: 0; }

.project-footer-nav { padding: 60px 4vw; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.project-nav-btn { display: inline-flex; align-items: center; gap: 12px; font: 600 13px "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 4px; transition: opacity .2s ease; }
.project-nav-btn:hover { opacity: .6; }

/* ==========================================================================
   Home: CTA para ver todos os projetos
   ========================================================================== */
.projects-cta-wrap { margin-top: 48px; display: flex; justify-content: flex-start; }
.projects-cta-btn { display: inline-flex; align-items: center; gap: 28px; background: var(--ink); color: var(--cream); padding: 18px 24px; font: 600 12px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; transition: opacity .2s ease, transform .2s ease; }
.projects-cta-btn:hover { opacity: .9; transform: translateX(3px); }
.projects-cta-btn span { font-size: 15px; }

/* ==========================================================================
   Página Geral de Projetos (projetos.html)
   ========================================================================== */
.all-projects-page { padding: 40px 4vw 8vw; background: var(--cream); color: var(--ink); }
.all-projects-header { padding-bottom: 4vw; border-bottom: 1px solid var(--line); margin-bottom: 5vw; }
.all-projects-title { font-size: clamp(48px, 8vw, 110px); letter-spacing: -.065em; line-height: .92; margin: 16px 0 24px; }
.all-projects-desc { font-size: clamp(16px, 2vw, 22px); line-height: 1.5; color: rgba(16,17,17,.75); max-width: 720px; margin: 0; }
.filter-tabs { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 10px; }
.filter-tab { font: 500 11px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; padding: 10px 18px; border: 1px solid var(--line); border-radius: 30px; cursor: pointer; background: transparent; color: var(--ink); transition: all .2s ease; }
.filter-tab.active, .filter-tab:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.active-nav { border-bottom: 1px solid var(--cream); padding-bottom: 4px; }

/* ==========================================================================
   Botão Fixo de Contato (WhatsApp)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  z-index: 9999;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
  transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.whatsapp-float img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
}

@media (max-width: 700px) {
  .topbar { padding: 0 22px; }.topbar nav { display: none; }.hero { min-height: auto; grid-template-columns: 1fr; }.hero-copy { min-height: 480px; padding: 60px 22px 34px; }.hero h1 { font-size: clamp(66px, 20vw, 105px); }.hero-description { margin-top: 32px; font-size: 14px; }.hero-portrait { min-height: 430px; }.hero-portrait img { object-position: 86% 15%; }.split-section,.about { grid-template-columns: 1fr; padding: 22px 22px 70px; gap: 50px; }.cards,.feature-grid,.project-heading,.project-grid { grid-template-columns: 1fr; }.card { min-height: 245px; }.feature,.projects { padding: 22px 22px 70px; }.feature-grid,.project-heading { margin: 70px 0 50px; gap: 45px; }.metric { margin-top: 35px; }.project-card { min-height: 390px; }.about { gap: 30px; }.large-copy { font-size: 34px; } footer { padding: 18px 22px; gap: 15px; flex-direction: column; }
  .project-meta-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .project-narrative-split { grid-template-columns: 1fr; padding: 40px 22px; gap: 20px; }
  .releitura-cards { grid-template-columns: 1fr; }
  .project-gallery-grid { grid-template-columns: 1fr; }
  .project-intro, .project-hero-media, .project-full-media { padding-left: 22px; padding-right: 22px; }
  .banner-quote { padding-left: 18px; font-size: 24px; }
  .project-footer-nav { flex-direction: column; gap: 25px; align-items: flex-start; }
  .all-projects-page { padding: 30px 22px 60px; }
  .filter-tabs { gap: 8px; }
  .filter-tab { padding: 8px 14px; font-size: 10px; }
  .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

/* ==========================================================================
   Home: ações do hero, trajetória, credenciais e caminhos de contato
   ========================================================================== */
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; }
.hero-mail { font: 500 11px "DM Mono", monospace; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid rgba(239,238,232,.6); padding-bottom: 4px; transition: opacity .2s ease; }
.hero-mail:hover { opacity: .65; }
.hero-statement > p.hero-proof { margin: 14px 0 0; font: 500 11px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: rgba(239,238,232,.6); }
.hero-award { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 9px 14px; border: 1px solid rgba(239,238,232,.35); border-radius: 30px; font: 500 11px/1.35 "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; color: var(--cream); background: rgba(239,238,232,.06); transition: background .2s ease, border-color .2s ease; }
.hero-award:hover { background: rgba(239,238,232,.14); border-color: rgba(239,238,232,.75); }
.project-credit { margin: 22px 0 0; font: 400 12px/1.5 "DM Mono", monospace; color: rgba(16,17,17,.65); }
.project-credit a { border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: opacity .2s ease; }
.project-credit a:hover { opacity: .65; }
.project-award { display: inline-block; margin: 14px 0 0; padding: 7px 13px; background: var(--ink); color: var(--cream); font: 500 11px/1.3 "DM Mono", monospace; letter-spacing: .06em; text-transform: uppercase; }
.narrative-list { margin: 16px 0 20px 20px; font-size: 16px; line-height: 1.65; color: rgba(16,17,17,.85); }
.narrative-list li { margin-bottom: 6px; }
.project-gallery-grid.gallery-3 { grid-template-columns: repeat(3, 1fr); }

.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.tl-date { font: 500 11px/1.5 "DM Mono", monospace; letter-spacing: .08em; color: rgba(16,17,17,.6); }
.timeline h3 { margin: 0 0 4px; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -.04em; line-height: 1.1; }
.tl-org { margin: 0 0 8px; font: 500 12px "DM Mono", monospace; letter-spacing: .04em; color: rgba(16,17,17,.6); }
.timeline li p:not(.tl-org) { margin: 0; max-width: 620px; font-size: 15px; line-height: 1.6; color: rgba(16,17,17,.85); }

.credentials { margin: 40px 0 0; max-width: 900px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.credentials h4 { margin: 0 0 10px; font: 500 11px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: rgba(16,17,17,.6); }
.about-copy .credentials p { margin: 0 0 14px; max-width: none; font-size: 14px; line-height: 1.55; }

.contact-paths { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.contact-paths .button { margin-top: 0; }
.button-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.button-outline span { color: var(--ink); }
.contact-line { margin: 22px 0 0; font: 500 12px "DM Mono", monospace; letter-spacing: .03em; }
.contact-line a { border-bottom: 1px solid var(--line); padding-bottom: 2px; }

@media (max-width: 700px) {
  .timeline li { grid-template-columns: 1fr; gap: 8px; }
  .credentials { grid-template-columns: 1fr; gap: 18px; }
  .hero-actions { gap: 18px 28px; }
  .project-gallery-grid.gallery-3 { grid-template-columns: 1fr; }
  .hero-award { font-size: 10px; padding: 8px 12px; }
  .footer-colophon { grid-template-columns: 1fr; gap: 10px; padding-bottom: 18px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ==========================================================================
   Lightbox / Zoom Focado para Imagens dos Cases
   ========================================================================== */
.media-frame img.lightbox-trigger {
  cursor: zoom-in;
  transition: transform .25s ease, filter .2s ease;
}
.media-frame img.lightbox-trigger:hover {
  filter: brightness(1.02);
}
.media-frame img.lightbox-trigger:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
body.lightbox-open {
  overflow: hidden;
}
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(16, 17, 17, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s cubic-bezier(.16, 1, .3, 1);
  padding: 20px;
}
.lightbox-overlay:not([hidden]) {
  pointer-events: auto;
}
.lightbox-overlay.lightbox-visible {
  opacity: 1;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: rgba(242, 242, 239, .08);
  border: 1px solid rgba(242, 242, 239, .25);
  border-radius: 50%;
  color: var(--cream);
  font: 400 18px/1 "DM Mono", monospace;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  z-index: 10001;
}
.lightbox-close:hover {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
  transform: scale(1.08);
}
.lightbox-close:focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}
.lightbox-container {
  max-width: 94vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 16px 48px rgba(0, 0, 0, .6);
  transform: scale(.96);
  transition: transform .22s cubic-bezier(.16, 1, .3, 1);
  user-select: none;
  display: block;
}
.lightbox-overlay.lightbox-visible .lightbox-img {
  transform: scale(1);
}
.lightbox-caption {
  margin: 14px 0 0;
  font: 500 11px/1.4 "DM Mono", monospace;
  color: rgba(242, 242, 239, .72);
  text-align: center;
  max-width: 800px;
  letter-spacing: .04em;
  user-select: none;
}

@media (max-width: 700px) {
  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  .lightbox-img {
    max-height: 78vh;
  }
}

/* ==========================================================================
   Animações Cinéticas, Scroll Reveal, Marquee e Cursor Magnético
   ========================================================================== */

/* 1. Entrada Escalonada no Hero */
.hero .eyebrow {
  opacity: 0;
  transform: translateY(-8px);
}
.hero-statement > p:first-child {
  opacity: 0;
}
.hero-logo {
  opacity: 0;
  transform: translateY(16px);
}
.hero-description {
  opacity: 0;
  transform: translateY(14px);
}
.hero-proof {
  opacity: 0;
  transform: translateY(12px);
}
.hero-award {
  opacity: 0;
  transform: translateY(12px);
}
.hero-actions {
  opacity: 0;
  transform: translateY(12px);
}
.hero-portrait img {
  opacity: 0;
  transform: scale(1.04);
}

.hero.hero-animate-in .eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease .1s, transform .6s cubic-bezier(.16, 1, .3, 1) .1s;
}
.hero.hero-animate-in .hero-statement > p:first-child {
  opacity: 1;
  transition: opacity .6s ease .18s;
}
.hero.hero-animate-in .hero-logo {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease .24s, transform .7s cubic-bezier(.16, 1, .3, 1) .24s;
}
.hero.hero-animate-in .hero-description {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease .34s, transform .7s cubic-bezier(.16, 1, .3, 1) .34s;
}
.hero.hero-animate-in .hero-proof {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease .42s, transform .7s cubic-bezier(.16, 1, .3, 1) .42s;
}
.hero.hero-animate-in .hero-award {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease .5s, transform .7s cubic-bezier(.16, 1, .3, 1) .5s, background .2s ease, border-color .2s ease;
}
.hero.hero-animate-in .hero-actions {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease .58s, transform .7s cubic-bezier(.16, 1, .3, 1) .58s;
}
.hero.hero-animate-in .hero-portrait img {
  opacity: 1;
  transform: scale(1);
  transition: opacity .85s ease .2s, transform 1.1s cubic-bezier(.16, 1, .3, 1) .2s;
}

/* 2. Scroll Reveal com IntersectionObserver */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.16, 1, .3, 1);
  will-change: opacity, transform;
}
.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* 3. Microinterações nos Cards */
.project-card {
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s cubic-bezier(.16, 1, .3, 1);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(16, 17, 17, .12);
}
.card {
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s cubic-bezier(.16, 1, .3, 1);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(16, 17, 17, .08);
}

/* 4. Marquee Infinito na Stack de IA */
.toolbelt.marquee-active {
  overflow: hidden;
  width: 100%;
  padding: 6px 0;
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
}
.marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
  padding-right: 8px;
  animation: marqueeRoll 26s linear infinite;
}
@keyframes marqueeRoll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}
.marquee-track:hover .marquee-group {
  animation-play-state: paused;
}

/* 5. Cursor Magnético (Desktop) */
@media (pointer: fine) {
  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    opacity: 0;
    transition: opacity .22s ease;
    mix-blend-mode: difference;
  }
  .custom-cursor.cursor-visible {
    opacity: 1;
  }
  .cursor-dot {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
    will-change: transform;
  }
  .cursor-ring {
    position: absolute;
    top: -18px;
    left: -18px;
    width: 36px;
    height: 36px;
    border: 1.2px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    transition: width .22s ease, height .22s ease, top .22s ease, left .22s ease, background-color .22s ease, border-color .22s ease;
    will-change: transform;
  }
  .cursor-badge {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 700 9px/1 "DM Mono", monospace;
    color: #101111;
    letter-spacing: .08em;
    pointer-events: none;
    will-change: transform;
    opacity: 0;
    transition: opacity .18s ease;
  }
  .cursor-hover .cursor-ring {
    top: -24px;
    left: -24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .9);
  }
  .cursor-hover .cursor-dot {
    opacity: 0;
  }
  .cursor-view .cursor-ring,
  .cursor-zoom .cursor-ring {
    top: -36px;
    left: -36px;
    width: 72px;
    height: 72px;
    background: #ffffff;
    border-color: #ffffff;
  }
  .cursor-view .cursor-dot,
  .cursor-zoom .cursor-dot {
    opacity: 0;
  }
  .cursor-view .cursor-badge,
  .cursor-zoom .cursor-badge {
    top: -36px;
    left: -36px;
    width: 72px;
    height: 72px;
    opacity: 1;
  }
}

/* 5.1 Barra de Progresso de Leitura no Topo */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--cream);
  mix-blend-mode: difference;
  z-index: 99999;
  pointer-events: none;
  transition: width 0.08s ease-out;
}

/* 6. Acessibilidade Obrigatória: Respeito a prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero .eyebrow,
  .hero-statement > p:first-child,
  .hero-logo,
  .hero-description,
  .hero-proof,
  .hero-award,
  .hero-actions,
  .hero-portrait img,
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
  .custom-cursor {
    display: none !important;
  }
}
