:root {
  --bg: #0a0a0a;
  --fg: #f3f2ee;
  --mid: #b0afaa;
  --linha: rgba(243, 242, 238, 0.2);
  --vidro: rgba(243, 242, 238, 0.1);
  --pad: clamp(16px, 2.6vw, 40px);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --p: 0; /* progresso da rolagem, 0 a 1 (definido pelo js) */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
/* rolagem por seção: ao soltar o scroll, a página assenta no início da seção
   mais próxima. Seções mais altas que a tela rolam normalmente por dentro. */
html { scroll-snap-type: y mandatory; }
main > section { scroll-snap-align: start; scroll-snap-stop: normal; }
main > section:last-child { scroll-snap-align: end; }
body {
  color: var(--fg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  text-transform: lowercase;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.travado { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-transform: inherit; }
ul { list-style: none; }
img, video { display: block; }
i, em { font-style: italic; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }
.mono, .rec { font-family: var(--mono); font-size: 11px; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }

/* ---------- fundo: degradê manchado que se desloca com a rolagem ---------- */
.fundo {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; background-color: var(--bg);
  background-image:
    radial-gradient(70vmax 55vmax at calc(8% + var(--p) * 80%) calc(105% - var(--p) * 95%), #7d7b75 0%, transparent 62%),
    radial-gradient(55vmax 65vmax at calc(95% - var(--p) * 75%) calc(0% + var(--p) * 70%), #4a4a4e 0%, transparent 66%),
    radial-gradient(45vmax 40vmax at calc(50% + var(--p) * 30%) calc(140% - var(--p) * 110%), #66645f 0%, transparent 60%);
}
/* manchas escuras por cima do degradê */
.fundo::after {
  content: ""; position: absolute; inset: -15%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0045' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2.6 0 0 0 -.95'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  background-size: cover;
  transform: translate3d(calc(var(--p) * -9%), calc(var(--p) * 11%), 0) rotate(calc(var(--p) * 14deg));
}
/* grão */
.grain {
  position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.15' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1.5 0 0 0 -.35'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none;
  width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference; display: none;
  transition: width .25s, height .25s, margin .25s;
  align-items: center; justify-content: center;
}
.cursor span { font-family: var(--serif); font-style: italic; font-size: 19px; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.ativo { width: 78px; height: 78px; margin: -39px 0 0 -39px; mix-blend-mode: normal; }
.cursor.ativo span { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .tem-cursor .cursor { display: flex; }
  .tem-cursor .card.ativa { cursor: none; }
}

/* ---------- topo ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px var(--pad); mix-blend-mode: difference; color: #fff;
}
.top nav { display: flex; gap: clamp(12px, 2vw, 28px); font-weight: 500; }
.top nav a, .contato-links a, footer a { position: relative; }
.top nav a::after, .contato-links a::after, footer a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.top nav a:hover::after, .contato-links a:hover::after, footer a:hover::after { transform: scaleX(1); }
.top-right { display: flex; align-items: center; gap: 18px; }
.rec { display: flex; align-items: center; gap: 7px; }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pisca 1.2s steps(1) infinite; }
@keyframes pisca { 50% { opacity: 0; } }
.lang { display: flex; border: 1px solid #fff; border-radius: 99px; overflow: hidden; }
.lang button { padding: 4px 10px; font-size: 11px; font-weight: 700; }
.lang button[aria-pressed="true"] { background: #fff; color: #000; }

/* ---------- tipografia compartilhada ---------- */
.pilula {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 99px; background: var(--vidro);
}
.titulo {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; line-height: .98;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
}
.sec-cab { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 0 var(--pad); }
.dica { color: var(--mid); max-width: 44ch; }

/* ---------- abertura ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; padding: 100px var(--pad) 56px;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
}
/* vídeo em loop atrás do nome; as bordas somem no fundo granulado */
.hero-fundo {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 78%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 78%, transparent 100%);
}
.hero-fundo video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s; }
.hero-fundo.pronto video { opacity: .62; }
.hero-fundo.pb video { filter: grayscale(1) contrast(1.08); }
/* escurece atrás do texto para manter a leitura */
.hero-fundo::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 20% 60%, rgba(10, 10, 10, .7), rgba(10, 10, 10, .2) 75%);
}
.hero h1 {
  font-family: var(--serif); font-weight: 400; white-space: nowrap;
  font-size: clamp(3rem, 13.2vw, 14rem); line-height: 0.88; letter-spacing: -0.035em; margin-left: -0.03em;
}
.hero .linha { display: block; }
/* cada palavra do nome troca de fonte por vez; a caixa de cada palavra tem a
   largura fixa da serifa e o texto é escalado dentro dela, então nada pula */
.nome-parte { display: inline-block; white-space: nowrap; }
.np-txt { display: inline-block; transform-origin: 0 78%; }
.np-txt.f-bold { font-family: var(--sans); font-weight: 800; letter-spacing: -0.07em; }
.np-txt.f-cursiva { font-family: "Pinyon Script", cursive; letter-spacing: 0; }
.np-txt.f-cond { font-family: "Anton", var(--sans); letter-spacing: -0.01em; }
.np-txt.f-italica { font-style: italic; }
.np-txt.f-didone { font-family: "Bodoni Moda", var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.045em; }
.np-txt.f-mono { font-family: var(--mono); font-weight: 500; letter-spacing: -0.09em; }
.np-txt.pisca { animation: nome-pisca .16s steps(2); }
@keyframes nome-pisca { 0% { opacity: .15; } 100% { opacity: 1; } }
.verbo { font-style: italic; display: inline-block; padding-right: .06em; }
#hero-objeto { display: inline-block; }
.verbo.corte, #hero-objeto.corte { animation: corte .18s steps(2); }
@keyframes corte { 0% { transform: translateX(-0.06em); opacity: .2; } 100% { transform: none; opacity: 1; } }
.hero-pe { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.hero-pe p { white-space: pre-line; font-weight: 500; }
.seta { font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- trabalhos: carrossel ---------- */
.trabalhos { padding: clamp(84px, 9vh, 120px) 0 clamp(50px, 7vw, 100px); min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.trilho {
  position: relative; display: flex; align-items: center; gap: clamp(12px, 1.6vw, 24px);
  margin-top: clamp(14px, 2.4vw, 36px); padding: 28px 0; /* respiro para o zoom do hover */
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; user-select: none; -webkit-user-select: none;
}
.trilho::-webkit-scrollbar { display: none; }
.trilho::before, .trilho::after { content: ""; flex: 0 0 50%; }
.trilho.arrastando { scroll-snap-type: none; cursor: grabbing; }
.card {
  position: relative; flex: 0 0 auto; overflow: hidden; border-radius: clamp(12px, 1.4vw, 20px);
  background: #151515; scroll-snap-align: center;
  aspect-ratio: 16 / 9; width: min(62vw, calc(50vh * 16 / 9));
  opacity: .38; transform: scale(.94);
  transition: opacity .5s, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.card.vertical { aspect-ratio: 9 / 16; width: auto; height: min(50vh, calc(62vw * 9 / 16 * 1.6)); }
.card.ativa { opacity: 1; transform: none; }
.card:not(.ativa):hover { opacity: .75; }
.card img, .card video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: filter .5s, opacity .3s, transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
/* hover no card central: ele cresce e o vídeo dá um zoom lento por dentro */
@media (hover: hover) and (pointer: fine) {
  .card.ativa:hover { transform: scale(1.05); z-index: 3; box-shadow: 0 50px 110px -30px rgba(0, 0, 0, .9); }
  .card.ativa:hover img, .card.ativa:hover video { transform: scale(1.07); }
}
.card video { opacity: 0; }
.card.tocando video { opacity: 1; }
.pb .card img, .pb .card video { filter: grayscale(1) contrast(1.06); }
.pb .card.ativa img, .pb .card.ativa video, .pb .card:hover img, .pb .card:hover video { filter: none; }
/* ---- vidro: borda clara, reflexo no topo, moldura interna e texto sobre o vídeo ---- */
.card { box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8); }
.card-vidro {
  position: absolute; inset: 0; z-index: 1; border-radius: inherit; pointer-events: none; color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .4);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 26%);
}
/* escurecimento para o texto ficar legível; aparece junto com o texto */
.card-vidro::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; transition: opacity .4s;
  background:
    radial-gradient(70% 60% at 50% 52%, rgba(0, 0, 0, .38), transparent 100%),
    linear-gradient(0deg, rgba(0, 0, 0, .45), transparent 32%);
}
.card:not(.ativa) .card-vidro::after { opacity: 0; }
.card-vidro::before {
  content: ""; position: absolute; inset: clamp(8px, 1.1vw, 14px);
  border-radius: calc(clamp(12px, 1.4vw, 20px) - 5px); border: 1px solid rgba(255, 255, 255, .16);
}
.vd-centro {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 0 12%; text-align: center;
  opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.card.ativa .vd-centro { opacity: 1; transform: none; }
.vd-centro h3 {
  font-family: var(--sans); font-weight: 500; font-size: clamp(1.6rem, 3.8vw, 3.6rem);
  letter-spacing: -0.045em; line-height: 1; text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}
.card.vertical .vd-centro h3 { font-size: clamp(1.3rem, 2.4vw, 2.2rem); }
.vd-centro p { font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .82); }
.vd-botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.vd-pilula {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 13px; border-radius: 99px; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4);
}
.vd-clara { background: #fff; color: #000; border-color: #fff; }
.vd-canto {
  position: absolute; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 255, 255, .8); opacity: 0; transition: opacity .5s;
}
.card.ativa .vd-canto { opacity: 1; }
/* com mouse: o texto só aparece com o cursor sobre o card central */
@media (hover: hover) and (pointer: fine) {
  .card.ativa .vd-centro { opacity: 0; transform: translateY(10px); }
  .card.ativa .vd-canto, .card.ativa .card-vidro::after { opacity: 0; }
  /* qualquer card (central ou lateral) mostra título e ficha com o mouse em cima */
  .card:hover .vd-centro { opacity: 1; transform: none; }
  .card:hover .vd-canto, .card:hover .card-vidro::after, .card:not(.ativa):hover .card-vidro::after { opacity: 1; }
  .card:not(.ativa):hover { opacity: .95; }
}
.vd-n { top: clamp(18px, 2vw, 28px); left: clamp(22px, 2.4vw, 34px); }
.vd-ano { top: clamp(18px, 2vw, 28px); right: clamp(22px, 2.4vw, 34px); }
.vd-cliente { bottom: clamp(18px, 2vw, 28px); left: clamp(22px, 2.4vw, 34px); }
.card-faixa { z-index: 2; }

/* fundo da seção: capa do projeto ativo, desfocada */
.trabalhos { position: relative; isolation: isolate; }
.trabalhos-fundo {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 80%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 80%, transparent 100%);
}
/* o vídeo do projeto ativo, ampliado e bem desfocado; troca com fade */
.trabalhos-fundo video {
  position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover;
  filter: blur(34px) brightness(.62) saturate(1.35); opacity: 0; transition: opacity .9s;
}
.trabalhos-fundo video.on { opacity: .85; }
.card-faixa { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .25); opacity: 0; transition: opacity .3s; }
.card-faixa i { display: block; height: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.card.tocando .card-faixa { opacity: 1; }

.legenda { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 14px var(--pad) 0; }
.legenda .n { color: var(--mid); }
/* título e ficha agora ficam dentro do card; aqui só para leitores de tela */
.legenda .n, .legenda h3, .legenda p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.setas { display: flex; gap: 10px; margin-top: 16px; }
.setas button, .botao {
  height: 44px; min-width: 44px; padding: 0 14px; border-radius: 12px; background: var(--vidro);
  font-weight: 500; transition: background .25s, color .25s;
}
.setas button:hover, .botao:hover { background: var(--fg); color: var(--bg); }

/* ---------- timeline (passagem) ---------- */
.tl {
  padding: clamp(70px, 8vh, 100px) var(--pad) clamp(40px, 6vw, 90px); --cab: 58px; --alt: 38px; --vao: 4px; --alt-regua: 24px;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
}
.tl-janela {
  max-width: 1180px; margin: clamp(26px, 4vw, 50px) auto 0; padding: clamp(10px, 1.4vw, 18px);
  border: 1px solid var(--linha); border-radius: clamp(14px, 1.6vw, 22px);
  background: rgba(10, 10, 10, .45); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.tl-monitor {
  position: relative; width: min(100%, 620px); aspect-ratio: 16 / 9; margin: 0 auto;
  background: #000; border-radius: 10px; overflow: hidden; cursor: pointer;
}
.tl-monitor video { width: 100%; height: 100%; object-fit: contain; transition: filter .15s; }
.tl-monitor.pb video { filter: grayscale(1) contrast(1.1); }
.tl-letreiro {
  position: absolute; left: 6%; bottom: 9%; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 3.6vw, 2.8rem); line-height: 1; color: #fff; text-shadow: 0 1px 14px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .3s;
}
.tl-monitor.letreiro .tl-letreiro { opacity: 1; transform: none; }
.tl-transporte { display: flex; align-items: center; gap: 16px; padding: 12px 4px; font-weight: 500; white-space: nowrap; }
.tl-transporte button:hover, .tl-olho:hover { opacity: .6; }
.tl-dica { flex: 1; text-align: center; color: var(--mid); overflow: hidden; text-overflow: ellipsis; }
.tl-painel { display: flex; gap: var(--vao); }
.tl-cabs { flex: 0 0 var(--cab); display: flex; flex-direction: column; gap: var(--vao); padding-top: calc(var(--alt-regua) + var(--vao)); }
.tl-cab {
  height: var(--alt); display: flex; align-items: center; justify-content: space-between; padding: 0 8px;
  border-radius: 6px; background: var(--vidro); font-family: var(--mono); font-size: 10px;
}
.tl-olho { width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--fg); background: var(--fg); }
.tl-olho[aria-pressed="false"] { background: transparent; }
.tl-area { position: relative; flex: 1; min-width: 0; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tl-regua {
  position: relative; height: var(--alt-regua); margin-bottom: var(--vao); border-bottom: 1px solid var(--linha);
  background: repeating-linear-gradient(90deg, var(--linha) 0 1px, transparent 1px 2.5%) bottom / 100% 6px no-repeat;
}
.tl-regua span { position: absolute; top: 2px; font-family: var(--mono); font-size: 9px; color: var(--mid); padding-left: 4px; border-left: 1px solid var(--linha); height: 100%; }
.tl-pista { position: relative; height: var(--alt); margin-bottom: var(--vao); border-radius: 6px; background: rgba(243, 242, 238, .04); transition: opacity .25s; }
.tl-pista.off { opacity: .25; }
.tl-clip {
  position: absolute; top: 0; bottom: 0; overflow: hidden; border-radius: 5px;
  border: 1px solid rgba(243, 242, 238, .35); background: rgba(243, 242, 238, .12);
  font-family: var(--mono); font-size: 9px; white-space: nowrap; transition: background .2s, border-color .2s;
}
.tl-clip span { position: relative; display: inline-block; margin: 3px; padding: 1px 4px; border-radius: 3px; background: rgba(0, 0, 0, .6); }
.tl-clip.filme { background-size: auto 100%; background-repeat: repeat-x; }
.tl-clip.filme::before { content: ""; position: absolute; inset: 0; -webkit-backdrop-filter: grayscale(1); backdrop-filter: grayscale(1); background: rgba(0, 0, 0, .35); transition: background .2s; }
.tl-clip.ajuste { background: repeating-linear-gradient(135deg, rgba(243, 242, 238, .2) 0 6px, rgba(243, 242, 238, .06) 6px 12px); }
.tl-clip.letra { background: rgba(243, 242, 238, .85); color: #000; }
.tl-clip.letra span { background: none; }
.tl-clip svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .7; }
.tl-clip.sob { border-color: var(--fg); background-color: rgba(243, 242, 238, .26); }
.tl-clip.filme.sob::before { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.tl-agulha { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--fg); pointer-events: none; }
.tl-agulha::before {
  content: ""; position: absolute; top: 0; left: -6px; width: 13px; height: 14px; background: var(--fg);
  clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%);
}

/* ---------- sobre ---------- */
.sobre { padding: clamp(70px, 10vw, 140px) var(--pad); }
.sobre .sec-cab { padding: 0; margin-bottom: clamp(40px, 6vw, 80px); }
.sobre-texto {
  font-family: var(--serif); font-size: clamp(2.1rem, 6.2vw, 7rem); letter-spacing: -0.025em; line-height: 1;
  max-width: none; width: 100%; text-transform: none; text-wrap: balance;
}
.clientes { text-align: center; margin: 0 calc(var(--pad) * -1) clamp(50px, 8vw, 110px); }
.clientes > span { color: var(--mid); }
/* faixa de marcas que rola sozinha (pausa com o mouse em cima) */
.faixa {
  display: flex; overflow: hidden; margin-top: 22px; text-transform: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
/* o trilho leva duas cópias idênticas da lista e anda meia largura por volta:
   o fim de uma cópia encaixa no começo da outra, sem emenda visível */
.faixa-trilho { display: flex; flex: 0 0 auto; width: max-content; animation: faixa var(--tempo, 40s) linear infinite; will-change: transform; }
.faixa ul { flex: 0 0 auto; display: flex; align-items: center; gap: clamp(40px, 6vw, 90px); padding-right: clamp(40px, 6vw, 90px); }
.faixa:hover .faixa-trilho { animation-play-state: paused; }
@keyframes faixa { to { transform: translateX(-50%); } }
.faixa li { flex: 0 0 auto; display: flex; align-items: center; height: clamp(34px, 4.4vw, 56px); }
.faixa img { height: 100%; width: auto; max-width: clamp(110px, 15vw, 200px); object-fit: contain; opacity: .85; transition: opacity .3s; }
.faixa li:hover img { opacity: 1; }
.faixa.branco img { filter: brightness(0) invert(1); }
.faixa .nome { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.6rem); line-height: 1; white-space: nowrap; }
.faixa li:nth-child(odd) .nome { font-family: var(--sans); font-weight: 800; letter-spacing: -0.05em; font-size: clamp(1.3rem, 2.6vw, 2.25rem); }
.faixa li:nth-child(even) .nome { font-style: italic; }
@media (prefers-reduced-motion: reduce) {
  .faixa { -webkit-mask-image: none; mask-image: none; }
  .faixa-trilho { flex: 1 1 auto; width: auto; animation: none; }
  .faixa ul { flex: 1 1 auto; flex-wrap: wrap; justify-content: center; padding: 0 var(--pad); row-gap: 18px; }
  .faixa ul + ul { display: none; }
}
.servicos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px clamp(14px, 2vw, 28px); }
.servico { border-top: 1px solid var(--fg); padding-top: 12px; }
.servico .n { font-family: var(--mono); font-size: 11px; color: var(--mid); }
.servico h3 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1; margin: 6px 0 16px; }
.servico li { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; padding: 6px 0; border-top: 1px solid var(--linha); }
.ferramentas { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; margin-top: clamp(40px, 6vw, 80px); }
.ferramentas > span { font-family: var(--mono); font-size: 11px; color: var(--mid); }
.ferramentas ul { display: flex; flex-wrap: wrap; gap: 8px; }
.ferramentas li { background: var(--vidro); border-radius: 99px; padding: 5px 13px; font-weight: 500; text-transform: none; }

/* ---------- contato ---------- */
.contato {
  padding: clamp(80px, 12vw, 180px) var(--pad) 70px; text-align: center;
  min-height: 100svh; display: flex; flex-direction: column; align-items: center;
}
.contato > .pilula { margin-top: auto; } /* conteúdo no meio, rodapé embaixo */
.contato footer { align-self: stretch; margin-top: auto; }
.contato-cta {
  display: block; margin-top: 18px; font-family: var(--serif); font-style: italic;
  font-size: clamp(3rem, 12.5vw, 13rem); letter-spacing: -0.03em; line-height: .9;
  transition: opacity .3s;
}
.contato-cta:hover { opacity: .6; }
.contato-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 40px; font-weight: 500; }
footer { display: flex; justify-content: space-between; margin-top: clamp(60px, 10vw, 140px); padding-top: 16px; border-top: 1px solid var(--linha); color: var(--mid); }

/* ---------- variação tipográfica por seção ----------
   abertura, timeline e texto do sobre: serifada.
   trabalhos, serviços, contato, currículo e player: grotesca pesada,
   com a serifada em itálico só como acento. */
.trabalhos .titulo, .legenda h3, .servico h3, .contato-cta, .cv h2, .pl-ficha h3 {
  font-family: var(--sans); font-weight: 800; font-style: normal; letter-spacing: -0.055em; line-height: .92;
}
.trabalhos .titulo i { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; font-size: 1.1em; margin-left: .08em; }
.servico h3 { font-size: clamp(1.5rem, 2.5vw, 2.3rem); }
.contato-cta { font-size: clamp(2.6rem, 11vw, 11.5rem); letter-spacing: -0.065em; line-height: .86; }
.cv h2 { font-size: clamp(2.6rem, 5.4vw, 5.4rem); letter-spacing: -0.06em; }
.pl-ficha h3 { font-size: clamp(1.8rem, 2.5vw, 2.5rem); }

/* ---------- timeline: efeitos sonoros nas transições ---------- */
/* clipes da faixa de sfx: curtos, com o tipo escrito */
.tl-clip.sfx { background: rgba(243, 242, 238, .3); border-color: rgba(243, 242, 238, .6); min-width: 6px; }
.tl-clip.sfx span { background: none; padding: 0 2px; margin: 3px 2px; }
.tl-clip.sfx.disparou { background: var(--fg); color: #000; transition: none; }
/* flash branco no monitor quando passa por um sfx do tipo "flash" */
.tl-monitor::after {
  content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none;
}
.tl-monitor.flash::after { animation: tl-flash .32s ease-out; }
@keyframes tl-flash { 0% { opacity: .75; } 100% { opacity: 0; } }

/* ---------- régua de rolagem ---------- */
.regua {
  position: fixed; left: 0; right: 0; bottom: 0; height: 12px; z-index: 40; pointer-events: none;
  mix-blend-mode: difference;
  background:
    repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 10%) bottom / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, rgba(255,255,255,.7) 0 1px, transparent 1px 2%) bottom / 100% 5px no-repeat;
}
.regua i { position: absolute; top: -6px; bottom: 0; left: 0; width: 2px; background: #fff; }

/* ---------- currículo: painel sobre o mesmo fundo do site ---------- */
.cv {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain;
  background: rgba(10, 10, 10, .78); -webkit-backdrop-filter: blur(26px); backdrop-filter: blur(26px);
  padding: 18px var(--pad) 60px;
}
.cv[hidden] { display: none; }
.cv.abrindo { animation: sobe .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes sobe { from { transform: translateY(100%); } to { transform: none; } }
.cv-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: clamp(30px, 5vw, 60px); }
.cv-topo div { display: flex; gap: 8px; align-items: center; }
.cv-lang { height: 44px; border-color: var(--linha); }
.cv-lang button { padding: 0 14px; }
.cv-grade { display: grid; grid-template-columns: 1.1fr 1.5fr 1fr; gap: 40px clamp(20px, 3.4vw, 56px); align-items: start; }
.cv h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(3rem, 6.4vw, 6.4rem); line-height: .88; letter-spacing: -0.03em; margin-bottom: 22px; }
/* foto: cartão de vidro que inclina com o mouse, com paralaxe, brilho e cor no hover */
.cv-foto { margin: 0 0 28px; perspective: 900px; max-width: 360px; }
.cvf-cartao {
  position: relative; aspect-ratio: 2 / 3; border-radius: 20px; overflow: hidden; cursor: pointer;
  transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .7, .2, 1), box-shadow .6s;
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .85); will-change: transform;
}
.cvf-cartao.movendo { transition: transform .12s linear, box-shadow .6s; }
.cvf-cartao img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(.92);
  transform: scale(1.08) translate(var(--px, 0px), var(--py, 0px));
  transition: filter .7s, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.cvf-cartao.movendo img { transition: filter .7s, transform .12s linear; }
/* moldura de vidro e reflexo no topo, no mesmo estilo dos cards de vídeo */
.cvf-cartao::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .4);
  background: linear-gradient(180deg, rgba(255, 255, 255, .1), transparent 26%);
}
.cvf-cartao::after {
  content: ""; position: absolute; inset: 12px; z-index: 2; border-radius: 13px; pointer-events: none;
  border: 1px solid rgba(255, 255, 255, .16);
}
/* brilho de luz que segue o cursor */
.cvf-brilho {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .35), transparent 50%);
  mix-blend-mode: soft-light;
}
.cv-foto:hover .cvf-cartao, .cv-foto.cor .cvf-cartao { box-shadow: 0 45px 90px -30px rgba(0, 0, 0, .95); }
.cv-foto:hover img, .cv-foto.cor img { filter: none; }
.cv-foto:hover .cvf-brilho { opacity: 1; }
.cv-foto figcaption {
  display: flex; justify-content: space-between; margin-top: 12px; color: var(--mid); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
}
.cv-foto:hover .cvf-dica, .cv-foto.cor .cvf-dica { opacity: 0; }
.cvf-dica { transition: opacity .4s; }
.cv-resumo { text-transform: none; max-width: 40ch; }
.cv-cidade { font-family: var(--mono); font-size: 11px; margin-top: 16px; }
.cv h3 { font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding-bottom: 8px; border-bottom: 1px solid var(--fg); margin-bottom: 4px; color: var(--mid); }
.cv-bloco + .cv-bloco { margin-top: 34px; }
.cv-exp { display: grid; grid-template-columns: 96px 1fr; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--linha); }
.cv-exp .per { font-family: var(--mono); font-size: 11px; padding-top: 5px; color: var(--mid); }
.cv-exp h4 { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: 1.55rem; line-height: 1.05; }
.cv-exp .emp { color: var(--mid); text-transform: none; }
.cv-exp ul { margin-top: 8px; text-transform: none; }
.cv-exp li { position: relative; padding-left: 14px; font-size: 14px; }
.cv-exp li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: var(--fg); }
.cv-lista li { padding: 9px 0; border-bottom: 1px solid rgba(10, 10, 10, .16); text-transform: none; }
.cv-lista b { font-weight: 700; }
.cv-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; }
.cv-tags li { background: var(--vidro); border-radius: 99px; padding: 3px 11px; font-size: 13px; font-weight: 500; text-transform: none; }

/* ---------- player ---------- */
.player { position: fixed; inset: 0; z-index: 80; background: #000; color: #fff; display: flex; flex-direction: column; }
.player[hidden] { display: none; }
.player.abrindo { animation: abre .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes abre { from { clip-path: inset(48% 0 48% 0); } to { clip-path: inset(0); } }
.pl-topo, .pl-linha { display: flex; align-items: center; gap: 18px; padding: 14px var(--pad); font-weight: 500; }
.pl-topo { justify-content: space-between; }
.pl-nav { display: flex; gap: 18px; }
.player button:hover { opacity: .6; }
.pl-corpo { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.pl-palco { position: relative; min-height: 0; background: #000; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.pl-palco video { width: 100%; height: 100%; object-fit: contain; }
.pl-grande {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 96px; height: 96px; border-radius: 50%; background: #fff; color: #000;
  font-family: var(--serif); font-style: italic; font-size: 22px;
  transition: opacity .25s, transform .25s;
}
.player.rodando .pl-grande { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(.8); }
.pl-ficha { padding: 6px var(--pad) 20px 24px; overflow-y: auto; border-left: 1px solid rgba(255,255,255,.16); }
.pl-ficha h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 3vw, 3rem); letter-spacing: -0.02em; line-height: .98; margin-bottom: 22px; }
.pl-ficha dl { display: grid; grid-template-columns: auto 1fr; gap: 0 16px; margin-bottom: 20px; }
.pl-ficha dt, .pl-ficha dd { padding: 7px 0; border-top: 1px solid rgba(255,255,255,.16); }
.pl-ficha dt { font-family: var(--mono); font-size: 11px; color: var(--mid); }
.pl-ficha dd { font-weight: 500; }
.pl-ficha p { color: #c9c9c5; text-transform: none; }
.pl-barra { position: relative; height: 22px; margin: 0 var(--pad); cursor: pointer; touch-action: none; }
.pl-barra::before, .pl-barra i { content: ""; position: absolute; left: 0; top: 10px; height: 2px; }
.pl-barra::before { right: 0; background: rgba(255,255,255,.2); }
.pl-barra i { width: 100%; transform-origin: left; transform: scaleX(0); }
#pl-buffer { background: rgba(255,255,255,.35); }
#pl-prog { background: #fff; }
.pl-barra:hover i, .pl-barra:hover::before { top: 9px; height: 4px; }
.pl-esp { flex: 1; }
.pl-linha > *, .pl-topo button { white-space: nowrap; }
.pl-linha { padding-top: 6px; }
.player:fullscreen .pl-ficha, .player:fullscreen .pl-topo { display: none; }
.player:fullscreen .pl-corpo { grid-template-columns: 1fr; }

@media (max-width: 820px) {
  /* card baixo no celular: só título e botões sobre o vídeo */
  .vd-canto, .vd-centro p { display: none; }
  .vd-centro { gap: 6px; padding: 0 8%; }
  .vd-centro h3, .card.vertical .vd-centro h3 { font-size: clamp(1.25rem, 6vw, 1.8rem); }
  .vd-botoes { margin-top: 4px; }
  .vd-pilula { font-size: 9px; padding: 5px 10px; }
  .tl { --cab: 40px; --alt: 30px; }
  .tl-dica { visibility: hidden; }
  .tl-clip span { font-size: 8px; }
  .servicos { grid-template-columns: 1fr; }
  .rec { display: none; }
  .hero-pe { flex-direction: column; align-items: flex-start; }
  .card { width: 78vw; }
  .card.vertical { height: min(56vh, calc(60vw * 16 / 9)); }
  .cv-grade { grid-template-columns: 1fr; }
  .cv-foto { max-width: 260px; }
  .cv-topo .botao, .cv-lang button { white-space: nowrap; padding: 0 10px; }
  .cv-topo div { gap: 6px; }
  .cv-exp { grid-template-columns: 1fr; }
  .pl-corpo { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .pl-ficha { border-left: 0; border-top: 1px solid rgba(255,255,255,.16); padding: 16px var(--pad); max-height: 34vh; }
  .pl-ficha h3 { margin-bottom: 12px; }
  .pl-topo, .pl-linha { gap: 12px; }
  #pl-tempo .tot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* imprimir / salvar em pdf: só o currículo */
@media print {
  body.cv-aberto > :not(.cv) { display: none !important; }
  .cv { position: static; padding: 0; overflow: visible; }
  .cv-topo div { display: none; }
  html, .cv { background: #fff; }
  .cv, .cv * { color: #000 !important; }
  .grain, .fundo { display: none; }
}
