/* ---------------------------------------------------------
   Half Comunicação — site
   Font: Funnel Display (Google Fonts)
--------------------------------------------------------- */

@font-face {
  font-family: "Funnel Display";
  src: url("../fonts/FunnelDisplay-Variable.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #faf7f6;
  --ink: #000000;
  --line: #1f1f1f;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* palette sampled from the brand's gradient art */
  --mesh-orange: #f7975c;
  --mesh-coral: #ef6f86;
  --mesh-magenta: #b23f97;
  --mesh-blue: #4f7fc9;
  --mesh-indigo: #17539e;
  --mesh-cyan: #bfe6f2;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: "Funnel Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* ---------- grain overlay ---------- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- animated gradient mesh (site-wide background) ---------- */

.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--paper);
}

.blob {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--size);
  height: var(--size);
  margin: calc(var(--size) / -2) 0 0 calc(var(--size) / -2);
  border-radius: 50%;
  background: radial-gradient(circle, var(--color) 0%, transparent 70%);
  opacity: var(--o);
  filter: blur(80px);
}

.blob--a {
  --x: 25%;
  --y: 20%;
  --size: 50vmax;
  --color: var(--mesh-orange);
  --o: 0.39;
}
.blob--b {
  --x: 65%;
  --y: 15%;
  --size: 40vmax;
  --color: var(--mesh-coral);
  --o: 0.35;
}
.blob--c {
  --x: 45%;
  --y: 50%;
  --size: 58vmax;
  --color: var(--mesh-magenta);
  --o: 0.29;
}
.blob--d {
  --x: 20%;
  --y: 75%;
  --size: 46vmax;
  --color: var(--mesh-blue);
  --o: 0.35;
}
.blob--e {
  --x: 70%;
  --y: 78%;
  --size: 40vmax;
  --color: var(--mesh-indigo);
  --o: 0.34;
}
.blob--f {
  --x: 82%;
  --y: 35%;
  --size: 42vmax;
  --color: var(--mesh-cyan);
  --o: 0.39;
}

@media (prefers-reduced-motion: no-preference) {
  .blob--a {
    animation: drift-a 22s ease-in-out infinite;
  }
  .blob--b {
    animation: drift-b 26s ease-in-out infinite;
    animation-delay: -7s;
  }
  .blob--c {
    animation: drift-c 30s ease-in-out infinite;
    animation-delay: -14s;
  }
  .blob--d {
    animation: drift-d 19s ease-in-out infinite;
    animation-delay: -4s;
  }
  .blob--e {
    animation: drift-e 24s ease-in-out infinite;
    animation-delay: -17s;
  }
  .blob--f {
    animation: drift-f 17s ease-in-out infinite;
    animation-delay: -9s;
  }

  @keyframes drift-a {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(18vw, 10vh) scale(1.15); }
    50% { transform: translate(6vw, 24vh) scale(0.9); }
    75% { transform: translate(-15vw, 9vh) scale(1.05); }
  }
  @keyframes drift-b {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-17vw, 15vh) scale(0.88); }
    50% { transform: translate(-4vw, -11vh) scale(1.12); }
    75% { transform: translate(13vw, 6vh) scale(0.96); }
  }
  @keyframes drift-c {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(15vw, -17vh) scale(1.1); }
    50% { transform: translate(-11vw, -8vh) scale(0.92); }
    75% { transform: translate(-17vw, 11vh) scale(1.06); }
  }
  @keyframes drift-d {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(21vw, -11vh) scale(1.08); }
    50% { transform: translate(10vw, -23vh) scale(0.9); }
    75% { transform: translate(-9vw, -7vh) scale(1.1); }
  }
  @keyframes drift-e {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-19vw, -13vh) scale(0.92); }
    50% { transform: translate(-7vw, -25vh) scale(1.14); }
    75% { transform: translate(11vw, -9vh) scale(0.95); }
  }
  @keyframes drift-f {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(-21vw, 13vh) scale(1.12); }
    50% { transform: translate(-9vw, -15vh) scale(0.88); }
    75% { transform: translate(-19vw, 5vh) scale(1.05); }
  }
}

/* ---------- page shell ---------- */

.page {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: 1920px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4.8vw, 5.75rem);
}

/* ---------- header ---------- */

.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 3rem;
  padding-block: 1.75rem;
}

.header__logo img {
  height: 2.875rem;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 2.375rem;
}

.header__nav a {
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.35;
  text-decoration: none;
  transition: opacity 0.25s var(--ease);
}

.header__nav a:hover {
  opacity: 0.55;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin-left: auto;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 3.625rem;
  padding-inline: 1.9rem;
  border: 2px solid var(--line);
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.125;
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn-cta svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

.btn-cta:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.lang-switch-wrapper {
  position: relative;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: none;
  padding: 0.5rem 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
}

.lang-switch svg {
  width: 1.05rem;
  height: 1.05rem;
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 8.5rem;
  background: var(--paper);
  border: 1px solid rgba(31, 31, 31, 0.15);
  box-shadow: 0 12px 28px rgba(20, 20, 20, 0.08);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}

.lang-switch-wrapper:hover .lang-dropdown,
.lang-switch-wrapper:focus-within .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown .lang-option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  padding: 0.55rem 0.75rem;
  opacity: 0.6;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}

.lang-dropdown .lang-option:hover {
  background: rgba(31, 31, 31, 0.06);
}

.lang-dropdown .lang-option.is-active {
  opacity: 1;
}

/* ---------- mobile burger ---------- */

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header__burger span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* ---------- sticky header (appears once the hero header scrolls out of view) ---------- */

.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  background: rgba(250, 247, 246, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(20, 20, 20, 0.06);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.header-sticky.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.header-sticky__logo img {
  height: 2rem;
  width: auto;
}

.header-sticky__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header-sticky__burger span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* ---------- mobile menu overlay ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
}

.mobile-menu.is-open {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.45s var(--ease);
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.75rem;
}

.mobile-menu__close {
  display: inline-flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin: -0.5rem;
  color: var(--ink);
}

.mobile-menu__close svg {
  width: 1.5rem;
  height: 1.5rem;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.mobile-menu__nav a {
  font-weight: 500;
  font-size: 2.25rem;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
}

.mobile-menu__lang {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: auto;
  padding-block: 2rem;
}

.mobile-menu__lang .lang-option {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  font-weight: 500;
  font-size: 1.25rem;
  color: var(--ink);
  opacity: 0.5;
}

.mobile-menu__lang .lang-option.is-active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

/* ---------- banner ---------- */

.banner-hero-stack {
  position: relative;
}

.banner {
  position: sticky;
  top: 0;
  z-index: 1;
  height: clamp(600px, 100dvh, 1000px);
  overflow: hidden;
}

.banner__fx {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding-bottom: clamp(2rem, 6vw, 4rem);
  transform-origin: center bottom;
  will-change: transform, filter;
}

.banner__title {
  display: grid;
  margin: 0;
  font-weight: 500;
  font-size: clamp(3.5rem, 14vw, 16.875rem);
  line-height: 0.74;
  letter-spacing: -0.01em;
}

.banner__title-slot {
  grid-area: 1 / 1;
  transform-origin: center center;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.6s var(--ease), filter 0.6s var(--ease), transform 0.6s var(--ease);
}

.banner__title-slot.is-current {
  opacity: 1;
  z-index: 1;
}

.banner__title-slot.is-exiting {
  opacity: 0;
  filter: blur(12px);
  transform: scale(0.95);
  z-index: 0;
}

.banner__title-slot.no-transition {
  transition: none !important;
}

.banner__hint {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: clamp(0.5rem, 2vw, 1.25rem);
}

.banner__hint span {
  font-weight: 500;
  font-size: 1.25rem;
}

.banner__thumb {
  width: 3rem;
  height: 2.375rem;
  object-fit: cover;
  border-radius: 0.25rem;
}

/* seta se desenhando em loop: primeiro a haste, depois a ponta aparece */

.banner__arrow-stem,
.banner__arrow-tip {
  fill: none;
}

@media (prefers-reduced-motion: no-preference) {
  .banner__arrow-stem {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
    opacity: 0;
    animation: banner-arrow-stem-draw 2.6s ease-in-out infinite;
  }

  .banner__arrow-tip {
    stroke-dasharray: 12;
    stroke-dashoffset: 12;
    opacity: 0;
    animation: banner-arrow-tip-draw 2.6s ease-in-out infinite;
  }

  @keyframes banner-arrow-stem-draw {
    0% {
      stroke-dashoffset: 20;
      opacity: 0;
    }
    4% {
      opacity: 1;
    }
    35% {
      stroke-dashoffset: 0;
    }
    90% {
      stroke-dashoffset: 0;
      opacity: 1;
    }
    96%, 100% {
      opacity: 0;
    }
  }

  @keyframes banner-arrow-tip-draw {
    0%, 36% {
      stroke-dashoffset: 12;
      opacity: 0;
    }
    40% {
      opacity: 1;
    }
    55% {
      stroke-dashoffset: 0;
    }
    90% {
      stroke-dashoffset: 0;
      opacity: 1;
    }
    96%, 100% {
      opacity: 0;
    }
  }
}

/* ---------- hero video ---------- */

.hero-video {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-block: clamp(2rem, 6vw, 5rem);
}

.hero-video__frame {
  position: relative;
  width: 100%;
  height: 773px;
  overflow: hidden;
  /* fallback shown until hero-banner.mp4 loads (or if it's missing) — see memory */
  background: linear-gradient(135deg, #1c1c1e, #3a2f45 45%, #17539e 100%);
}

.hero-video__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 228px;
  height: 228px;
  transform: translate(-50%, -50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: left 0.15s ease-out, top 0.15s ease-out;
}

.hero-video__play.is-returning {
  transition: left 1.1s var(--ease), top 1.1s var(--ease);
}

.hero-video__play-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video__play-ring {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 3px solid #ffffff;
  border-radius: 50%;
  mix-blend-mode: color-dodge;
}

.hero-video__play-label {
  position: relative;
  font-family: "Funnel Display", sans-serif;
  font-weight: 400;
  font-size: 3.75rem;
  line-height: 70px;
  color: #ffffff;
  mix-blend-mode: color-dodge;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-video__play-inner {
    animation: play-float 8s ease-in-out infinite;
  }

  @keyframes play-float {
    0%, 100% { transform: translate(0, 0); }
    22% { transform: translate(7px, -5px); }
    48% { transform: translate(-6px, 6px); }
    74% { transform: translate(5px, 7px); }
    88% { transform: translate(-7px, -4px); }
  }
}

@media (min-width: 961px) {
  .hero-video__frame {
    cursor: none;
  }
}

@media (max-width: 960px) {
  .hero-video__frame {
    height: 100dvh;
  }
}

/* ---------- quem-somos ---------- */

.quem-somos {
  display: grid;
  grid-template-columns: minmax(140px, 20rem) minmax(0, 47.5rem);
  gap: clamp(2rem, 6vw, 4rem) clamp(2rem, 8vw, 6rem);
  padding-block: clamp(3rem, 8vw, 6rem);
}

.quem-somos__label {
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
}

.quem-somos__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

.quem-somos__text {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.75;
}

/* ---------- letters (marquee) ---------- */

.letters {
  overflow: hidden;
  padding-block: clamp(1.5rem, 4vw, 3rem);
}

.letters__track {
  display: flex;
  width: max-content;
}

@media (prefers-reduced-motion: no-preference) {
  .letters__track {
    animation: letters-marquee 32s linear infinite;
  }

  @keyframes letters-marquee {
    to {
      transform: translateX(-50%);
    }
  }
}

.letters__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.letters__word,
.letters__plus {
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 6.875rem);
  line-height: 1.25;
  color: rgba(0, 0, 0, 0.1);
  white-space: nowrap;
  padding-inline: 0.3em;
}

/* ---------- Serviços ---------- */

.servicos {
  display: flex;
  flex-direction: column;
  padding-bottom: clamp(2rem, 6vw, 4rem);
}

.servicos__card {
  position: sticky;
  top: 0;
  display: block;
  height: clamp(26rem, 55vw, 45rem);
  padding: clamp(2rem, 5vw, 4.25rem) clamp(1.5rem, 4vw, 3.25rem);
  color: #ffffff;
  text-decoration: none;
  overflow: hidden;
}

.servicos__card:nth-of-type(1) {
  background: #111111;
  z-index: 1;
}

.servicos__card:nth-of-type(2) {
  background: #161616;
  z-index: 2;
}

.servicos__card:nth-of-type(n + 3) {
  background: #111111;
}

.servicos__card:nth-of-type(even):nth-of-type(n + 3) {
  background: #161616;
}

.servicos__card:nth-of-type(3) { z-index: 3; }
.servicos__card:nth-of-type(4) { z-index: 4; }
.servicos__card:nth-of-type(5) { z-index: 5; }
.servicos__card:nth-of-type(6) { z-index: 6; }

.servicos__title {
  margin: 0;
  max-width: 33rem;
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 4.375rem);
  line-height: 0.87;
}

.servicos__text {
  margin: 0;
  max-width: 46rem;
  font-weight: 400;
  font-size: clamp(1.125rem, 2.2vw, 2rem);
  line-height: 1.53;
  position: absolute;
  left: clamp(1.5rem, 4vw, 3.25rem);
  bottom: clamp(2rem, 5vw, 4.25rem);
}

.servicos__icon {
  position: absolute;
  top: clamp(2rem, 5vw, 4.25rem);
  right: clamp(1.5rem, 4vw, 3.25rem);
  display: inline-flex;
  width: 2.7rem;
  height: 2.7rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.servicos__card:hover .servicos__icon {
  background: #ffffff;
  color: #111111;
}

.servicos__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

/* ---------- Fale ---------- */

.fale {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.fale__text {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  max-width: 66.5rem;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.75;
}

/* ---------- cases ---------- */

.cases {
  overflow: hidden;
  padding-block: clamp(2rem, 6vw, 4rem);
}

.cases__row {
  display: flex;
}

.cases__row--intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.cases__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.cases__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.375rem);
  line-height: 1;
}

.cases__desc {
  margin: 0;
  max-width: 26rem;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
}

.cases__row--right,
.cases__row--left {
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1rem, 3vw, 2rem);
  overflow: hidden;
}

.cases__row--right {
  justify-content: flex-start;
}

.cases__row--left {
  justify-content: flex-end;
}

.cases__item {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  width: 50%;
}

.cases__row--intro .cases__item {
  width: 100%;
}

.cases__thumb {
  display: block;
  width: 100%;
  height: 600px;
  background: linear-gradient(135deg, var(--mesh-orange), var(--mesh-coral) 45%, var(--mesh-magenta));
}

/* item "bleed": só a IMAGEM cresce pra 70% da linha (140% da coluna de 50%)
   e vaza pra fora do .container, cortada pelo overflow:hidden da linha —
   o item em si (e o título/legenda abaixo) continua na coluna de 50%,
   sempre dentro da tela. Na linha da esquerda a imagem cresce pra fora
   pelo lado esquerdo (margin-left negativa); na da direita, pelo lado
   direito (crescimento natural do bloco, sem precisar de margem). */
.cases__item--bleed .cases__thumb {
  width: 140%;
}

.cases__row--left .cases__item--bleed .cases__thumb {
  margin-left: -40%;
}

.cases__thumb--b {
  background: linear-gradient(135deg, var(--mesh-blue), var(--mesh-indigo));
}

.cases__thumb--c {
  background: linear-gradient(135deg, var(--mesh-cyan), var(--mesh-blue));
}

.cases__thumb--d {
  background: linear-gradient(135deg, var(--mesh-magenta), var(--mesh-indigo));
}

.cases__thumb--e {
  background: linear-gradient(135deg, var(--mesh-coral), var(--mesh-orange));
}

.cases__caption {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: clamp(1.125rem, 2vw, 1.75rem);
  line-height: 1.75;
}

.cases__caption strong {
  font-weight: 500;
}

.cases__caption span {
  font-weight: 300;
}

/* ---------- depoimentos ---------- */

.depoimentos {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.depoimentos__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.depoimentos__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.depoimentos__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.375rem);
  line-height: 1;
}

.depoimentos__desc {
  margin: 0;
  max-width: 25rem;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
}

.depoimentos__slider {
  position: relative;
  min-width: 0;
}

.depoimentos__track {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.depoimentos__track::-webkit-scrollbar {
  display: none;
}

.depoimentos__card {
  scroll-snap-align: start;
  flex: 0 0 min(88vw, 39.3rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  background: #ffffff;
  padding: clamp(1.5rem, 3vw, 2.75rem);
}

.depoimentos__byline {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.depoimentos__avatar {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--mesh-orange), var(--mesh-magenta));
}

.depoimentos__who {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.depoimentos__who strong {
  font-weight: 600;
  font-size: 1.75rem;
}

.depoimentos__who span {
  font-weight: 300;
  font-size: 1.75rem;
}

.depoimentos__quote {
  margin: 0;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
}

/* ---------- reusable slider nav ---------- */

.slider-nav {
  display: flex;
  gap: 0.75rem;
}

.slider-nav__btn {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.slider-nav__btn:hover {
  background: var(--ink);
  color: var(--paper);
}

.slider-nav__btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

.slider-nav__btn--prev svg {
  transform: rotate(-135deg);
}

.slider-nav__btn--next svg {
  transform: rotate(45deg);
}

/* ---------- reusable logo card ---------- */

.logo-card {
  aspect-ratio: 413 / 251;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.logo-card__placeholder {
  font-weight: 400;
  font-size: 1.05rem;
  color: rgba(20, 20, 20, 0.35);
  text-align: center;
}

/* ---------- clientes ---------- */

.clientes {
  padding-block: clamp(2rem, 6vw, 4rem);
}

.clientes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

/* ---------- partners ---------- */

.partners {
  padding-block: clamp(2rem, 6vw, 4rem);
}

.partners__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.partners__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.partners__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.375rem);
  line-height: 1;
}

.partners__desc {
  margin: 0;
  max-width: 25rem;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
}

.partners__slider {
  min-width: 0;
}

.partners__track {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.partners__track::-webkit-scrollbar {
  display: none;
}

.partners__card {
  scroll-snap-align: start;
  flex: 0 0 min(70vw, 25.8125rem);
}

/* ---------- insights ---------- */

.insights {
  padding-block: clamp(2rem, 6vw, 4rem);
}

.insights__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.insights__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.375rem);
  line-height: 1;
}

.insights__desc {
  margin: 0;
  flex: 1 1 20rem;
  max-width: 40.25rem;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 1.25;
}

.insights__cta {
  margin-left: auto;
}

.insights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

.insights__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 559 / 602;
  background: linear-gradient(150deg, var(--mesh-indigo), var(--mesh-magenta) 55%, var(--mesh-coral));
}

.insights__card:nth-child(2) .insights__thumb {
  background: linear-gradient(150deg, var(--mesh-blue), var(--mesh-cyan));
}

.insights__card:nth-child(3) .insights__thumb {
  background: linear-gradient(150deg, var(--mesh-orange), var(--mesh-coral) 60%, var(--mesh-magenta));
}

.insights__card a{
  text-decoration: none;
}

.insights__caption {
  margin: 1.5rem 0 0;
  font-weight: 400;
  font-size: 1.8125rem;
  line-height: 1.25;
}

/* ---------- talk (mesh CTA) ---------- */

.talk {
  padding-block: clamp(2rem, 6vw, 4rem);
}

.talk__card {
  position: relative;
  overflow: hidden;
  min-height: clamp(24rem, 45vw, 45rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 4vw, 3rem);
}

.talk__mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.75;
}

.talk__title,
.talk__cta {
  position: relative;
  z-index: 1;
}

.talk__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.25rem, 5vw, 4.375rem);
  line-height: 0.87;
  max-width: 44rem;
}

.talk__cta {
  border-color: #000000;
}

/* ---------- footer ---------- */

.site-footer {
  padding-block: clamp(3rem, 8vw, 6rem);
  padding-top: 0;
}

.site-footer__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  font-weight: 500;
  font-size: 1.25rem;
  justify-content: center;
  margin: clamp(2rem, 6vw, 2rem) 0;
}

.site-footer__contact a {
  text-decoration: none;
}

.site-footer__social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.site-footer__social img {
  width: 1.25rem;
  height: 1.25rem;
}

.site-footer__wordmark {
  margin: clamp(2rem, 4vw, 2rem) 0;
  font-weight: 500;
  font-size: clamp(1.75rem, 10vw, 13.3125rem);
  line-height: 1.25;
  text-align: center;
  color: #141414;
  white-space: nowrap;
  overflow-wrap: break-word;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-weight: 400;
  font-size: 0.875rem;
}

.site-footer__privacy {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  color: var(--ink);
}

.site-footer__privacy svg {
  width: 0.75rem;
  height: 0.75rem;
}

.site-footer__copyright::before {
  content: "•";
  margin-right: 1rem;
  opacity: 0.5;
}

/* ---------- entrance motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .header,
  .banner__title,
  .banner__hint {
    animation: rise 0.8s var(--ease) both;
  }
  .header {
    animation-delay: 0s;
  }
  .banner__title {
    animation-delay: 0.1s;
  }
  .banner__hint {
    animation-delay: 0.25s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* ---------- page hero (Serviço, Cases, Sobre) ---------- */

.page-hero {
  padding-block: clamp(7rem, 14vw, 11rem) clamp(2.5rem, 6vw, 4rem);
}

.page-hero__title {
  margin: 0 0 clamp(1.25rem, 3vw, 2rem);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.375rem);
  line-height: 1;
}

.page-hero__text {
  margin: 0;
  max-width: 46rem;
  font-weight: 400;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.6;
  white-space: pre-line;
}

/* ---------- sobre: sócios (2 imagens 50/50) + texto centralizado ---------- */

.sobre-socios {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding-block: clamp(2rem, 6vw, 4rem);
}

.sobre-socios__item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sobre-socios__photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--mesh-orange), var(--mesh-coral) 45%, var(--mesh-magenta));
}

.sobre-socios__name {
  margin: 0;
  font-weight: 500;
  font-size: 1.25rem;
}

.sobre-text-centered {
  max-width: 48rem;
  margin: 0 auto;
  padding-block: clamp(2rem, 6vw, 4rem);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.5;
  text-align: center;
  white-space: pre-line;
}

.sobre-centered-block {
  max-width: 60rem;
  margin: 0 auto;
  padding-block: clamp(2rem, 6vw, 4rem);
  text-align: center;
}

.sobre-centered-block__title {
  margin: 0 0 1rem;
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.sobre-centered-block__text {
  margin: 0;
  font-weight: 400;
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.5;
  white-space: pre-line;
}

/* ---------- case grid (reused on Cases index + Serviço page) ---------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  padding-block: clamp(2rem, 6vw, 4rem);
}

.case-grid__item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  color: var(--ink);
}

.case-grid__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--mesh-orange), var(--mesh-coral) 45%, var(--mesh-magenta));
}

.case-grid__caption {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 1.05rem;
}

.case-grid__caption strong {
  font-weight: 500;
}

.case-grid__caption span {
  font-weight: 300;
  opacity: 0.7;
}

/* ---------- case detail: content builder blocks ---------- */

.case-content {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 6vw, 5rem);
  margin-top: clamp(3rem, 6vw, 5rem);
}

.case-block--text {
  width: 100%;
}

.case-block--text--centered {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.case-block--text__title {
  margin: 0 0 1rem;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.case-block--text__body {
  font-size: 1.25rem;
  line-height: 1.75;
}

.case-block--image img {
  display: block;
  width: 100%;
  height: auto;
}

.case-block--two-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.case-block--two-images img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-block--youtube {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.case-block--youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- service page: full-screen case stack ---------- */

.service-stack {
  position: relative;
}

.service-stack__card {
  position: sticky;
  top: 0;
  z-index: var(--i, 1);
  height: 100dvh;
  overflow: hidden;
  background-color: #111111;
  background-size: cover;
  background-position: center;
}

.service-stack__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.15) 45%, rgba(0, 0, 0, 0.35) 100%);
}

/*
 * Content is pushed down with padding-top instead of being bottom-anchored
 * (flex align-items:flex-end / position:absolute+bottom / grid align-content:end
 * all corrupt paint for a bottom-edge-anchored descendant of a position:sticky
 * ancestor in this environment's Chromium — the element still lays out and
 * reports correct rects, it just never gets painted. padding-top sidesteps it
 * entirely by keeping everything anchored from the top.
 */
.service-stack__link {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding-inline: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: clamp(2rem, 6vw, 4.5rem);
  padding-top: clamp(16rem, 58dvh, 44rem);
  color: #ffffff;
  text-decoration: none;
}

.service-stack__tag {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 400;
  font-size: 1.05rem;
  opacity: 0.8;
}

.service-stack__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  max-width: 40rem;
}

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .header__nav,
  .header__actions {
    display: none;
  }

  .header__burger {
    display: flex;
  }

  .quem-somos {
    grid-template-columns: 1fr;
  }

  .servicos__card {
    height: auto;
    min-height: 26rem;
    padding-top: 5rem;
  }

  .servicos__text {
    position: static;
    margin-top: 1.5rem;
  }

  .cases__row--intro {
    grid-template-columns: 1fr;
  }

  .depoimentos__layout,
  .partners__layout {
    grid-template-columns: 1fr;
  }

  .sobre-socios {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin-inline: auto;
  }

  .cases__row--right,
  .cases__row--left {
    flex-direction: column;
  }

  .cases__item--bleed .cases__thumb,
  .cases__row--left .cases__item--bleed .cases__thumb {
    width: 100%;
    margin-left: 0;
  }

  .cases__item {
    width: 100%;
  }

  .clientes__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .insights__grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin-inline: auto;
  }

  .insights__cta {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .header {
    gap: 1rem;
  }

  .banner__hint {
    justify-content: flex-start;
  }

  .case-grid {
    grid-template-columns: 1fr;
    max-width: 26rem;
    margin-inline: auto;
  }

  .case-block--two-images {
    grid-template-columns: 1fr;
  }
}
