/* ============================================
   REESTRUTURA — home V3 (jun/2026)
   Retro-tech / voxel · Rosa #FF2E9B + preto + branco
   Anton (display) + Darker Grotesque (corpo)
   ============================================ */

:root {
  --nav-pink: #FF2E9B;
  --voxel-lg: clamp(86px, 10vw, 140px);   /* hero + manifesto (consistente) */
  --voxel-sm: clamp(40px, 4vw, 54px);     /* cards do ecossistema */
  --voxel-foot: clamp(34px, 3.6vw, 44px); /* rodapé */
  --track-display: 0.005em;               /* respiro padrão dos títulos Anton */
  --radius-box: 20px;                     /* cantos arredondados — padrão do site */
  --eco-content: min(100%, 1880px);
}

/* nav fixo (84px) não cobre a seção quando navega por âncora */
html { scroll-padding-top: 96px; }

/* Darker Grotesque é upright — neutraliza itálicos herdados */
.hero-label,
.eco-card-desc,
.manifesto-text p,
.contato-divider { font-style: normal; }

/* ============================================
   ÍCONES VOXEL — tamanho consistente + magnético/bounce
   (dimensionados pela arte visível: PNGs já recortados no bbox)
   ============================================ */
.voxel-mag {
  --ix: 0px; --iy: 0px; --irot: 0deg; --isc: 1;
  transform: translate3d(var(--ix), var(--iy), 0) rotate(var(--irot)) scale(var(--isc));
  transition: transform 0.55s cubic-bezier(0.34, 1.45, 0.5, 1);
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .voxel-mag:hover { --isc: 1.08; }
}

/* ============================================
   SITE LOADER — GIF BOON explosion
   ============================================ */
.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #111;
  opacity: 1;
  visibility: visible;
  overflow: hidden;
  transition: opacity 0.42s cubic-bezier(0.2, 0, 0, 1), visibility 0.42s linear;
}

.site-loader img {
  width: 100vw;
  height: 100vh;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 0.42s cubic-bezier(0.2, 0, 0, 1), opacity 0.42s cubic-bezier(0.2, 0, 0, 1);
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.site-loader.is-hidden img {
  opacity: 0;
  transform: scale(0.96);
}

@media (prefers-reduced-motion: reduce) {
  .site-loader,
  .site-loader img {
    transition: opacity 0.18s ease, visibility 0.18s linear;
  }
}

/* ============================================
   NAVBAR — rosa, grossa, mutável (contraste)
   ============================================ */
#nav {
  background: var(--nav-pink);
  height: 84px;
  border-bottom: 3px solid #111;
  transition: background 0.35s ease, border-color 0.35s ease;
}
#nav::before { display: none; }
#nav.scrolled { background: var(--nav-pink); }

.nav-logo-text {
  font-family: var(--font-display);
  font-size: clamp(30px, 2.8vw, 40px);
  color: #111;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease, color 0.35s ease;
}
.nav-logo:hover .nav-logo-text { opacity: 0.7; }

.nav-toggle span { background: #111; transition: background 0.35s ease; }

.nav-cta {
  background: var(--brain) !important;
  color: #111 !important;
  border: 2px solid #111;
  padding: 10px 20px 12px !important;
  border-radius: 6px;
  font-size: clamp(15px, 1.35vw, 19px) !important;
  line-height: 1 !important;
  letter-spacing: 0.02em !important;
}
.nav-cta:hover { background: #111 !important; color: var(--brain) !important; }

@media (min-width: 961px) {
  .nav-links { gap: clamp(22px, 2.4vw, 40px); }
  .nav-links a { color: #111; font-size: clamp(16px, 1.7vw, 22px); letter-spacing: 0.01em; transition: color 0.35s ease; }
  .nav-links a:hover { color: #fff; }
}

@media (max-width: 960px) {
  .nav-links .nav-cta {
    font-size: clamp(22px, 5vw, 34px) !important;
    padding: 14px 24px 17px !important;
    letter-spacing: 0.01em !important;
  }
}

/* ---- Tema escuro (quando a navbar encosta numa seção rosa/clara) ---- */
#nav.nav--dark { background: #111; border-bottom-color: #2a2a2a; }
#nav.nav--dark .nav-logo-text { color: #fff; }
#nav.nav--dark .nav-toggle span { background: #fff; }
@media (min-width: 961px) {
  #nav.nav--dark .nav-links a { color: #fff; }
  #nav.nav--dark .nav-links a:hover { color: var(--nav-pink); }
}

/* ============================================
   HERO — "BOON" estourado (Anton regular) + voxel
   ============================================ */
#hero {
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: calc(100vh - 84px);
  margin-top: 84px;
  padding: clamp(6px, 1.5vw, 24px) var(--pad-x) clamp(40px, 5vw, 76px);
}
@supports (min-height: 100dvh) {
  #hero { min-height: calc(100dvh - 84px); }
}

.hero-boon {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--white);
  font-size: clamp(160px, 61vw, 980px);
  font-size: min(63vw, calc((100dvh - 84px) * 0.98));
  line-height: 0.74;
  letter-spacing: 0;
  margin: 0;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
@media (max-width: 960px) {
  .hero-boon {
    font-size: 47vw;
    font-size: min(47vw, calc((100dvh - 84px) * 0.68));
  }
}

.hero-voxel {
  position: absolute;
  z-index: 4;
  height: clamp(140px, 17.5vw, 300px);   /* presentes, igual ao mockup */
  width: auto;
  pointer-events: auto;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.6));
}
.hero-voxel--tv   { left: clamp(28px, 14vw, 300px); bottom: 11%; --irot: -8deg; }
.hero-voxel--rock { right: clamp(28px, 13vw, 280px); top: 24%; --irot: 12deg; }
@media (max-width: 720px) {
  .hero-voxel { height: clamp(96px, 27vw, 180px); }
  .hero-voxel--tv { left: 5%; bottom: 20%; }
  .hero-voxel--rock { right: 6%; top: 19%; }
}

.hero-scroll {
  position: absolute;
  bottom: clamp(22px, 5vh, 56px);
  left: 0;
  right: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--nav-pink);
  text-decoration: none;
  z-index: 5;
  transition: color 0.25s ease;
}
.hero-scroll:hover { color: var(--white); }
.hero-scroll-chev { font-size: 20px; line-height: 1; animation: heroChev 1.8s ease-in-out infinite; }
@keyframes heroChev { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* ============================================
   MANIFESTO — protagonista, com respiro; ícones sem encostar
   ============================================ */
#sobre {
  background: var(--black);
  color: var(--white);
  padding: clamp(90px, 13vw, 190px) var(--pad-x);
  border-top: var(--border-subtle);
}
.sobre-link {
  margin-top: clamp(10px, 1.5vw, 18px);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 0.06em;
  color: var(--brain);
  text-decoration: none;
  width: fit-content;
  transition: opacity 0.2s ease;
}
.sobre-link:hover { opacity: 0.7; }
.manifesto-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
  max-width: 1500px;
  margin: 0 auto;
  position: relative;
}
.manifesto-titlewrap { position: relative; }
.manifesto-title {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(70px, 11vw, 176px);
  line-height: 0.9;
  letter-spacing: var(--track-display);
  text-transform: uppercase;
  margin: 0;
  white-space: nowrap;
}
.manifesto-text {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(15px, 1.7vw, 22px);
  padding-right: clamp(86px, 10vw, 150px);
}
.manifesto-text p {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.32;
  color: rgba(255, 255, 255, 0.74);
  margin: 0;
  max-width: 44ch;
}
.manifesto-text p strong { color: var(--white); font-weight: 800; }

.manifesto-icon { position: absolute; height: var(--voxel-lg); width: auto; pointer-events: auto; z-index: 3; filter: drop-shadow(0 16px 30px rgba(0,0,0,0.5)); }
.manifesto-icon--heart { top: -46px; right: -4%; --irot: 6deg; }        /* sobe e abre do título */
.manifesto-icon--seta  { top: calc(100% + 44px); left: -1%; --irot: -8deg; }  /* mais respiro do texto */
.manifesto-icon--raio  { top: 44%; right: 0; --irot: 8deg; }             /* fora da coluna de texto */
@media (max-width: 960px) {
  .manifesto-grid { grid-template-columns: 1fr; gap: clamp(70px, 12vw, 90px); }
  .manifesto-title { font-size: clamp(62px, 17vw, 118px); }
  .manifesto-text { padding-right: 0; }
  .manifesto-icon--heart { top: -34px; right: 4%; }
  .manifesto-icon--seta  { top: calc(100% + 18px); left: auto; right: 28%; }
  .manifesto-icon--raio  { top: auto; bottom: -58px; right: 4%; }
}

/* ============================================
   ECOSSISTEMA — V2: título de ponta a ponta, cards neutros
   ============================================ */
#ecossistema {
  background: var(--nav-pink);
  color: #111;
  border-top: 3px solid #111;
}
.eco-head {
  width: var(--eco-content);
  margin: 0 auto clamp(40px, 6vw, 72px);
}
.eco-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(54px, 7vw, 140px); /* fallback — JS substitui via eco-fit */
  line-height: 0.92;
  letter-spacing: 0;
  color: #111;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.eco-title-line {
  display: block;
  white-space: nowrap;
}
.eco-title-line--wide {
  font-size: 1em;
}
.eco-title-mobile-break { display: inline; }
.eco-sub {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: #111;
  width: 100%;
  margin: clamp(18px, 2.4vw, 30px) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: clamp(18px, 5vw, 96px);
}
.eco-sub span:first-child { text-align: left; }
.eco-sub span:last-child { text-align: right; justify-self: end; }

@media (max-width: 720px) {
  .eco-title {
    font-size: clamp(54px, 17vw, 112px);
    line-height: 0.92;
    text-align: left;
    align-items: flex-start;
  }
  .eco-title-line,
  .eco-title-line--wide {
    font-size: 1em;
  }
  .eco-title-mobile-break { display: block; }
  .eco-sub {
    grid-template-columns: 1fr;
    gap: 8px;
    font-size: clamp(20px, 6vw, 30px);
  }
  .eco-sub span:last-child { text-align: left; justify-self: start; }
}

#ecossistema .eco-grid {
  width: var(--eco-content);
  margin-left: auto;
  margin-right: auto;
}

/* Card — neutro, borda preta, hover só com extrude (sem tint rosa) */
.eco-card,
.eco-card--brands,
.eco-card--brain,
.eco-card--lab {
  background: transparent !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 2px solid #111;
  border-radius: var(--radius-box);
  box-shadow: none !important;
  color: #111;
  text-decoration: none;
  cursor: pointer;
  min-height: auto;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.25s var(--ease-out);
}
.eco-card::before { display: none; }
.eco-card:hover,
.eco-card--brands:hover,
.eco-card--brain:hover,
.eco-card--lab:hover {
  background: transparent !important;
  border-color: #111 !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transform: translate(-7px, -7px);
  box-shadow: 12px 12px 0 0 #111 !important;   /* extrude preto */
}

.eco-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--voxel-sm);
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.28);
  padding-bottom: clamp(14px, 1.6vw, 20px);
}
.eco-card-label {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #111;
}
.eco-card-voxel { height: var(--voxel-sm); width: auto; }

.eco-card-headline {
  font-family: var(--font-body);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(15px, 1.5vw, 19px);
  line-height: 1.1;
  letter-spacing: 0;
  color: #111;
}
.eco-card-desc {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.38;
  color: rgba(0, 0, 0, 0.82);
}

.eco-card-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 7px;
  margin-top: auto;
  padding-right: 52px;        /* reserva espaço, pills não encostam na seta */
  position: relative;
}
.row-balance-break {
  flex: 0 0 100%;
  width: 0;
  height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  pointer-events: none;
}
.eco-card-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: clamp(9px, 0.78vw, 11px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: none;
  color: #111;
  border: 1.5px solid #111;
  border-radius: 999px;
  min-height: 34px;
  padding: 5px 7px 7px;
  text-align: center;
  white-space: normal;
  min-width: 0;
}
.eco-card:hover .eco-card-pill,
.eco-card--brands:hover .eco-card-pill,
.eco-card--brain:hover .eco-card-pill,
.eco-card--lab:hover .eco-card-pill {
  color: #111 !important;
  border-color: #111 !important;
  background: transparent !important;
}
.eco-card-arrow {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}
.eco-card:hover .eco-card-arrow,
.eco-card--brands:hover .eco-card-arrow,
.eco-card--brain:hover .eco-card-arrow,
.eco-card--lab:hover .eco-card-arrow {
  background: #111 !important;
  transform: translate(3px, 0);
}
.eco-card-arrow svg { width: 18px; height: 18px; fill: #fff !important; }
.eco-card:hover .eco-card-arrow svg,
.eco-card--brands:hover .eco-card-arrow svg,
.eco-card--brain:hover .eco-card-arrow svg,
.eco-card--lab:hover .eco-card-arrow svg {
  fill: #fff !important;
}

/* ============================================
   PROJETOS — header com badges de contexto + galeria bento
   ============================================ */
.cases-header { margin-bottom: clamp(34px, 5vw, 60px); }
.cases-title {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(40px, 8vw, 150px);
  line-height: 0.92;
  letter-spacing: var(--track-display);
  color: var(--white);
  margin: 0 0 clamp(20px, 2.6vw, 34px);
  text-wrap: balance;
}
.cases-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-width: none;
}
.cases-badge {
  position: relative;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(12px, 1.1vw, 15px);
  line-height: 1;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 8px 16px 10px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.cases-badge:hover { border-color: var(--white); }

.cases-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(190px, 18vw, 260px);
  gap: clamp(14px, 1.6vw, 22px);
  align-items: stretch;
}
.proj-card {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-box);
  overflow: hidden;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
}
.proj-card:hover { transform: translateY(-5px); border-color: rgba(255, 255, 255, 0.4); }
.proj-card--wide { grid-column: span 6; grid-row: span 2; }

.proj-cover { flex: 1; min-height: 0; overflow: hidden; background: #0d0d0d; }
.proj-card--wide .proj-cover { aspect-ratio: auto; }
.proj-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease-out); }
.proj-card:hover .proj-cover img { transform: scale(1.045); }

.proj-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(15px, 1.6vw, 22px) clamp(16px, 1.8vw, 24px);
}
.proj-name {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(18px, 1.9vw, 28px);
  letter-spacing: -0.01em;
  line-height: 1;
}
.proj-tag {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(11px, 1vw, 13px);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
}

@media (max-width: 1120px) {
  .cases-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }
  .proj-card,
  .proj-card--wide {
    grid-column: span 1;
    grid-row: span 1;
  }
  .proj-card--wide { grid-column: span 2; }
  .proj-cover { aspect-ratio: 4 / 3; flex: initial; }
  .proj-card--wide .proj-cover { aspect-ratio: 16 / 9; }
}

@media (max-width: 720px) {
  .cases-title {
    font-size: clamp(58px, 16vw, 112px);
    line-height: 0.92;
  }
  .cases-gallery { grid-template-columns: 1fr; }
  .proj-card--wide { grid-column: span 1; }
  .proj-meta { align-items: flex-start; flex-direction: column; }
  .proj-tag { white-space: normal; }
}

/* ============================================
   CONTATO — sem moldura rosa, botão arredondado
   ============================================ */
.contato-frame { outline: none; }
.btn-calendly { border-radius: 999px; }

/* ============================================
   RODAPÉ — voxel nas redes (brincadeira)
   ============================================ */
.footer-logo-text {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.2vw, 48px);
  color: var(--white);
  line-height: 1;
  letter-spacing: var(--track-display);
}
footer {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(26px, 4vw, 46px);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 48px);
  flex-wrap: wrap;
}
.footer-social {
  margin-left: auto;                 /* redes pro lado direito da tela */
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 2.4vw, 40px);
  align-items: center;
}
.footer-social-item {
  display: inline-flex;
  flex-direction: row;               /* ícone ao lado do texto */
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: clamp(15px, 1.6vw, 22px);
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}
.footer-social-item:hover { color: var(--white); }
.footer-social-item[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.footer-voxel { height: clamp(40px, 4.2vw, 58px); width: auto; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.5)); }
