/* =========================================================================
   Junior Dias — Portfólio
   Estrutura/interações: portfólio "stacked panels" (título gigante com objeto
   3D, faixa de marcas, reel, títulos que se preenchem, cards empilhados).
   Identidade: preto predominante + azul-acinzentado, vidro líquido (lâminas
   foscas do KV), Cendrick Node Extended nos títulos e DM Sans no texto.
   ========================================================================= */

@font-face { font-family: "Cendrick Node Extended"; src: url("../fonts/CendrickNode-Extended.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Cendrick Node Extended"; src: url("../fonts/CendrickNode-ItalicExtended.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Cendrick Node"; src: url("../fonts/CendrickNode-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --black: #050505;
  --black-2: #0a0b0d;
  --black-3: #111318;
  --steel-900: #0f141c;
  --steel-800: #161e29;
  --steel-600: #3a4a60;
  --steel-500: #5f7896;
  --steel-300: #9fb3cb;
  --steel-100: #d9e2ec;
  --white: #f4f1ec;
  --text: #e6e4df;
  --muted: #8e97a4;
  --muted-2: #6b7482;
  --line: rgba(214, 224, 236, 0.1);
  --line-2: rgba(214, 224, 236, 0.18);
  --grid: rgba(255, 255, 255, 0.045);

  --title-grad: linear-gradient(90deg, #fbf4fb 0%, #f7f0ea 50%, #fcf0df 100%);
  --glass-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.085) 0%, rgba(255, 255, 255, 0.025) 100%);
  --glass-border: rgba(210, 222, 238, 0.16);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 -1px 0 rgba(255, 255, 255, 0.03), 0 30px 60px -30px rgba(0, 0, 0, 0.9);

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 40px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --maxw: 1320px;
  --nav-h: 64px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);

  --f-display: "Cendrick Node Extended", "Cendrick Node", "Arial Black", Arial, sans-serif;
  --f-display-n: "Cendrick Node", "Cendrick Node Extended", Arial, sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font-family: var(--f-body); font-size: 16px; line-height: 1.6; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--steel-300); color: var(--black); }
:focus-visible { outline: 2px solid var(--steel-300); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; border-radius: 999px;
  background: var(--white); color: var(--black); font-size: 14px; text-decoration: none; transition: top .3s;
}
.skip:focus { top: 16px; }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- tipografia ---------- */
.label { font-size: 13.5px; font-weight: 400; letter-spacing: 0.01em; color: var(--muted); }
.label::before { content: "* "; color: var(--steel-300); }
.label--plain::before { content: none; }

.big-title {
  /* centralizado pelo meio da página mesmo quando o título é mais largo que .sec-head */
  position: relative; display: block; width: fit-content; margin: 14px 0 0 50%; translate: -50% 0;
  font-family: var(--f-display); font-weight: 400; font-synthesis: none;
  font-size: clamp(min(40px, 11.2vw), 9.6vw, 176px); line-height: 0.9; letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap;
}
.big-title__stroke { color: transparent; -webkit-text-stroke: 1px rgba(233, 230, 225, 0.32); }
/* o gradiente de background-clip:text só pinta dentro da caixa do elemento:
   a caixa é estendida para cima/baixo (padding) para os acentos (Ó, Ç, Õ) receberem cor */
.big-title__fill {
  position: absolute; left: 0; right: 0; top: -0.35em; bottom: -0.35em; padding-top: 0.35em;
  background: var(--title-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  clip-path: inset(0 calc(100% - var(--p, 1) * 100%) 0 0);
}

.statement {
  font-family: var(--f-body); font-weight: 400; font-size: clamp(26px, 3.1vw, 48px);
  line-height: 1.14; letter-spacing: -0.025em; color: var(--white); text-wrap: balance;
}
.statement .soft { color: var(--muted); }
.h-lg { font-family: var(--f-display); font-weight: 400; font-synthesis: none; font-size: clamp(24px, 2.5vw, 38px); line-height: 1.1; letter-spacing: -0.01em; color: var(--white); }
.h-lg .soft { color: var(--muted); }

.sec-head { position: relative; z-index: 1; max-width: 1060px; margin: 0 auto; text-align: center; }
.sec-head > .label { display: block; }
.sec-head .statement { max-width: 22ch; margin: 7vh auto 0; }
.sec-intro { max-width: 58ch; margin: 22px auto 0; font-size: clamp(15px, 1.1vw, 17px); color: var(--muted); }

[data-words] .w { transition: opacity .2s linear; }

.i-arrow {
  display: inline-block; width: 1em; height: 1em; flex: none; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .35s var(--ease);
}
.i-arrow--down-right { transform: rotate(45deg); }
.i-arrow--down { transform: rotate(90deg); }
.i-arrow--up-right { transform: rotate(-45deg); }

/* ---------- vidro líquido ---------- */
.glass {
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.glow { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(20px);
  background: radial-gradient(closest-side, rgba(140, 165, 196, 0.22), rgba(95, 120, 150, 0.08) 55%, transparent 75%); }
.grid-bg { position: relative; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 80%);
}

/* ---------- botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 24px; border-radius: 999px; white-space: nowrap;
  font-family: var(--f-body); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; text-decoration: none;
  transition: background-color .3s, color .3s, border-color .3s, box-shadow .3s, translate .45s var(--ease);
}
.btn .i-arrow { font-size: 16px; }
.btn:hover .i-arrow--right { transform: translateX(3px); }
.btn:hover .i-arrow--down-right { transform: rotate(45deg) translateX(3px); }
.btn:hover .i-arrow--up-right { transform: rotate(-45deg) translateX(3px); }
.btn:hover .i-arrow--down { transform: rotate(90deg) translateX(3px); }
.btn--light { background: var(--white); color: var(--black); box-shadow: 0 10px 30px -12px rgba(200, 215, 235, 0.35); }
.btn--light:hover { background: var(--steel-100); }
.btn--glass { color: var(--white); background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn--glass:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)); border-color: rgba(210, 222, 238, 0.3); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 13.5px; }

/* ---------- navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 80; pointer-events: none;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) var(--gutter) 10px;
}
.nav > * { pointer-events: auto; }
.nav::before {
  content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.9), rgba(5, 5, 5, 0.6) 55%, rgba(5, 5, 5, 0));
}
.brand {
  justify-self: start; color: var(--white); text-decoration: none;
  font-family: var(--f-display); font-weight: 400; font-size: 15px; letter-spacing: 0.02em; text-transform: uppercase;
}
.nav__capsule { display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(14, 17, 22, 0.94); border: 1px solid rgba(214, 224, 236, 0.32); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8); }
.nav__capsule a {
  padding: 8px 18px; border-radius: 999px; color: var(--white); text-decoration: none;
  font-size: 14px; font-weight: 400; transition: background-color .25s, color .25s;
}
.nav__capsule a:hover { background: rgba(255, 255, 255, 0.14); }
.nav__capsule a.is-active { background: var(--white); color: var(--black); }
.nav__actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.nav__toggle { display: none; height: 38px; padding: 0 18px; border-radius: 999px; font-size: 13.5px; font-weight: 500; background: var(--white); color: var(--black); }

/* ---------- painéis empilhados ---------- */
.panel { position: relative; overflow-x: clip; background: var(--black); }
.panel--alt { background: var(--black-2); }
.panel--steel { background: radial-gradient(120% 70% at 50% 0%, var(--steel-800) 0%, var(--steel-900) 45%, #0b0f15 100%); }
.panel + .panel { border-radius: var(--radius-xl) var(--radius-xl) 0 0; margin-top: calc(-1 * var(--radius-xl)); box-shadow: 0 -1px 0 var(--line), 0 -30px 60px -20px rgba(0, 0, 0, 0.8); }
.panel::after {
  content: ""; position: absolute; inset: 0; z-index: 40; pointer-events: none; border-radius: inherit;
  background: #000; opacity: calc(var(--dim, 0) * 0.6);
}
.has-stack .panel[data-stack] { position: sticky; top: var(--stick, 0px); }
.has-stack .panel[data-stack]:nth-child(1) { z-index: 1; }
.has-stack .panel[data-stack]:nth-child(2) { z-index: 2; }
.has-stack .panel[data-stack]:nth-child(3) { z-index: 3; }
.has-stack .panel[data-stack]:nth-child(4) { z-index: 4; }
.has-stack .panel[data-stack]:nth-child(5) { z-index: 5; }
.has-stack .panel[data-stack]:nth-child(6) { z-index: 6; }
.is-measuring .panel[data-stack],
.is-measuring .pcard { position: relative !important; top: auto !important; }

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* lâminas de vidro (recortes do render) — o preto some com "screen" */
.slab { position: absolute; z-index: 0; pointer-events: none; height: auto; mix-blend-mode: screen; will-change: transform; }

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; grid-template-rows: 1fr auto; align-items: center;
  padding: calc(var(--nav-h) + 4vh) var(--gutter) 22px;
  background: var(--black);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}
/* vinheta sobre a grade (escurece as bordas, como no KV) */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(circle 78vmax at 50% 50%, rgba(5, 5, 5, 0) 30vmin, rgba(5, 5, 5, 0.85) 78vmax);
}
/* sem z-index no contêiner: assim o "screen" das lâminas mistura com o fundo do hero */
.hero__slabs { position: absolute; inset: 0; pointer-events: none; }
.hero__slabs .slab { z-index: 1; top: 0; height: 100%; width: auto; max-width: none; }
.hs--edge { left: -3vw; transform: scaleX(-1); height: 88% !important; top: -3% !important; }
.hs--thin { right: calc(100% - var(--gutter) - 23vw); height: 78% !important; top: 7% !important; }

/* ---------- lâmina de vidro da direita (glass.js) ----------
   É o próprio render (o "tray" em camadas), espelhado como no KV, com vida em CSS 3D.
   Nenhum contêiner cria contexto de empilhamento (sem z-index, transform, opacity,
   filter ou perspective): cada camada mistura com "screen" direto no fundo do hero.
   A pose de repouso vem das variáveis abaixo (o JS lê as mesmas). */
.hero__object { position: absolute; inset: 0; pointer-events: none; }
.ho-frame {
  --ho-rx: 3; --ho-ry: 2; --ho-rz: 2.5; --ho-p: 1900; --ho-flip: -1;
  position: absolute; top: 0; right: -17vw; height: min(112%, 84vw); aspect-ratio: 1600 / 2508;
}
.ho-frame > * { position: absolute; z-index: 1; mix-blend-mode: screen; pointer-events: none; }
/* entrada: só opacidade no CSS (o giro/deslize de entrada é do JS) */
.ho-img, .ho-glow, .ho-occ { animation: ho-in 2s var(--ease) 0.2s both; }
.js .hero__object:not(.is-live) .ho-img, .js .hero__object:not(.is-live) .ho-glow, .js .hero__object:not(.is-live) .ho-occ { animation-play-state: paused; }
@keyframes ho-in { from { opacity: 0; } }
.ho-img, .ho-occ, .ho-sheen {
  inset: 0; width: 100%; height: 100%; max-width: none;
  transform-origin: 50% 42%;
  transform: perspective(calc(var(--ho-p) * 1px)) rotateX(calc(var(--ho-rx) * 1deg)) rotateY(calc(var(--ho-ry) * 1deg)) rotateZ(calc(var(--ho-rz) * 1deg)) scaleX(var(--ho-flip));
  will-change: transform, opacity;
}
/* luz de estúdio atrás do vidro: vira um halo azul-acinzentado em volta dele */
.ho-glow {
  inset: -14% -70% -6% -58%;
  background:
    radial-gradient(30% 26% at 50% 36%, rgba(176, 196, 222, 0.16), rgba(176, 196, 222, 0) 100%),
    radial-gradient(closest-side at 50% 44%, rgba(112, 138, 170, 0.30), rgba(80, 102, 130, 0.12) 52%, rgba(5, 5, 5, 0) 100%);
  will-change: transform;
}
/* "fosco": por trás do vidro a grade e o halo somem (silhueta do tray, um pouco para dentro das bordas).
   O polígono é a silhueta de tray-glass.webp (tools/make-tray.py): refaça-o se o recorte mudar. */
.ho-occ {
  mix-blend-mode: normal; background: var(--black); opacity: 0.92;
  clip-path: polygon(5% 100%, 5% 16.5%, 5.6% 13%, 7.8% 10%, 11.8% 8%, 18% 7%, 30% 8%, 46% 10%, 61.5% 12%, 77% 14%, 88.3% 16%, 92% 18%, 94% 21%, 94.8% 28%, 94.8% 100%);
  -webkit-mask-image: linear-gradient(#000 50%, transparent 90%);
  mask-image: linear-gradient(#000 50%, transparent 90%);
}
/* reflexos: só aparecem onde o vidro tem luz (máscara = luminância do próprio render, ligada pelo JS) */
.ho-sheen { overflow: hidden; opacity: 0; mask-mode: luminance; mask-size: 100% 100%; mask-repeat: no-repeat; }
.ho-sheen > i { position: absolute; display: block; will-change: transform, opacity; }
.ho-band {
  top: -10%; bottom: -10%; left: -50%; width: 200%;
  background: linear-gradient(104deg, rgba(205, 222, 244, 0) 34%, rgba(205, 222, 244, 0.10) 45%, rgba(240, 246, 255, 0.24) 50%, rgba(205, 222, 244, 0.10) 55%, rgba(205, 222, 244, 0) 66%);
}
.ho-glint {
  top: -10%; bottom: -10%; left: -50%; width: 200%; opacity: 0;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0) 43%, rgba(226, 238, 252, 0.34) 47.5%, rgba(255, 255, 255, 0.8) 50%, rgba(226, 238, 252, 0.34) 52.5%, rgba(255, 255, 255, 0) 57%);
}
.ho-spec {
  top: 0; left: 0; width: 90%; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(238, 245, 255, 0.36), rgba(170, 196, 228, 0.12) 45%, rgba(170, 196, 228, 0) 100%);
}

.hero__content { position: relative; z-index: 2; width: min(100%, 1180px); margin-left: 23vw; pointer-events: none; }
/* entrada do hero: começa no primeiro quadro, independente do JS */
@keyframes hero-up { from { opacity: 0; translate: 0 24px; } }
@keyframes hero-down { from { opacity: 0; translate: 0 -16px; } }
@keyframes hero-slab { from { opacity: 0; translate: -40px 0; } }
.hero__title > span { animation: hero-up 1.2s var(--ease) 0.15s backwards; }
.hero__title > span + span { animation-delay: 0.27s; }
.hero__tagline { animation: hero-up 1.1s var(--ease) 0.45s backwards; }
.hero__actions { animation: hero-up 1.1s var(--ease) 0.57s backwards; }
.hero__stats { animation: hero-up 1.1s var(--ease) 0.69s backwards; }
.hero__slabs .slab { animation: hero-slab 1.8s var(--ease) 0.1s backwards; }
.hero__slabs .slab + .slab { animation-delay: 0.25s; }
.nav > * { animation: hero-down 0.9s var(--ease) 0.2s backwards; }
.nav > * + * { animation-delay: 0.28s; }
.nav > * + * + * { animation-delay: 0.36s; }
.hero__title {
  display: block; width: fit-content;
  font-family: var(--f-display); font-weight: 400; font-synthesis: none;
  font-size: clamp(54px, 8.6vw, 150px); line-height: 0.9; letter-spacing: -0.005em; text-transform: uppercase;
}
.hero__l1, .hero__l2 {
  display: block; width: fit-content; padding-bottom: 0.04em;
  background: var(--title-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__row2 { display: flex; align-items: center; gap: 0.4em; }
.hero__role {
  display: block; padding-bottom: 0.06em;
  font-family: var(--f-body); font-size: 0.18em; line-height: 1.3; letter-spacing: 0.01em; text-transform: none; color: var(--text); white-space: nowrap;
}
.hero__role span { display: block; }

.hero__tagline { max-width: 32ch; margin-top: 5vh; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.4; color: var(--text); pointer-events: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; pointer-events: auto; }
.hero__stats {
  position: relative; z-index: 2; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 28px;
  padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted);
}
.hero__stats li::before { content: "* "; color: var(--steel-300); }
.hero__stats strong { font-weight: 500; color: var(--white); }
.hero__status { display: inline-flex; align-items: center; gap: 8px; }
.hero__status::before { content: none !important; }
.hero__status i, .dock__who i {
  width: 7px; height: 7px; border-radius: 50%; background: #7fd1a8; box-shadow: 0 0 0 0 rgba(127, 209, 168, 0.5); animation: pulse 2.2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(127, 209, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 209, 168, 0); } }

/* =========================================================================
   CINEMA + MARCAS + REEL
   ========================================================================= */
.cinema { position: relative; padding-bottom: 5vh; }
.cinema__frame { position: relative; height: min(80vh, 780px); overflow: hidden; background: var(--black); }
.cinema__img, .cinema__frame picture { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.cinema__img { filter: none; }
.cinema__frame::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(5, 5, 5, 0.8) 0%, rgba(5, 5, 5, 0) 38%), linear-gradient(to bottom, rgba(5, 5, 5, 0.55), rgba(5, 5, 5, 0) 22%);
}
.cinema__caption { position: absolute; z-index: 2; left: var(--gutter); top: calc(var(--nav-h) + 12px); font-size: 13.5px; color: var(--text); }
.cinema__caption .label { margin-right: 8px; }
.logos {
  background: rgba(10, 12, 16, 0.78);
  position: absolute; z-index: 3; left: 50%; bottom: 62px; translate: -50% 0;
  width: min(840px, calc(100% - 2 * var(--gutter))); height: 66px; padding: 0 12px;
  display: flex; align-items: center; gap: 10px; border-radius: 999px;
}
.logos__arrow { flex: none; width: 42px; height: 42px; border-radius: 50%; cursor: pointer; background: var(--white); color: var(--black); font-size: 16px; transition: background-color .3s, transform .2s; }
.logos__arrow:hover { background: var(--steel-100); }
.logos__arrow:active { transform: scale(0.92); }
.logos__viewport {
  flex: 1; overflow: hidden; height: 100%; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logos__track { display: flex; align-items: center; gap: 48px; width: max-content; will-change: transform; }
.logos__item { font-family: var(--f-display); font-weight: 400; font-size: 17px; letter-spacing: 0.01em; text-transform: uppercase; color: var(--white); white-space: nowrap; opacity: 0.9; }
.logos__caption { position: absolute; z-index: 2; left: 0; right: 0; bottom: 26px; text-align: center; font-size: 13.5px; color: var(--muted); }

.reel { display: grid; gap: 12px; margin-top: 8vh; overflow: hidden; }
/* cada faixa é duplicada e anda em loop (main.js setupReel); com movimento reduzido, rola na mão */
.reel__row { display: flex; gap: 12px; width: max-content; will-change: transform; }
.reel__set { display: flex; gap: 12px; }
.reel__item {
  flex: none; display: block; height: clamp(120px, 10.5vw, 190px); aspect-ratio: var(--ar, 1.6); width: auto; padding: 0;
  border-radius: 16px; overflow: hidden; background: var(--black-3); border: 1px solid var(--line); cursor: pointer;
}
.reel__item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) brightness(0.9); transition: transform .8s var(--ease), filter .5s; }
.reel__item:hover img { filter: none; }

/* =========================================================================
   SOBRE
   ========================================================================= */
.about { position: relative; padding: 16vh var(--gutter) 18vh; }
.sl--a { width: clamp(40px, 4vw, 70px); left: 6%; top: 8%; }
.sl--b { width: clamp(90px, 10vw, 170px); right: 3%; top: 14%; }
.about .glow { width: 60vw; height: 60vw; left: 20vw; top: 30%; }

.about__grid {
  position: relative; z-index: 1; max-width: 1180px; margin: 11vh auto 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 16px;
}
.profile { display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr); gap: 26px; align-items: start; padding: 22px; border-radius: var(--radius-lg); }
.profile__photo { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; background: #0b0d10; border: 1px solid var(--line); }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.05); }
.profile__name { margin: 10px 0 6px; font-family: var(--f-display); font-weight: 400; font-size: 26px; line-height: 1.05; text-transform: uppercase; color: var(--white); }
.profile__role { font-size: 14px; color: var(--muted); }
.profile__list { margin-top: 18px; border-top: 1px solid var(--line); }
.profile__list div { display: grid; grid-template-columns: 88px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.profile__list dt { font-size: 13px; color: var(--muted); }
.profile__list dd { font-size: 14.5px; line-height: 1.4; color: var(--white); }

.impact {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 26px 28px; border-radius: var(--radius-lg); color: var(--white);
}
.impact__slab { position: absolute; z-index: -1; right: -16%; top: -34%; width: 50%; height: auto; mix-blend-mode: screen; opacity: 0.5; pointer-events: none; }
.impact__main { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.impact__big { padding-top: 0.1em; margin-top: -0.1em; font-family: var(--f-display); font-weight: 400; font-size: clamp(72px, 8vw, 124px); line-height: 0.85; background: var(--title-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.impact__text { flex: 1; min-width: 200px; max-width: 30ch; font-size: 15px; line-height: 1.45; color: var(--text); padding-bottom: 6px; }
.impact__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.impact__stats strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); line-height: 1; color: var(--white); }
.impact__stats li > span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }

/* =========================================================================
   EXPERTISE
   ========================================================================= */
.expertise { padding: 16vh var(--gutter) 18vh; }
.expertise .glow { width: 70vw; height: 70vw; left: 15vw; top: 18%; }
.tracks { position: relative; z-index: 1; max-width: var(--maxw); margin: 9vh auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.track {
  position: relative; isolation: isolate; overflow: hidden; min-height: 400px; aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; justify-content: space-between; padding: 24px 26px 26px; border-radius: 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015) 55%), #07090c;
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow);
}
.track__img { position: absolute; z-index: -1; top: -4%; right: 2%; height: 108%; width: auto; max-width: none; mix-blend-mode: screen; opacity: 0.95; transition: transform 1.4s var(--ease); }
.track:hover .track__img { transform: translateY(-2%) scale(1.03); }
.track::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 6, 8, 0.85) 0%, rgba(5, 6, 8, 0.4) 55%, rgba(5, 6, 8, 0) 80%); }
.track__label { font-size: 14px; color: var(--text); }
.track__label::before { content: "* "; color: var(--steel-300); }
.track__title { font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 3.6vw, 54px); line-height: 1; text-transform: uppercase; color: var(--white); }
.track__text { max-width: 34ch; margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips li {
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; line-height: 1.3; color: var(--white);
  background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--glass-border), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

.process { position: relative; z-index: 1; max-width: var(--maxw); margin: 16vh auto 0; }
.process__head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 6vw; align-items: end; margin-bottom: 6vh; }
.process__head p { color: var(--muted); font-size: 15.5px; max-width: 46ch; }
.steps { border-top: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.35fr) auto; gap: 28px; align-items: center;
  padding: 30px 10px; border-bottom: 1px solid var(--line); transition: background-color .35s;
}
.step:hover { background: rgba(255, 255, 255, 0.025); }
.step__n { font-family: var(--f-display); font-size: 14px; color: var(--steel-300); }
.step__title h4 { font-family: var(--f-display); font-weight: 400; font-size: clamp(18px, 1.55vw, 22px); line-height: 1.2; color: var(--white); }
.step__title p { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.step__text { font-size: 15px; color: var(--text); }
.step__tag { justify-self: end; }
.pill-tag { display: inline-flex; padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--text); white-space: nowrap;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--glass-border), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.pill-tag b { margin-left: 4px; font-weight: 500; color: var(--white); }

/* =========================================================================
   PROJETOS
   ========================================================================= */
.projects { padding: 9vh var(--gutter) 16vh; }
.stack { --stack-top: calc(var(--nav-h) + 14px); --peek: clamp(48px, 7.5svh, 64px); --n: 6; position: relative; max-width: var(--maxw); margin: 5vh auto 0; display: flex; flex-direction: column; gap: 8vh; }
.pcard {
  /* --n = cabeçalhos visíveis na pilha (no máx. 5, definido no main.js); do 5º em diante os cards se sobrepõem */
  position: sticky; top: calc(var(--stack-top) + min(var(--i), var(--n) - 1) * var(--peek));
  height: min(max(460px, calc(100vh - var(--stack-top) - (var(--n) - 1) * var(--peek) - 24px)), calc(100vh - var(--stack-top) - (var(--n) - 2) * var(--peek) - 16px));
  height: min(max(460px, calc(100svh - var(--stack-top) - (var(--n) - 1) * var(--peek) - 24px)), calc(100svh - var(--stack-top) - (var(--n) - 2) * var(--peek) - 16px));
  padding: 0 14px 14px;
  display: grid; grid-template-rows: var(--peek) minmax(0, 1fr);
  border-radius: var(--radius-lg); background: linear-gradient(180deg, #12151b, #0b0d11);
  border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 -20px 60px -20px rgba(0, 0, 0, 0.9);
}
@media (min-width: 761px) and (max-height: 560px) {
  .pcard { position: relative; top: auto; height: calc(100vh - var(--stack-top) - 16px); height: calc(100svh - var(--stack-top) - 16px); }
}
.pcard__head { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 0 6px; }
.pcard__num { font-family: var(--f-display); font-size: 13px; color: var(--steel-300); white-space: nowrap; }
.pcard__id { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
.pcard__client { white-space: nowrap; }
.pcard__title { font-family: var(--f-display); font-weight: 400; font-size: 19px; text-transform: uppercase; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__meta { margin-left: auto; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.pcard__head .btn { flex: none; }
.pcard__media { display: grid; grid-template-columns: 1.65fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; min-height: 0; transform-origin: 50% 0; }
.pcard__fig { position: relative; min-height: 0; margin: 0; overflow: hidden; border-radius: 16px; background: var(--black-3); cursor: pointer; }
.pcard__fig--big { grid-row: 1 / span 2; }
.pcard__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard__fig:hover img { transform: scale(1.04); }
.pcard__fig:hover img.is-cover { transform: scale(1.015); }
.pcard__fig:not(.kv-contain) > .kv-bg { display: none; }
/* KV inteiro (sem cortar título/logo) sobre um fundo desfocado dele mesmo */
.pcard__fig img.is-contain { position: relative; z-index: 1; object-fit: contain; padding: 14px; }
.pcard__fig .kv-bg { position: absolute; inset: -12%; width: 124%; height: 124%; max-width: none; object-fit: cover; filter: blur(34px) brightness(0.5) saturate(1.15); transform: none !important; }
.pcard__fig:hover img.is-contain { transform: scale(1.02); }
.pcard__fig > .award { position: absolute; z-index: 2; top: 12px; right: 12px; }
.award__short { display: none; }
.pcard__fig--big { container-type: inline-size; }
@container (max-width: 600px) {
  .pcard__fig > .award .award__full { display: none; }
  .pcard__fig > .award .award__short { display: inline; }
}
.pcard__summary { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px; pointer-events: none; }
/* o resumo aparece ao passar o mouse, para não cobrir o KV */
.pcard__lead { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .5s var(--ease);
  max-width: 46ch; padding: 12px 16px; border-radius: 14px; font-size: 14px; line-height: 1.45; color: var(--white);
  background: linear-gradient(180deg, rgba(20, 24, 31, 0.72), rgba(10, 12, 16, 0.78)); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.pcard__fig--big:hover .pcard__lead, .pcard__fig--big:focus-within .pcard__lead { opacity: 1; transform: none; }
@media (hover: none) { .pcard__lead { display: none; } }
.award {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
  background: var(--steel-100); color: var(--black); font-size: 12.5px; font-weight: 500;
}
.award::before { content: "*"; font-family: var(--f-display); color: var(--steel-500); }

.archive { max-width: var(--maxw); margin: 18vh auto 0; }
.archive__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.archive__head .label { display: block; margin-bottom: 12px; }
.archive__hint { max-width: 38ch; font-size: 15px; color: var(--muted); }
.alist { border-top: 1px solid var(--line); }
.arow { border-bottom: 1px solid var(--line); }
.arow__btn {
  width: 100%; text-align: left; display: grid; grid-template-columns: 52px minmax(0, 0.9fr) minmax(0, 1.3fr) minmax(0, 1fr) 40px;
  align-items: center; gap: 20px; padding: 18px 10px; border-radius: 14px; transition: background-color .3s, padding-left .45s var(--ease);
}
.arow__btn:hover, .arow__btn:focus-visible { background: rgba(255, 255, 255, 0.045); padding-left: 20px; }
.arow__num { font-family: var(--f-display); font-size: 12px; color: var(--steel-300); }
.arow__client { font-family: var(--f-display); font-weight: 400; font-size: clamp(14px, 1.2vw, 17px); text-transform: uppercase; color: var(--white); }
.arow__title { font-size: 15.5px; color: var(--text); }
.arow__cat { font-size: 13.5px; color: var(--muted); }
.arow__arrow { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; justify-self: end; box-shadow: inset 0 0 0 1px var(--glass-border); transition: background-color .3s, color .3s; }
.arow__arrow .i-arrow { font-size: 14px; }
.arow__btn:hover .arow__arrow { background: var(--white); color: var(--black); }
.archive__more { margin-top: 40px; display: flex; justify-content: center; }

.peek {
  position: fixed; left: 0; top: 0; z-index: 70; width: 300px; aspect-ratio: var(--ar, 808 / 632); pointer-events: none;
  border-radius: 16px; overflow: hidden; opacity: 0; background: var(--black-3); border: 1px solid var(--glass-border);
  transform: translate3d(var(--x, -999px), var(--y, -999px), 0) scale(0.88) rotate(-2deg);
  transition: opacity .3s, transform .45s var(--ease); box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.8);
}
.peek.is-on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1) rotate(0deg); }
.peek img { width: 100%; height: 100%; object-fit: cover; }
.noscript { margin-top: 40px; text-align: center; }

/* =========================================================================
   TRAJETÓRIA + RECONHECIMENTO
   ========================================================================= */
.career { padding: 16vh var(--gutter) 18vh; }
.sl--c { width: clamp(44px, 4vw, 70px); right: 3%; top: 3%; opacity: 0.8; }
.jobs { position: relative; z-index: 1; max-width: var(--maxw); margin: 9vh auto 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.job { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: var(--radius); transition: border-color .35s, transform .5s var(--ease); }
.job:hover { border-color: rgba(159, 179, 203, 0.4); transform: translateY(-3px); }
.job__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.job__period { font-family: var(--f-display); font-size: 12px; color: var(--steel-300); }
.job__now { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(127, 209, 168, 0.12); color: #8fdcb4; font-size: 12px; }
.job__now::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.job h3 { margin-top: 16px; font-family: var(--f-display); font-weight: 400; font-size: 19px; line-height: 1.15; text-transform: uppercase; color: var(--white); }
.job__role { font-size: 14px; color: var(--muted); }
.job ul { display: grid; gap: 8px; margin-top: 10px; }
.job li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.45; color: var(--text); }
.job li::before { content: "*"; position: absolute; left: 0; top: 0; color: var(--steel-300); }
.job--before { background: transparent; border-style: dashed; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

.recog { position: relative; z-index: 1; max-width: var(--maxw); margin: 16vh auto 0; }
.recog__head { max-width: 780px; }
.recog__head .label { display: block; margin-bottom: 16px; }
.recog__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 6vh; }
.recog__col { padding: 24px; border-radius: var(--radius); }
.recog__kind { margin-bottom: 8px; font-family: var(--f-display); font-size: 13px; text-transform: uppercase; color: var(--steel-300); }
.recog__col li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.recog__col li:last-child { border-bottom: 0; padding-bottom: 0; }
.recog__col strong { display: block; font-weight: 500; font-size: 16.5px; line-height: 1.3; color: var(--white); }
.recog__col span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6vh; }
.skills li { padding: 9px 15px; border-radius: 999px; font-size: 13.5px; color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-border); transition: background-color .3s, color .3s; }
.skills li:hover { background: var(--white); color: var(--black); }

/* =========================================================================
   RECOMENDAÇÕES
   ========================================================================= */
.big-title--long { font-size: clamp(min(27px, 7.6vw), 7.1vw, 130px); }
.recs { padding: 16vh var(--gutter) 18vh; }
.recs .glow { width: 70vw; height: 60vw; left: 15vw; top: 22%; }
.recs__grid { position: relative; z-index: 1; max-width: var(--maxw); margin: 9vh auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rec { position: relative; margin: 0; display: flex; flex-direction: column; gap: 28px; padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-lg); }
.rec__mark { display: block; height: 0.42em; font-family: var(--f-body); font-weight: 500; font-size: 120px; line-height: 0.85; color: var(--steel-300); opacity: 0.6; }
.rec__text { margin: 0; flex: 1; }
.rec__text p { font-size: clamp(16.5px, 1.3vw, 19.5px); line-height: 1.6; letter-spacing: -0.01em; color: var(--muted); }
.rec__text mark { background: none; color: var(--white); }
.rec__who { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.rec__avatar {
  grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-size: 14px; letter-spacing: 0.04em; color: var(--white);
  background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.rec__id strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 16px; text-transform: uppercase; color: var(--white); }
.rec__id > span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.rec__ctx { grid-column: 2; font-size: 13px; color: var(--muted-2); }
.recs__source { position: relative; z-index: 1; margin-top: 5vh; text-align: center; font-size: 14px; color: var(--muted); }
.recs__source a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.recs__source a:hover { border-color: var(--white); }

/* =========================================================================
   CONTATO
   ========================================================================= */
.contact { padding: 16vh var(--gutter) calc(18vh + var(--radius-xl)); min-height: 100vh; }
.contact .glow { width: 55vw; height: 55vw; right: -5vw; top: 25%; }
/* a lâmina fica atrás do formulário de vidro, que a desfoca */
.sl--d { width: clamp(120px, 13vw, 220px); right: calc(max(var(--gutter), (100% - var(--maxw)) / 2) - clamp(60px, 6.5vw, 110px)); top: 34%; }
.contact__grid {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 9vh auto 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: start;
}
.contact__lead { max-width: 44ch; margin: 24px 0 28px; font-size: 16px; color: var(--muted); }
.contact__mail {
  display: inline-flex; align-items: center; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2);
  font-family: var(--f-display); font-weight: 400; font-size: clamp(17px, 1.7vw, 24px); color: var(--white); text-decoration: none;
  word-break: break-all; transition: color .3s, border-color .3s;
}
.contact__mail:hover { color: var(--steel-300); border-color: var(--steel-300); }
.contact__mail .i-arrow { font-size: 0.8em; }
.contact__list { margin-top: 34px; border-top: 1px solid var(--line); }
.contact__list li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact__list a, .contact__list p { color: var(--white); text-decoration: none; }
.contact__list a:hover { text-decoration: underline; text-underline-offset: 4px; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); }
.contact .form.glass { background: linear-gradient(180deg, rgba(12, 14, 18, 0.72) 0%, rgba(8, 9, 11, 0.8) 100%); }
.form__title { grid-column: 1 / -1; font-family: var(--f-display); font-weight: 400; font-size: 20px; text-transform: uppercase; color: var(--white); margin-bottom: 4px; }
.field--full, .form__actions, .form__status { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; font-size: 13.5px; color: var(--muted); }
.field input, .field textarea {
  scroll-margin-top: calc(var(--nav-h) + 44px);
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, 0.35);
  color: var(--white); font: inherit; font-size: 15px; resize: vertical; transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--steel-300); background: rgba(0, 0, 0, 0.5); box-shadow: 0 0 0 4px rgba(159, 179, 203, 0.16); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e0786f; box-shadow: 0 0 0 4px rgba(224, 120, 111, 0.14); }
.form__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.form__status { scroll-margin-top: calc(var(--nav-h) + 12px); min-height: 1.4em; font-size: 14px; color: var(--muted); }

/* =========================================================================
   RODAPÉ
   ========================================================================= */
.footer {
  position: relative; z-index: 10; overflow: hidden; margin-top: calc(-1 * var(--radius-xl));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0; color: var(--text); background: var(--black);
  box-shadow: 0 -1px 0 var(--line), 0 -30px 60px -20px rgba(0, 0, 0, 0.8);
  padding: 13vh var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 22px);
}
.footer .glow { width: 80vw; height: 50vw; left: 10vw; bottom: -20vw; }
.footer__cta {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding-bottom: 9vh; border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 5vw; align-items: end;
}
.footer__cta .label { display: block; margin-bottom: 18px; }
.footer__cta-side p { max-width: 34ch; margin-bottom: 20px; color: var(--muted); }
.footer__cols { position: relative; z-index: 1; max-width: var(--maxw); margin: 7vh auto 0; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer__cols h2 { margin-bottom: 14px; }
.footer__cols a { display: block; width: fit-content; padding: 4px 0; font-size: 15px; color: var(--text); text-decoration: none; transition: color .25s; }
.footer__cols a:hover { color: var(--white); }
.footer__quote { max-width: 26ch; margin-bottom: 16px; font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; color: var(--white); }
.footer__word {
  position: relative; z-index: 1; max-width: var(--maxw); margin: calc(12vh - 0.12em) auto 0; padding-top: 0.12em; display: flex; justify-content: center; gap: 0.3em; white-space: nowrap;
  font-family: var(--f-display); font-weight: 400; font-size: 12vw; line-height: 0.8; text-transform: uppercase;
  background: var(--title-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.footer__bottom {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 6vh auto 0; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted-2);
}
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: var(--white); }

/* =========================================================================
   BARRA FLUTUANTE
   ========================================================================= */
.dock {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 16px); z-index: 75;
  display: flex; align-items: center; gap: 12px; padding: 7px 7px 7px 8px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(40, 46, 56, 0.7), rgba(16, 19, 24, 0.78)); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 20px 50px -18px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  transform: translate(-50%, 160%); transition: transform .7s var(--ease);
}
.dock.is-on { transform: translate(-50%, 0); }
.dock__photo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.dock__who { display: grid; line-height: 1.25; padding-right: 8px; }
.dock__who strong { font-family: var(--f-display); font-weight: 400; font-size: 12.5px; text-transform: uppercase; color: var(--white); }
.dock__who span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }

/* =========================================================================
   VISUALIZADOR DE CASE
   ========================================================================= */
.case { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); overflow: hidden; }
.case::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.case__panel {
  position: absolute; inset: 12px; top: calc(env(safe-area-inset-top, 0px) + 12px); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 26px; background: linear-gradient(180deg, #0f1217, #08090b); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 40px 100px -30px rgba(0, 0, 0, 0.9);
}
.case__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 22px; border-bottom: 1px solid var(--line); }
.case__count { font-family: var(--f-display); font-size: 13px; color: var(--steel-300); }
.case__controls { display: flex; gap: 8px; }
.case__btn { width: 42px; height: 42px; border-radius: 50%; color: var(--white); box-shadow: inset 0 0 0 1px var(--glass-border); font-size: 16px; transition: background-color .25s, color .25s; }
.case__btn:hover { background: rgba(255, 255, 255, 0.1); }
.case__close { background: var(--white); color: var(--black); box-shadow: none; }
.case__close:hover { background: var(--steel-100); }
.case__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: clamp(28px, 5vh, 60px) clamp(20px, 5vw, 80px) 80px; }
.case__content { max-width: var(--maxw); margin: 0 auto; }
.case__intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); }
.case__title { margin: calc(14px - 0.2em) 0 calc(12px - 0.2em); padding: 0.2em 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(34px, 4.4vw, 70px); line-height: 0.98; text-transform: uppercase; background: var(--title-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case__subtitle { font-size: 16px; color: var(--muted); }
.case__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.case__chips li { padding: 7px 12px; border-radius: 999px; font-size: 13px; color: var(--text); box-shadow: inset 0 0 0 1px var(--glass-border); }
.case__chips .award { box-shadow: none; color: var(--black); }
.case__summary { font-size: clamp(20px, 1.8vw, 27px); line-height: 1.3; letter-spacing: -0.02em; color: var(--white); }
.case__block { margin-top: 26px; }
.case__block .label { display: block; margin-bottom: 8px; }
.case__block p { color: var(--text); }
.case__credits { margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.case__cta { margin-top: 28px; }
.case__results { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 7vh; }
.case__results li { padding: 20px; border-radius: var(--radius); background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.case__results strong { display: block; width: fit-content; font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 40px); line-height: 1; background: var(--title-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.case__results span { display: block; margin-top: 10px; font-size: 14px; line-height: 1.35; color: var(--muted); }
.case__gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 7vh; align-items: start; }
.case__gallery figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--black-3); }
.case__gallery img { width: 100%; height: auto; }
.case__gallery .is-wide { grid-column: 1 / -1; }
.case__gallery .is-kv { grid-column: 1 / -1; background: transparent; }
.case__pair { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; }
.case__pair > figure { flex: var(--r) 1 0; min-width: 0; }
.case__gallery .is-tall { grid-column: 1 / -1; width: 100%; max-width: 900px; justify-self: center; }
.case__next {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; width: 100%; margin-top: 8vh; padding: 28px;
  border-radius: var(--radius-lg); background: var(--glass-bg); border: 1px solid var(--glass-border); text-align: left; transition: background-color .35s, color .35s;
}
.case__next small { display: block; margin-bottom: 8px; }
.case__next strong { font-family: var(--f-display); font-weight: 400; font-size: clamp(20px, 2.2vw, 32px); line-height: 1.05; text-transform: uppercase; color: var(--white); }
.case__next:hover { background: var(--white); }
.case__next:hover strong, .case__next:hover .label { color: var(--black); }
.case__next:hover .i-arrow { color: var(--black); }
.case__next .i-arrow { font-size: 26px; color: var(--white); }
html.case-open { overflow: hidden; }

/* =========================================================================
   RESPONSIVO
   ========================================================================= */
@media (max-width: 1100px) {
  .nav__capsule a { padding: 8px 11px; font-size: 13.5px; }
  .ho-frame { right: -21vw; }
  .about__grid { grid-template-columns: 1fr; }
  .recog__grid { grid-template-columns: 1fr 1fr; }
  .recog__col:last-child { grid-column: 1 / -1; }
  .pcard__meta { display: none; }
  .footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__about { grid-column: 1 / -1; }
  .hero__content { margin-left: 18vw; }
  .hs--thin { right: calc(100% - var(--gutter) - 18vw); }
}

@media (max-width: 900px) {
  :root { --radius-xl: 30px; --nav-h: 58px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav__actions .btn--light { display: none; }
  .nav__capsule {
    position: fixed; left: var(--gutter); right: var(--gutter); top: calc(env(safe-area-inset-top, 0px) + 62px);
    flex-direction: column; gap: 2px; padding: 8px; border-radius: 22px;
    background: #0e1116;
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s, transform .3s, visibility .3s;
  }
  .nav.is-open .nav__capsule { opacity: 1; visibility: visible; transform: none; }
  .nav__capsule a { padding: 14px 16px; font-size: 16px; }
  .tracks { grid-template-columns: 1fr; }
  .process__head { grid-template-columns: 1fr; gap: 20px; }
  .step { grid-template-columns: 40px minmax(0, 1fr); gap: 10px 14px; padding: 24px 6px; }
  .step__n { grid-row: 1 / span 3; align-self: start; padding-top: 4px; }
  .step__title, .step__text, .step__tag { grid-column: 2; }
  .step__tag { justify-self: start; margin-top: 6px; }
  .arow__btn { grid-template-columns: 34px minmax(0, 1fr) 38px; gap: 4px 14px; padding: 16px 6px; }
  .arow__num { grid-row: 1 / span 3; align-self: start; padding-top: 3px; }
  .arow__client, .arow__title, .arow__cat { grid-column: 2; }
  .arow__arrow { grid-column: 3; grid-row: 1 / span 3; }
  .contact__grid { grid-template-columns: 1fr; }
  .case__intro { grid-template-columns: 1fr; }
  .footer__cta { grid-template-columns: 1fr; gap: 28px; }
  .hero__content { margin-left: 0; width: 100%; }
  .hs--thin { display: none; }
}

/* tablet em pé: a lâmina vira um recorte no alto à direita, sem cobrir o título */
/* telas quase quadradas: lâmina da direita mais afastada do título */
@media (min-width: 1101px) and (max-aspect-ratio: 4/3) { .ho-frame { right: -21vw; height: min(112%, 76vw); } }

@media (min-width: 761px) and (max-aspect-ratio: 4/5) {
  .ho-frame { top: 2%; right: -28vw; height: 68%; }
}

@media (max-width: 760px) {
  /* celular: lâmina no alto, cortada pela direita; pose 2D (ver glass.js) */
  .ho-frame { --ho-3d: 0; --ho-rz: 3; top: 3%; right: -34vw; height: 54%; }
  .ho-img, .ho-occ, .ho-sheen { transform: rotate(calc(var(--ho-rz) * 1deg)) scaleX(var(--ho-flip)); }
  .hero { align-items: end; padding-top: calc(var(--nav-h) + 6vh); }
  .hero__content { padding-bottom: 4vh; }
  .hero__title { font-size: 15.5vw; }
  .hero__row2 { flex-wrap: wrap; gap: 0 0.35em; }
  .hero__role { font-size: 13.5px; }
  .hero__tagline { margin-top: 3vh; font-size: 17px; }
  .hero__stats { display: grid; grid-template-columns: 1fr 1fr; font-size: 12.5px; }
  .hs--edge { left: -24vw; opacity: 0.8; }
  .cinema__frame { height: 68svh; }
  .cinema__caption { display: none; }
  .logos { height: 56px; bottom: 58px; }
  .logos__item { font-size: 14px; }
  .logos__arrow { width: 34px; height: 34px; }
  .reel__item { height: 26vw; }
  .pcard__fig > .award { top: 8px; right: 8px; padding: 6px 10px; }
  .award__full { display: none; }
  .award__short { display: inline; }
  .sl--a { display: none; }
  .sl--b { width: 90px; top: 3%; right: -10px; }
  .profile { grid-template-columns: 1fr; }
  .profile__photo { max-width: 220px; }
  .impact__stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .track { min-height: 460px; aspect-ratio: auto; }
  .track__img { right: -12%; }
  .stack { --peek: 58px; }
  /* no celular a barra flutuante some sobre os cards, então eles podem usar a altura toda */
  .pcard { height: max(260px, calc(100vh - var(--stack-top) - (var(--n) - 2) * var(--peek) - 24px)); height: max(260px, calc(100svh - var(--stack-top) - (var(--n) - 2) * var(--peek) - 24px)); }
  .pcard { padding: 0 10px 10px; }
  .pcard__head { gap: 10px; }
  .pcard__num { display: none; }
  .pcard__id { flex-direction: column; gap: 0; align-items: flex-start; flex: 1 1 auto; min-width: 0; }
  .pcard__client { font-size: 12px; line-height: 1.3; }
  .pcard__title { font-size: 14px; max-width: none; white-space: normal; line-height: 1.3; padding-top: 2px; margin-top: -2px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-wrap: balance; }
  .pcard__head .btn { margin-left: auto; padding: 0 12px; }
  .pcard__media { grid-template-columns: 1fr 1fr; grid-template-rows: 1.6fr 1fr; gap: 8px; }
  .pcard__fig--big { grid-row: auto; grid-column: 1 / -1; }
  .pcard__lead { display: none; }
  .pcard__fig { border-radius: 12px; }
  .recog__grid { grid-template-columns: 1fr; }
  .recs__grid { grid-template-columns: 1fr; }
  .rec__mark { font-size: 84px; }
  .form { grid-template-columns: 1fr; }
  .contact__list li { grid-template-columns: 90px 1fr; }
  .sl--d { display: none; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__word { flex-direction: column; align-items: center; gap: 0; font-size: 20vw; }
  .footer__bottom { justify-content: center; text-align: center; }
  .dock { left: 12px; right: 12px; transform: translateY(160%); justify-content: space-between; }
  .dock.is-on { transform: none; }
  .case__panel { inset: 0; top: 0; border-radius: 0; }
  .case__gallery { grid-template-columns: 1fr; }
  .case__pair { display: contents; }
}


@media (max-width: 400px) {
  .dock { gap: 8px; }
  .dock .btn--sm { padding: 0 14px; gap: 8px; }
  .dock__who { padding-right: 0; }
  .dock__who span { font-size: 11px; }
  .dock__who i { flex: none; }
}

@media (hover: none) { .peek { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .reel { overflow-x: auto; }
}


/* =========================================================================
   SOBRE (versão única e enxuta) · BOTÃO TOPO · VÍDEOS
   ========================================================================= */
.about { padding: 16vh var(--gutter) 16vh; }
.about__wrap { position: relative; z-index: 1; max-width: 1080px; margin: 8vh auto 0; display: grid; grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.about__photo { aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--glass-border); background: #0b0d10; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;  }
.about__text { display: grid; gap: 18px; font-size: 16px; line-height: 1.6; color: var(--text); }
.about__lead { font-size: clamp(20px, 2vw, 28px); line-height: 1.3; letter-spacing: -0.02em; color: var(--white); }
.about__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px 0; border-block: 1px solid var(--line-2); }
.about__stats strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 40px); line-height: 1; color: var(--white); }
.about__stats span { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
.about__links li { display: grid; grid-template-columns: 100px 1fr; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.about__links a { color: var(--white); text-decoration: none; word-break: break-all; }
.about__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* prêmios e currículo */
.about__awards { display: grid; gap: 10px; }
.prizes { display: grid; }
.prize { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.prize__name { font-family: var(--f-display); font-size: 15px; text-transform: uppercase; color: var(--white); }
.prize__cases { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.prize__case { padding: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--text); text-align: left; cursor: pointer; }
.prize__case:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.about__cv { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 6px; }
.about__cv-note { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .prize { grid-template-columns: 1fr; gap: 6px; } }

.footer { padding-top: 9vh; }

.totop {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 85;
  display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border-radius: 999px;
  background: var(--white); color: var(--black); text-decoration: none; font-size: 14px; font-weight: 500;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 14px 34px -8px rgba(0, 0, 0, 0.85);
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .35s, transform .35s var(--ease), visibility .35s, background-color .25s;
}
.totop .i-arrow { transform: rotate(-90deg); font-size: 18px; }
.totop b { font-weight: 500; }
.totop:hover { background: var(--steel-100); }
.totop.is-on { opacity: 1; visibility: visible; transform: none; }
html.case-open .totop { display: none; }

.case__gallery .is-video { grid-column: 1 / -1; background: #000; }
.case__gallery .is-video video { display: block; width: 100%; height: auto; max-height: 80vh; background: #000; }
.case__gallery .is-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

@media (max-width: 760px) {
  .about__wrap { grid-template-columns: 1fr; }
  .about__photo { max-width: 240px; aspect-ratio: 1; }
  .about__links li { grid-template-columns: 82px 1fr; }
  .totop { height: 44px; }
}

.reel-wrap { position: relative; margin-top: 5vh; }
.reel__arrow {
  position: absolute; z-index: 5; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: var(--white); color: var(--black); font-size: 17px; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.9); transition: background-color .25s, transform .2s;
}
.reel__arrow:hover { background: var(--steel-100); }
.reel__arrow:active { transform: scale(0.92); }
.reel__arrow--prev { left: var(--gutter); }
.reel__arrow--next { right: var(--gutter); }
.reel-wrap .reel { margin-top: 0; }
