/* v02: palco escuro em tela cheia, tipografia grande, os filmes trocam com a rolagem */
:root {
  --bg: #09090a; --ink: #efeae2; --mute: #8f8b84; --line: rgba(239, 234, 226, .14); --accent: #1f3fb8;
  --gut: clamp(20px, 4.4vw, 64px);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  /* usados pelo player */
  --r-md: 10px; --display-weight: 600; --t-h3: clamp(22px, 2.4vw, 32px); --t-body: 16px; --t-small: 14px;
  --font-display: var(--font); --display-tracking: -0.02em; --p-inv-muted: #a4a09a; --p-accent: var(--accent);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.5 var(--font); font-stretch: 100%; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--accent); color: #fff; }
.skip { position: fixed; left: var(--gut); top: 12px; z-index: 50; padding: 10px 14px; background: var(--ink); color: #111; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* palco */
.stage { position: fixed; inset: 0; z-index: 0; background: var(--bg); overflow: hidden; }
.stage > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.stage__still img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.stage__still img.is-on { opacity: var(--show, 1); }
.stage.has-gl .stage__still { display: none; }
.stage__gl { display: none; }
.stage.has-gl .stage__gl { display: block; }
.stage__video { object-fit: cover; opacity: 0; transition: opacity .6s ease; }
.stage__video.is-on { opacity: 1; }
.stage__shade { background: linear-gradient(to bottom, rgba(9, 9, 10, .45), rgba(9, 9, 10, 0) 22%, rgba(9, 9, 10, 0) 45%, rgba(9, 9, 10, .82)); }
.stage.has-gl .stage__shade { opacity: 0; }
.stage.has-gl .stage__video.is-on ~ .stage__shade { opacity: 1; }

/* topo */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px var(--gut); }
.logo { font-weight: 700; font-stretch: 118%; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; min-height: 44px; }
.logo i { display: inline-block; width: 2px; height: 12px; margin: 0 6px; background: var(--accent); }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); font-size: 15px; font-weight: 500; }
.top nav a, .less { position: relative; display: inline-flex; align-items: center; min-height: 44px; }
.top nav a::after, .less::after, .contact__row > *::after, .contact__foot a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.top nav a:hover::after, .less:hover::after, .less[aria-pressed="true"]::after, .contact__row > *:hover::after, .contact__foot a:hover::after { transform: scaleX(1); }
.less { color: var(--ink); opacity: .75; white-space: nowrap; }
.pbar { position: fixed; left: var(--gut); right: var(--gut); top: 70px; height: 1px; z-index: 20; background: var(--line); }
.pbar i { display: block; height: 100%; background: var(--ink); transform: scaleX(var(--p, 0)); transform-origin: left; }

main { position: relative; z-index: 1; }

/* herói: o nome sobre o preto; rolar acende o primeiro filme */
.hero { height: 230vh; }
.hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: flex-end; padding: 0 var(--gut) clamp(28px, 6vh, 64px); }
.hero__copy { width: 100%; opacity: var(--o, 1); transform: translateY(calc(var(--y, 0) * -60px)); }
.hero h1 { font-weight: 600; font-stretch: 96%; font-size: clamp(64px, 15.5vw, 250px); line-height: .86; letter-spacing: -.045em; transform-origin: left bottom; transform: scale(calc(1 - var(--y, 0) * .12)); }
.hero h1 span { display: block; }
.hero__row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 5fr); align-items: end; gap: 24px; margin-top: clamp(18px, 3vh, 36px); }
.hero__row p { max-width: 34ch; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.4; }
.hint { font-size: 13px; font-weight: 600; color: var(--ink); opacity: .8; }
.go { justify-self: end; display: inline-flex; align-items: center; gap: 18px; padding: 12px 0; border-bottom: 1px solid currentColor; font-size: clamp(16px, 1.5vw, 21px); font-weight: 500; }
.arr { width: 28px; height: 12px; flex: none; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.go:hover .arr { transform: translateX(6px); }

/* destaques: um filme por tela, preso enquanto a rolagem troca o filme */
.feat { height: calc(var(--n) * 100vh + 40vh); }
.feat__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 0 var(--gut) clamp(28px, 6vh, 64px); }
.feat__hit { position: absolute; inset: 0; width: 100%; cursor: pointer; }
.feat__copy, .feat__meta { position: relative; pointer-events: none; }
.feat.is-in .feat__copy, .feat.is-in .feat__meta { animation: feat-in .55s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes feat-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.kicker { font-size: 14px; font-weight: 500; color: var(--mute); display: flex; gap: 14px; }
.feat .kicker { color: var(--ink); opacity: .78; }
.count b { font-weight: 500; }
.feat__title { margin-top: 10px; max-width: 16ch; font-weight: 600; font-stretch: 96%; font-size: clamp(38px, 6.6vw, 104px); line-height: .94; letter-spacing: -.04em; text-wrap: balance; }
.feat__role { margin-top: 14px; font-size: clamp(15px, 1.25vw, 19px); min-height: 1.5em; }
.feat__meta { text-align: right; flex: none; }
.feat__dur { display: block; font-weight: 500; font-size: clamp(22px, 2.2vw, 32px); font-variant-numeric: tabular-nums; }
.feat__meta span { font-size: 14px; opacity: .78; }
.feat__list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.no-js .feat__list { position: static; width: auto; height: auto; clip-path: none; padding: 0 var(--gut); }

/* índice */
.index, .about, .contact { position: relative; background: var(--bg); padding: clamp(96px, 16vh, 180px) var(--gut) 0; }
.index__head { display: flex; align-items: end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 6vh, 64px); }
.index h2 { font-weight: 600; font-stretch: 96%; font-size: clamp(38px, 6.6vw, 104px); line-height: .94; letter-spacing: -.04em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); color: #111; border-color: var(--ink); }
.rows li { border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows li[hidden] { display: none; }
.rows button { width: 100%; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr) 64px; align-items: baseline; gap: 24px; padding: 20px 0; transition: padding .35s cubic-bezier(.2, .7, .2, 1), opacity .25s; }
.rows__name { font-size: clamp(19px, 2.1vw, 30px); font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.rows__role { font-size: 15px; color: var(--mute); }
.rows__dur { font-size: 15px; color: var(--mute); text-align: right; font-variant-numeric: tabular-nums; }
@media (hover: hover) {
  .rows:hover button { opacity: .38; }
  .rows button:hover, .rows button:focus-visible { opacity: 1; padding-left: 18px; }
}
.peek { position: fixed; left: 0; top: 0; z-index: 30; width: min(30vw, 420px); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; pointer-events: none; opacity: 0; transform: translate(var(--x, 0), var(--y, 0)) scale(.92); transition: opacity .2s ease, scale .3s ease; }
.peek.is-on { opacity: 1; }

/* sobre */
.about__lead { margin-top: 20px; max-width: 24ch; max-width: min(100%, 1200px); font-weight: 500; font-stretch: 96%; font-size: clamp(26px, 3.9vw, 62px); line-height: 1.06; letter-spacing: -.03em; text-wrap: pretty; }
.about__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px clamp(24px, 4vw, 64px); margin-top: clamp(48px, 9vh, 104px); padding-top: 24px; border-top: 1px solid var(--line); }
.about h3 { font-size: 14px; font-weight: 500; color: var(--mute); margin-bottom: 12px; }
.about__grid p { font-size: 17px; line-height: 1.5; max-width: 40ch; }

/* contato */
.contact { padding-bottom: 28px; }
.contact__mail { display: inline-block; margin-top: 16px; font-weight: 600; font-stretch: 92%; font-size: clamp(24px, 6.3vw, 100px); line-height: 1; letter-spacing: -.04em; border-bottom: 2px solid transparent; transition: border-color .3s; overflow-wrap: anywhere; }
.contact__mail:hover { border-color: var(--accent); }
.contact__row { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 28px; font-size: 17px; font-weight: 500; }
.contact__row > *, .contact__foot a { position: relative; display: inline-flex; align-items: center; min-height: 44px; }
.contact__foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: clamp(64px, 14vh, 160px); padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--mute); }

/* cursor */
.cursor { position: fixed; left: 0; top: 0; z-index: 40; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); color: #111; pointer-events: none; opacity: 0; display: grid; place-items: center; transform: translate(var(--x, -40px), var(--y, -40px)); transition: width .3s cubic-bezier(.2, .7, .2, 1), height .3s cubic-bezier(.2, .7, .2, 1), margin .3s cubic-bezier(.2, .7, .2, 1), opacity .2s; }
.cursor span { font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.cursor.is-on { opacity: 1; }
.cursor.is-play { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
.cursor.is-play span { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .peek { display: none; } }

/* menos movimento */
html[data-less] .cursor, html[data-less] .peek { display: none; }
html[data-less] .hero__copy { transform: none; }
html[data-less] .hero h1 { transform: none; }
html[data-less] *, html[data-less] *::before, html[data-less] *::after { transition-duration: .01ms !important; }

@media (max-width: 760px) {
  .top nav a:not(:nth-child(-n+2)), .top .less { display: none; }
  .hero__row { grid-template-columns: 1fr; gap: 14px; }
  .go { justify-self: start; }
  .hint { order: 3; }
  .feat__pin { flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 16px; }
  .feat__meta { text-align: left; display: flex; align-items: baseline; gap: 14px; }
  .rows button { grid-template-columns: minmax(0, 1fr) 48px; gap: 4px 16px; padding: 16px 0; }
  .rows__role { grid-column: 1; grid-row: 2; }
  .rows__dur { grid-column: 2; grid-row: 1; }
  .about__grid { grid-template-columns: 1fr; }
}

/* player */
html.player-open { overflow: hidden; }
.player { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #0b0b0c; color: var(--ink); overflow-y: auto; }
.player::backdrop { background: #0b0b0c; }
.player__in { width: min(100% - 48px, 1280px); margin-inline: auto; padding-block: 72px 48px; }
.player__close { position: fixed; top: 16px; right: 24px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #111; }
.player__stage { aspect-ratio: var(--ar, 16 / 9); max-height: calc(100dvh - 200px); margin-inline: auto; background: #000; border-radius: var(--r-md); overflow: hidden; }
.player__stage.is-tall { height: calc(100dvh - 200px); }
.player__stage > * { display: block; width: 100%; height: 100%; border: 0; }
.player__meta { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; margin-top: 32px; }
.player__title { font: 600 var(--t-h3)/1.1 var(--font); letter-spacing: -.02em; }
.player__role { margin-top: 8px; color: var(--p-inv-muted); }
.player__sheet-h { font-size: 14px; font-weight: 500; color: var(--mute); margin-bottom: 8px; }
.player__credits { margin: 0; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.player__credits > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; padding: 9px 0; border-top: 1px solid var(--line); }
.player__credits dt { color: var(--mute); }
.player__credits dd { margin: 0; }
.player__credits .is-free { grid-template-columns: 1fr; }
.player__credits .is-free dt { display: none; }
.player__credits .is-me { background: var(--accent); margin-inline: -12px; padding-inline: 12px; border-top-color: transparent; border-radius: 4px; }
.player__credits .is-me dt, .player__credits .is-me dd { color: #fff; }
.player__credits .is-me + div { border-top-color: transparent; }
@media (max-width: 767px) { .player__in { width: calc(100% - 32px); } .player__meta { grid-template-columns: 1fr; } }
