/* ==========================================================================
   Portfólio — apresentação em duas telas
   Tela 1: o vídeo corre por dentro do nome; uma rolada mergulha na letra.
   Tela 2: trabalhos e chamada para contratação.
   ========================================================================== */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-soft.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-soft-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --black: #0a0a0a;
  --ink: #f2efe9;
  --ink-2: rgba(242, 239, 233, .64);
  --ink-3: rgba(242, 239, 233, .38);
  --line: rgba(242, 239, 233, .14);
  --accent: #ff4d2e;
  --accent-ink: #0a0a0a;
  --sans: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.77, 0, .18, 1);
  --pad: clamp(20px, 3.2vw, 56px);
  --nav-h: 76px;
  --vh: 100vh;
}
@supports (height: 100svh) { :root { --vh: 100svh; } }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); color: var(--ink); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.5; overflow-x: clip; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-tap-highlight-color: transparent; text-rendering: optimizeLegibility; }
img, video, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
em { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: top .3s; }
.skip-link:focus { top: 16px; }
.label { display: flex; gap: .7em; font-size: 12.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.label span { font-family: var(--mono); letter-spacing: 0; color: var(--accent); }

.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s; }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
@media (hover: hover) { .btn--accent:hover { background: var(--ink); color: var(--black); } .btn--ghost:hover { background: var(--ink); color: var(--black); border-color: var(--ink); } }

/* Modo apresentação (com JS): a página não rola; as telas trocam por animação. */
html.js, html.js body { height: 100%; overflow: hidden; overscroll-behavior: none; }
html.js .deck { position: fixed; inset: 0; overflow: hidden; touch-action: none; }
html.js .deck > section { position: absolute; inset: 0; }

/* ---------------------------------------------------------------- barra superior e indicador de telas */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); pointer-events: none; transition: transform .6s var(--ease); }
.nav > * { pointer-events: auto; }
.nav__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.nav__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 22px; }
.nav__status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.nav__status i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: pulse 2.2s infinite; }
.nav__cta { position: relative; display: inline-flex; align-items: center; height: 42px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--black); font-size: 14px; font-weight: 600; overflow: hidden; isolation: isolate; transition: color .4s; }
.nav__cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent); transform: translateY(101%); transition: transform .5s var(--ease); }
@media (hover: hover) { .nav__cta:hover { color: var(--accent-ink); } .nav__cta:hover::before { transform: none; } }
html.viewer-open .nav { transform: translateY(-140%); opacity: 0; pointer-events: none; }
.nav__auth { display: inline-flex; align-items: center; gap: 6px; margin-right: -10px; }
.nav__link { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--ink-2); white-space: nowrap; transition: color .3s, background-color .3s, border-color .3s; }
.nav__link--outline { color: var(--ink); border: 1px solid var(--line); background: rgba(10, 10, 10, .28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.nav__me { padding-left: 5px; }
.nav__me b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
@media (hover: hover) { .nav__link:hover { color: var(--ink); background-color: rgba(242, 239, 233, .07); } .nav__link--outline:hover { border-color: var(--ink-3); } }

/* indicador das duas telas, no centro da barra */
.pager { position: absolute; left: 50%; top: 50%; display: flex; gap: 28px; transform: translate(-50%, -50%); }
html.no-js .pager { display: none; }
.pager__item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); transition: color .4s; }
.pager__item span { font-family: var(--mono); font-size: 11px; }
.pager__item b { font-weight: 500; }
.pager__item i { width: 14px; height: 1px; background: currentColor; transition: width .6s var(--ease), background-color .4s; }
.pager__item.is-on { color: var(--ink); }
.pager__item.is-on i { width: 34px; background: var(--accent); }
@media (hover: hover) { .pager__item:hover { color: var(--ink); } }

/* ---------------------------------------------------------------- tela 1 · vídeo dentro do nome */
.hero__stage { position: relative; height: var(--vh); min-height: 520px; overflow: hidden; isolation: isolate; background: #000; }
html.js .hero__stage { height: 100%; min-height: 0; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media canvas { background: radial-gradient(120% 90% at 20% 30%, var(--accent), #2a0d06 45%, #000 75%); }
.hero__mask { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding: var(--nav-h) var(--pad) var(--hero-bottom, 170px); background: var(--black); mix-blend-mode: multiply; }
.hero__lockup { position: relative; display: flex; flex-direction: column; align-items: center; gap: .02em; color: #fff; }
.hero__line { display: block; width: max-content; padding: .06em 0 0; font-weight: 900; font-stretch: 62%; font-size: min(26vw, calc(var(--vh) * .62)); line-height: .76; letter-spacing: -.012em; white-space: nowrap; }
.hero__lockup.is-intro .hero__line { overflow: hidden; }
.hero__line .ch { display: inline-block; }
.hero__line--2 { display: none; }
@media (max-aspect-ratio: 11/10) { .hero__line--2 { display: block; } .hero__line--wide { display: none; } }
.hero__ui { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-rows: auto 1fr auto; padding: calc(var(--nav-h) + 6px) var(--pad) var(--pad); pointer-events: none; }
.hero__ui button, .hero__ui a { pointer-events: auto; }
.hero__signature { position: absolute; left: 50%; top: var(--hero-signature-y, 68%); display: flex; align-items: center; justify-content: center; gap: clamp(8px, .8vw, 15px); width: min(88vw, 940px); margin: 0; color: rgba(242, 239, 233, .72); text-align: center; text-wrap: balance; transform: translateX(-50%); }
.hero__signature::before { content: ""; flex: none; width: clamp(22px, 2.4vw, 46px); height: 1px; background: var(--accent); box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 60%, transparent); }
.hero__signature span { font-size: clamp(9px, .72vw, 13px); font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.hero__signature em { color: var(--accent); font-family: var(--serif); font-size: clamp(17px, 1.35vw, 25px); font-weight: 400; line-height: 1; letter-spacing: -.025em; }
.hero__bottom { grid-row: 3; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 24px; }
.hero__id { grid-column: 3; grid-row: 1; justify-self: end; text-align: right; }
.hero__name { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.hero__role { margin-top: 8px; max-width: 34ch; color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.hero__reel { display: inline-flex; align-items: center; gap: 10px; height: 44px; margin-top: 18px; padding: 0 20px 0 16px; border-radius: 999px; background: rgba(242, 239, 233, .1); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 14px; font-weight: 600; transition: background-color .3s, color .3s; }
.hero__reel-icon { border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
@media (hover: hover) { .hero__reel:hover { background: var(--accent); color: var(--accent-ink); } }
/* Indicador de rolagem: anel com halo laranja e seta descendo — deixa claro que há trabalhos abaixo. */
.hero__cue { grid-column: 2; grid-row: 1; justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--ink); }
.hero__cue-ring { position: relative; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(242, 239, 233, .24); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background-color .4s, color .4s, box-shadow .4s, transform .6s var(--ease); }
.hero__cue-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--accent); animation: cue-halo 2.4s var(--ease) infinite; pointer-events: none; }
.hero__cue-ring svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; animation: cue-arrow 1.8s var(--ease-io) infinite; }
.hero__cue-label { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.hero__cue-label em { margin-left: 2px; font-family: var(--serif); font-size: 16px; font-style: italic; font-weight: 400; letter-spacing: -.01em; text-transform: none; color: var(--accent); }
@media (hover: hover) { .hero__cue:hover .hero__cue-ring { background: var(--accent); color: var(--accent-ink); box-shadow: none; transform: translateY(3px); } }
.hero__cue:focus-visible { outline: none; }
.hero__cue:focus-visible .hero__cue-ring { box-shadow: 0 0 0 2px var(--black), 0 0 0 4px var(--accent); }
.hero__after { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 0 var(--pad); opacity: 0; visibility: hidden; text-align: center; pointer-events: none; }
.hero__after-k { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }

/* ---------------------------------------------------------------- tela 2 · trabalhos */
.projects-screen { background: var(--black); overflow: hidden; }
html.no-js .projects-screen { min-height: var(--vh); }
html.js .projects-screen { clip-path: inset(100% 0 0 0); }
.works { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(440px, .92fr); gap: clamp(20px, 2.4vw, 44px); min-height: 0; }
html.js .projects-screen .works { position: absolute; inset: 0; padding: calc(var(--nav-h) + 1vh) var(--pad) var(--pad); }
.works__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.works__head { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-bottom: clamp(14px, 2vh, 22px); border-bottom: 1px solid var(--line); text-align: center; }
.works__title { display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap; column-gap: .25em; margin: 0; font-weight: 500; font-size: clamp(20px, 1.5vw, 26px); line-height: 1.1; letter-spacing: -.02em; }
.works__line { display: block; overflow: hidden; padding: 0 .04em .1em 0; margin-bottom: -.1em; }
.works__line > * { display: inline-block; }
.works__title em { font-family: var(--serif); font-style: italic; font-weight: 350; font-variation-settings: "SOFT" 100; letter-spacing: -.035em; color: var(--accent); }
.works__title sup { margin-left: .1em; font: 500 11px/1 var(--mono); letter-spacing: 0; color: var(--ink-3); transform: translateY(.25em); }
.works__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip { height: 36px; padding: 0 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 500; color: var(--ink-2); transition: background-color .3s, color .3s, box-shadow .3s; }
.chip.is-on { background: var(--ink); color: var(--black); box-shadow: none; }
@media (hover: hover) { .chip:not(.is-on):hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink-3); } }
.works__scroll { flex: 1; min-height: 0; padding: clamp(22px, 3.4vh, 40px) 0 calc(env(safe-area-inset-bottom) + 48px); }
html.js .works__scroll { overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: thin; scrollbar-color: var(--line) transparent; -webkit-mask-image: linear-gradient(transparent, #000 18px); mask-image: linear-gradient(transparent, #000 18px); }
.works__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.2vh, 38px) clamp(12px, 1vw, 18px); margin: 0; padding: 0; list-style: none; }
.work[hidden] { display: none; }
.work__btn { display: block; width: 100%; text-align: left; color: inherit; transition: opacity .5s var(--ease), filter .5s var(--ease), transform .7s var(--ease); }
.work__media { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #141414 center / cover no-repeat; isolation: isolate; box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .9); transition: box-shadow .7s var(--ease); }
.work__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
/* Prévia ao passar o mouse: vídeo enviado ou player do YouTube/Vimeo sem interface, cobrindo o card. */
.work__preview { position: absolute; left: 50%; top: 50%; z-index: 1; width: 100%; height: 100%; border: 0; object-fit: cover; opacity: 0; transform: translate(-50%, -50%); pointer-events: none; transition: opacity .6s var(--ease); }
.work.is-previewing .work__preview { opacity: 1; }
.work__shade { position: absolute; inset: 0; z-index: 2; background: linear-gradient(180deg, rgba(0, 0, 0, .42), transparent 30%, transparent 62%, rgba(0, 0, 0, .5)); pointer-events: none; }
.work__media::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(242, 239, 233, .1); pointer-events: none; }
.work__tag, .work__dur { position: absolute; top: 10px; z-index: 3; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: rgba(14, 14, 14, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); color: var(--ink); }
.work__tag { left: 10px; font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.work__dur { right: 10px; font: 500 10.5px/1 var(--mono); }
.work__play { position: absolute; left: 50%; top: 50%; z-index: 3; display: grid; place-items: center; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), 0 16px 40px -12px rgba(0, 0, 0, .6); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5); opacity: 0; transform: scale(.7); transition: opacity .45s var(--ease), transform .6s var(--ease), background-color .3s; }
.work__play i { width: 0; height: 0; margin-left: 3px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent #fff; }
.work { position: relative; }
/* Som: um botão por card (aparece com o mouse, no lugar da duração) e um no destaque; o estado é global. */
.work__sound, .works__sound { position: absolute; z-index: 4; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(14, 14, 14, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); color: #fff; transition: opacity .35s var(--ease), background-color .3s, transform .4s var(--ease); }
.work__sound:hover, .works__sound:hover { background: var(--accent); color: var(--accent-ink); }
.work__sound svg, .works__sound svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.work__sound .snd-body, .works__sound .snd-body { fill: currentColor; }
.work__sound .snd-on, .works__sound .snd-on, .sound-on .work__sound .snd-off, .sound-on .works__sound .snd-off { display: none; }
.sound-on .work__sound .snd-on, .sound-on .works__sound .snd-on { display: inline; }
.work__sound { top: 5px; right: 5px; opacity: 0; pointer-events: none; }
.work__dur { transition: opacity .3s; }
@media (hover: hover) {
  .work:hover .work__sound, .work.is-previewing .work__sound, .work__sound:focus-visible { opacity: 1; pointer-events: auto; }
  .work:hover .work__dur, .work.is-previewing .work__dur { opacity: 0; }
}
@media (hover: none) { .work__sound { display: none; } }
.works__sound { right: 12px; bottom: 10px; }
.work__bar { position: absolute; left: 10px; right: 10px; bottom: 9px; z-index: 3; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .22); overflow: hidden; opacity: 0; transition: opacity .4s; }
.work__bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.work.is-previewing .work__bar, .work.is-loading .work__bar { opacity: 1; }
.work.is-loading .work__bar i { width: 30%; transform: none; animation: work-load 1.1s var(--ease-io) infinite; }
@keyframes work-load { from { translate: -100% 0; } to { translate: 340% 0; } }
.work.is-previewing .work__bar i { animation: work-bar var(--pv, 15s) linear infinite; }
@keyframes work-bar { to { transform: scaleX(1); } }
.work.is-previewing .work__play { opacity: 0 !important; transform: scale(1.2) !important; }
.work__info { display: grid; grid-template-columns: auto 1fr auto; align-items: start; column-gap: 10px; margin-top: 12px; }
.work__n { padding-top: .4em; font: 500 10.5px/1 var(--mono); color: var(--accent); }
.work__text { display: grid; gap: 3px; min-width: 0; }
.work__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(14.5px, .9vw, 16.5px); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; transition: color .4s; }
.work__meta { font-size: 12.5px; color: var(--ink-3); }
.work__meta:empty { display: none; }
.work__go { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); font-size: 12px; color: var(--ink-2); transition: background-color .4s, color .4s, box-shadow .4s, transform .6s var(--ease); }
@media (hover: hover) {
  .work__btn:hover .work__media { box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 55%, transparent); }
  .work__btn:hover .work__media img { transform: scale(1.06); }
  .work__btn:hover .work__play { opacity: 1; transform: none; }
  /* No computador o card só faz prévia (o player abre por clique só no celular): sem cara de link. */
  .work__btn { cursor: default; }
  .work__go { display: none; }
  /* Foco no card sob o mouse; os outros recuam. */
  .works__grid:has(.work__btn:hover) .work__btn:not(:hover) { opacity: .42; filter: saturate(.5); }
}
@media (hover: none) { .work__play { opacity: .9; transform: scale(.82); } }
.work__btn:focus-visible { outline: none; }
.work__btn:focus-visible .work__media { box-shadow: 0 0 0 2px var(--black), 0 0 0 4px var(--accent); }
.works__aside { position: relative; display: grid; grid-template-columns: minmax(210px, .9fr) minmax(250px, 1.1fr); grid-template-rows: minmax(0, 1fr) auto; align-items: center; gap: clamp(18px, 2vw, 30px) clamp(22px, 2.2vw, 42px); min-height: 0; padding: clamp(18px, 1.8vw, 30px); border-radius: 24px; overflow: hidden; isolation: isolate; background: radial-gradient(75% 75% at 90% 18%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 70%), #111; box-shadow: inset 0 0 0 1px rgba(242, 239, 233, .08), 0 40px 90px -50px rgba(0, 0, 0, .9); }
.works__aside::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, rgba(255, 255, 255, .025), transparent 45%); pointer-events: none; }
.works__feature { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: flex-end; min-width: 0; min-height: 0; height: 100%; }
.works__stage { position: relative; width: auto; max-width: 100%; height: min(100%, 700px); aspect-ratio: 9 / 16; border-radius: clamp(18px, 1.7vw, 26px); overflow: hidden; background: radial-gradient(70% 60% at 70% 30%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), #171717; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 42px 90px -34px rgba(0, 0, 0, .95); }
.works__stage video, .works__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.works__stage img { animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.16) translate(-2%, -1%); } }
.works__stage-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15), transparent 55%, rgba(0, 0, 0, .58)); }
.works__format { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; background: rgba(10, 10, 10, .58); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 600 10px/1 var(--mono); letter-spacing: .08em; }
.works__format i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.works__badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 30px; margin: 0; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .11); color: var(--ink-2); font-size: 11.5px; font-weight: 500; line-height: 1.2; }
.works__badge i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, .18); }
.works__pitch { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(12px, 1.6vh, 18px); min-width: 0; max-width: 34em; }
.works__eyebrow { margin: 2px 0 -5px; color: var(--accent); font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.works__cta-title { margin: 0; font-family: var(--serif); font-weight: 300; font-variation-settings: "SOFT" 100; font-size: clamp(28px, 2.25vw, 44px); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.works__cta-title em { font-style: italic; font-weight: 400; color: var(--accent); }
.works__cta-text { margin: 0; max-width: 40ch; color: var(--ink-2); font-size: clamp(14px, .95vw, 16px); line-height: 1.5; }
.works__actions { display: grid; gap: 10px; margin-top: 4px; }
.works__btn { display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 600; transition: background-color .35s, color .35s, box-shadow .35s, transform .5s var(--ease); }
.works__actions .works__btn { justify-content: center; width: 100%; }
.works__btn--main { background: var(--accent); color: var(--accent-ink); box-shadow: 0 18px 40px -16px color-mix(in srgb, var(--accent) 70%, transparent); }
.works__btn--main i { display: grid; place-items: center; width: 26px; height: 26px; margin-right: -10px; border-radius: 50%; background: rgba(0, 0, 0, .14); font-style: normal; font-size: 13px; transition: transform .5s var(--ease); }
@media (hover: hover) {
  .works__btn--main:hover { background: var(--ink); color: var(--black); transform: translateY(-2px); }
  .works__btn--main:hover i { transform: rotate(45deg); }
}
.works__social { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; }
.works__social a { color: var(--ink-2); transition: color .3s; }
@media (hover: hover) { .works__social a:hover { color: var(--ink); } }
@media (min-width: 1101px) {
  /* Coluna do vídeo do tamanho exato do Reel; o resto fica para o texto. */
  .works__aside { grid-template-columns: minmax(0, 1fr) auto; }
  .works__pitch { max-width: 36em; }
  .works__cta-title { font-size: clamp(34px, 2.9vw, 56px); }
  .works__cta-text { font-size: clamp(15px, 1vw, 17px); }
  .works__actions { max-width: 380px; margin-top: 8px; }
}
@media (min-width: 1101px) and (max-height: 860px) {
  /* Notebook baixo: o Reel encolhe, então o bloco de texto aperta junto para caber ao lado dele. */
  .works__pitch { gap: 10px; }
  .works__cta-title { font-size: clamp(30px, 2.6vw, 44px); }
}
/* Como funciona (só no desktop, onde sobra altura ao lado do Reel). */
.works__steps { display: grid; margin: 2px 0 0; padding: 0; list-style: none; max-width: 380px; }
.works__steps li { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); font-size: clamp(14px, .95vw, 16px); line-height: 1.35; }
.works__steps li:last-child { border-bottom: 1px solid var(--line); }
.works__steps b { flex: none; color: var(--accent); font: 500 11px/1 var(--mono); letter-spacing: .06em; }
/* Instagram como assinatura tipográfica (não botão): rótulo mono + @usuário em serifa itálica. */
.works__ig { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; align-self: flex-start; margin-top: 2px; color: var(--ink); }
.works__ig-k { font: 500 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.works__ig-h { padding-bottom: 3px; font-family: var(--serif); font-style: italic; font-weight: 300; font-variation-settings: "SOFT" 100; font-size: clamp(19px, 1.4vw, 26px); line-height: 1; letter-spacing: -.02em; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease), color .3s; }
.works__ig-h i { color: var(--accent); }
@media (hover: hover) { .works__ig:hover .works__ig-h { background-size: 100% 1px; } }
.works__ig:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
/* Tablet/celular, ou tela baixa: o vídeo fica curto e os passos não cabem ao lado dele. */
@media (max-width: 1100px), (max-height: 1099px) { .works__steps { display: none; } }
.works__timeline { --timeline-x: 12%; grid-column: 1 / -1; align-self: end; position: relative; height: clamp(218px, 24vh, 252px); min-width: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, .11); border-radius: 19px; background: radial-gradient(circle at 16% -30%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 36%), linear-gradient(145deg, #121419, #08090c 72%); box-shadow: 0 28px 70px -32px #000, 0 0 0 1px rgba(0, 0, 0, .25), inset 0 1px rgba(255, 255, 255, .05); font-family: var(--mono); }
.works__timeline::before { content: ""; position: absolute; inset: 0 18% auto; z-index: 3; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 65%, white), transparent); opacity: .55; pointer-events: none; }
.timeline__toolbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 43px; padding: 0 14px; border-bottom: 1px solid rgba(255, 255, 255, .085); background: linear-gradient(180deg, rgba(255, 255, 255, .068), rgba(255, 255, 255, .012)); color: var(--ink-3); font-size: 8px; letter-spacing: .07em; }
.timeline__sequence { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.timeline__sequence > i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent), 0 0 14px color-mix(in srgb, var(--accent) 48%, transparent); }
.timeline__sequence > span { display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.timeline__sequence b { color: rgba(255, 255, 255, .82); font-size: 8px; font-weight: 650; }
.timeline__sequence small { color: #616670; font-size: 6px; letter-spacing: .04em; }
.timeline__transport { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid rgba(255, 255, 255, .075); border-radius: 999px; background: rgba(0, 0, 0, .26); box-shadow: inset 0 1px rgba(255, 255, 255, .025); }
.timeline__transport i { position: relative; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; }
.timeline__transport-play { background: rgba(255, 255, 255, .9); box-shadow: 0 5px 12px rgba(0, 0, 0, .35); }
.timeline__transport-play::before { content: ""; margin-left: 1px; border-style: solid; border-width: 3px 0 3px 5px; border-color: transparent transparent transparent #111318; }
.timeline__transport-back::before, .timeline__transport-next::before { content: ""; width: 5px; height: 5px; border-left: 1px solid #777c86; border-bottom: 1px solid #777c86; transform: rotate(45deg); }
.timeline__transport-next::before { transform: rotate(225deg); }
.timeline__transport-back::after, .timeline__transport-next::after { content: ""; position: absolute; width: 1px; height: 7px; background: #777c86; transform: translateX(-3px); }
.timeline__transport-next::after { transform: translateX(3px); }
.timeline__toolbar-end { justify-self: end; display: flex; align-items: center; gap: 9px; }
.timeline__snap { display: inline-flex; align-items: center; gap: 4px; color: #59606b; font-size: 5.5px; letter-spacing: .09em; }
.timeline__snap i { width: 7px; height: 7px; border: 1px solid #59606b; border-top-color: transparent; border-radius: 1px 1px 4px 4px; }
.timeline__time { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 7px; background: rgba(0, 0, 0, .24); color: color-mix(in srgb, var(--accent) 75%, white); font: 550 7.5px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: .015em; }
.timeline__time i { color: #3f444d; font-style: normal; }
.timeline__time span:last-child { color: #696e78; }
.timeline__body { display: grid; grid-template-columns: 76px minmax(0, 1fr); height: calc(100% - 43px); }
.timeline__labels { display: grid; grid-template-rows: 22px repeat(6, 1fr); align-items: center; border-right: 1px solid rgba(255, 255, 255, .075); background: linear-gradient(90deg, rgba(255, 255, 255, .025), transparent); }
.timeline__labels-head { display: flex; align-items: center; gap: 3px; padding-left: 9px; }
.timeline__labels-head i { width: 3px; height: 3px; border-radius: 50%; background: #4b5059; }
.timeline__labels b { --track: #8e949e; display: grid; grid-template-columns: 19px minmax(0, 1fr) 5px; gap: 5px; align-items: center; align-self: stretch; padding: 0 6px; border-top: 1px solid rgba(255, 255, 255, .045); color: #7b808a; font-size: 6px; font-weight: 500; }
.timeline__labels b.is-title { --track: var(--accent); }
.timeline__labels b.is-caption { --track: #aa7cff; }
.timeline__labels b.is-motion { --track: #58c7ff; }
.timeline__labels b.is-video { --track: #d5d8de; }
.timeline__labels b.is-sfx { --track: #ffbe55; }
.timeline__labels b.is-audio { --track: #52df95; }
.timeline__labels b > i { display: grid; place-items: center; height: 16px; border: 1px solid color-mix(in srgb, var(--track) 26%, transparent); border-radius: 5px; background: color-mix(in srgb, var(--track) 9%, transparent); color: color-mix(in srgb, var(--track) 75%, white); font-style: normal; font-size: 5px; }
.timeline__labels b em { overflow: hidden; text-overflow: ellipsis; font-style: normal; white-space: nowrap; }
.timeline__labels b small { width: 4px; height: 4px; border-radius: 50%; background: color-mix(in srgb, var(--track) 58%, transparent); box-shadow: 0 0 6px color-mix(in srgb, var(--track) 22%, transparent); }
.timeline__canvas { position: relative; display: grid; grid-template-rows: 22px repeat(6, 1fr); min-width: 0; overflow: hidden; }
.timeline__ruler { display: flex; justify-content: space-between; align-items: center; padding: 0 6px; background: repeating-linear-gradient(90deg, transparent 0 calc(3.125% - 1px), rgba(255, 255, 255, .055) calc(3.125% - 1px) 3.125%); color: #646974; font-size: 5.5px; font-variant-numeric: tabular-nums; }
.timeline__lane { position: relative; min-width: 0; border-top: 1px solid rgba(255, 255, 255, .045); background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), rgba(255, 255, 255, .033) calc(12.5% - 1px) 12.5%); }
.timeline__lane:nth-child(even) { background-color: rgba(255, 255, 255, .009); }
.timeline__clip { position: absolute; left: var(--x); top: 3px; bottom: 3px; width: var(--w); overflow: hidden; border-radius: 5px; box-shadow: 0 3px 8px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .08); font-style: normal; white-space: nowrap; }
.timeline__clip--title, .timeline__clip--caption, .timeline__clip--sfx { padding: 4px 5px 0; font-size: 5px; letter-spacing: .055em; text-transform: uppercase; }
.timeline__clip--title { border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 26%, #151619), color-mix(in srgb, var(--accent) 10%, #111216)); color: color-mix(in srgb, var(--accent) 76%, white); }
.timeline__clip--title::after { content: "T"; position: absolute; right: 4px; bottom: -2px; color: rgba(255, 255, 255, .1); font: 700 12px/1 var(--mono); }
.timeline__clip--caption { border: 1px solid rgba(173, 126, 255, .5); background: linear-gradient(135deg, rgba(128, 78, 214, .3), rgba(73, 44, 128, .22)); color: #d9c8ff; text-transform: none; }
.timeline__clip--caption::before { content: "“"; margin-right: 3px; color: #ad7eff; }
.timeline__clip--motion { display: flex; align-items: center; justify-content: space-around; padding: 0 5px; border: 1px solid rgba(65, 184, 255, .5); background: linear-gradient(135deg, rgba(38, 139, 197, .3), rgba(24, 64, 111, .22)); }
.timeline__clip--motion::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(102, 205, 255, .2); }
.timeline__clip--motion b { z-index: 1; width: 4px; height: 4px; border: 1px solid #83ddff; background: #193647; box-shadow: 0 0 5px rgba(80, 200, 255, .35); transform: rotate(45deg); }
.timeline__clip--video { border: 1px solid rgba(255, 255, 255, .18); background: #24282f; }
.timeline__clip--video img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus) 45%; filter: saturate(.72) brightness(.68) contrast(1.1); transform: scale(1.04); }
.timeline__clip--video::before { content: ""; position: absolute; inset: 0; z-index: 1; background: repeating-linear-gradient(90deg, transparent 0 13px, rgba(255, 255, 255, .13) 13px 14px); mix-blend-mode: screen; opacity: .45; }
.timeline__clip--video::after { content: ""; position: absolute; inset: 0; z-index: 2; border-top: 1px solid rgba(255, 255, 255, .14); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08) 50%, transparent); }
.timeline__clip--video.is-alt img { filter: saturate(.55) sepia(.2) brightness(.62) contrast(1.1); }
.timeline__clip--sfx { border: 1px solid rgba(255, 187, 70, .46); background: linear-gradient(135deg, rgba(174, 112, 32, .29), rgba(98, 63, 19, .2)); color: #ffda99; }
.timeline__clip--sfx::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 3px; height: 2px; background: repeating-linear-gradient(90deg, #ffbd52 0 1px, transparent 1px 3px); opacity: .55; }
.timeline__clip--audio { border: 1px solid rgba(85, 207, 140, .34); background: linear-gradient(180deg, rgba(40, 151, 87, .22), rgba(26, 93, 57, .17)); }
.timeline__clip--audio::after { content: ""; position: absolute; inset: 3px 2px; background: repeating-linear-gradient(90deg, #65dc9a 0 1px, transparent 1px 3px); clip-path: polygon(0 48%, 2% 36%, 4% 62%, 6% 22%, 8% 75%, 10% 42%, 12% 57%, 15% 28%, 18% 68%, 21% 45%, 24% 55%, 27% 18%, 30% 78%, 34% 39%, 38% 61%, 42% 31%, 46% 70%, 50% 46%, 54% 55%, 58% 24%, 62% 75%, 66% 36%, 70% 64%, 74% 20%, 78% 81%, 82% 42%, 86% 58%, 90% 30%, 94% 68%, 100% 48%, 100% 52%, 94% 38%, 90% 70%, 86% 42%, 82% 58%, 78% 19%, 74% 80%, 70% 36%, 66% 64%, 62% 25%, 58% 76%, 54% 45%, 50% 54%, 46% 30%, 42% 69%, 38% 39%, 34% 61%, 30% 22%, 27% 82%, 24% 45%, 21% 55%, 18% 32%, 15% 72%, 12% 43%, 10% 58%, 8% 25%, 6% 78%, 4% 38%, 2% 64%, 0 52%); opacity: .84; }
.timeline__playhead { position: absolute; left: var(--timeline-x); top: 0; bottom: 0; z-index: 5; width: 1px; background: var(--accent); box-shadow: 0 0 9px color-mix(in srgb, var(--accent) 72%, transparent); transform: translateX(-.5px); }
.timeline__playhead::after { content: ""; position: absolute; inset: 20px -3px 0; background: color-mix(in srgb, var(--accent) 8%, transparent); }
.timeline__playhead i { position: absolute; left: 50%; top: 0; width: 9px; height: 8px; border-radius: 2px 2px 4px 4px; background: var(--accent); box-shadow: 0 2px 7px color-mix(in srgb, var(--accent) 58%, transparent); clip-path: polygon(0 0, 100% 0, 50% 100%); transform: translateX(-50%); }
.timeline__playhead b { position: absolute; left: 50%; top: 11px; padding: 3px 4px; border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent); border-radius: 4px; background: color-mix(in srgb, var(--accent) 15%, #0c0d10); color: color-mix(in srgb, var(--accent) 78%, white); font-size: 5px; font-weight: 600; font-variant-numeric: tabular-nums; transform: translateX(-50%); }
.works__empty { max-width: 34ch; margin: 2vh auto 0; text-align: center; font-family: var(--serif); font-weight: 300; font-variation-settings: "SOFT" 100; font-size: clamp(19px, 1.6vw, 26px); line-height: 1.15; letter-spacing: -.02em; color: var(--ink-2); }
.works__empty a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }

@media (min-width: 1600px) {
  .works__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------------------------------------------------------------- player (viewer) */
.viewer { position: fixed; inset: 0; z-index: 500; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 34vw); background: #060606; color: var(--ink); overscroll-behavior: contain; }
@media (min-width: 1101px) {
  .viewer__stage { justify-content: flex-end; padding-right: 64px; }
  .viewer__info { max-width: 460px; }
}
.viewer__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.viewer__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(70px) saturate(1.4); opacity: .3; transform: scale(1.3); }
.viewer__stage { position: relative; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 76px 40px 40px; }
.viewer__frame { --ar: 1.7778; position: relative; width: min(100%, calc((var(--vh) - 116px) * var(--ar))); aspect-ratio: var(--ar); border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 40px 120px rgba(0, 0, 0, .6); }
.viewer__media, .viewer__media video, .viewer__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.viewer__media video { object-fit: contain; background: #000; }
.viewer__tap { position: absolute; inset: 0 0 56px; z-index: 1; }
.viewer__frame.is-embed .viewer__tap, .viewer__frame.is-embed .viewer__controls, .viewer__frame.is-embed .viewer__bigplay { display: none; }
.viewer__bigplay { position: absolute; left: 50%; top: 50%; z-index: 2; width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%; background: rgba(10, 10, 10, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transform: scale(.7); transition: opacity .3s, transform .5s var(--ease); pointer-events: none; }
.viewer__bigplay::after { content: ""; position: absolute; left: 36px; top: 30px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.viewer__frame.is-paused .viewer__bigplay { opacity: 1; transform: scale(1); }
.viewer__unmute { position: absolute; left: 50%; top: 16px; z-index: 3; transform: translateX(-50%); height: 40px; padding: 0 18px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; }
.viewer__controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); transition: opacity .4s; }
.viewer__frame.is-idle:not(.is-paused) .viewer__controls { opacity: 0; }
.vc { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; flex: none; transition: background-color .2s; }
@media (hover: hover) { .vc:hover { background: rgba(255, 255, 255, .12); } }
.vc svg { width: 22px; height: 22px; fill: currentColor; }
.vc--play .i-play { display: none; }
.viewer__frame.is-paused .vc--play .i-play { display: block; }
.viewer__frame.is-paused .vc--play .i-pause { display: none; }
.vc--mute .i-x { display: none; }
.viewer__frame.is-muted .vc--mute .i-x { display: block; }
.viewer__frame.is-muted .vc--mute .i-wave { display: none; }
.vc__bar { position: relative; flex: 1; height: 24px; cursor: pointer; touch-action: none; }
.vc__bar::before, .vc__buf, .vc__fill { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; }
.vc__bar::before { background: rgba(255, 255, 255, .22); }
.vc__buf { background: rgba(255, 255, 255, .32); transform-origin: left; transform: scaleX(0); }
.vc__fill { background: var(--accent); transform-origin: left; transform: scaleX(0); }
.vc__time { font: 500 12px/1 var(--mono); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); white-space: nowrap; }
.viewer__upnext { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; background: rgba(6, 6, 6, .8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.viewer__upnext-k { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.viewer__upnext-title { font-weight: 800; font-stretch: 66%; font-size: clamp(30px, 3.4vw, 54px); line-height: .9; text-transform: uppercase; max-width: 16ch; }
.viewer__upnext-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.viewer__upnext-actions .btn { overflow: hidden; }
.viewer__upnext-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: currentColor; opacity: .5; transform-origin: left; transform: scaleX(var(--t, 0)); }
.viewer__info { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 76px 40px 40px 8px; overflow-y: auto; overscroll-behavior: contain; }
.viewer__cat { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.viewer__title { font-weight: 800; font-stretch: 66%; font-size: clamp(40px, 3.6vw, 64px); line-height: .88; text-transform: uppercase; }
.viewer__client { font-size: 14px; color: var(--ink-2); }
.viewer__desc { color: var(--ink-2); font-size: 15px; line-height: 1.6; white-space: pre-line; }
.viewer__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.viewer__tags li { padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.viewer__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.viewer__top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: calc(env(safe-area-inset-top) + 16px) 20px 0 32px; pointer-events: none; }
.viewer__pager { display: flex; align-items: center; gap: 10px; pointer-events: auto; }
.viewer__count { min-width: 64px; text-align: center; font: 500 12px/1 var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.viewer__nav { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background-color .3s, color .3s; }
@media (hover: hover) { .viewer__nav:hover { background: var(--ink); color: var(--black); } }
.viewer__nav svg, .viewer__close svg { width: 20px; height: 20px; }
.viewer__close { pointer-events: auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background-color .3s, transform .6s var(--ease); }
@media (hover: hover) { .viewer__close:hover { background: var(--ink); color: var(--black); transform: rotate(90deg); } }
.viewer__ghost { position: fixed; z-index: 600; object-fit: cover; border-radius: 12px; pointer-events: none; }

/* ---------------------------------------------------------------- grão, aviso */
.grain { position: fixed; inset: -100%; z-index: 800; pointer-events: none; background-image: var(--noise, none); opacity: .045; animation: grain .9s steps(4) infinite; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 28px); z-index: 700; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--black); font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .5s var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-4%, 3%); } 50% { transform: translate(3%, -5%); } 75% { transform: translate(-2%, -3%); } 100% { transform: translate(4%, 2%); } }
@keyframes cue-halo { 0% { transform: scale(1); opacity: .85; } 70%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes cue-arrow { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(4px); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); } 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }

/* ---------------------------------------------------------------- tablet */
@media (max-width: 1100px) {
  .nav__status { display: none; }
  .works { grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr); }
  .works__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .works__aside { grid-template-columns: minmax(140px, .9fr) minmax(150px, 1.1fr); gap: 16px 14px; }
  .works__cta-title { font-size: clamp(25px, 3vw, 34px); }
  .works__timeline { height: clamp(188px, 24vh, 210px); }
  .timeline__body { grid-template-columns: 50px minmax(0, 1fr); }
  .timeline__labels b { grid-template-columns: 15px 1fr; padding: 0 3px; }
  .timeline__labels b em { font-size: 5.5px; }
  .works__social { display: none; }
  .viewer { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .viewer__stage { padding: calc(env(safe-area-inset-top) + 70px) 16px 12px; }
  .viewer__frame { width: min(100%, calc((var(--vh) - 330px) * var(--ar))); }
  .viewer__info { padding: 8px 24px calc(env(safe-area-inset-bottom) + 24px); justify-content: flex-start; max-height: 42vh; }
  .viewer__top { padding-left: 16px; }
}

/* ---------------------------------------------------------------- celular */
@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  .nav__cta { height: 36px; padding: 0 14px; font-size: 13px; }
  .nav__right { gap: 10px; }
  .nav__auth { margin-right: 0; }
  .nav__link { height: 36px; padding: 0 12px; font-size: 13px; }
  .nav__link--signup { display: none; }
  .nav__me { padding-left: 3px; gap: 7px; }
  .nav__me b { width: 28px; height: 28px; font-size: 11px; }
  .pager { display: none; }
  .hero__mask { --hero-bottom: 250px; padding-left: 14px; padding-right: 14px; }
  .hero__bottom { grid-template-columns: auto minmax(0, 1fr); gap: 18px; }
  .hero__id { grid-column: 2; justify-self: end; text-align: right; }
  /* Celular: indicador menor, à esquerda, na mesma linha da assinatura. */
  .hero__cue { grid-column: 1; grid-row: 1; justify-self: start; flex-direction: row; gap: 10px; }
  .hero__cue-ring { width: 46px; height: 46px; }
  .hero__cue-label { font-size: 10px; }
  .hero__cue-label em { display: block; margin: 3px 0 0; font-size: 14px; }
  .hero__signature { flex-direction: column; gap: 5px; width: min(84vw, 420px); }
  .hero__signature::before { width: 28px; }
  .hero__signature span { font-size: 9px; line-height: 1.45; }
  .hero__signature em { font-size: 18px; }
  .works { display: flex; flex-direction: column; }
  html.js .projects-screen .works { padding: calc(var(--nav-h) + 1vh) 20px 0; }
  .works__main { flex: 1; }
  .works__scroll { padding-bottom: calc(env(safe-area-inset-bottom) + 120px); }
  .works__aside { position: absolute; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 12px); z-index: 3; display: block; padding: 10px; border-radius: 20px; }
  .works__feature, .works__timeline, .works__badge, .works__eyebrow, .works__cta-title, .works__cta-text, .works__social, .works__ig { display: none; }
  .works__pitch { margin: 0; max-width: none; }
  .works__actions { flex-wrap: nowrap; margin: 0; }
  .works__btn { flex: 1; justify-content: center; height: 48px; padding: 0 14px; font-size: 14px; }
  .works__stage-shade { background: rgba(0, 0, 0, .55); }
  .works__aside:not(:has(.works__btn)) { display: none; }
  .works:not(:has(.works__btn)) .works__scroll { padding-bottom: calc(env(safe-area-inset-bottom) + 40px); }
  .works__head { gap: 16px; }
  .works__title { font-size: 20px; }
  .works__filters { flex-wrap: nowrap; width: calc(100% + 40px); margin: 0 -20px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; }
  .works__filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .works__filters { justify-content: flex-start; }
  .works__filters > :first-child { margin-left: auto; }
  .works__filters > :last-child { margin-right: auto; }
  .work__media { border-radius: 14px; }
  .work__go { width: 32px; height: 32px; }
  .viewer__stage { padding: 0; }
  .viewer__frame { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .viewer__frame.is-vertical .viewer__media video { object-fit: cover; }
  .viewer__info { position: absolute; left: 0; right: 0; bottom: 0; max-height: none; padding: 60px 20px calc(env(safe-area-inset-bottom) + 18px); background: linear-gradient(transparent, rgba(0, 0, 0, .85) 45%); pointer-events: none; gap: 8px; }
  .viewer__info > * { pointer-events: auto; }
  .viewer__title { font-size: 40px; }
  .viewer__desc { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .viewer__desc.is-open { -webkit-line-clamp: unset; display: block; max-height: 30vh; overflow-y: auto; }
  .viewer__tags { display: none; }
  .viewer__actions .btn { height: 44px; padding: 0 18px; font-size: 14px; }
  .viewer__controls { bottom: auto; top: calc(env(safe-area-inset-top) + 64px); background: none; height: 40px; padding: 0 12px; }
  .viewer__controls .vc--fs { display: none; }
  .viewer__tap { inset: 0; }
  .viewer__nav { width: 36px; height: 36px; background: rgba(0, 0, 0, .35); }
  .viewer__count { min-width: 52px; }
  .viewer__top { padding: calc(env(safe-area-inset-top) + 12px) 12px 0; }
}

/* ---------------------------------------------------------------- movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero__cue-ring::before, .hero__cue-ring svg, .nav__status i { animation: none; }
}
