/* ==========================================================================
   BORA BRANDING — estilos
   ========================================================================== */

@font-face {
  font-family: "Bora Display";
  src: local("Franklin Gothic Heavy"), local("FranklinGothic-Heavy"), local("ITC Franklin Gothic Std Heavy");
  font-weight: 900;
}
@font-face {
  font-family: "Bora Display";
  src: local("Franklin Gothic Heavy Italic"), local("FranklinGothic-HeavyItalic"), local("ITC Franklin Gothic Std Heavy Italic");
  font-weight: 900;
  font-style: italic;
}

:root {
  --verde: #17382a;
  --verde-escuro: #0f271d;
  --verde-claro: #24503d;
  --vermelho: #e04a2c;
  --vermelho-escuro: #c63e23;
  --creme: #f4eee3;
  --creme-2: #ebe3d4;
  --tinta: #10251b;
  --branco: #fffdf8;

  --f-titulo: "franklin-gothic-urw", "Bora Display", "Libre Franklin", "Franklin Gothic Medium", Arial Black, sans-serif;
  --f-texto: "Montserrat", system-ui, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 18px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--vermelho); color: var(--branco); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Tipografia estourada -------------------------------------------------- */
.display {
  font-family: var(--f-titulo);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.88;
  text-transform: lowercase;
  margin: 0;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--vermelho);
}
.pill {
  display: inline-block;
  padding: 0.35em 1em;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.red { color: var(--vermelho); }

/* Botões --------------------------------------------------------------- */
.btn {
  --bg: var(--vermelho);
  --fg: var(--branco);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  padding: 1em 1.6em;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.4s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tinta);
  border-radius: inherit;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px) rotate(-45deg); }
.btn--ghost { --bg: transparent; --fg: currentColor; border: 1.5px solid currentColor; }
.btn--ghost::before { background: var(--vermelho); }
.btn--ghost:hover { color: var(--branco); border-color: var(--vermelho); }
.btn--creme { --bg: var(--creme); --fg: var(--tinta); }
.btn--creme:hover { color: var(--creme); }
.btn--creme::before { background: var(--vermelho); }

:focus-visible { outline: 2px solid var(--vermelho); outline-offset: 3px; }

/* Cursor --------------------------------------------------------------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--vermelho);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: normal;
  transition: width 0.35s var(--ease), height 0.35s var(--ease), margin 0.35s var(--ease), background 0.3s;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--branco);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cursor span { opacity: 0; transition: opacity 0.2s; }
.cursor.is-big { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
.cursor.is-big span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* Intro ---------------------------------------------------------------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--verde);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.intro img { width: min(46vw, 280px); }
.no-js .intro { display: none; }

/* Header --------------------------------------------------------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: transform 0.5s var(--ease), background 0.4s, padding 0.4s;
}
.header.is-scrolled { background: rgba(244, 238, 227, 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-block: 12px; }
.header.is-hidden { transform: translateY(-110%); }
.header__logo { display: block; width: 96px; flex: none; }
.header__logo img { width: 100%; }
.header__logo .logo-claro { display: none; }
.header.on-dark:not(.is-scrolled) .logo-claro { display: block; }
.header.on-dark:not(.is-scrolled) .logo-escuro { display: none; }
.header.on-dark:not(.is-scrolled) { color: var(--creme); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); }
.nav > a, .nav__drop > button {
  position: relative;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav > a::after, .nav__drop > button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--vermelho);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav > a:hover::after, .nav__drop:hover > button::after, .nav__drop.is-open > button::after { transform: scaleX(1); transform-origin: left; }
.nav__drop { position: relative; }
.nav__drop svg { transition: transform 0.3s var(--ease); }
.nav__drop.is-open svg, .nav__drop:hover svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 320px;
  padding: 10px;
  background: var(--verde);
  color: var(--creme);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(16, 37, 27, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -8px);
  transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0.3s;
}
.nav__menu::before { content: ""; position: absolute; inset: -14px 0 auto 0; height: 14px; }
.nav__drop:hover .nav__menu, .nav__drop.is-open .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.25s;
}
.nav__menu a small { opacity: 0.55; font-weight: 500; font-size: 12px; white-space: nowrap; }
.nav__menu a:hover { background: var(--verde-claro); }
.nav__menu a:hover small { color: var(--vermelho); opacity: 1; }

.header__cta { flex: none; padding: 0.8em 1.3em; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--tinta); position: relative; flex: none; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--creme); transition: transform 0.4s var(--ease), top 0.4s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--verde);
  color: var(--creme);
  padding: 100px var(--gutter) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: circle(0% at calc(100% - 40px) 40px);
  transition: clip-path 0.8s var(--ease);
  overflow-y: auto;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 40px) 40px); }
.menu-open .header { color: var(--creme); background: transparent; backdrop-filter: none; }
.menu-open .header .logo-claro { display: block; }
.menu-open .header .logo-escuro { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav > a {
  font-family: var(--f-titulo);
  font-weight: 900;
  font-size: clamp(36px, 10vw, 64px);
  text-transform: lowercase;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-decoration: none;
}
.mobile-menu .sub { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.mobile-menu .sub a { text-decoration: none; }
.mobile-menu__foot { display: grid; gap: 6px; font-size: 14px; margin-top: 32px; }
.mobile-menu__foot a { text-decoration: none; }

@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; }
}

/* Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 100px;
  overflow: hidden;
  color: var(--creme);
  background: var(--tinta);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transform: scale(1.08); will-change: transform; }
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(10, 25, 18, 0.62) 0%, rgba(10, 25, 18, 0.42) 60%, rgba(10, 25, 18, 0.6) 100%),
    linear-gradient(180deg, rgba(10, 25, 18, 0.35) 0%, rgba(10, 25, 18, 0) 25%);
}
.hero__content { position: relative; z-index: 2; }
.hero__title { font-size: clamp(54px, 10.5vw, 190px); margin-inline: auto; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__title { font-style: italic; }
.hero__title em { font-style: inherit; color: inherit; }
.hero__sub { margin-top: clamp(18px, 2.4vw, 32px); display: flex; flex-direction: column; align-items: center; gap: clamp(22px, 3vw, 36px); }
.hero__kicker.display { font-size: clamp(24px, 3vw, 48px); max-width: none; line-height: 0.95; margin: 0; }
.hero__kicker.display { font-style: italic; }
.hero__kicker em { font-style: inherit; color: var(--vermelho); }
.hero__scroll { position: absolute; z-index: 2; left: 50%; margin-left: -14px; bottom: 32px; width: 28px; height: 46px; border: 2px solid rgba(244, 238, 227, 0.7); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--creme); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@media (max-width: 760px) {
  .hero { min-height: 0; padding: 150px 0 96px; }
  .hero__kicker.display { max-width: 14ch; }
  .hero__bg img { object-position: 55% 50%; }
  .hero__scroll { display: none; }
}

/* Seções --------------------------------------------------------------- */
.section { padding: clamp(80px, 12vw, 180px) 0; position: relative; }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); }
.section__title { font-size: clamp(52px, 9vw, 150px); }
.section__title--md { font-size: clamp(44px, 6.4vw, 110px); max-width: 14ch; }

.reveal { opacity: 0; transform: translateY(40px); }
.no-js .reveal, .reduced .reveal { opacity: 1; transform: none; }

/* Quem somos ----------------------------------------------------------- */
.about { background: var(--verde); color: var(--creme); overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: end; }
.about__grid .eyebrow { margin-bottom: 18px; }
.about__big { font-size: clamp(42px, 6vw, 96px); }
.about__big .red { color: var(--vermelho); }
.about__text p { margin: 0 0 1em; font-size: clamp(16px, 1.25vw, 19px); }
.about__text p:last-child { margin-bottom: 0; }
.about__text strong { color: var(--vermelho); }
.about__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: clamp(40px, 6vw, 80px);
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid rgba(244, 238, 227, 0.25);
}
.about__stats > div { display: grid; gap: 6px; }
.about__stats b { font-family: var(--f-titulo); font-weight: 900; font-size: clamp(40px, 5vw, 84px); line-height: 1; letter-spacing: -0.03em; }
.about__stats span { font-size: 13px; opacity: 0.75; }
.about__stats b span { font-size: inherit; opacity: 1; }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; row-gap: 28px; }
}

.reel { margin-top: clamp(48px, 6vw, 88px); }
.reel__track {
  display: flex;
  gap: clamp(10px, 1.2vw, 18px);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 0 var(--gutter);
  scroll-padding: 0 var(--gutter);
  cursor: grab;
  outline: none;
}
.reel__track::-webkit-scrollbar { display: none; }
.reel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reel__track.is-dragging * { pointer-events: none; }
.reel__item { flex: none; margin: 0; height: clamp(300px, 36vw, 520px); border-radius: var(--radius); overflow: hidden; background: var(--verde-claro); scroll-snap-align: start; }
.reel__item img, .reel__item video { height: 100%; width: 100%; max-width: none; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.reel__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 24px; }
.reel__nav { display: flex; align-items: center; gap: 10px; }
.reel__btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid rgba(244, 238, 227, 0.5); color: var(--creme); font-size: 18px; transition: background 0.3s, border-color 0.3s; }
.reel__btn:hover { background: var(--vermelho); border-color: var(--vermelho); }
.reel__progress { width: clamp(80px, 14vw, 200px); height: 2px; background: rgba(244, 238, 227, 0.2); margin-left: 10px; position: relative; overflow: hidden; }
.reel__progress span { position: absolute; inset: 0; background: var(--vermelho); transform-origin: left; transform: scaleX(0.1); }
@media (max-width: 760px) { .reel__item { height: 62vw; min-height: 280px; } .reel__progress { display: none; } }

/* O que fazemos -------------------------------------------------------- */
.services__list { border-top: 1.5px solid var(--tinta); }
.service {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1.3fr 1fr auto;
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
  padding: clamp(24px, 3vw, 44px) clamp(16px, 2.2vw, 36px);
  border-bottom: 1.5px solid var(--tinta);
  overflow: hidden;
  isolation: isolate;
  text-decoration: none;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--verde);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--ease);
  z-index: -1;
}
.service:hover::before { transform: scaleY(1); }
.service:hover { color: var(--creme); }
.service__num { font-weight: 700; font-size: 14px; color: var(--vermelho); align-self: start; padding-top: 0.8em; }
.service__name { font-size: clamp(44px, 6.5vw, 112px); transition: transform 0.6s var(--ease); }
.service:hover .service__name { transform: translateX(14px); }
.service__desc { margin: 0; max-width: 40ch; }
.service .btn { --bg: var(--tinta); --fg: var(--creme); }
.service .btn::before { background: var(--vermelho); }
.service:hover .btn { --bg: var(--creme); --fg: var(--tinta); }
.service:hover .btn:hover { color: var(--creme); }

.service-preview {
  position: fixed;
  top: 0; left: 0;
  width: clamp(200px, 18vw, 300px);
  aspect-ratio: 4/5;
  border-radius: 14px;
  overflow: hidden;
  pointer-events: none;
  z-index: 50;
  opacity: 0;
  scale: 0.6;
  transition: opacity 0.3s, scale 0.5s var(--ease);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.5);
}
.service-preview.is-on { opacity: 1; scale: 1; }
.service-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.35s; }
.service-preview img.is-on { opacity: 1; }
@media (hover: none), (max-width: 860px) { .service-preview { display: none; } }

@media (max-width: 860px) {
  .service { grid-template-columns: 1fr; gap: 12px; padding: 28px 16px; }
  .service__num { padding: 0; }
  .service .btn { justify-self: start; margin-top: 6px; }
}

/* Clientes ------------------------------------------------------------- */
.clients { background: var(--verde); color: var(--creme); overflow: hidden; padding-bottom: clamp(64px, 8vw, 120px); }
.clients__row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(244, 238, 227, 0.2);
}
.client {
  display: grid;
  place-items: center;
  min-height: clamp(150px, 16vw, 240px);
  padding: 24px;
  border-bottom: 1px solid rgba(244, 238, 227, 0.2);
  transition: opacity 0.45s var(--ease);
}
.client:not(:nth-child(3n + 1)) { border-left: 1px solid rgba(244, 238, 227, 0.2); }
.client img { width: auto; max-width: 100%; object-fit: contain; transition: transform 0.6s var(--ease); }
.clients__row:hover .client { opacity: 0.35; }
.clients__row .client:hover { opacity: 1; }
.client:hover img, .client:hover .client__name { transform: scale(1.08); }
.client__name { font-family: var(--f-titulo); font-weight: 900; font-size: clamp(26px, 2.8vw, 44px); letter-spacing: -0.02em; text-transform: lowercase; text-align: center; line-height: 0.95; transition: transform 0.6s var(--ease); }
@media (max-width: 760px) {
  .clients__row { grid-template-columns: 1fr 1fr; }
  .client:nth-child(n) { border-left: 0; }
  .client:nth-child(even) { border-left: 1px solid rgba(244, 238, 227, 0.2); }
  .client { min-height: 120px; }
}

/* Cases ---------------------------------------------------------------- */
.cases { background: var(--creme); color: var(--tinta); }
.cases__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 24px); }
.case {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--verde);
  color: var(--creme);
  text-align: left;
  min-height: 100%;
}
.case__media { position: relative; display: block; width: 100%; aspect-ratio: 4/5; overflow: hidden; background: var(--verde-claro); cursor: pointer; }
.case__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; transition: transform 1s var(--ease); }
.case__awards { z-index: 2; }
.case:hover .case__media img { transform: scale(1.06); }
.case__logo { position: absolute; left: 20px; bottom: 20px; width: 45%; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5)); }
.case__awards { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.award {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--creme);
  color: var(--tinta);
}
.award i { width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, #f3e2a0, #c99a2e); }
.award--prata i { background: linear-gradient(135deg, #f1f1f1, #9ba3a8); }
.case__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case__body h3 { font-size: clamp(30px, 2.8vw, 46px); }
.case__body p { margin: 0; font-size: 14.5px; opacity: 0.85; }
.case__body .case__subtitle { font-weight: 700; font-size: 16px; opacity: 1; margin-top: -4px; }
.modal__subtitle { margin: 10px 0 0; font-weight: 700; font-size: clamp(17px, 1.5vw, 22px); }
.project__info p + p { margin-top: 1em; }
.case__body .btn { margin-top: auto; align-self: flex-start; }
.cases__intro { margin: 0; white-space: nowrap; }
@media (max-width: 760px) { .cases__intro { white-space: normal; } }
.display.manter-caixa { text-transform: none; }
.case__media--contain img { object-fit: contain; background: #fff; }
.case--soon .case__media { display: grid; place-items: center; background: repeating-linear-gradient(-45deg, var(--verde-claro) 0 14px, var(--verde) 14px 28px); }
.case--soon .case__media span { font-family: var(--f-titulo); font-weight: 900; font-size: clamp(36px, 4vw, 64px); text-transform: lowercase; letter-spacing: -0.03em; color: var(--creme); opacity: 0.9; }
@media (max-width: 960px) {
  .cases__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82vw, 420px); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 8px; scrollbar-width: none; }
  .cases__grid::-webkit-scrollbar { display: none; }
  .cases__grid { scroll-padding-inline: var(--gutter); }
  .case { scroll-snap-align: start; }
  .case__body { padding: 26px 24px 30px; gap: 12px; }
  .case__body .pill { white-space: normal; line-height: 1.4; max-width: 100%; }
  .case__awards { top: 18px; left: 18px; right: 18px; }
}

/* Dialog do case ------------------------------------------------------- */
.modal {
  width: min(1100px, 100% - 24px);
  max-height: calc(100svh - 24px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--creme);
  color: var(--tinta);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(10, 25, 18, 0.75); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn 0.6s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(40px) scale(0.98); } }
.modal__close {
  position: sticky;
  top: 14px;
  margin: 14px 14px -58px auto;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--tinta);
  color: var(--creme);
  z-index: 3;
  font-size: 20px;
}
.modal__hero { position: relative; aspect-ratio: 16/8; background: var(--verde); overflow: hidden; }
.modal__hero img.bg { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.modal__hero .case__logo { width: min(260px, 40%); left: clamp(20px, 4vw, 48px); bottom: clamp(20px, 4vw, 40px); }
.modal__body { padding: clamp(24px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(24px, 5vw, 64px); }
.modal__body h3 { font-size: clamp(40px, 5vw, 76px); }
.modal__awards { display: grid; gap: 10px; margin-top: 24px; }
.modal__awards .award { font-size: 14px; padding: 0.85em 1.2em; background: var(--tinta); color: var(--creme); border-radius: 12px; }
.modal__awards .award i { width: 14px; height: 14px; flex: none; }
.case__awards .award { font-size: 12.5px; padding: 0.55em 1em; box-shadow: 0 6px 20px -8px rgba(0,0,0,.5); }
.modal__text p { margin: 0 0 1em; }
.modal__text p:first-child { font-size: 1.15em; font-weight: 600; }
.modal__gallery { columns: 3; column-gap: 10px; padding: 0 clamp(24px, 5vw, 64px) clamp(24px, 5vw, 64px); }
.modal__gallery img { border-radius: 12px; width: 100%; height: auto; margin-bottom: 10px; break-inside: avoid; }
@media (max-width: 760px) {
  .modal__body { grid-template-columns: 1fr; }
  .modal__hero { aspect-ratio: 4/3; }
  .modal__gallery { columns: 2; }
}

/* CTA ------------------------------------------------------------------ */
.cta {
  background: var(--vermelho);
  color: var(--creme);
  text-align: center;
  overflow: hidden;
  padding: clamp(100px, 14vw, 220px) 0;
}
.cta__title { font-size: clamp(72px, 19vw, 340px); line-height: 0.82; }
.cta__title span { display: inline-block; }
.cta p { margin: clamp(20px, 3vw, 40px) auto; max-width: 42ch; font-weight: 500; font-size: clamp(16px, 1.3vw, 20px); }
.cta .btn { margin-top: clamp(32px, 4vw, 56px); --bg: var(--creme); --fg: var(--tinta); font-size: 16px; padding: 1.15em 2em; }
.cta .btn::before { background: var(--tinta); }
.cta .btn:hover { color: var(--creme); }

/* Footer --------------------------------------------------------------- */
.footer { background: var(--verde); color: var(--creme); padding: clamp(56px, 7vw, 96px) 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; align-items: start; }
.footer__logo { width: 150px; }
.footer h4 { margin: 0 0 14px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; font-weight: 600; }
.footer__links { display: grid; gap: 8px; }
.footer__links a { text-decoration: none; font-weight: 600; font-size: clamp(16px, 1.4vw, 20px); width: fit-content; background: linear-gradient(var(--vermelho), var(--vermelho)) 0 100% / 0 2px no-repeat; transition: background-size 0.4s var(--ease); }
.footer__links a:hover { background-size: 100% 2px; }
.footer__bottom { margin-top: 64px; padding-top: 20px; border-top: 1px solid rgba(244, 238, 227, 0.2); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; opacity: 0.7; }
.wa-btn { display: inline-flex; margin-top: 14px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr; } }

/* WhatsApp flutuante --------------------------------------------------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s var(--ease);
}
.menu-open .wa-float { opacity: 0; pointer-events: none; }
.wa-float:hover { transform: scale(1.1) rotate(-8deg); }
.wa-float svg { width: 28px; height: 28px; }

/* ==========================================================================
   PÁGINA DE PORTFÓLIO
   ========================================================================== */
.pf { min-height: 100svh; padding-top: 86px; }
.pf__top { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(20px, 3vw, 36px); }
.pf__crumb { font-size: 13px; font-weight: 600; text-decoration: none; opacity: 0.7; }
.pf__crumb:hover { color: var(--vermelho); opacity: 1; }
.pf__title { font-size: clamp(56px, 10vw, 170px); margin-top: 10px; }
.pf__intro { max-width: 52ch; margin: 18px 0 0; font-weight: 500; }

.pf__tabs {
  position: sticky;
  top: 70px;
  z-index: 40;
  background: var(--creme);
  border-bottom: 1.5px solid var(--tinta);
}
.pf__tabs-inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.pf__tabs-inner::-webkit-scrollbar { display: none; }
.pf__tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.7em 1.2em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.pf__tab sup { font-size: 10px; opacity: 0.6; }
.pf__tab:hover { border-color: var(--tinta); }
.pf__tab[aria-selected="true"] { background: var(--tinta); color: var(--creme); }

.pf__layout { display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 64px); padding-top: clamp(24px, 3vw, 44px); padding-bottom: 80px; align-items: start; }
.pf__side { position: sticky; top: 150px; }
.pf__side h2 { margin: 0 0 12px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; }
.pf__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(16, 37, 27, 0.2); counter-reset: pf; }
.pf__list li { counter-increment: pf; }
.pf__list a {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(16, 37, 27, 0.2);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  transition: color 0.3s, padding 0.4s var(--ease);
}
.pf__list a::before { content: counter(pf, decimal-leading-zero); font-size: 11px; font-weight: 600; opacity: 0.5; }
.pf__list a::after { content: "→"; opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.4s var(--ease); }
.pf__list a:hover { padding-left: 10px; color: var(--vermelho); }
.pf__list a:hover::after, .pf__list a[aria-current="true"]::after { opacity: 1; transform: none; }
.pf__list a[aria-current="true"] { color: var(--vermelho); }
.pf__list a small { display: block; font-size: 12px; font-weight: 500; opacity: 0.6; color: var(--tinta); }

.pf__clients-mobile { display: none; }

.project { min-width: 0; }
.project__head { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: end; padding-bottom: 24px; border-bottom: 1.5px solid var(--tinta); }
.project__client { font-size: clamp(48px, 7vw, 120px); }
.project__subtitle { margin: 12px 0 0; font-size: clamp(17px, 1.4vw, 21px); font-weight: 600; }
.project__meta { text-align: right; font-size: 13px; display: grid; gap: 6px; justify-items: end; }
.project__meta .award { background: var(--tinta); color: var(--creme); }
.project__info { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 4vw, 56px); padding: 28px 0 36px; }
.project__info p { margin: 0; font-size: clamp(15px, 1.15vw, 18px); }
.project__tags { display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.project__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.project__links a { font-size: 13px; padding: 0.75em 1.2em; }

.gallery { display: grid; gap: clamp(10px, 1.2vw, 18px); }
.gallery + .gallery { margin-top: clamp(10px, 1.2vw, 18px); }
.gallery__label { margin: clamp(28px, 3vw, 44px) 0 12px; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; }
.gallery__label:first-child { margin-top: 0; }
.gallery--hero .media img, .gallery--hero .media video { height: auto; }
.gallery--masonry { display: block; columns: 2; column-gap: clamp(10px, 1.2vw, 18px); }
.gallery--masonry .media { break-inside: avoid; margin-bottom: clamp(10px, 1.2vw, 18px); }
.gallery--masonry .media img, .gallery--masonry .media video { height: auto; }
.gallery--masonry.gallery--3 { columns: 3; }
.gallery--grade { grid-template-columns: repeat(3, 1fr); }
.gallery--dupla { grid-template-columns: 1fr 1fr; }
.gallery--dupla .media { aspect-ratio: 4 / 3; }
@media (max-width: 600px) { .gallery--dupla { grid-template-columns: 1fr; } }
.gallery--reels { grid-template-columns: repeat(4, 1fr); }
.gallery--reels .media { aspect-ratio: 9 / 16; }
.media { position: relative; border-radius: 14px; overflow: hidden; background: var(--creme-2); margin: 0; }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.gallery--grade .media { aspect-ratio: 4/5; }
.media video { background: var(--tinta); }
.media iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.media figcaption { position: absolute; left: 12px; bottom: 12px; background: var(--creme); color: var(--tinta); font-size: 12px; font-weight: 600; padding: 0.4em 0.8em; border-radius: 999px; }
.media--logo { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 8%; }
.media--logo img { width: auto !important; height: auto !important; max-width: 70%; max-height: 80%; object-fit: contain; }
.gallery--hero .media--logo { aspect-ratio: 16 / 9; }
.media--soon { aspect-ratio: 4/5; display: grid; place-items: center; background: repeating-linear-gradient(-45deg, var(--creme-2) 0 14px, #e3d9c6 14px 28px); color: rgba(16, 37, 27, 0.55); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.media.is-zoomable { cursor: zoom-in; }

.next {
  display: block;
  margin-top: clamp(48px, 6vw, 96px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: 24px;
  background: var(--verde);
  color: var(--creme);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.next::before { content: ""; position: absolute; inset: 0; background: var(--vermelho); transform: translateX(-101%); transition: transform 0.7s var(--ease); z-index: -1; }
.next:hover::before { transform: none; }
.next small { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; opacity: 0.75; }
.next strong { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--f-titulo); font-weight: 900; text-transform: lowercase; font-size: clamp(40px, 6vw, 100px); letter-spacing: -0.035em; line-height: 0.95; margin-top: 8px; }
.next strong span:last-child { transition: transform 0.6s var(--ease); flex: none; }
.next:hover strong span:last-child { transform: translateX(10px) rotate(-45deg); }

.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 25, 18, 0.94); display: none; place-items: center; }
.lightbox[open] { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88svh; object-fit: contain; border-radius: 8px; }
.lightbox button { position: absolute; color: var(--creme); width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); font-size: 22px; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox .lb-next { right: 16px; top: 50%; translate: 0 -50%; }

.project-enter { animation: projIn 0.8s var(--ease) both; }
@keyframes projIn { from { opacity: 0; transform: translateY(30px); } }

@media (max-width: 1080px) {
  .pf__layout { grid-template-columns: 240px 1fr; }
}
@media (max-width: 860px) {
  .pf__layout { grid-template-columns: 1fr; padding-top: 0; }
  .pf__side { display: none; }
  .pf__clients-mobile {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 12px var(--gutter);
    margin: 0 calc(var(--gutter) * -1);
    position: sticky;
    top: 128px;
    z-index: 30;
    background: var(--creme);
    border-bottom: 1px solid rgba(16, 37, 27, 0.15);
  }
  .pf__clients-mobile::-webkit-scrollbar { display: none; }
  .pf__clients-mobile a { flex: none; text-decoration: none; padding: 0.55em 1em; border-radius: 999px; border: 1.5px solid var(--tinta); font-weight: 700; font-size: 13px; }
  .pf__clients-mobile a[aria-current="true"] { background: var(--vermelho); border-color: var(--vermelho); color: var(--branco); }
  .project { padding-top: 24px; }
  .project__head { grid-template-columns: 1fr; }
  .project__meta { text-align: left; justify-items: start; }
  .project__info { grid-template-columns: 1fr; }
  .gallery--grade { grid-template-columns: repeat(2, 1fr); }
  .gallery--reels { grid-template-columns: repeat(2, 1fr); }
  .gallery--masonry.gallery--3 { columns: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
