/* =========================================================
   3BF Agência — sections.css
   ========================================================= */

/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: transform 0.5s var(--ease), background-color 0.4s var(--ease),
    border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.header.is-solid {
  background: rgba(251, 250, 248, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line-soft);
}

.header.is-hidden { transform: translateY(-102%); }

.header__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.brand__mark {
  width: 36px;
  height: 36px;
  flex: none;
  transition: transform 0.6s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.06); }

.brand__type {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 82;
}
.brand__tag {
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2.2rem);
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  position: relative;
  padding-block: 0.4rem;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 1px; width: 100%;
  background: var(--orange-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover::after,
.nav__link:focus-visible::after,
.nav__link[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__link[aria-current="true"] { color: var(--ink); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header .btn { padding: 0.7rem 1.2rem; font-size: 0.75rem; }

/* Botão hambúrguer */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 100px;
}
.burger__box {
  position: relative;
  width: 18px;
  height: 10px;
}
.burger__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease);
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { bottom: 0; }
.burger[aria-expanded="true"] .burger__box span:nth-child(1) { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { transform: translateY(-4.25px) rotate(-45deg); }

/* Menu mobile em tela cheia */
.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--navy-900);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) var(--gut) 3rem;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease);
  pointer-events: none;
}
.menu.is-open {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}
.menu__list { display: grid; gap: 0.35rem; }
.menu__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 11vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  font-variation-settings: "wdth" 88;
  line-height: 1.06;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), color 0.3s;
}
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu__link:hover { color: var(--orange-400); }
.menu__link i {
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--orange-500);
  flex: none;
}
.menu__foot {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
}
.menu__foot a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
}
.menu__foot a:hover { color: #fff; }

/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  background: var(--paper);
}

.hero__canvas-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__canvas-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

/* -- Vídeo de fundo com avanço controlado pelo scroll (mesmo padrão de /servicos/) -- */
.hero__video {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--paper, #fbfaf8);
}
.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: saturate(0.92) brightness(1.02);
}
.hero__video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(251, 250, 248, 0.98) 0%,
    rgba(251, 250, 248, 0.9) 20%,
    rgba(251, 250, 248, 0.5) 42%,
    rgba(251, 250, 248, 0.14) 62%,
    rgba(251, 250, 248, 0.06) 100%);
}
.hero__video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(251, 250, 248, 0) 62%,
    rgba(251, 250, 248, 0.55) 84%,
    var(--paper, #fbfaf8) 100%);
}
.hero--video .hero__canvas-wrap { mix-blend-mode: multiply; opacity: 0.5; }

/* Fallback CSS/2D quando não há WebGL ou movimento reduzido */
.hero__fallback {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
}
.no-webgl .hero__fallback { display: block; }

.hero__fallback::before,
.hero__fallback::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
}
.hero__fallback::before {
  width: 46vw; height: 46vw;
  right: 4vw; top: 8vh;
  background: radial-gradient(circle at 35% 35%, var(--blue-500), transparent 68%);
  animation: floatA 16s var(--ease-io) infinite alternate;
}
.hero__fallback::after {
  width: 30vw; height: 30vw;
  right: 22vw; top: 34vh;
  background: radial-gradient(circle at 60% 40%, var(--orange-500), transparent 66%);
  animation: floatB 13s var(--ease-io) infinite alternate;
}
.hero__fallback-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(11, 14, 20, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 14, 20, 0.05) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 72% 45%, #000, transparent 76%);
  mask-image: radial-gradient(ellipse 70% 60% at 72% 45%, #000, transparent 76%);
}
@keyframes floatA { to { transform: translate3d(-5%, 7%, 0) scale(1.12); } }
@keyframes floatB { to { transform: translate3d(8%, -9%, 0) scale(0.9); } }

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 5vw, 3.5rem);
  flex: 1;
  justify-content: flex-end;
}

.hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  max-width: 100%;
}
.hero__eyebrow span {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  min-width: 0;
  white-space: normal;
}
.hero__eyebrow .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--orange-500);
  letter-spacing: 0;
}
.hero__eyebrow .sep {
  color: var(--line);
  letter-spacing: 0;
}

.hero__title {
  font-size: var(--step-5);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.045em;
  font-variation-settings: "wdth" 90;
  max-width: 15ch;
}
.hero__title .l {
  display: block;
  overflow: hidden;
}
.hero__title .l > span { display: block; }
.hero__title strong {
  font-weight: 700;
  font-variation-settings: "wdth" 100;
}
.hero__title .dim { color: var(--muted); }

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}

.hero__lede {
  max-width: 52ch;
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.5;
}
.hero__lede b { font-weight: 600; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ---------------------------------------------------------
   MARQUEE / TICKER
   --------------------------------------------------------- */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--paper-2);
  padding-block: 0.9rem;
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 0;
  will-change: transform;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding-inline: 1.25rem;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
}
.ticker__item::after {
  content: "";
  width: 5px; height: 5px;
  background: var(--orange-500);
  transform: rotate(45deg);
  flex: none;
}

/* ---------------------------------------------------------
   MANIFESTO / POSICIONAMENTO
   --------------------------------------------------------- */
.manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.manifesto__statement {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 3.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-variation-settings: "wdth" 92;
}
.manifesto__statement b {
  font-weight: 600;
  background: linear-gradient(100deg, var(--navy-800), var(--blue-600) 45%, var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.manifesto__statement span { color: var(--muted-2); }

.manifesto__aside { display: grid; gap: 1.75rem; }
.manifesto__aside p {
  color: var(--muted);
  font-size: var(--step-0);
  line-height: 1.65;
  max-width: 42ch;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  margin-top: clamp(3rem, 6vw, 5rem);
}
.pillar {
  background: var(--paper);
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem);
  display: grid;
  gap: 0.75rem;
  align-content: start;
  transition: background-color 0.5s var(--ease);
}
.pillar:hover { background: var(--paper-2); }
.pillar__k {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-500);
}
.pillar h3 {
  font-size: var(--step-2);
  font-weight: 500;
  font-variation-settings: "wdth" 88;
}
.pillar p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   SERVIÇOS
   --------------------------------------------------------- */
.svc {
  border-top: 1px solid var(--line);
}
.svc__row {
  border-bottom: 1px solid var(--line);
}
.svc__head {
  width: 100%;
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.4rem, 2.6vw, 2.1rem);
  text-align: left;
  transition: color 0.35s var(--ease);
}
.svc__head:hover { color: var(--orange-600); }

.svc__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
.svc__title {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.4vw, 3.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variation-settings: "wdth" 88;
}
.svc__toggle {
  position: relative;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  flex: none;
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.svc__head:hover .svc__toggle { background: var(--paper-2); }
.svc__toggle::before,
.svc__toggle::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 13px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.svc__toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc__head[aria-expanded="true"] .svc__toggle::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.svc__head[aria-expanded="true"] { color: var(--ink); }

.svc__panel {
  overflow: hidden;
  height: 0;
  transition: height 0.6s var(--ease);
}
.svc__panel-in {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-bottom: clamp(2rem, 4vw, 3.25rem);
}
.svc__desc {
  color: var(--muted);
  font-size: var(--step-0);
  line-height: 1.65;
  max-width: 40ch;
}
.svc__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.svc__list li {
  background: var(--paper);
  padding: 1rem 1.1rem;
  font-size: 0.9375rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  transition: background-color 0.35s var(--ease);
}
.svc__list li:hover { background: var(--paper-2); }
.svc__list li::before {
  content: "";
  width: 5px; height: 5px;
  margin-top: 0.55rem;
  background: var(--blue-500);
  transform: rotate(45deg);
  flex: none;
}

/* ---------------------------------------------------------
   WEB / WEBGL — seção destaque (fundo escuro pontual)
   --------------------------------------------------------- */
.web {
  background: var(--navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.web::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 78% 22%, rgba(43, 118, 232, 0.28), transparent 70%),
    radial-gradient(45% 45% at 18% 84%, rgba(242, 106, 33, 0.2), transparent 72%);
  pointer-events: none;
}
.web .sec-title,
.web .sec-num { color: #fff; }
.web .sec-num { color: var(--orange-400); }
.web .sec-lede { color: rgba(255, 255, 255, 0.62); }
.web .label { color: rgba(255, 255, 255, 0.5); }
.web .shell { position: relative; z-index: 1; }

.web__stage {
  position: relative;
  margin-top: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 420px;
}

.web__canvas {
  position: relative;
  min-height: 380px;
}
.web__canvas canvas { width: 100% !important; height: 100% !important; }

.web__canvas-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  overflow: hidden;
}
.no-webgl .web__canvas-fallback { display: grid; }
.web__canvas-fallback img {
  width: 42%;
  max-width: 220px;
  animation: spinSoft 22s linear infinite;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}
@keyframes spinSoft {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.06); }
  to { transform: rotate(360deg) scale(1); }
}

.web__copy {
  padding: clamp(1.75rem, 3.5vw, 3rem);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  align-content: center;
  gap: 1.5rem;
}
.web__copy h3 {
  font-size: var(--step-3);
  font-weight: 500;
  font-variation-settings: "wdth" 90;
}
.web__copy p {
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.65;
  max-width: 46ch;
}
.web__specs {
  display: grid;
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.web__specs li {
  background: var(--navy-900);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.85);
}
.web__specs li b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-300);
  flex: none;
}

.web__video {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}
.web__video figure {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.web__video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.web__video figcaption {
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.web__video-copy { display: grid; gap: 1.25rem; }
.web__video-copy h3 {
  font-size: var(--step-2);
  font-weight: 500;
  font-variation-settings: "wdth" 90;
}
.web__video-copy p { color: rgba(255, 255, 255, 0.66); line-height: 1.65; }

/* ---------------------------------------------------------
   PORTFÓLIO — editorial assimétrico
   --------------------------------------------------------- */
.work__featured {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: stretch;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.figbox {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.figbox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
  will-change: transform;
}
a.figbox:hover img,
.work-card:hover .figbox img { transform: scale(1.045); }

.work__featured-media { display: grid; gap: clamp(0.75rem, 1.5vw, 1.25rem); align-content: start; }
.work__featured-media > .figbox { aspect-ratio: 16 / 10; }
.work__strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.work__strip .figbox { aspect-ratio: 16 / 10; }

.figbox--dark { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); }
.web__video-copy .figbox--dark { aspect-ratio: 16 / 9; }

.work__featured-copy {
  display: grid;
  align-content: space-between;
  gap: 1.75rem;
  padding-block: 0.25rem;
}
.work__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: start;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange-600);
}
.work__featured h3 {
  font-size: var(--step-3);
  font-weight: 500;
  font-variation-settings: "wdth" 90;
  margin-bottom: 0.6rem;
}
.work__featured-sub {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.case-facts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.case-facts > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 0.9rem;
  border-bottom: 1px solid var(--line-soft);
}
.case-facts dt {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-top: 0.2rem;
}
.case-facts dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-2);
}

/* Grade assimétrica */
.work__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.6vw, 2.5rem);
}

.work-card {
  grid-column: span 6;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.work-card--wide { grid-column: span 7; }
.work-card--narrow { grid-column: span 5; }
.work-card--full { grid-column: span 12; }
.work-card--third { grid-column: span 4; }
.work-card--offset { padding-top: clamp(1.5rem, 5vw, 4.5rem); }

.work-card .figbox { aspect-ratio: 4 / 3; }
.work-card--full .figbox { aspect-ratio: 21 / 9; }
.work-card--third .figbox { aspect-ratio: 3 / 4; }

.work-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.work-card h3 {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  font-weight: 500;
  font-variation-settings: "wdth" 90;
}
.work-card__cat {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  flex: none;
}
.work-card p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 54ch;
}

.work__note {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.work__note p { color: var(--muted); font-size: 0.9375rem; max-width: 58ch; }

/* ---------------------------------------------------------
   CLIENTES
   --------------------------------------------------------- */
.clients {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
/* 12 logotipos: 6 colunas fecham exatamente 2 linhas, sem células vazias. */
.clients__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}
.clients__cell {
  background: var(--paper);
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: 1.1rem;
  transition: background-color 0.4s var(--ease);
}
.clients__cell:hover { background: #fff; }
.clients__cell img {
  max-height: 54px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.78;
  transition: filter 0.5s var(--ease), opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.clients__cell:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.05);
}

/* ---------------------------------------------------------
   PROCESSO
   --------------------------------------------------------- */
.process__list {
  border-top: 1px solid var(--line);
}
.process__item {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: clamp(1.5rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background-color 0.5s var(--ease), padding-inline 0.5s var(--ease);
}
.process__item:hover {
  background: var(--paper-2);
  padding-inline: clamp(0.5rem, 1.5vw, 1.25rem);
}
.process__n {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  font-variation-settings: "wdth" 70;
  color: var(--line);
  line-height: 1;
  transition: color 0.5s var(--ease);
}
.process__item:hover .process__n { color: var(--orange-500); }
.process__item h3 {
  font-size: var(--step-2);
  font-weight: 500;
  font-variation-settings: "wdth" 90;
}
.process__item p { color: var(--muted); line-height: 1.65; max-width: 60ch; }

/* ---------------------------------------------------------
   SOBRE
   --------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about__media { display: grid; gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.about__media .figbox { aspect-ratio: 3 / 2; }
.about__portraits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.about__portraits figure { margin: 0; display: grid; gap: 0.6rem; }
.about__portraits .figbox { aspect-ratio: 1 / 1; }
.about__portraits figcaption {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.about__portraits figcaption small {
  display: block;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.5625rem;
  color: var(--muted-2);
  margin-top: 3px;
}

.about__copy { display: grid; gap: 1.5rem; }
.about__copy p { color: var(--ink-2); line-height: 1.7; max-width: 54ch; }
.about__copy p.lead {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-variation-settings: "wdth" 92;
  color: var(--ink);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 0.75rem;
}
.about__stats div { background: var(--paper); padding: 1.25rem 1.1rem; }
.about__stats b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  font-variation-settings: "wdth" 80;
  line-height: 1;
  letter-spacing: -0.03em;
}
.about__stats span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

/* ---------------------------------------------------------
   CONTATO
   --------------------------------------------------------- */
.contact {
  background: var(--navy-900);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 60% at 12% 18%, rgba(242, 106, 33, 0.22), transparent 70%),
    radial-gradient(55% 55% at 88% 82%, rgba(26, 85, 192, 0.28), transparent 72%);
  pointer-events: none;
}
.contact .shell { position: relative; z-index: 1; }
.contact .sec-num { color: var(--orange-400); }
.contact .label { color: rgba(255, 255, 255, 0.5); }

.contact__title {
  font-size: clamp(2.4rem, 7vw, 6.5rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.045em;
  font-variation-settings: "wdth" 88;
  max-width: 16ch;
}
.contact__title em { font-style: normal; color: rgba(255, 255, 255, 0.42); }

.contact__grid {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact__channels { display: grid; gap: 1px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.14); }
.contact__channel {
  background: var(--navy-900);
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: clamp(1.1rem, 2.2vw, 1.6rem) clamp(1rem, 2vw, 1.5rem);
  transition: background-color 0.4s var(--ease);
}
.contact__channel:hover { background: rgba(255, 255, 255, 0.06); }
.contact__channel .k {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.contact__channel .v {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-variation-settings: "wdth" 92;
  word-break: break-word;
}
.contact__channel .go {
  width: 16px; height: 16px;
  flex: none;
  color: var(--orange-400);
  transition: transform 0.4s var(--ease);
}
.contact__channel:hover .go { transform: translate(3px, -3px); }

.contact__aside { display: grid; gap: 1.75rem; }
.contact__aside p { color: rgba(255, 255, 255, 0.66); line-height: 1.7; }
.contact__aside .label--paper { display: block; margin-bottom: 0.5rem; }
.contact__where {
  display: grid;
  gap: 0.4rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------------------------------------------------------
   RODAPÉ
   --------------------------------------------------------- */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer .brand__name { color: #fff; }
.footer .brand__tag { color: rgba(255, 255, 255, 0.5); }
.footer__about {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 40ch;
}
.footer__col h3 {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.1rem;
}
.footer__col li + li { margin-top: 0.6rem; }
.footer__col a { font-size: 0.9375rem; }
.footer__col a:hover { color: #fff; }

.footer__bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer__bottom p { margin: 0; }
.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer__badge i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 0 3px rgba(242, 106, 33, 0.2);
}

/* Botão flutuante WhatsApp */
.wa {
  position: fixed;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.1rem;
  border-radius: 100px;
  background: #25d366;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: 0 12px 34px rgba(8, 21, 44, 0.28);
  transform: translateY(140%);
  transition: transform 0.6s var(--ease), background-color 0.35s var(--ease);
}
.wa.is-visible { transform: translateY(0); }
.wa:hover { background: #1ebe5a; }
.wa svg { width: 17px; height: 17px; flex: none; }
