/* ==========================================================
   Muma Estúdio Criativo — estilos do site
   ========================================================== */

@font-face { font-family: "WS Paradose"; src: url("../assets/fonts/ws-paradose.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "TWK Lausanne"; src: url("../assets/fonts/twk-lausanne-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "TWK Lausanne"; src: url("../assets/fonts/twk-lausanne-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "TWK Lausanne"; src: url("../assets/fonts/twk-lausanne-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* raio da lente de bastidor (animável) */
@property --r { syntax: "<length>"; inherits: false; initial-value: 0px; }

/* — Tokens da marca — */
:root {
  --navy: #0c0933;
  --purple: #3215ad;
  --pink: #ff80e1;
  --beige: #edecea;
  --green: #9cff97;
  --lavender: #a194ff;
  --white: #fff;

  --ink: var(--navy);
  --muted: rgba(12, 9, 51, .48);
  --line: rgba(12, 9, 51, .14);
  --placeholder: #dddbd6;
  --error: #c0114f;

  --serif: "WS Paradose", "Times New Roman", Times, serif;
  --sans: "TWK Lausanne", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3.2vw, 48px);
  --gap: clamp(8px, .9vw, 14px);
  --radius: clamp(14px, 1.5vw, 24px);
  --section: clamp(56px, 10vw, 160px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* — Base — */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body:has(dialog[open]) { overflow: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-style: normal; color: var(--purple); }
::selection { background: var(--pink); color: var(--navy); }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

/* proteção das imagens: sem arrastar, selecionar ou "salvar imagem" no toque longo */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.tile::after, .card-media::after, .gallery-item::after, .bts-item::after,
.project-cover::after, .studio-photo::after, .team-photo::after, .next-media::after, .service-float::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
}

.wrap { width: 100%; max-width: 1760px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -64px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--navy); color: var(--beige); }
.skip-link:focus { top: 16px; }

.eyebrow { margin-bottom: 18px; font: 500 14px/1.2 var(--sans); color: var(--purple); }
.eyebrow--light { color: var(--pink); }
.section-title { font: 400 clamp(42px, 6.2vw, 104px)/.94 var(--serif); letter-spacing: -.01em; }
.tag {
  display: inline-flex; align-items: center; height: 30px; padding: 0 13px;
  border-radius: 999px; background: var(--white); color: var(--navy);
  font: 500 13px/1 var(--sans); white-space: nowrap;
}
.tag--solid { background: var(--navy); color: var(--beige); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px;
  border: 1px solid transparent; border-radius: 999px; font: 500 16px/1 var(--sans);
  transition: background .25s, color .25s, border-color .25s, opacity .25s;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn--pink { background: var(--pink); color: var(--navy); }
.btn--pink:hover { background: var(--green); }
.btn--navy { background: var(--navy); color: var(--beige); }
.btn--navy:hover { background: var(--purple); }
.btn--ghost { background: transparent; color: var(--navy); border-color: rgba(12, 9, 51, .28); }
.btn--ghost:hover { background: rgba(255, 255, 255, .45); border-color: var(--navy); }
.btn--ghost.is-copied { background: var(--navy); border-color: var(--navy); color: var(--beige); }

/* âncoras param com o título logo abaixo da nav */
#projetos, #servicos, #estudio { scroll-margin-top: calc(96px - var(--section)); }
#contato { scroll-margin-top: 24px; }

/* — Nav flutuante (vidro) — */
.nav {
  position: fixed; top: 12px; left: 50%; z-index: 100;
  translate: -50% 0;
  transition: translate .5s var(--ease);
}
.nav.is-hidden { translate: -50% calc(-100% - 24px); }
.nav-pill {
  position: relative;
  display: flex; align-items: center; gap: 2px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .34);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .85),
    inset 0 -1px 0 rgba(255, 255, 255, .25),
    0 12px 32px -12px rgba(12, 9, 51, .3);
}
/* reflexo do vidro */
.nav-pill::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .5) 0%, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .3) 100%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav-pill { background: rgba(237, 236, 234, .95); }
}
.nav-logo { display: flex; flex: none; align-items: center; height: 40px; padding: 0 14px 0 12px; color: var(--navy); }
.nav-logo svg { flex: none; width: 92px; min-width: 92px; max-width: none; height: 19px; fill: currentColor; overflow: visible; }
/* logotipo com variações: cada letra alterna com a versão alternativa */
.nav-logo .lp { transform-box: fill-box; transform-origin: center; }
.nav-logo path { transition: opacity .3s var(--ease); }
.nav-logo .alt { opacity: 0; }
.nav-logo .lp.swap .orig { opacity: 0; }
.nav-logo .lp.swap .alt { opacity: 1; }
.nav-logo .lp:nth-child(1) .alt { transform: translateX(-14px); }
.nav-logo .lp:nth-child(2) .alt { transform: translateX(20px); }
.nav-logo .lp:nth-child(3) .alt { transform: translateX(32px); }
.nav-logo .lp:nth-child(4) .alt { transform: translateX(37px); }

.nav-link {
  display: flex; align-items: center; height: 40px; padding: 0 14px;
  border-radius: 999px; font: 500 14px/1 var(--sans);
  transition: background .25s;
}
.nav-link:hover { background: rgba(12, 9, 51, .07); }
.nav-cta {
  display: flex; align-items: center; gap: 6px; height: 40px; margin-left: 4px; padding: 0 16px;
  border-radius: 999px; background: var(--pink); color: var(--navy);
  font: 500 14px/1 var(--sans);
  transition: background .25s, color .25s;
}
.nav-cta:hover { background: var(--navy); color: var(--beige); }

@media (max-width: 640px) {
  .nav-link--optional { display: none; }
  .nav-logo { padding: 0 8px 0 10px; }
  .nav-link { padding: 0 10px; }
  .nav-cta { padding: 0 14px; }
}

/* — Hero: imagens de destaque — */
.hero { padding-top: 76px; }
.hero-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap);
  height: clamp(560px, calc(100svh - 76px - var(--gap)), 1040px);
}
.hero-col { display: grid; gap: var(--gap); min-height: 0; }
.hero-col:nth-child(1) { grid-template-rows: 1.15fr 1fr; }
.hero-col:nth-child(2) { grid-template-rows: 1fr 1.45fr; }
.hero-col:nth-child(3) { grid-template-rows: 1.3fr 1fr; }

.tile {
  position: relative; display: block; min-height: 0; overflow: hidden;
  border-radius: var(--radius); background: var(--placeholder);
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile:hover img { transform: scale(1.035); }
.tile .tag {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  opacity: 0; translate: 0 -6px;
  transition: opacity .35s var(--ease), translate .35s var(--ease);
}
.tile:hover .tag, .tile:focus-visible .tag { opacity: 1; translate: 0 0; }
@media (hover: none) { .tile .tag { opacity: 1; translate: 0 0; } }
.hero-hint {
  display: none; align-items: center; gap: 8px; margin-top: 14px;
  font: 500 13px/1 var(--sans); color: var(--muted);
}
.hero-hint::after { content: "→"; animation: hint-slide 1.8s var(--ease) infinite; }
@keyframes hint-slide { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
.js .tile { animation: tile-in 1s var(--ease) both; animation-delay: calc(var(--i) * 80ms + 60ms); }
@keyframes tile-in { from { opacity: 0; transform: translateY(28px) scale(.98); } }

/* no celular o topo vira uma faixa deslizável, em vez de uma pilha de fotos */
@media (max-width: 760px) {
  .hero { padding-top: 70px; }
  .hero-grid {
    display: flex; height: auto; gap: var(--gap);
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .hero-grid::-webkit-scrollbar { display: none; }
  .hero-col { display: contents; }
  .tile { flex: 0 0 74%; aspect-ratio: 4 / 5; max-height: 70svh; scroll-snap-align: center; }
  .hero-hint { display: flex; }
}

/* — Introdução — */
.intro { padding-top: var(--section); }
.intro-text { max-width: 40ch; font: 500 clamp(23px, 2.9vw, 44px)/1.24 var(--sans); letter-spacing: -.015em; }
.intro-label { color: var(--purple); }
.is-muted { color: var(--muted); }

.facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px); margin-top: clamp(56px, 7vw, 112px);
}
.fact { padding-top: 20px; border-top: 1px solid var(--line); }
.fact-title { margin-bottom: 14px; font: 400 clamp(24px, 2.2vw, 34px)/1.05 var(--serif); }
.fact p { max-width: 42ch; font-size: clamp(15px, 1.1vw, 17px); line-height: 1.55; color: rgba(12, 9, 51, .8); }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; } }

/* — Serviços: lista vertical com descrição no hover — */
.services { padding-top: var(--section); }
.services-grid { --faixa: clamp(140px, 12vw, 200px); position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: clamp(32px, 6vw, 120px); }
.services-intro { position: sticky; top: 110px; }
.services-title { font-size: clamp(33px, 3.6vw, 60px); line-height: .9; letter-spacing: -.03em; }
.services-lead { max-width: 38ch; margin-top: 24px; font-size: clamp(16px, 1.2vw, 19px); color: rgba(12, 9, 51, .8); }
.services-intro .btn { margin-top: 32px; }

.services-list { border-top: 1px solid var(--line); counter-reset: none; }
.service {
  position: relative;
  display: grid; grid-template-columns: clamp(36px, 4vw, 64px) minmax(0, 1fr) 24px; align-items: start; gap: 12px;
  padding-block: clamp(18px, 2vw, 30px);
  border-bottom: 1px solid var(--line);
  outline: none;
}
/* linha que se desenha no hover */
.service::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--navy); transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease);
}
.service-num { padding-top: .55em; font: 500 13px/1 var(--sans); color: var(--purple); }
.service-name { font: 400 clamp(30px, 3.7vw, 62px)/1 var(--serif); letter-spacing: -.01em; transition: translate .6s var(--ease), color .3s; }
.service-desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.service-desc p {
  min-height: 0; overflow: hidden; max-width: 46ch;
  font-size: clamp(15px, 1.15vw, 18px); line-height: 1.5; color: rgba(12, 9, 51, .72);
  opacity: 0; transition: opacity .45s var(--ease), padding .6s var(--ease);
}
.service-icon { position: relative; width: 22px; height: 22px; margin-top: .6em; }
.service-icon::before, .service-icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px;
  background: currentColor; transition: transform .5s var(--ease);
}
.service-icon::after { transform: rotate(90deg); }

.service:hover::after, .service:focus-visible::after { transform: scaleX(1); }
.service:hover .service-name, .service:focus-visible .service-name { translate: 10px 0; color: var(--purple); }
.service:hover .service-desc, .service:focus-visible .service-desc { grid-template-rows: 1fr; }
.service:hover .service-desc p, .service:focus-visible .service-desc p { opacity: 1; padding-top: 12px; }
.service:hover .service-icon::after, .service:focus-visible .service-icon::after { transform: rotate(0deg); }

/* em telas de toque a lista vira sanfona: só o nome, toque abre a descrição */
@media (hover: none) {
  .service { grid-template-columns: minmax(0, 1fr) 24px; padding-block: 15px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .service-num { display: none; }
  .service-name { font-size: clamp(25px, 7vw, 34px); }
  .service-icon { margin-top: .35em; }
  .service:hover .service-name { translate: 0 0; color: inherit; }
  .service:hover .service-desc { grid-template-rows: 0fr; }
  .service:hover .service-desc p { opacity: 0; padding-top: 0; }
  .service:hover .service-icon::after { transform: rotate(90deg); }
  .service:hover::after { transform: scaleX(0); }
  .service.is-open .service-name { color: var(--purple); }
  .service.is-open .service-desc { grid-template-rows: 1fr; }
  .service.is-open .service-desc p { opacity: 1; padding-top: 8px; }
  .service.is-open .service-icon::after { transform: rotate(0deg); }
  .service.is-open::after { transform: scaleX(1); }
}

/* foto do projeto aparece à direita da lista, levemente torta e alinhada à linha */
.service-float {
  position: absolute; right: 0; top: var(--y, 50%); z-index: 2;
  width: calc(var(--faixa) - 16px); aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--radius); background: var(--placeholder);
  box-shadow: 0 26px 50px -22px rgba(12, 9, 51, .45);
  opacity: 0; translate: 0 -50%; scale: .92; rotate: var(--rot, -4deg);
  transition: opacity .35s var(--ease), top .55s var(--ease), scale .55s var(--ease), rotate .55s var(--ease);
  pointer-events: none;
}
.service-float img { width: 100%; height: 100%; object-fit: cover; }
.service-float.is-on { opacity: 1; scale: 1; }
@media (hover: none), (max-width: 1100px) { .service-float { display: none; } }
/* faixa reservada para a foto: o texto e o + nunca ficam embaixo dela */
@media (hover: hover) and (min-width: 1101px) {
  .service { padding-right: var(--faixa); }
  .service-name { font-size: clamp(28px, 3.3vw, 56px); }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
  .services-intro { position: static; }
}

/* celular: chega nos projetos mais rápido, com textos mais enxutos */
@media (max-width: 760px) {
  main { display: flex; flex-direction: column; }
  main > .hero, main > .intro { order: 0; }
  main > .projects { order: 1; }
  main > .services { order: 2; }
  main > .clients { order: 3; }
  main > .studio { order: 4; }
  .intro-text { font-size: clamp(21px, 5.8vw, 28px); }
  .facts {
    display: flex; gap: 12px; margin: 36px calc(var(--gutter) * -1) 0; padding-inline: var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .facts::-webkit-scrollbar { display: none; }
  .fact { flex: 0 0 80%; scroll-snap-align: start; padding-top: 14px; }
  .fact:last-child { margin-right: var(--gutter); }
  .fact-title { margin-bottom: 8px; font-size: 22px; }
  .fact p { font-size: 15px; line-height: 1.5; }
  .services-lead { margin-top: 14px; font-size: 15px; }
  .services-intro .btn { margin-top: 20px; }
  .services-title { margin-bottom: 0; }
  .services-grid { gap: 24px; }
}

/* — Projetos — */
.projects { padding-top: var(--section); }
.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end;
  gap: 16px 40px; margin-bottom: clamp(28px, 4vw, 64px);
}
.section-note { max-width: 30ch; font-size: 15px; color: var(--muted); }
.only-touch { display: none; }
@media (hover: none) { .only-hover { display: none; } .only-touch { display: inline; } }

.cards {
  container-type: inline-size;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--gap); row-gap: clamp(28px, 3vw, 52px);
}
.card { position: relative; min-width: 0; }
.card--wide { grid-column: span 2; }
.card-link { display: block; }
.card-media {
  --x: 50%; --y: 50%;
  position: relative; width: 100%; overflow: hidden; border-radius: var(--radius); background: var(--placeholder);
  aspect-ratio: 4 / 5;
  height: calc((100cqw - 2 * var(--gap)) / 3 * 1.25);
}
.card--wide .card-media { aspect-ratio: 8 / 5; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-front { transition: transform 1.2s var(--ease); }
.card-link:hover .card-front { transform: scale(1.03); }

/* lente que revela o bastidor */
.card-bts { clip-path: circle(var(--r) at var(--x) var(--y)); transition: --r .6s var(--ease); }
@media (hover: hover) { .card-link:hover .card-bts { --r: clamp(120px, 12vw, 190px); } }
.card.is-bts .card-bts { --r: 1600px; }

.card-media .tag { position: absolute; top: 12px; right: 12px; z-index: 2; }
.lens-label {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: flex; align-items: center; height: 30px; padding: 0 12px;
  border-radius: 999px; background: var(--navy); color: var(--beige); font: 500 12px/1 var(--sans);
  opacity: 0; translate: 0 6px; transition: opacity .3s, translate .3s var(--ease);
}
@media (hover: hover) { .card-link:hover .lens-label { opacity: 1; translate: 0 0; } }

.card-info { display: grid; gap: 6px; padding-top: 14px; }
.card-title { font: 400 clamp(24px, 2.1vw, 34px)/1.02 var(--serif); }
.card-meta { font-size: 14px; color: var(--muted); }

.bts-toggle { display: none; }
@media (hover: none) {
  .bts-toggle {
    position: absolute; top: 12px; left: 12px; z-index: 3;
    display: flex; align-items: center; height: 36px; padding: 0 14px;
    border: 0; border-radius: 999px; background: var(--navy); color: var(--beige); font: 500 12.5px/1 var(--sans);
  }
  .card.is-bts .bts-toggle { background: var(--pink); color: var(--navy); }
}

@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-media { height: calc((100cqw - var(--gap)) / 2 * 1.25); }
}
@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; row-gap: clamp(22px, 6vw, 34px); }
  .card--wide { grid-column: auto; }
  .card-media { height: calc(100cqw * 1.15); }
  .card--wide .card-media { height: calc(100cqw * .78); }
}

/* — Clientes — */
.clients { padding-top: var(--section); }
/* colunas escolhidas para fechar as linhas com a quantidade atual de logos (14) */
.clients-list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.clients-list li {
  display: grid; place-items: center;
  height: clamp(96px, 9vw, 136px); padding: 20px; border-top: 1px solid var(--line);
}
@media (max-width: 1200px) { .clients-list { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 900px) { .clients-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .clients-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients-list li { height: 88px; padding: 16px; }
}
/* logos em silhueta navy; altura por logo (--h) equilibra a área visual */
.clients-list img {
  width: auto; height: var(--h, 36px); max-width: 80%; object-fit: contain;
  filter: brightness(0); opacity: .78;
  transition: opacity .3s;
}
.clients-list li:hover img { opacity: 1; }

/* — Estúdio — */
.studio { padding-block: var(--section); }
.studio-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; gap: clamp(28px, 5vw, 96px); }
.studio-photo { position: sticky; top: 88px; overflow: hidden; border-radius: var(--radius); background: var(--placeholder); }
.studio-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.studio-lead { max-width: 26ch; margin-top: 28px; font: 400 clamp(22px, 2vw, 32px)/1.2 var(--serif); }
.studio-hint { margin-top: 20px; font-size: 14px; color: var(--muted); }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 20px); margin-top: clamp(28px, 3.5vw, 52px); }
.member { min-width: 0; }
.member-head { display: grid; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.team-photo { position: relative; overflow: hidden; border-radius: calc(var(--radius) * .75); background: var(--placeholder); }
.team-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .8s var(--ease); }
.member-head:hover .team-photo img { transform: scale(1.04); }
.member-name { margin-top: 12px; font: 400 clamp(18px, 1.5vw, 24px)/1.1 var(--serif); }
.member-role { font-size: 13.5px; color: var(--muted); }
.member-plus { position: relative; width: 16px; height: 16px; margin-top: 8px; }
.member-plus::before, .member-plus::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px;
  background: var(--purple); transition: transform .45s var(--ease);
}
.member-plus::after { transform: rotate(90deg); }
.member.is-open .member-plus::after { transform: rotate(0deg); }
.member.is-open .team-photo { outline: 2px solid var(--purple); outline-offset: 2px; }
.member-bio { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.member-bio p { min-height: 0; overflow: hidden; max-width: 34ch; font-size: 14.5px; line-height: 1.5; color: rgba(12, 9, 51, .75); transition: padding .55s var(--ease); }
.member.is-open .member-bio { grid-template-rows: 1fr; }
.member.is-open .member-bio p { padding-top: 10px; }
@media (max-width: 560px) {
  .team { grid-template-columns: 1fr; gap: 6px; }
  .member { padding-top: 10px; border-top: 1px solid var(--line); }
  .member-head { grid-template-areas: "foto nome mais" "foto cargo mais"; grid-template-columns: 84px minmax(0, 1fr) 16px; align-items: center; column-gap: 14px; }
  .member-head .team-photo { grid-area: foto; }
  .member-name { grid-area: nome; margin-top: 0; }
  .member-role { grid-area: cargo; }
  .member-plus { grid-area: mais; margin-top: 0; }
  .member-bio p { max-width: none; }
}
@media (max-width: 860px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-photo { position: relative; top: auto; }
}

/* — Contato (rodapé) — */
.contact { max-width: 1760px; margin: var(--gap) auto 0; padding: 0 var(--gutter) var(--gutter); }
.contact-panel {
  position: relative; overflow: hidden;
  padding: clamp(28px, 4vw, 64px) clamp(20px, 4vw, 64px) clamp(20px, 2.5vw, 36px);
  border-radius: clamp(20px, 2.4vw, 40px); background: var(--green); color: var(--navy);
}
.contact-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; }
.contact-title { font: 400 clamp(44px, 6.4vw, 112px)/.92 var(--serif); letter-spacing: -.015em; }
.contact-title em { color: var(--purple); }
/* a vírgula não pode ficar sozinha na linha */
.contact-title .nowrap { white-space: nowrap; }
/* a vírgula da marca apoiada na base da palavra */
.comma { display: inline-block; width: auto; height: .34em; margin-left: .04em; fill: var(--purple); vertical-align: -.06em; }
.contact-lead { max-width: 62ch; margin-top: 20px; font-size: clamp(16px, 1.2vw, 19px); opacity: .85; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.contact-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 18px; text-align: right; }
.contact-links a { display: inline-block; padding-block: 7px; font: 500 clamp(20px, 1.8vw, 28px)/1.4 var(--sans); transition: color .25s; }
.contact-links a:hover, .contact-jobs:hover { color: var(--purple); }
.contact-jobs { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; text-align: right; font: 500 16px/1.3 var(--sans); color: rgba(12, 9, 51, .7); transition: color .25s; }
.wordmark { width: 100%; height: auto; margin-top: clamp(56px, 9vw, 160px); fill: var(--navy); }
.contact-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(16px, 2vw, 28px); font-size: 13px; opacity: .7; }
@media (max-width: 860px) {
  .contact-top { grid-template-columns: 1fr; }
  .contact-side { align-items: flex-start; text-align: left; gap: 24px; }
  .contact-jobs { text-align: left; }
}

/* — Popups de formulário — */
.modal {
  width: min(680px, calc(100% - 24px)); max-width: none; max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; border: 0; overflow: auto; overscroll-behavior: contain;
  border-radius: clamp(20px, 2vw, 32px); background: var(--beige); color: var(--navy);
  box-shadow: 0 40px 100px -30px rgba(12, 9, 51, .6);
}
.modal::backdrop { background: rgba(12, 9, 51, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .5s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(28px) scale(.98); } }
.modal-inner { position: relative; padding: clamp(24px, 4vw, 48px); }
.modal-close {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center;
  width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--white); font-size: 15px;
  transition: background .25s, color .25s;
}
.modal-close:hover { background: var(--navy); color: var(--beige); }
.modal-title { margin-right: 44px; font: 400 clamp(36px, 4.6vw, 60px)/.95 var(--serif); letter-spacing: -.01em; }
.modal-lead { margin: 12px 0 26px; max-width: 46ch; color: var(--muted); }
.modal .eyebrow { margin-bottom: 12px; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.field { display: grid; gap: 6px; font: 500 13px/1.2 var(--sans); }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  font: 400 16px/1.4 var(--sans); color: var(--navy);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 112px; resize: vertical; }
.field select { appearance: none; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0933' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(50, 21, 173, .15); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); box-shadow: 0 0 0 3px rgba(192, 17, 79, .12); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; border: 0; }
.chips legend { width: 100%; margin-bottom: 8px; padding: 0; font: 500 13px/1.2 var(--sans); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font: 500 14px/1 var(--sans); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.chip span:hover { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--beige); }
.chip input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }

/* — Anexo de arquivos (clipe) — */
.attach { gap: 8px; }
.attach-drop {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer;
  border: 1.5px dashed rgba(12, 9, 51, .3); border-radius: 14px; background: rgba(255, 255, 255, .5);
  transition: border-color .2s, background .2s;
}
.attach-drop:hover, .attach-drop.is-over, .attach-drop:focus-within { border-color: var(--purple); background: var(--white); }
.attach .attach-input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.clip { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--purple); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: rotate .4s var(--ease); }
.attach-drop:hover .clip, .attach-drop.is-over .clip { rotate: -14deg; }
.attach-text { display: grid; gap: 3px; }
.attach-text strong { font: 500 15px/1.2 var(--sans); }
.attach-text small { font: 400 12px/1.35 var(--sans); color: var(--muted); }
.attach-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.attach-list:empty { display: none; }
.attach-list li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 6px 4px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font: 500 13px/1.2 var(--sans); }
.attach-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-size { flex: none; color: var(--muted); font-weight: 400; }
.attach-remove { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; font-size: 12px; transition: background .2s, color .2s; }
.attach-remove:hover { background: var(--navy); color: var(--beige); }
.done-note { max-width: 46ch; margin: -12px 0 24px; color: var(--error); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.modal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.form-status { font-size: 14px; color: var(--muted); }
.form-status.is-error { color: var(--error); }
.done-icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 24px; border-radius: 50%; background: var(--green); font-size: 26px; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* — Página de projeto — */
.project-head { padding-top: clamp(96px, 11vw, 150px); }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; font: 500 14px/1 var(--sans);
  transition: background .25s, border-color .25s;
}
.back-link:hover { background: var(--white); border-color: var(--white); }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: clamp(28px, 4vw, 56px); }
.project-title { max-width: 14ch; margin-top: 18px; font: 400 clamp(52px, 9.5vw, 176px)/.88 var(--serif); letter-spacing: -.02em; }
.project-sub { max-width: 26ch; margin-top: 18px; font: 400 clamp(22px, 2.4vw, 38px)/1.12 var(--serif); color: var(--muted); }
.project-cover { position: relative; margin-top: clamp(32px, 4vw, 64px); }
.project-cover img { width: 100%; height: clamp(320px, 72vh, 900px); object-fit: cover; border-radius: var(--radius); background: var(--placeholder); }

.project-body {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: clamp(32px, 6vw, 120px); padding-block: clamp(48px, 7vw, 120px);
}
.project-desc { display: grid; align-content: start; gap: 1em; max-width: 44ch; font-size: clamp(18px, 1.6vw, 26px); line-height: 1.42; }
.ficha { display: grid; align-content: start; border-top: 1px solid var(--line); }
.ficha div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.ficha dt { font-size: 14px; color: var(--muted); }
.ficha dd { font: 500 15px/1.4 var(--sans); }
@media (max-width: 860px) { .project-body { grid-template-columns: 1fr; } }

.block { padding-bottom: clamp(56px, 8vw, 128px); }
.block-title { margin-bottom: clamp(20px, 2.5vw, 36px); font: 400 clamp(34px, 4.4vw, 72px)/.95 var(--serif); letter-spacing: -.01em; }

/* — Vídeos com player próprio — */
.videos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(12px, 1.6vw, 24px); padding-block: 12px; }
.videos--1 { grid-template-columns: minmax(0, 440px); }
.videos--2 { grid-template-columns: repeat(2, minmax(0, 440px)); }
/* o slot guarda o espaço na grade; o vídeo sai dele no modo destaque */
.video-slot { position: relative; }
.video-slot--v { aspect-ratio: 9 / 16; }
.video-slot--h { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.video {
  position: absolute; inset: 0; overflow: hidden; isolation: isolate;
  border-radius: var(--radius); background: var(--navy);
  transition: transform .7s var(--ease), box-shadow .7s var(--ease);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.video.is-playing { z-index: 2; transform: scale(1.035); box-shadow: 0 32px 64px -28px rgba(12, 9, 51, .6); }

/* pausados ficam levemente escuros; o escurecido some no hover */
.video-shade { position: absolute; inset: 0; z-index: 1; background: rgba(12, 9, 51, .5); pointer-events: none; transition: opacity .5s var(--ease); }
.video.is-playing .video-shade, .video:hover .video-shade { opacity: 0; }
.video-hit { position: absolute; inset: 0; z-index: 2; padding: 0; border: 0; background: transparent; }

.video-bar {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3;
  display: flex; align-items: center; gap: 4px; padding: 5px;
  border-radius: 999px; background: rgba(12, 9, 51, .38); color: var(--white);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  transition: opacity .35s var(--ease), translate .35s var(--ease);
}
.video.is-playing:not(:hover):not(:focus-within) .video-bar { opacity: 0; translate: 0 8px; }
@media (hover: none) { .video.is-playing .video-bar { opacity: 1; translate: 0 0; } }
.vbtn {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: transparent; color: inherit; transition: background .2s;
}
.vbtn:hover { background: rgba(255, 255, 255, .2); }
.vbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.video .i-pause, .video.is-playing .i-play, .video .i-sound, .video.is-unmuted .i-mute, .video .i-collapse, .video.is-featured .i-expand { display: none; }
.video.is-playing .i-pause, .video.is-unmuted .i-sound, .video.is-featured .i-collapse { display: block; }
.vsound { display: flex; align-items: center; }
.vvolume { width: 0; opacity: 0; margin: 0; accent-color: var(--pink); transition: width .3s var(--ease), opacity .3s, margin .3s; }
.vsound:hover .vvolume, .vsound:focus-within .vvolume { width: 64px; margin: 0 6px 0 2px; opacity: 1; }
@media (hover: none) {
  .vvolume { display: none; }
  .video-bar { left: 12px; right: 12px; bottom: 12px; padding: 6px; gap: 6px; background: rgba(12, 9, 51, .5); }
  .vbtn { width: 44px; height: 44px; }
  .vbtn svg { width: 21px; height: 21px; stroke-width: 2.1; }
}
.vspacer { flex: 1; }

/* destaque: o vídeo cresce na página sobre um fundo escurecido */
.video-backdrop {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(12, 9, 51, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none; transition: opacity .45s var(--ease);
}
.video-backdrop.is-on { opacity: 1; pointer-events: auto; }
body.has-featured { overflow: hidden; }
.video.is-featured {
  position: fixed; inset: 0; z-index: 160; margin: auto;
  transform: none; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .7);
  animation: feature-in .55s var(--ease);
}
.video-slot--v .video.is-featured { width: min(92vw, calc(86svh * 9 / 16)); height: min(86svh, calc(92vw * 16 / 9)); }
.video-slot--h .video.is-featured { width: min(92vw, calc(86svh * 16 / 9)); height: min(86svh, calc(92vw * 9 / 16)); }
.video.is-featured .video-shade { opacity: 0; }
@keyframes feature-in { from { opacity: 0; transform: scale(.94); } }

@media (max-width: 760px) {
  .videos {
    display: flex; gap: var(--gap); margin-inline: calc(var(--gutter) * -1); padding: 12px var(--gutter);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .videos::-webkit-scrollbar { display: none; }
  .video-slot { flex: 0 0 76%; scroll-snap-align: center; }
  .videos--1 .video-slot, .video-slot--h { flex-basis: 100%; }
  .video.is-playing:not(.is-featured) { transform: scale(1.02); }
}

/* — Galeria justificada: proporções originais, linhas equilibradas (js/site.js) — */
.justified { display: flex; flex-wrap: wrap; gap: var(--gap); }
.justified > * {
  position: relative; overflow: hidden; margin: 0;
  flex: calc(var(--ar) * 100) 1 calc(var(--ar) * 240px);
  aspect-ratio: var(--ar);
  border-radius: var(--radius); background: var(--placeholder);
}
.justified.is-laid > * { flex: none; }
.justified img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item figcaption { position: absolute; left: 12px; bottom: 12px; z-index: 2; padding: 6px 12px; border-radius: 999px; background: var(--white); font: 500 12px/1.2 var(--sans); }

.bts-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 40px; margin-bottom: clamp(20px, 2.5vw, 36px); }
.bts-head .block-title { margin-bottom: 0; }
.bts-head p { max-width: 30ch; color: var(--muted); }
/* um único bastidor: texto e foto lado a lado, na proporção original */
.bts--single { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end; gap: var(--gap) clamp(24px, 4vw, 64px); }
.bts--single .bts-head { flex-direction: column; align-items: flex-start; margin-bottom: 0; }
.bts--single .bts-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--placeholder); }
.bts--single .bts-item img { width: 100%; }
@media (max-width: 760px) { .bts--single { grid-template-columns: 1fr; } }

.next-link {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(320px, 36vw, 560px); overflow: hidden;
  border-radius: var(--radius); background: var(--navy); color: var(--beige);
}
.next-text { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: clamp(24px, 4vw, 56px); }
.next-text .eyebrow { margin: 0; }
.next-title { font: 400 clamp(40px, 5.6vw, 96px)/.92 var(--serif); letter-spacing: -.01em; }
.next-title em { color: var(--pink); }
.next-client { font: 500 16px/1 var(--sans); }
.next-media { position: relative; overflow: hidden; }
.next-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.next-link:hover .next-media img { transform: scale(1.04); }
@media (max-width: 760px) {
  .next-link { grid-template-columns: 1fr; }
  .next-media { aspect-ratio: 4 / 3; }
}

/* — 404 — */
.notfound { display: grid; align-content: center; justify-items: start; gap: 20px; min-height: 80vh; padding-block: 120px 80px; }
.notfound .eyebrow { margin: 0; }
.notfound-text { max-width: 40ch; font-size: 18px; color: var(--muted); }

/* — Entrada ao rolar — */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .service[data-reveal] { transition-delay: calc(var(--i) * 50ms); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
