/* ==========================================================================
   MP&T Advogados — estilos
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --bg-3: #19191c;
  --bg-4: #232327;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #ece8e2;
  --muted: #8f8b85;
  --dim: #5e5b57;
  --red: #e5141c;
  --red-hi: #ff2a33;
  --red-glow: rgba(229, 20, 28, .55);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Barlow", system-ui, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --max: 1360px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* grão de filme por cima de tudo */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 9000;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--red); color: #fff; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(96px, 14vw, 200px); position: relative; }

/* --------------------------------------------------------------------------
   Tipografia
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow .num {
  color: var(--red);
  letter-spacing: .1em;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow .num::after {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--line-2);
}

.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
.title em, .hero__title em {
  font-style: italic;
  color: #fff;
  position: relative;
}
.title--xl { font-size: clamp(42px, 6vw, 92px); }

/* Pincelada vermelha (o traço do logotipo) */
.brush {
  display: block;
  fill: var(--red);
  filter: drop-shadow(0 0 10px var(--red-glow)) drop-shadow(0 0 2px var(--red-hi));
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.4s var(--ease-io);
}
.brush.is-in { clip-path: inset(0 0 0 0); }

/* --------------------------------------------------------------------------
   Botões e links
   -------------------------------------------------------------------------- */
.btn {
  --h: 58px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--h);
  padding: 0 34px;
  font-family: var(--cond);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow .5s var(--ease), color .4s;
}
.btn span { position: relative; z-index: 1; }
.btn--red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 0 0 var(--red-glow);
}
.btn--red::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #0a0a0b;
  transform: translateY(101%);
  transition: transform .6s var(--ease);
  z-index: 0;
}
.btn--red::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--red);
  z-index: 1;
  pointer-events: none;
}
.btn--red:hover { box-shadow: 0 10px 40px -8px var(--red-glow); }
.btn--red:hover::before { transform: translateY(0); }
.btn--full { width: 100%; }

.link-arrow {
  font-family: var(--cond);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
  padding-block: 6px;
}
.link-arrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
  transition: width .5s var(--ease);
}
.link-arrow:hover::after { width: 60px; }

.inline-link {
  color: #fff;
  background: linear-gradient(var(--red), var(--red)) no-repeat 0 100% / 100% 1px;
  transition: background-size .5s var(--ease);
  white-space: nowrap;
}
.inline-link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* --------------------------------------------------------------------------
   Abertura
   -------------------------------------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: clip-path 1s var(--ease-io);
  clip-path: inset(0 0 0 0);
}
.loader__inner { width: min(300px, 64vw); }
/* o logotipo surge da esquerda para a direita, "desenhando" o próprio traço vermelho */
.loader__logo {
  width: 100%;
  height: auto;
  clip-path: inset(0 100% 0 0);
  filter: blur(6px) drop-shadow(0 0 0 transparent);
  animation: logoIn 1.3s var(--ease-io) .1s forwards;
}
.loader__bar {
  display: block;
  height: 1px;
  margin: 34px auto 0;
  width: 64px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}
.loader__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  transform: translateX(-100%);
  animation: loadbar 1.1s var(--ease-io) infinite;
}
@keyframes logoIn {
  60% { filter: blur(0) drop-shadow(0 0 0 transparent); }
  to { clip-path: inset(0 0 0 0); filter: blur(0) drop-shadow(0 0 18px var(--red-glow)); }
}
@keyframes loadbar { to { transform: translateX(100%); } }
.loader__inner { transition: opacity .5s, transform 1s var(--ease-io); }
body.is-ready .loader__inner { opacity: 0; transform: translateY(-30px); }
body.is-ready .loader { clip-path: inset(0 0 100% 0); }
body.is-loading { overflow: hidden; }

/* --------------------------------------------------------------------------
   Cabeçalho
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: transform .6s var(--ease), background .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(10, 10, 11, .78);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-color: var(--line);
}
.header.is-hidden { transform: translateY(-100%); }
.header__bar {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 92px;
  transition: height .5s var(--ease);
}
.header.is-scrolled .header__bar { height: 74px; }
.header__logo img { height: 62px; width: auto; transition: height .5s var(--ease); }
.header.is-scrolled .header__logo img { height: 48px; }

.nav { display: flex; gap: 36px; margin-left: auto; }
.nav a {
  font-family: var(--cond);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  padding-block: 8px;
  transition: color .3s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  height: 1px;
  width: 100%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red-glow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.header__cta {
  font-family: var(--cond);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .14em;
  padding: 10px 18px;
  border: 1px solid var(--line-2);
  transition: border-color .3s, background .3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.header__cta::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
  animation: pulse 2.4s infinite;
}
.header__cta:hover { border-color: var(--red); background: rgba(229, 20, 28, .08); }
@keyframes pulse { 50% { opacity: .35; } }

.burger { display: none; width: 44px; height: 44px; position: relative; margin-left: auto; }
.burger span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--text);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 26px; left: 18px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; left: 10px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--bg);
  padding: 120px var(--pad) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-io);
  visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  font-family: var(--serif);
  font-size: clamp(40px, 11vw, 64px);
  line-height: 1.15;
  border-bottom: 1px solid var(--line);
  padding-block: 10px;
  display: flex;
  align-items: baseline;
  gap: 18px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.menu__nav a small { font-family: var(--cond); font-size: 13px; color: var(--red); letter-spacing: .1em; }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: .25s; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .3s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .35s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .4s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .45s; }
.menu.is-open .menu__nav a:nth-child(6) { transition-delay: .5s; }
.menu__foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--cond);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(56px, 8vw, 110px);
  padding-top: 140px;
  overflow: hidden;
}
.hero__media {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(48vw, 760px);
  overflow: hidden;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.6s var(--ease-io) .2s;
}
body.is-ready .hero__media { clip-path: inset(0 0 0 0); }
.hero__img { position: absolute; inset: -8% 0; will-change: transform; }
.hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% 50%;
  filter: grayscale(.55) brightness(.62) contrast(1.08);
  transform: scale(1.15);
  transition: transform 2.4s var(--ease) .2s;
}
body.is-ready .hero__img img { transform: scale(1); }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(10, 10, 11, .55) 28%, rgba(10, 10, 11, 0) 60%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 10, 11, 0) 40%);
}
/* filete vermelho vertical na borda da foto */
.hero__media::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  top: 64%;
  width: 2px;
  height: 0;
  background: var(--red);
  box-shadow: 0 0 14px var(--red), 0 0 30px var(--red-glow);
  transition: height 1.4s var(--ease-io) 1.4s;
}
body.is-ready .hero__media::before { height: 26%; }

.hero__content { position: relative; z-index: 2; }
.hero__eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
}
.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(54px, 10.2vw, 168px);
  line-height: .9;
  letter-spacing: -.025em;
  margin: 0;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.3s var(--ease);
}
.hero__title .line:nth-child(2) { padding-left: clamp(0px, 8vw, 140px); }
.hero__title .line:nth-child(1) > span { transition-delay: .35s; }
.hero__title .line:nth-child(2) > span { transition-delay: .47s; }
.hero__title .line:nth-child(3) > span { transition-delay: .59s; }
body.is-ready .hero__title .line > span { transform: none; }

.hero__brush {
  width: clamp(220px, 34vw, 520px);
  height: clamp(10px, 1.1vw, 16px);
  margin: clamp(18px, 2.5vw, 34px) 0 0 clamp(0px, 8vw, 140px);
  transition-delay: 1.1s;
}
.hero__bottom {
  margin-top: clamp(36px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.hero__lead {
  max-width: 380px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05em;
}
.hero__actions { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.hero__eyebrow, .hero__bottom {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1s var(--ease) 1s, transform 1s var(--ease) 1s;
}
body.is-ready .hero__eyebrow, body.is-ready .hero__bottom { opacity: 1; transform: none; }

.hero__scroll {
  position: absolute;
  z-index: 3;
  right: var(--pad);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--cond);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.hero__scroll i {
  width: 1px;
  height: 70px;
  background: var(--line-2);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  left: 0;
  top: -40%;
  width: 1px;
  height: 40%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: scrolldown 2.2s var(--ease-io) infinite;
}
@keyframes scrolldown { to { top: 110%; } }

/* --------------------------------------------------------------------------
   Faixa corrida
   -------------------------------------------------------------------------- */
.ticker {
  border-block: 1px solid var(--line);
  overflow: hidden;
  padding-block: 26px;
  background: var(--bg-2);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: ticker 48s linear infinite;
}
.ticker span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(26px, 3vw, 42px);
  white-space: nowrap;
  color: var(--muted);
}
.ticker span:nth-of-type(even) { color: var(--text); font-style: normal; }
.ticker b {
  width: 10px;
  height: 10px;
  flex: none;
  background: var(--red);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--red-glow);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Revelações ao rolar
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* o recorte vai no filho: no próprio alvo ele impede o IntersectionObserver de disparar */
.reveal-img > * {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.4s var(--ease-io);
  transition-delay: var(--d, 0s);
}
.reveal-img.is-in > * { clip-path: inset(0 0 0 0); }

[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
[data-split] .w > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i) * 45ms);
}
[data-split].is-in .w > span { transform: none; }

/* --------------------------------------------------------------------------
   Escritório
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(16px, 2vw, 32px);
  row-gap: clamp(48px, 7vw, 110px);
}
.about__head { grid-column: 1 / span 7; }
.about__text { grid-column: 8 / span 5; align-self: end; color: var(--muted); }
.about__text p { margin: 0 0 1.2em; }
.about__lead { color: var(--text); font-size: 1.15em; }
.about__lead strong { font-weight: 500; }

.about__fig { margin: 0; overflow: hidden; position: relative; }
.about__fig > div { position: absolute; inset: -10% 0; will-change: transform; }
.about__fig img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.05) brightness(.85); transition: filter .8s; }
.about__fig:hover img { filter: grayscale(0) brightness(.95); }
.about__fig--a { grid-column: 1 / span 6; aspect-ratio: 4 / 4.6; }
.about__fig--b { grid-column: 8 / span 4; aspect-ratio: 4 / 5; align-self: end; margin-bottom: 18%; }

.quote {
  grid-column: 2 / span 10;
  margin: 0;
  text-align: center;
}
.quote__brush { width: 140px; height: 10px; margin: 0 auto 36px; }
.quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

.facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid var(--line);
}
.facts > div { padding: 36px 32px 0 0; border-right: 1px solid var(--line); }
.facts > div + div { padding-left: 32px; }
.facts > div:last-child { border-right: 0; }
.facts dt {
  font-family: var(--serif);
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1;
  color: #fff;
}
.facts dd { margin: 14px 0 0; color: var(--muted); font-size: .95em; max-width: 26ch; }

/* --------------------------------------------------------------------------
   Áreas de atuação
   -------------------------------------------------------------------------- */
.areas { background: var(--bg-2); }
.areas::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--pad);
  right: var(--pad);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red) 50%, transparent);
  opacity: .5;
}
.areas__head { margin-bottom: clamp(56px, 7vw, 100px); max-width: 900px; }
.areas__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }

.area {
  position: relative;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 32px;
  align-items: baseline;
  padding: clamp(32px, 4vw, 52px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding .6s var(--ease);
}
.area__num {
  font-family: var(--cond);
  font-size: 14px;
  letter-spacing: .14em;
  color: var(--dim);
  transition: color .4s;
}
.area__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1;
  margin: 0;
  transition: transform .6s var(--ease), color .4s;
}
.area__text { margin: 0; color: var(--muted); max-width: 56ch; transition: color .4s; }
.area__line {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .9s var(--ease);
}
.area:hover .area__line { transform: scaleX(1); }
.area:hover .area__num { color: var(--red); }
.area:hover .area__title { transform: translateX(14px); }
.area:hover .area__text { color: var(--text); }

/* --------------------------------------------------------------------------
   Equipe
   -------------------------------------------------------------------------- */
.team__head {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.team__intro { margin: 28px 0 0; color: var(--muted); max-width: 42ch; }
.team__photo { margin: 0; overflow: hidden; position: relative; aspect-ratio: 5 / 4; }
.team__photo > div { position: absolute; inset: -10% 0; will-change: transform; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; filter: grayscale(.35) contrast(1.05) brightness(.85); transition: filter .8s; }
.team__photo:hover img { filter: grayscale(0) brightness(.95); }

.team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}
.member { text-align: left; display: flex; flex-direction: column; }
.member:nth-child(even) { margin-top: clamp(0px, 6vw, 90px); }
.member__photo {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: var(--bg-3);
  margin-bottom: 22px;
}
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08) brightness(.82);
  transform: scale(1.04);
  transition: filter .9s var(--ease), transform 1.2s var(--ease);
}
.member__photo::after {
  content: "Ver perfil";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  font-family: var(--cond);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(0deg, rgba(10, 10, 11, .85), transparent);
  border-bottom: 2px solid var(--red);
  box-shadow: 0 6px 20px -6px var(--red-glow);
  transform: translateY(101%);
  transition: transform .6s var(--ease);
}
.member:hover .member__photo img, .member:focus-visible .member__photo img {
  filter: grayscale(0) contrast(1.02) brightness(.95);
  transform: scale(1);
}
.member:hover .member__photo::after, .member:focus-visible .member__photo::after { transform: none; }
.member__role {
  font-family: var(--cond);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--red);
}
.member__name {
  font-family: var(--serif);
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.1;
  margin: 8px 0 6px;
}
.member__oab { font-size: 14px; color: var(--muted); }
.member:focus-visible { outline: 1px solid var(--red); outline-offset: 8px; }

/* Perfil (modal) */
.bio {
  width: min(1100px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  padding: 0;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  overflow: hidden;
}
.bio::backdrop { background: rgba(5, 5, 6, .82); backdrop-filter: blur(6px); }
.bio[open] { animation: bioIn .7s var(--ease); }
.bio[open]::backdrop { animation: fade .5s; }
@keyframes bioIn { from { opacity: 0; transform: translateY(40px) scale(.98); } }
@keyframes fade { from { opacity: 0; } }
.bio__wrap { display: grid; grid-template-columns: 5fr 7fr; max-height: calc(100svh - 34px); }
.bio__photo { position: relative; min-height: 100%; }
.bio__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: contrast(1.04) brightness(.92); }
.bio__body { padding: clamp(28px, 4vw, 56px); overflow-y: auto; }
.bio__role { margin-bottom: 12px; color: var(--red); }
.bio__name { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1; margin: 0 0 10px; }
.bio__oab { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: .06em; }
.bio__brush { width: 120px; height: 9px; margin: 28px 0; }
.bio__text { color: #c8c4be; }
.bio__text p { margin: 0 0 1em; }
.bio__mail { margin-top: 18px; text-transform: none; letter-spacing: .04em; font-size: 15px; word-break: break-all; }
.bio__mail[hidden] { display: none; }
.bio__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-2);
  background: rgba(10, 10, 11, .6);
  transition: border-color .3s, transform .5s var(--ease);
}
.bio__close:hover { border-color: var(--red); transform: rotate(90deg); }
.bio__close span { position: absolute; left: 14px; right: 14px; top: 23px; height: 1.5px; background: var(--text); }
.bio__close span:first-child { transform: rotate(45deg); }
.bio__close span:last-child { transform: rotate(-45deg); }

.timeline { list-style: none; padding: 0; margin: 0 0 24px; }
.timeline li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: .95em;
  line-height: 1.55;
}
.timeline b { font-family: var(--cond); font-weight: 500; letter-spacing: .06em; color: var(--text); }

/* --------------------------------------------------------------------------
   Ambiente — galeria horizontal
   -------------------------------------------------------------------------- */
.space { position: relative; background: var(--bg); }
.space__sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vh, 48px);
}
.space__intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; }
.space__intro .eyebrow { width: 100%; margin: 0; }
.space__intro .title { font-size: clamp(34px, 4.2vw, 62px); max-width: 16ch; }
.space__hint { margin: 0; color: var(--muted); font-size: 14px; }
.space__track {
  display: flex;
  gap: clamp(14px, 1.8vw, 28px);
  padding-inline: var(--pad);
  width: max-content;
  align-items: center;
  will-change: transform;
}
.shot { margin: 0; position: relative; height: clamp(280px, 56vh, 640px); aspect-ratio: 4 / 5; overflow: hidden; flex: none; }
.shot--tall { height: clamp(320px, 66vh, 740px); }
.shot img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.8); transition: filter .8s, transform 1.4s var(--ease); }
.shot:hover img { filter: grayscale(0) brightness(.95); transform: scale(1.04); }
.shot figcaption {
  position: absolute;
  left: 18px;
  bottom: 14px;
  font-family: var(--cond);
  font-size: 12px;
  letter-spacing: .24em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.shot figcaption::before { content: ""; width: 18px; height: 1px; background: var(--red); box-shadow: 0 0 6px var(--red); }
.space__progress span {
  display: block;
  height: 1px;
  background: var(--line);
  position: relative;
}
.space__progress span::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: calc(var(--p, 0) * 100%);
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}

/* --------------------------------------------------------------------------
   Curso
   -------------------------------------------------------------------------- */
.course { background: var(--bg-2); overflow: hidden; }
.course::after {
  content: "24h";
  position: absolute;
  right: -2vw;
  top: 4vw;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(180px, 26vw, 420px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .05);
  pointer-events: none;
}
.course__top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 80px;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.course__desc { color: var(--muted); padding-top: 52px; }
.course__desc p { margin: 0 0 1.2em; }
.course__meta {
  font-family: var(--cond);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 13px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.course__meta span { font-family: var(--serif); font-size: 44px; letter-spacing: 0; color: var(--red); text-shadow: 0 0 20px var(--red-glow); text-transform: none; }

.modules {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
}
.module {
  padding: clamp(28px, 3vw, 44px);
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
  transition: background .5s;
}
.module:last-child { border-right: 0; }
.module::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 14px var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease);
}
.module:hover { background: var(--bg-3); }
.module:hover::before { transform: scaleX(1); }
.module header { margin-bottom: 28px; }
.module__n { font-family: var(--cond); font-size: 13px; letter-spacing: .24em; text-transform: uppercase; color: var(--red); }
.module h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 2.6vw, 40px); margin: 6px 0 0; line-height: 1; }
.module ul { list-style: none; margin: 0; padding: 0; counter-reset: it; }
.module li {
  counter-increment: it;
  display: grid;
  grid-template-columns: 30px 1fr;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: #bdb8b2;
  font-size: .95em;
  line-height: 1.5;
}
.module li::before { content: counter(it, decimal-leading-zero); font-family: var(--cond); font-size: 12px; color: var(--dim); padding-top: 3px; }

.course__cta {
  position: relative;
  z-index: 1;
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.course__cta p { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(26px, 2.6vw, 36px); }

/* --------------------------------------------------------------------------
   Clientes
   -------------------------------------------------------------------------- */
.clients__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.clients__head .eyebrow { grid-column: 1 / -1; margin: 0; }
.clients__intro { margin: 0; color: var(--muted); max-width: 42ch; justify-self: end; }

.clients__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(28px, 3vw, 44px) clamp(12px, 1.2vw, 18px);
}
.client__logo {
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
/* os logotipos vêm sobre fundo branco: em repouso a placa fica cinza e sem cor, como as fotos da equipe */
.client__logo img {
  width: 100%;
  height: auto;
  filter: grayscale(1) brightness(.52) contrast(1.1);
  transition: filter .7s var(--ease);
}
.client__logo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .8s var(--ease);
}
.client:hover .client__logo img { filter: none; }
.client:hover .client__logo::after { transform: scaleX(1); }
.client__name {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  transition: color .4s;
}
.client:hover .client__name { color: var(--text); }
@media (hover: none) {
  .client__logo img { filter: none; }
}

/* --------------------------------------------------------------------------
   Contato
   -------------------------------------------------------------------------- */
.contact { border-top: 1px solid var(--line); }
.contact__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(48px, 6vw, 96px) clamp(40px, 6vw, 110px);
}
.contact__info .title { margin-bottom: clamp(40px, 5vw, 64px); }
.channels { list-style: none; margin: 0; padding: 0; }
.channels li { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 200px 1fr; gap: 16px; }
.channels li:last-child { border-bottom: 1px solid var(--line); }
.channels span { font-family: var(--cond); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.channels a { font-size: 1.1em; transition: color .3s; overflow-wrap: anywhere; }
.channels a:hover { color: var(--red-hi); }

.form {
  align-self: end;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: clamp(28px, 3.4vw, 48px);
  position: relative;
}
.form::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 64px;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 14px var(--red);
}
.form__title { font-family: var(--serif); font-size: 32px; margin: 0; line-height: 1.1; }
.form__sub { margin: 8px 0 28px; color: var(--muted); font-size: 14px; }
.field { position: relative; display: block; margin-bottom: 22px; }
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  color: var(--text);
  font: inherit;
  padding: 26px 0 10px;
  border-radius: 0;
  outline: none;
  resize: vertical;
  transition: border-color .3s;
  -webkit-appearance: none;
  appearance: none;
}
.field select { cursor: pointer; }
.field select option { background: var(--bg-3); color: var(--text); }
.field:has(select)::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 32px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.field > span {
  position: absolute;
  left: 0;
  top: 26px;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .4s var(--ease), color .3s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red); }
.field input:focus + span, .field input:not(:placeholder-shown) + span,
.field textarea:focus + span, .field textarea:not(:placeholder-shown) + span,
.field select:focus + span, .field select:valid + span {
  transform: translateY(-22px) scale(.78);
  color: var(--text);
}
.form .btn { margin-top: 10px; }
.form__error { margin: 14px 0 0; color: var(--red-hi); font-size: 14px; }

.map {
  grid-column: 1 / -1;
  height: clamp(280px, 36vw, 440px);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) invert(.92) contrast(.88) brightness(.9);
}

/* --------------------------------------------------------------------------
   Rodapé
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 96px); background: var(--bg); }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px; }
.footer__logo { width: 200px; height: auto; opacity: .92; }
.footer__cols { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 80px); }
.footer__cols p { margin: 0; color: var(--muted); font-size: 15px; }
.footer__cols a { transition: color .3s; }
.footer__cols a:hover { color: var(--text); }
.footer__label { display: block; margin-bottom: 12px; font-family: var(--cond); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--red); }
.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-block: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
}
.footer__top { font-family: var(--cond); letter-spacing: .2em; text-transform: uppercase; transition: color .3s; }
.footer__top:hover { color: var(--red-hi); }

/* WhatsApp flutuante */
.wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  transition: background .4s, border-color .4s, transform .5s var(--ease), box-shadow .4s;
  transform: scale(0);
}
body.is-ready .wa { transform: scale(1); transition-delay: 1.8s; }
.wa svg { width: 26px; height: 26px; fill: var(--text); }
.wa:hover { background: var(--red); border-color: var(--red); box-shadow: 0 0 30px var(--red-glow); transition-delay: 0s; }

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .header__cta { margin-left: auto; }
  .burger { display: block; margin-left: 0; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .clients__grid { grid-template-columns: repeat(4, 1fr); }
  .member:nth-child(even) { margin-top: 48px; }
  .member:nth-child(3) { margin-top: -48px; }
  .member:nth-child(4) { margin-top: 0; }
  .modules { grid-template-columns: 1fr; }
  .module { border-right: 0; border-bottom: 1px solid var(--line); }
  .module:last-child { border-bottom: 0; }
}

@media (max-width: 860px) {
  .hero { align-items: flex-end; padding-top: 0; }
  .hero__media { width: 100%; opacity: .55; }
  .hero__media::after { background: linear-gradient(0deg, var(--bg) 18%, rgba(10, 10, 11, .4) 70%, rgba(10, 10, 11, .7) 100%); }
  .hero__media::before { display: none; }
  .hero__scroll { display: none; }
  .hero__title .line:nth-child(2), .hero__brush { padding-left: 0; margin-left: 0; }

  .about__head, .about__text, .quote { grid-column: 1 / -1; }
  .about__fig--a { grid-column: 1 / span 8; }
  .about__fig--b { grid-column: 7 / -1; margin: -40% 0 0; z-index: 1; }
  .facts { grid-template-columns: 1fr; }
  .facts > div, .facts > div + div { padding: 28px 0; border-right: 0; border-bottom: 1px solid var(--line); }

  .area { grid-template-columns: 1fr; gap: 12px; }
  .team__head, .clients__head, .course__top, .contact__grid { grid-template-columns: 1fr; }
  .clients__intro { justify-self: start; }
  .clients__grid { grid-template-columns: repeat(3, 1fr); }
  .course__desc { padding-top: 0; }
  .channels li { grid-template-columns: 1fr; gap: 4px; }

  .bio__wrap { grid-template-columns: 1fr; overflow-y: auto; }
  .bio__photo { min-height: 0; }
  .bio__photo img { position: static; height: min(56vw, 340px); object-position: 50% 20%; }
  .bio__body { overflow: visible; }

  /* galeria: rolagem nativa no celular */
  .space__sticky { position: static; height: auto; padding-block: 96px; }
  .space__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; transform: none !important; }
  .space__track::-webkit-scrollbar { display: none; }
  .shot, .shot--tall { height: 62vw; min-height: 300px; scroll-snap-align: center; }
  .space__progress { display: none; }
}

@media (max-width: 560px) {
  .header__cta { display: none; }
  .burger { margin-left: auto; }
  .header__logo img { height: 46px; }
  .hero__actions { gap: 24px; }
  .team__grid { gap: 14px; }
  .client__name { font-size: 12px; }
  .member__name { font-size: 20px; }
  .member__role { font-size: 10px; letter-spacing: .16em; }
  .member__oab { font-size: 12px; }
  .wa { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal, .reveal-img > *, [data-split] .w > span { opacity: 1; transform: none; clip-path: none; }
}
