:root {
  --bg: #fffef8;
  --primary: #ee565a;
  --dark: #363033;
  --white: #fffef8;
  --radius: 8px;
  --maxw: 1240px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--dark);
  font-family: "Encode Sans Semi Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.font-condensed { font-family: "Encode Sans Condensed", sans-serif; }
.font-expanded { font-family: "Encode Sans Semi Expanded", sans-serif; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
/* Header */
header.site { position: sticky; top: 0; z-index: 50; background: var(--bg); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 118px; }
.brand { font-size: 30px; font-weight: 600; color: var(--primary); letter-spacing: 0; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand-logo-lottie { height: 90px; width: 414px; } /* 3x — proporção 2300x500 do logo.json */
.brand-logo-lottie svg { display: block; }
.nav-links { display: flex; gap: 38px; }
.nav-links a {
  font-family: "Encode Sans Condensed", sans-serif;
  font-size: 19px; font-weight: 700; letter-spacing: .04em;
  color: var(--dark); text-transform: uppercase; padding-bottom: 3px;
}
.nav-links a.active { color: var(--primary); border-bottom: 2px solid var(--primary); }
.nav-links a:hover { color: var(--primary); }
/* Menu sanduíche (só aparece no celular, ver breakpoint 820px mais abaixo) */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer;
  padding: 0; flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 24px; height: 2.5px; background: var(--dark); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
/* Hero (home) */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; padding: 74px 0 64px; align-items: start; }
.hero-left { max-width: 560px; }
.hero-greeting { display: flex; align-items: center; gap: 10px; margin: 0 0 22px 0; }
.hero-greeting h1 { font-family: "Encode Sans Semi Expanded", sans-serif; font-size: 25.32px; font-weight: 900; font-style: italic; color: var(--dark); line-height: 1; }
.hero-body { font-size: 23px; line-height: 1.45; font-weight: 400; }
.hero-body .emph { font-weight: 600; display: block; margin-top: 14px; }
/* Reel 16:9 */
.reel {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: var(--radius); overflow: hidden; background: var(--bg);
  cursor: pointer;
}
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.reel-holder, .reel-holder iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; }
.reel-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.reel-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.reel-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.reel-play svg { width: 30px; height: 30px; margin-left: 4px; fill: var(--primary); }
/* Antes de começar (sem .started): mostra capa + play grande. */
/* Depois de começar (.started): a capa some pra sempre; o play grande só reaparece enquanto pausado (.paused). */
.reel.started .reel-cover { display: none; }
.reel.started .reel-play { display: none; }
.reel.started.paused .reel-play { display: flex; }
/* Camada transparente por cima do iframe do Vimeo — sem ela, o clique é "engolido"
   pelo iframe e não dá pra pausar depois de iniciar o vídeo. */
.reel-hit { position: absolute; inset: 0; z-index: 3; }
/* Botão pequeno de mudo/com som, fixo no canto direito superior — só aparece depois de iniciar o vídeo. */
.reel-mute {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,0.55); display: none; align-items: center; justify-content: center;
  transition: background .15s;
}
.reel-mute:hover { background: rgba(0,0,0,0.75); }
.reel.started .reel-mute { display: flex; }
.reel-mute svg { width: 17px; height: 17px; fill: #fff; }
/* Section title */
.section-head { padding: 18px 0 22px; }
/* Filtros (work) */
.work-top { position: relative; display: flex; justify-content: center; align-items: center; padding: 8px 0 0; }
.work-top .asterisk { position: absolute; left: -18px; top: 50%; transform: translateY(-50%); width: 96px; height: 96px; }
.filters { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; padding: 18px 0 36px; }
.filters button {
  font-family: "Encode Sans Condensed", sans-serif;
  font-size: 17px; font-weight: 700; letter-spacing: .04em; line-height: 1;
  white-space: nowrap; text-transform: uppercase; padding: 11px 24px; border-radius: 999px;
  border: 1.5px solid var(--primary); background: transparent; color: var(--primary);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease, transform .15s ease, border-color .25s ease;
}
.filters button:hover { background: rgba(238,86,90,0.08); transform: translateY(-1px); }
.filters button:active { transform: scale(.94); }
.filters button.active { background: var(--primary); color: var(--white); box-shadow: 0 6px 16px rgba(238,86,90,.32); }
@keyframes filterPop { 0% { transform: scale(1); } 45% { transform: scale(1.12); } 100% { transform: scale(1); } }
.filters button.pop { animation: filterPop .35s cubic-bezier(.34, 1.56, .64, 1); }
/* Grid de projetos */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; padding-bottom: 70px; }
.grid .card {
  animation: cardIn .5s cubic-bezier(.16, 1, .3, 1) both;
  animation-delay: calc(var(--i, 0) * 45ms);
  transition: opacity .2s ease, transform .2s ease;
}
.grid.is-filtering .card {
  animation: none;
  opacity: 0;
  transform: translateY(-8px) scale(.96);
  transition-delay: calc(var(--i, 0) * 15ms);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .grid .card { animation: none; }
  .filters button.pop { animation: none; }
}
@media (max-width: 880px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  /* Cards 15% menores que antes, centralizados, pra dar mais destaque ao reel no topo. */
  .grid { grid-template-columns: 1fr; max-width: 85%; margin: 0 auto; }
}
/* Link "ver mais" abaixo dos destaques da home */
.see-more-wrap { text-align: center; padding: 0 0 60px; }
.see-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: "Encode Sans Condensed", sans-serif;
  font-size: 17px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--primary);
  padding-bottom: 3px; border-bottom: 2px solid transparent;
  transition: border-color .2s ease, transform .15s ease;
}
.see-more:hover { border-color: var(--primary); transform: translateY(-1px); }
.card {
  position: relative; aspect-ratio: 1 / 1;
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  background: var(--bg);
}
.card .player { position: absolute; inset: 0; z-index: 1; background: var(--bg); pointer-events: none; }
.card .player iframe {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 177.78%; height: 100%; border: 0;
}
.card .thumb {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; z-index: 2; transition: opacity .4s ease;
}
.card.ready .thumb { opacity: 0; }
.card .thumb-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.card .overlay {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.5), rgba(0,0,0,0) 50%);
  opacity: 0; transition: opacity .25s; display: flex; align-items: flex-end; padding: 16px;
}
.card:hover .overlay { opacity: 1; }
.card .meta { color: #fff; }
.card .meta .t { font-weight: 700; font-size: 16px; }
.card .meta .c { font-size: 13px; opacity: .85; }
/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.9);
  display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox .frame { width: 100%; max-width: 1040px; aspect-ratio: 16/9; background: #000; border-radius: 12px; overflow: hidden; }
.lightbox iframe { width: 100%; height: 100%; border: 0; }
.lightbox .close { position: absolute; top: 20px; right: 26px; color: #fff; font-size: 32px; cursor: pointer; line-height: 1; background: none; border: none; }
/* Página de projeto */
.project { padding: 20px 0 80px; max-width: 960px; margin: 0 auto; }
/* Só a setinha, sem texto — funciona em qualquer idioma. */
.project .back { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 26px; color: var(--primary); transition: transform .15s; }
.project .back:hover { transform: translateX(-3px); }
.project .back svg { width: 26px; height: 26px; fill: currentColor; }
.project h1 { font-size: 44px; font-weight: 700; margin-bottom: 8px; }
.project .cat { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; margin-bottom: 26px; }
/* Blocos da página de projeto */
.blocks { margin-top: 6px; }
.b-header { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; margin-bottom: 48px; }
.bh-title { font-family: "Encode Sans Condensed", sans-serif; font-weight: 700; font-size: 42px; line-height: 1.05; color: var(--dark); }
.bh-sub { font-family: "Encode Sans Condensed", sans-serif; font-weight: 700; font-size: 26px; margin-top: 6px; color: var(--dark); }
.bh-quote { font-style: italic; font-size: 18px; line-height: 1.5; color: var(--dark); }
.bh-line { border: 0; border-top: 1.5px solid var(--dark); width: 90px; margin: 18px 0; }
.bh-client { font-size: 17px; }
.bh-client strong { font-weight: 700; }
@media (max-width: 720px) { .b-header { grid-template-columns: 1fr; gap: 22px; margin-bottom: 32px; } }
.b-heading, .b-text, .b-textmedia, .b-video, .b-gallery, .b-image { margin-bottom: 40px; }
.ratio { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.ratio.vertical { width: 340px; max-width: 100%; aspect-ratio: 9 / 16; height: auto; margin: 0 auto; }
.ratio.square { width: 480px; max-width: 100%; aspect-ratio: 1 / 1; height: auto; margin: 0 auto; }
.b-tm-media { min-width: 0; }
.ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: inherit; }
/* Clean player (vídeos com som) — estilo Reels/TikTok:
   clique em qualquer lugar do vídeo carrega e toca em loop; clique de novo pausa
   e mostra só o botão grande de play central. Botão de mudo fixo no canto. */
.clean-player { cursor: pointer; }
.cp-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; border-radius: inherit; }
.cp-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2;
  width: 72px; height: 72px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.92); display: flex; align-items: center; justify-content: center; transition: transform .15s;
}
.cp-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.cp-play svg { width: 28px; height: 28px; margin-left: 4px; fill: var(--primary); }
.cp-holder, .cp-holder iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; border-radius: inherit; }
/* Antes de começar (sem .started): mostra capa + play grande, igual antes. */
/* Depois de começar (.started): a capa some pra sempre; o play grande só reaparece enquanto pausado (.paused). */
.clean-player.started .cp-cover { display: none; }
.clean-player.started .cp-play { display: none; }
.clean-player.started.paused .cp-play { display: flex; }
/* Camada transparente por cima do iframe do Vimeo — sem ela, o clique é "engolido"
   pelo iframe e não dá pra pausar depois de iniciar o vídeo. */
.cp-hit { position: absolute; inset: 0; z-index: 3; }
/* Botão pequeno de mudo/com som, fixo no canto direito superior — só aparece depois de iniciar o vídeo. */
.cp-mute {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(0,0,0,0.55); display: none; align-items: center; justify-content: center;
  transition: background .15s;
}
.cp-mute:hover { background: rgba(0,0,0,0.75); }
.clean-player.started .cp-mute { display: flex; }
.cp-mute svg { width: 17px; height: 17px; fill: #fff; }
.b-heading { font-family: "Encode Sans Semi Expanded", sans-serif; font-size: 34px; font-weight: 900; font-style: italic; margin-top: 12px; }
.b-text { font-size: 19px; line-height: 1.65; }
.b-text p { margin-bottom: 14px; }
.b-text strong { font-weight: 700; }
.b-textmedia { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.b-textmedia.media-left .b-tm-text { order: 2; }
.b-textmedia.media-left .b-tm-media { order: 1; }
.b-tm-text { font-size: 18px; line-height: 1.6; }
.b-tm-text p { margin-bottom: 12px; }
.b-divider { display: flex; justify-content: center; margin: 40px 0; }
.b-divider hr { border: 0; border-top: 1.5px solid var(--dark); width: 110px; margin: 0; }
.b-divider.full hr { width: 100%; }
.b-gallery { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 30px; justify-content: center; justify-items: center; margin: 0 auto; max-width: 52.5%; }
.b-gallery .g-item { width: 100%; min-width: 0; }
.b-gallery .ratio { border-radius: 15px; aspect-ratio: 1 / 1; }
.gallery-video .gv-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 2; transition: opacity .4s ease; border-radius: inherit; }
.gallery-video.ready .gv-cover { opacity: 0; }
.gv-holder, .gv-holder iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1; border-radius: inherit; }
.gallery-file video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.gallery-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.g-title { font-family: "Encode Sans Condensed", sans-serif; font-weight: 700; font-size: 22px; text-align: center; color: var(--dark); margin-bottom: 6px; }
.g-item .b-img { border-radius: 15px; }
.b-img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.b-image.full .b-img { border-radius: 0; }
@media (max-width: 720px) {
  .b-textmedia { grid-template-columns: 1fr; gap: 18px; }
  .b-textmedia.media-left .b-tm-text { order: 0; }
  .b-textmedia.media-left .b-tm-media { order: 0; }
  .b-gallery { grid-template-columns: 1fr; gap: 24px; max-width: 100%; }
}
/* About */
.about { padding: 44px 0 90px; }
.about-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 54px; align-items: start; }
.about-photo img { width: 100%; height: auto; border-radius: 8px; display: block; }
.photo-ph {
  width: 100%; aspect-ratio: 1 / 1; border-radius: 8px;
  background: rgba(54,48,51,0.05); border: 1.5px dashed rgba(54,48,51,0.25);
  display: flex; align-items: center; justify-content: center;
  color: rgba(54,48,51,0.4); font-size: 15px;
}
.about-head { display: flex; align-items: center; gap: 10px; margin: 0 0 18px 0; }
.about h2 { font-family: "Encode Sans Semi Expanded", sans-serif; font-size: 24px; font-weight: 900; font-style: italic; }
.about-body p { font-size: 18px; line-height: 1.62; margin-bottom: 14px; }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .about-photo { max-width: 360px; }
}
/* Footer */
footer.site { background: var(--primary); color: var(--white); padding: 50px 0 56px; margin-top: 10px; }
footer .inner { text-align: center; }
footer .fname { font-weight: 700; font-size: 26px; margin-bottom: 14px; }
footer .footer-logo { height: 48px; width: auto; display: inline-block; }
footer .femail { display: inline-block; font-size: 21px; margin-bottom: 22px; color: var(--white); }
footer .social { display: flex; justify-content: center; gap: 18px; }
footer .social a {
  width: 44px; height: 44px; border-radius: 50%; background: var(--white);
  display: flex; align-items: center; justify-content: center; transition: transform .15s;
}
footer .social a:hover { transform: translateY(-2px); }
footer .social svg { width: 22px; height: 22px; fill: var(--primary); }
/* Behance usa um selo próprio (imagem) que já vem com o círculo branco embutido,
   então esse link fica sem o fundo branco padrão pra não duplicar o círculo. */
footer .social a.badge { background: transparent; }
footer .social a .social-badge { width: 44px; height: 44px; display: block; object-fit: contain; }
.loading { color: rgba(54,48,51,0.5); padding: 30px 0; font-size: 15px; }
@media (max-width: 820px) {
  .wrap { padding: 0 22px; }
  .hero { grid-template-columns: 1fr; gap: 30px; }
  /* Espaço entre o reel e os projetos logo abaixo, pra não ficar grudado. */
  .reel { margin-bottom: 36px; }
  .nav { height: 90px; position: relative; }
  /* Logo 20% menor no celular */
  .brand { font-size: 19px; }
  .brand-logo { height: 24px; }
  .brand-logo-lottie { height: 48px; width: 221px; }
  .hero-greeting h1 { font-size: 25.32px; }
  .hero-body { font-size: 20px; }
  /* Menu sanduíche: esconde os links e mostra o botão; os links viram um dropdown. */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-top: 1px solid rgba(54,48,51,0.1);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height .3s ease, opacity .25s ease;
  }
  .nav-links.open { max-height: 260px; opacity: 1; }
  .nav-links a {
    font-size: 16px; padding: 16px 22px; border-bottom: 1px solid rgba(54,48,51,0.08);
  }
  .nav-links a.active { border-bottom: 1px solid rgba(54,48,51,0.08); }
}
