/* ==========================================================================
   MOTT — Matheus Pinheiro
   Layout fiel ao Figma (Home 1500px) com interações inspiradas em
   Vucko, Polar, Firma e Bright.
   ========================================================================== */

@font-face { font-family: "PP Neue Montreal"; src: url("../fonts/PPNeueMontreal-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("../fonts/PPNeueMontreal-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url("../fonts/PPNeueMontreal-Book.otf") format("opentype"); font-weight: 350; font-display: swap; }
@font-face { font-family: "PP Mori"; src: url("../fonts/PPMori-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PP Mori"; src: url("../fonts/PPMori-SemiBold.otf") format("opentype"); font-weight: 600; font-display: swap; }

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --muted: #9a9a9a;
  --line: #e4e4e4;
  --dark: #000000;
  /* paleta: cinza-claro, grafite e preto */
  --silver: #abadb1;
  --slate: #3e4147;
  --black: #000000;

  --pad: clamp(16px, 4.07vw, 61px);       /* 61px no design de 1500 */
  --ease: cubic-bezier(.22, 1, .36, 1);    /* ease-out-expo */
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --fast: .25s;
  --base: .6s;

  --display: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  --mori: "PP Mori", "Helvetica Neue", Arial, sans-serif;
  --ui: "Inter", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
  transition: background-color .7s var(--ease-io), color .7s var(--ease-io);
  overflow-x: clip; /* "hidden" quebraria o position: sticky da linha do tempo */
}
body.is-dark { --bg: #000; --ink: #f2f2f2; --line: #262626; background: #000; color: #f2f2f2; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
sup { font-size: .28em; vertical-align: top; position: relative; top: .35em; margin-left: .04em; }
/* ® dos wordmarks grandes: afasta do último T (o letter-spacing negativo puxava o selo para cima da letra) */
.curtain__word sup, .footer__mark sup, .wordmark__reg { font-size: .11em; top: .12em; margin-left: .12em; letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--slate); outline-offset: 3px; border-radius: 4px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

/* Labels de seção (OUTROS TRABALHOS, CLIENTES...) */
.label {
  font: 600 13px/1 var(--ui);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.label--dot { display: flex; align-items: center; gap: 10px; text-transform: none; font-size: 16px; font-weight: 600; }
.label--dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Sublinhado que cresce da esquerda (hover de links) */
.u { position: relative; display: inline-block; }
.u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--base) var(--ease);
}
.u:hover::after { transform: scaleX(1); transform-origin: left; }

/* Link com texto que "rola" no hover (Vucko/Firma) */
.roll { display: inline-block; vertical-align: top; }
.roll__clip { display: inline-block; overflow: hidden; vertical-align: top; }
.roll [data-text] { display: inline-block; position: relative; transition: transform var(--base) var(--ease); }
.roll [data-text]::after { content: attr(data-text); position: absolute; left: 0; top: 100%; }
.roll:hover [data-text] { transform: translateY(-100%); }
.roll.is-active { color: var(--muted); }

/* ==========================================================================
   Cortina de entrada
   ========================================================================== */
.curtain {
  position: fixed; inset: 0; z-index: 100; background: #000; color: #fff;
  display: grid; place-items: center; pointer-events: none;
}
.curtain__word { font: 500 clamp(48px, 10vw, 140px)/1 var(--display); letter-spacing: -.04em; overflow: hidden; padding: .06em .25em .06em 0; } /* folga para o ® não ser cortado */
.no-js .curtain { display: none; }

/* ==========================================================================
   Cursor
   ========================================================================== */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 999px;
  background: var(--silver); mix-blend-mode: normal;
  display: grid; place-items: center;
  transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), opacity .3s;
  opacity: 0;
}
.cursor__label { font: 500 13px/1 var(--ui); color: #000; white-space: nowrap; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--ease); }
.cursor.is-visible { opacity: 1; }
.cursor.is-active { width: 104px; height: 104px; margin: -52px 0 0 -52px; }
.cursor.is-active .cursor__label { opacity: 1; transform: none; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ==========================================================================
   Barra compacta (aparece após o hero, some ao rolar para baixo)
   ========================================================================== */
.bar {
  position: fixed; z-index: 50; top: 12px; left: 50%;
  display: flex; align-items: center; gap: 28px;
  padding: 8px 8px 8px 20px; border-radius: 999px;
  background: rgba(10, 10, 10, .88); color: #fff;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  font-size: 14px; font-weight: 500;
  transform: translate(-50%, -150%); transition: transform .7s var(--ease);
}
.bar.is-visible { transform: translate(-50%, 0); }
.bar__logo { font: 500 18px/1 var(--display); letter-spacing: -.02em; }
.bar__clock { display: flex; align-items: center; gap: 8px; color: #a8a8a8; font-variant-numeric: tabular-nums; }
.bar__clock .dot { width: 6px; height: 6px; background: var(--silver); box-shadow: 0 0 0 0 rgba(171,173,177,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 6px rgba(171,173,177,0); } 100% { box-shadow: 0 0 0 0 rgba(171,173,177,0); } }
.bar__nav { display: flex; gap: 4px; }
.bar__nav a { padding: 10px 14px; border-radius: 999px; transition: background-color var(--fast), color var(--fast); }
.bar__nav a:hover { background: #262626; }
.bar__nav a.is-current { background: #fff; color: #000; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--silver); position: relative; }
.menu-btn span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: #000; transition: transform var(--base) var(--ease); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 25px; }
.menu-btn:hover span:first-child { transform: translateX(3px); }
.menu-btn:hover span:last-child { transform: translateX(-3px); }

/* Menu mobile */
.menu {
  position: fixed; inset: 0; z-index: 80; background: #000; color: #fff;
  padding: 20px 16px 28px; display: flex; flex-direction: column; justify-content: space-between;
  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__close { align-self: flex-end; padding: 12px 18px; border-radius: 999px; background: #fff; color: #000; font-size: 14px; font-weight: 500; }
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a { display: flex; align-items: flex-start; gap: 12px; font: 500 clamp(44px, 13vw, 64px)/1.05 var(--display); letter-spacing: -.03em;
  transform: translateY(40px); opacity: 0; transition: transform .8s var(--ease), opacity .8s var(--ease), color .25s; }
.menu__links a:hover { color: var(--silver); }
.menu__links small { font: 500 12px/1 var(--ui); color: #777; padding-top: 10px; letter-spacing: 0; }
.menu.is-open .menu__links a { transform: none; opacity: 1; }
.menu.is-open .menu__links a:nth-child(2) { transition-delay: .06s; }
.menu.is-open .menu__links a:nth-child(3) { transition-delay: .12s; }
.menu.is-open .menu__links a:nth-child(4) { transition-delay: .18s; }
.menu.is-open .menu__links a:nth-child(5) { transition-delay: .24s; }
.menu__foot { font-size: 14px; color: #8a8a8a; display: grid; gap: 8px; }
.menu__foot a { color: #fff; font: 400 20px/1 var(--mori); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  min-height: min(80svh, 700px);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(28px, 4vw, 61px) var(--pad) clamp(28px, 3vw, 48px);
}
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.wordmark {
  font: 500 clamp(84px, 11.1vw, 166px)/.86 var(--display);
  letter-spacing: -.035em; margin-left: -.071em; /* compensa o respiro lateral do "M" para alinhar com o texto */
  display: flex; align-items: flex-start;
}
.wordmark__mask { display: inline-block; overflow: hidden; padding-bottom: .04em; }
.wordmark__l { display: inline-block; will-change: transform; }
.wordmark__reg { font-size: .11em; top: .1em; margin-left: .3em !important; } /* selo afastado, alinhado ao topo das letras */
.hero__nav { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: .3em; row-gap: 2px; font-size: 14px; line-height: 1.2; font-weight: 500; text-align: right; color: var(--muted); }
.hero__nav a:hover { color: var(--ink); }
.hero__nav-br { flex-basis: 100%; height: 0; } /* quebra a lista em 2 linhas de 3 itens */

.hero__info {
  /* papel à esquerda · seta no centro · redes à direita */
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px;
  font-size: 15px; line-height: 1.35;
}
.hero__role { font-weight: 400; color: #333; }
.socials { font-size: 14px; line-height: 1.35; font-weight: 400; color: var(--muted); }
.socials a { color: var(--ink); }
.hero__socials { justify-self: end; text-align: right; }
.hero__socials a { color: var(--muted); transition: color var(--fast); }
.hero__socials a:first-child { color: var(--ink); font-weight: 600; }
.hero__socials a:hover { color: var(--ink); }
.scroll-cue { justify-self: center;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); transition: background-color var(--fast), color var(--fast), border-color var(--fast);
}
.scroll-cue svg { animation: nudge 2.2s var(--ease-io) infinite; }
.scroll-cue:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }

/* ==========================================================================
   VÍDEO DO TOPO (Form&Fun): largura total, cantos suaves
   ========================================================================== */
.showcase { padding: 0 var(--pad); }
.showcase__frame {
  position: relative; overflow: hidden; border-radius: 8px; background: #111;
  aspect-ratio: 2 / 1; cursor: pointer; will-change: clip-path;
}
.showcase__frame { container-type: size; }
.showcase__media { position: absolute; inset: 0; transform: scale(1.12); will-change: transform; }
.showcase__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* iframe 16:9 cobrindo o quadro inteiro, como object-fit: cover */
.showcase__media iframe {
  position: absolute; top: 50%; left: 50%; border: 0; pointer-events: none;
  width: max(100cqw, 177.78cqh); height: max(100cqh, 56.25cqw);
  transform: translate(-50%, -50%); opacity: 0; transition: opacity 1s var(--ease);
}
.showcase__media iframe.is-ready { opacity: 1; }
.lightbox__video { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.lightbox__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.showcase__sound {
  position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13px; font-weight: 500;
  transition: background-color var(--fast), color var(--fast);
}
.showcase__sound:hover { background: #fff; color: #000; }
.showcase__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.showcase__bars i { width: 2px; height: 30%; background: currentColor; border-radius: 1px; }
.showcase__sound[aria-pressed="true"] .showcase__bars i { animation: bars .9s ease-in-out infinite; }
.showcase__sound[aria-pressed="true"] .showcase__bars i:nth-child(2) { animation-delay: -.3s; }
.showcase__sound[aria-pressed="true"] .showcase__bars i:nth-child(3) { animation-delay: -.6s; }
.showcase__sound[aria-pressed="true"] .showcase__bars i:nth-child(4) { animation-delay: -.45s; }
@keyframes bars { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* ==========================================================================
   TEXTO DO ESTÚDIO: palavras cinza que escurecem com a rolagem
   ========================================================================== */
.studio {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px;
  padding: clamp(110px, 11vw, 170px) clamp(16px, 4vw, 60px);
}
.studio__label { font-size: 15px; font-weight: 500; }
/* quebras de linha fixas no desktop; no celular o texto corre livre */
.studio__text .ln { display: block; }
@media (max-width: 860px) { .studio__text .ln { display: inline; } }
.studio__text {
  position: relative; z-index: 2; max-width: 1180px;
  font: 400 clamp(32px, 4.6vw, 68px)/1.08 var(--display); letter-spacing: -.025em;
}
/* palavras que disparam as imagens */
.hw { position: relative; display: inline-block; cursor: default; outline: none; }
.hw::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .045em; min-height: 2px; background: currentColor;
  transform-origin: left; transition: transform .6s var(--ease);
}
.hw:hover::after, .hw:focus-visible::after, .hw.is-active::after { transform: scaleX(0); transform-origin: right; }
.studio .pill { margin-top: 12px; position: relative; z-index: 2; }
/* camada onde as imagens são "distribuídas" como cartas */
.stack { position: absolute; inset: 0; pointer-events: none; z-index: 3; overflow: visible; }
.stack__card {
  position: absolute; left: 0; top: 0; width: clamp(150px, 15vw, 230px); aspect-ratio: 4 / 5;
  border-radius: 6px; overflow: hidden; background: #ddd; box-shadow: 0 18px 40px rgba(0,0,0,.18);
  will-change: transform, opacity;
}
.stack__card img { width: 100%; height: 100%; object-fit: cover; }
.pill { margin-top: 0; }
.studio__count { font: 500 14px/1 var(--ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.studio__count b { color: var(--ink); font-weight: 500; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; margin-top: 40px;
  min-width: min(380px, 100%); padding: 18px 28px; border-radius: 999px; background: var(--ink); color: var(--bg);
  font-size: 15px; font-weight: 500; position: relative; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
}
.pill::before { content: ""; position: absolute; inset: 0; background: var(--silver); z-index: -1; transform: translateY(101%); border-radius: inherit; transition: transform .6s var(--ease); }
.pill:hover { color: #000; }
.pill:hover::before { transform: none; }

/* ==========================================================================
   GRID DE PROJETOS (Form&Fun): linhas 2/3 + 1/3 que alternam
   ========================================================================== */
.posts { padding: 0 var(--pad); }
.posts__head { margin-bottom: clamp(28px, 3vw, 44px); }
.posts__title { font: 400 clamp(64px, 11vw, 160px)/.85 var(--display); letter-spacing: -.04em; text-transform: uppercase; }
.posts__marquee { overflow: hidden; margin-top: 6px; color: #d9d9d9; }
.posts__marquee-track { display: flex; width: max-content; white-space: nowrap; font: 400 clamp(40px, 7vw, 100px)/1 var(--display); letter-spacing: -.03em; text-transform: uppercase; will-change: transform; }
.posts__marquee-track span { padding-right: .3em; }

.posts__row { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(8px, 1vw, 14px); margin-bottom: clamp(8px, 1vw, 14px); }
.posts__row--flip { grid-template-columns: 1fr 2fr; }
.post { position: relative; display: flex; flex-direction: column; min-width: 0; }
.post__media { position: relative; overflow: hidden; border-radius: 8px; background: #f0f0f0; flex: 1; aspect-ratio: 3 / 2; }
.post:not(.post--wide) .post__media { aspect-ratio: auto; }
.post__media img, .post__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.001); transition: transform 1.1s var(--ease), filter .6s var(--ease);
}
/* degradê escuro que sobe por baixo do texto */
.post__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,.45) 0%, transparent 28%, transparent 72%, rgba(0,0,0,.45) 100%);
  opacity: 0; transition: opacity .6s var(--ease);
}
.post:hover .post__media img, .post:hover .post__media video { transform: scale(1.06); }
.post:hover .post__media::after, .post:focus-visible .post__media::after { opacity: 1; }
/* hover: as outras imagens recebem um véu preto de 60% (sem mexer na saturação) */
.post__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: #000; opacity: 0; transition: opacity .5s var(--ease);
}
.posts:has(.post:hover) .post:not(:hover) .post__media::before { opacity: .6; }

/* título e categoria sobre a imagem, no canto inferior esquerdo */
.post__info {
  position: absolute; inset: clamp(16px, 1.6vw, 24px); z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between; color: #fff; pointer-events: none;
}
.post__info h3 { font: 500 14px/1.2 var(--ui); text-transform: uppercase; letter-spacing: .04em; overflow: hidden; }
.post__info span { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: rgba(255,255,255,.78); }
@media (hover: hover) {
  .post__info h3 { transform: translateY(-16px); }
  .post__info span { transform: translateY(16px); }
  .post__info h3, .post__info span { opacity: 0; transition: transform .7s var(--ease), opacity .5s var(--ease); }
  .post__info span { transition-delay: .06s; }
  .post:hover .post__info h3, .post:hover .post__info span,
  .post:focus-visible .post__info h3, .post:focus-visible .post__info span { transform: none; opacity: 1; }
}
/* no toque (sem hover) o texto fica sempre visível */
@media (hover: none) { .post__media::after { opacity: 1; } }

/* ==========================================================================
   OUTROS TRABALHOS (madewithgsap 030 + 035): lista fina, imagem que segue o
   mouse no eixo Y e linha que cresce no hover
   ========================================================================== */
.others { position: relative; padding: clamp(80px, 9vw, 134px) var(--pad) clamp(80px, 9vw, 140px); }
/* tabela em colunas iguais (Polar) */
.others__head, .row__link { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: center; }
.others__head { font-size: 13px; font-weight: 500; color: var(--muted); padding-bottom: 14px; }
.others__head .label { color: var(--ink); } /* mesmo rótulo de Serviços e Clientes */
.group { border-top: .5px solid #cccccb; }
.group:last-child { border-bottom: .5px solid #cccccb; }
.group__title {
  display: flex; justify-content: space-between; align-items: center; padding: 26px 0 8px;
  font-size: 15px; font-weight: 600;
}
.group__title span:first-child { display: flex; align-items: center; gap: 10px; }
.group__title span:last-child { font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.row__link {
  padding: 14px 0; border-top: .5px solid transparent;
  font-size: 15px; font-weight: 400; line-height: 1.3;
  transition: padding .6s var(--ease), color .4s var(--ease);
}
.row + .row .row__link { border-top-color: #cccccb; }
.cell { min-width: 0; white-space: nowrap; text-overflow: ellipsis; }
.row__name { padding-left: 18px; } /* alinha com o texto da categoria, depois da bolinha */
.row__svc { color: var(--muted); }
.row__thumb { display: none; }
.row__cta { justify-self: end; font: 500 13px/1 var(--ui); display: inline-flex; clip-path: inset(0 100% 0 0); transition: clip-path .6s var(--ease); }
/* hover: texto rola (Polar), a linha cresce (035), as outras apagam e aparece o "Ver projeto" (030) */
.row:hover .roll [data-text] { transform: translateY(-100%); }
@media (hover: hover) {
  .others__list:hover .row__link { color: var(--muted); }
  .others__list .row:hover .row__link { color: var(--ink); padding-top: 26px; padding-bottom: 26px; }
  .others__list .row:hover .row__svc { color: var(--ink); }
  .row:hover .row__cta { clip-path: inset(0 0 0 0); }
}
/* quadro da imagem: segue o cursor no eixo Y */
.others__media {
  position: absolute; top: 0; left: 50%; z-index: 5; pointer-events: none; /* o JS alinha com a 3ª coluna */
  width: clamp(180px, 17vw, 260px); aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: #111;
  clip-path: inset(50% 0 50% 0); transition: clip-path .6s var(--ease); will-change: transform;
}
.others__media.is-visible { clip-path: inset(0 0 0 0); }
.others__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (hover: none) { .others__media { display: none; } }

/* ==========================================================================
   SHOWREEL (cresce com o scroll)
   ========================================================================== */
.reel { padding: 0 var(--pad); }
.reel__frame {
  position: relative; background: #000; aspect-ratio: 1378 / 741; overflow: hidden;
  display: grid; place-items: center; border-radius: 4px; will-change: transform, border-radius;
}
.reel__img { width: 85%; height: auto; }
.reel__play {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 20px 8px 8px; border-radius: 999px;
  background: #fff; color: #000; font-size: 14px; font-weight: 500;
  transition: background-color var(--fast), transform .5s var(--ease);
}
.reel__play-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--slate); color: #fff; transition: transform .5s var(--ease); }
.reel__play:hover { background: var(--silver); }
.reel__play:hover .reel__play-icon { background: #000; color: #fff; transform: rotate(120deg) scale(1.08); }

/* ==========================================================================
   CLIENTES (marquee)
   ========================================================================== */
.clients { padding: clamp(80px, 9vw, 124px) 0 clamp(80px, 12vw, 180px); }
.clients .label { padding: 0 var(--pad); margin-bottom: 40px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__track img { height: clamp(36px, 3.6vw, 53px); width: auto; padding-right: 100px; max-width: none; }
.marquee:hover .marquee__track img { filter: grayscale(1); opacity: .55; transition: filter .4s, opacity .4s; }
.marquee .marquee__track img:hover { filter: none; opacity: 1; }

/* ==========================================================================
   SERVIÇOS + PRÊMIOS
   ========================================================================== */
.skills {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding: 0 var(--pad) clamp(140px, 20vw, 320px); /* mais respiro antes do Sobre */
}
.skills__col .label { margin-bottom: 24px; } /* título mais perto da lista */
/* Prêmios começa só depois que a lista de Serviços termina, com 120px de folga */
.skills__col--awards { padding-top: calc(13px + 24px + 5 * 1.3 * 16px + 120px); }
/* listas com um peso só (Inter 16px regular), espaçamento do layout original */
.services li, .awards a { font: 400 16px/1.3 var(--ui); }
.services li {
  display: flex; align-items: center; width: fit-content; gap: 0;
  transition: gap .5s var(--ease);
}
.services li::before { content: ""; width: 0; height: 1.5px; background: currentColor; transition: width .5s var(--ease); } /* mesma linha do "Ver projeto" */
.services li:hover { gap: 12px; }
.services li:hover::before { width: 24px; }
.awards a { display: inline-block; transition: padding .5s var(--ease); }
.awards i { font-style: normal; display: inline-block; margin-left: 6px; transition: transform .5s var(--ease), color var(--fast); }
.awards a:hover { padding-left: 10px; }
.awards a:hover i { transform: rotate(45deg); color: var(--slate); }

/* ==========================================================================
   SERVIÇOS · PRÊMIOS · SOBRE (estilo Floema): painel preso em 3 colunas
   ========================================================================== */
.fl { position: relative; height: 300vh; } /* 1 tela de rolagem por etapa */
.fl__pin {
  position: sticky; top: 0; height: 100vh;
  display: grid; grid-template-columns: auto 1.6fr 1fr; gap: 0; /* lista do tamanho do texto; imagem continua menor */
  padding: clamp(88px, 9vh, 110px) var(--pad) clamp(24px, 4vh, 40px);
}
/* coluna 1: lista grande + legenda com miniatura */
.fl__left { display: flex; flex-direction: column; justify-content: space-between; padding-right: clamp(40px, 5vw, 80px); min-height: 0; }
.fl__nav { display: grid; }
.fl__item {
  display: flex; align-items: center; text-align: left;
  font: 400 clamp(28px, 2.8vw, 44px)/1.1 var(--display); letter-spacing: -.02em;
  color: #b9b9b9; transition: color .5s var(--ease);
}
.fl__item:hover { color: var(--ink); }
.fl__item.is-active { color: var(--ink); }
.fl__arrow { display: inline-block; width: 0; overflow: hidden; transition: width .6s var(--ease); }
.fl__item.is-active .fl__arrow { width: .9em; }
.fl__cap { width: 100%; max-width: 220px; contain: inline-size; } /* acompanha a largura da lista, sem alargar a coluna */
.fl__cap { display: grid; }
.fl__cap-text { grid-area: 1 / 1; font-size: 16px; padding: 12px 0; border-top: 1px solid #cccccb; opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.fl__cap-text.is-active { opacity: 1; transform: none; }
.fl__thumb { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #eee; margin-top: 4px; }
/* coluna 2: título no topo, texto na base, linha fina à esquerda */
.fl__mid { position: relative; border-left: 1px solid #cccccb; }
.fl__panel {
  position: absolute; inset: 0; padding-left: 40px; padding-right: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.fl__panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.fl__title { font: 600 13px/1 var(--ui); text-transform: uppercase; letter-spacing: .02em; } /* mesmo rótulo de Outros trabalhos */
.fl__panel-img { display: none; }
.fl__body { display: grid; gap: 16px; }
.fl__body .socials { color: var(--muted); }
/* coluna 3: imagem grande; a nova sobe por cima da anterior (só máscara, sem escala) */
.fl__media { position: relative; overflow: hidden; margin-left: 40px; background: #eee; }
.fl__media img, .fl__thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(100% 0 0 0); transition: clip-path .9s var(--ease-io);
}
.fl__media img.is-active, .fl__thumb img.is-active { clip-path: inset(0 0 0 0); z-index: 2; }
.fl__media img.was-active, .fl__thumb img.was-active { clip-path: inset(0 0 0 0); z-index: 1; }

@media (max-width: 860px) {
  /* no celular: sem prender, cada etapa empilhada com sua imagem */
  .fl { height: auto; }
  .fl__pin { position: static; height: auto; display: block; padding: 96px var(--pad) 40px; }
  .fl__left, .fl__media { display: none; }
  .fl__mid { border-left: 0; display: grid; gap: 72px; }
  .fl__panel { position: static; opacity: 1; transform: none; pointer-events: auto; padding: 0; gap: 20px; }
  .fl__panel-img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
}

/* ==========================================================================
   SOBRE
   ========================================================================== */
.about {
  display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 260px) minmax(160px, 1fr); gap: 40px;
  padding: 0 var(--pad) clamp(140px, 20vw, 320px); align-items: start;
}
.about__text { display: grid; gap: 24px; }
.about__bio { font: 400 16px/1.3 var(--ui); max-width: 360px; } /* mesmo tamanho e peso das listas de Serviços e Prêmios */
.about__bio .w { color: #cfcfcf; transition: color .2s; }
.about__bio .w.is-on { color: var(--ink); }
.about__photo { position: relative; width: 100%; max-width: 260px; aspect-ratio: 551 / 688; overflow: hidden; border-radius: 12px; background: #eee; }
.about__photo img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.about__socials { text-align: right; justify-self: end; align-self: end; } /* alinhado ao pé da foto */

/* ==========================================================================
   CONTATO
   ========================================================================== */
.contact { border-top: 1px solid var(--line); }
.contact__pin { display: none; position: relative; height: 100svh; overflow: hidden; }
.contact.is-wave .contact__pin { display: block; }
.contact.is-wave .contact__static { display: none; }
.wave { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wave text { font: 500 300px var(--display); letter-spacing: -.035em; fill: var(--ink); }
.wave a text { transition: fill .3s; }
.wave a:hover text { fill: var(--slate); }
.contact__bar {
  position: absolute; left: var(--pad); right: var(--pad); bottom: clamp(20px, 3vw, 40px);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; font-weight: 500;
}
.contact__city { color: var(--muted); }
.contact__static {
  display: grid; grid-template-columns: auto auto auto; justify-content: space-between; align-items: center; gap: clamp(20px, 4vw, 64px);
  padding: clamp(48px, 4vw, 62px) var(--pad);
  font: 400 clamp(32px, 3.4vw, 60px)/1.05 var(--mori); letter-spacing: -.02em;
}
.contact__title { white-space: nowrap; }
.contact__arrow { width: clamp(22px, 2.3vw, 35px); display: block; }
.contact__arrow svg { width: 100%; height: auto; animation: arrow 2.4s var(--ease-io) infinite; }
@keyframes arrow { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(6px); } }
.contact__mail { justify-self: end; position: relative; padding-bottom: 10px; white-space: nowrap; transition: color var(--fast); }
.contact__mail::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: currentColor;
  transform-origin: left; transition: transform .7s var(--ease);
}
.contact__mail:hover { color: var(--slate); }
.contact__mail:hover::after { transform: scaleX(.12); }

/* ==========================================================================
   LABORATÓRIO + FOOTER
   ========================================================================== */
.lab { padding: 0 clamp(8px, 3.87vw, 58px) 28px; }
.lab__box { background: #000; color: #fff; border-radius: 12px; padding: clamp(24px, 2.6vw, 38px) clamp(16px, 2.13vw, 32px) clamp(24px, 2.6vw, 38px); overflow: hidden; }
.lab__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 64px; }
.lab__ctrl { display: flex; align-items: center; gap: 10px; font: 500 15px/1 var(--ui); font-variant-numeric: tabular-nums; }
.lab__count { margin-right: 8px; color: #9a9a9a; } .lab__count b { color: #fff; font-weight: 500; }
.lab__btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #333; display: grid; place-items: center; transition: background-color var(--fast), border-color var(--fast), color var(--fast), transform .4s var(--ease); }
.lab__btn:hover { background: var(--silver); border-color: var(--silver); color: #000; }
.lab__btn:active { transform: scale(.92); }

.lab__viewport { overflow-x: auto; scrollbar-width: none; cursor: grab; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin: 0 calc(-1 * clamp(16px, 2.13vw, 32px)); padding: 0 clamp(16px, 2.13vw, 32px); }
.lab__viewport::-webkit-scrollbar { display: none; }
.lab__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.lab__viewport.is-dragging a { pointer-events: none; }
.lab__track { display: flex; gap: 16px; width: max-content; padding-right: 32px; }
.card {
  position: relative; flex: none; width: clamp(280px, 27.25vw, 409px); aspect-ratio: 1; border-radius: 4px; overflow: hidden;
  scroll-snap-align: start; display: flex; flex-direction: column; justify-content: flex-end;
  transition: translate .6s var(--ease); /* `translate` separado do `transform` que o GSAP anima na entrada */
}
/* Laboratório mantém as cores originais dos projetos */
.card--olive { background: #1f2416; } .card--orange { background: #ff5c0a; } .card--grey { background: #4d4d4d; } .card--purple { background: #6a4be0; }
.card__art { position: absolute; inset: 0 0 auto 0; height: calc(100% - var(--peek, 34%)); overflow: hidden; } /* --peek = altura do título + Ver projeto (medida no JS) */
.card__art img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1s var(--ease); }
.card__art--full { height: 100%; }
.card__art--full img { object-fit: cover; }
.card:hover .card__art img { transform: scale(1.06) rotate(-1deg); }
/* caixa de texto: por padrão só título + "Ver projeto" sobre a cor do card;
   no hover ela sobe, escurece e revela a descrição */
.card { --panel: rgba(0,0,0,.45); }
.card--olive { --panel: #22261a; } .card--orange { --panel: #c9470a; } .card--grey { --panel: #2f2f2f; } .card--purple { --panel: #4a33b3; }
.card__body {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  display: flex; flex-direction: column; gap: 14px; font-size: 15px;
  padding: 22px 27px 28px; min-height: 0; background: transparent;
  transition: min-height .7s var(--ease), background-color .5s var(--ease);
}
.card:hover .card__body, .card:focus-visible .card__body { min-height: 68%; background: var(--panel); }
.card__body p {
  max-height: 0; overflow: hidden; opacity: 0; transform: translateY(8px);
  transition: max-height .7s var(--ease), opacity .4s var(--ease), transform .6s var(--ease);
}
.card:hover .card__body p, .card:focus-visible .card__body p { max-height: 8em; opacity: 1; transform: none; transition-delay: 0s, .15s, .15s; }
.card__body .card__link { margin-top: auto; }
@media (hover: none) { .card__body { min-height: 68%; background: var(--panel); } .card__body p { max-height: none; opacity: 1; transform: none; } }
.card h3 { font: 500 16px/1.3 var(--ui); }
.card p { color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.45; max-width: 340px; }
.card__link { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; font-size: 14px; }
.card__link i { width: 24px; height: 1.5px; background: currentColor; transition: width .5s var(--ease); }
.card:hover .card__link i { width: 44px; }
.card__art--shapes span { position: absolute; border-radius: 50%; background: #fff; opacity: .9; transition: transform 1.2s var(--ease); }
.card__art--shapes span:nth-child(1) { width: 34%; aspect-ratio: 1; left: 12%; top: 18%; background: #ff5c0a; }
.card__art--shapes span:nth-child(2) { width: 24%; aspect-ratio: 1; left: 44%; top: 30%; border-radius: 18%; background: #111; }
.card__art--shapes span:nth-child(3) { width: 16%; aspect-ratio: 1; left: 66%; top: 12%; }
.card:hover .card__art--shapes span:nth-child(1) { transform: translate(14%, 10%) scale(1.1); }
.card:hover .card__art--shapes span:nth-child(2) { transform: rotate(45deg); }
.card:hover .card__art--shapes span:nth-child(3) { transform: translate(-30%, 40%); }

.footer { margin-top: 0; } /* sem os cards do Laboratório, o rodapé abre a caixa escura */
.footer__cols { display: flex; gap: clamp(40px, 6vw, 90px); align-items: flex-start; }
.footer nav { display: grid; gap: 10px; font-size: 14px; color: #a9a9a9; }
.footer nav a { color: #e9e9e9; width: fit-content; }
.footer h4 { font: 500 18px/1.4 var(--ui); color: #fff; margin-bottom: 6px; }
.footer__top { margin-left: auto; font-size: 14px; color: #a9a9a9; transition: color var(--fast); }
.footer__top:hover { color: var(--silver); }
.footer__mark { font: 500 clamp(90px, 25vw, 380px)/.8 var(--display); letter-spacing: -.05em; margin-top: clamp(60px, 8vw, 120px); color: #fff; overflow: hidden; padding-top: .05em; }
.copyright { font-size: 13px; color: #8a8a8a; padding: 18px clamp(8px, 2.2vw, 33px) 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.94); display: grid; place-items: center; padding: 64px 16px; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__inner { width: min(1200px, 100%); transform: scale(.94); transition: transform .7s var(--ease); }
.lightbox.is-open .lightbox__inner { transform: none; }
.lightbox__inner img, .lightbox__inner video, .lightbox__inner iframe { width: 100%; border-radius: 6px; }
.lightbox__close { position: absolute; top: 20px; right: 20px; padding: 12px 18px; border-radius: 999px; background: #fff; color: #000; font-size: 14px; font-weight: 500; transition: background-color var(--fast); }
.lightbox__close:hover { background: var(--silver); }

/* Estados iniciais das animações (só quando o JS roda) */
.js [data-fade], .js [data-stagger] > *, .js .hero__nav a, .js .hero__info > * { opacity: 0; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
  .bar__clock { display: none; }
  .about { grid-template-columns: 1fr 1fr; }
  .about__socials { grid-column: 1; grid-row: 2; justify-self: start; text-align: left; }
  .about__photo { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 860px) {
  .bar { left: 16px; right: 16px; top: auto; bottom: 16px; transform: translateY(150%); justify-content: space-between; gap: 12px; padding-left: 20px; }
  .bar.is-visible { transform: none; }
  .bar__nav { display: none; }
  .bar__clock { display: flex; }
  .menu-btn { display: block; }

  .hero { min-height: auto; gap: 72px; }
  .hero__top { flex-direction: column-reverse; gap: 28px; }
  .hero__nav { justify-content: flex-start; text-align: left; }
  .hero__nav-br { display: none; }
  .wordmark { font-size: 27vw; }
  .hero__info { grid-template-columns: 1fr auto; }
  .hero__info .socials { grid-column: 1; grid-row: 2; }
  .scroll-cue { justify-self: end; grid-column: 2; grid-row: 1 / span 2; align-self: end; }
  .hero__socials { justify-self: start; text-align: left; }

  .showcase__frame { aspect-ratio: 4 / 5; }
  .stack__card { width: 120px; }
  .posts__row, .posts__row--flip { grid-template-columns: 1fr; gap: 10px; margin-bottom: 10px; }
  .post:not(.post--wide) .post__media { aspect-ratio: 4 / 5; min-height: 0; }

  .others__media { display: none; }
  .others__head { display: none; }
  .row__link { grid-template-columns: 56px 1fr auto; column-gap: 14px; row-gap: 2px; }
  .row__thumb { display: block; width: 56px; aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: #eee; grid-row: 1 / span 2; }
  .row__name { grid-column: 2; padding-left: 0; }
  .row__svc { grid-column: 2; font-size: 13px; }
  .row__link > .cell:empty { display: none; }
  .row__cta { grid-column: 3; grid-row: 1 / span 2; clip-path: none; color: var(--muted); }
  .row__cta { font-size: 0; } /* no celular fica só a seta */
  .row__cta::after { content: '↗'; font-size: 18px; }
  .row__svc { overflow: hidden; text-overflow: ellipsis; }

  .reel__frame { aspect-ratio: 4 / 5; }
  .reel__img { width: 140%; max-width: none; }

  .skills { grid-template-columns: 1fr; gap: 96px; padding-bottom: 96px; } /* mesmos 96px entre Serviços → Prêmios → Sobre */
  .skills__col--awards { padding-top: 0; }

  .about { grid-template-columns: 1fr; gap: 32px; }
  .about__photo, .about__socials { grid-column: auto; grid-row: auto; }
  .about__text { gap: 24px; }

  .contact__static { grid-template-columns: auto auto; justify-content: start; row-gap: 20px; }
  .contact__city { display: none; }
  .wave text { font-size: 190px; }
  .contact__bar { top: 24px; bottom: auto; } /* no celular, embaixo fica a barra de navegação */
  .contact__mail { grid-column: 1 / -1; justify-self: start; font-size: clamp(28px, 8.4vw, 44px); }
  .contact__mail::after { height: 3px; }

  .lab__head { margin-bottom: 36px; }
  .lab__ctrl .lab__btn { display: none; }
  .footer__cols { flex-wrap: wrap; }
  .footer__top { margin-left: 0; width: 100%; }
}

@media (max-width: 420px) {
  .hero__nav-br { display: block; }
  .contact__title { white-space: normal; }
}

/* Acessibilidade: menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .curtain { display: none; }
}
