/* ==========================================================
   Victor Moraes · Portfolio
   Tokens, base, componentes e seções.
   ========================================================== */

/* fontes servidas pelo próprio site (assets/fonts): sem esperar o Google */
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/anton-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/anton-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-tight-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("../fonts/inter-tight-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #ECEBE6;
  --paper-2: #E1E0DA;
  --paper-3: #D4D3CC;
  --ink: #0E0E0E;
  --ink-2: #161616;
  --ink-3: #262626;
  --red: #E3261C;
  --white: #F7F6F2;
  --muted: rgba(14, 14, 14, .58);
  --muted-inv: rgba(247, 246, 242, .62);
  --line: rgba(14, 14, 14, .2);
  --line-inv: rgba(247, 246, 242, .24);
  --grid: rgba(14, 14, 14, .055);

  --cell: clamp(56px, 6vw, 96px);
  --pad: clamp(8px, .9vw, 14px);
  --gutter: clamp(16px, 2.4vw, 44px);
  --gap: clamp(12px, 1.5vw, 28px);
  --radius: 6px;
  --fillet: 10px;

  --f-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --f-body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* papel quadriculado fixo, igual a uma prancheta */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--cell) var(--cell);
  background-position: 50% 50%;
}
main { position: relative; z-index: 1; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
figure { margin: 0; }
::selection { background: var(--red); color: var(--white); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- tipografia ---------- */
.t-display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .86;
  letter-spacing: -.005em;
}
.t-lead {
  font-size: clamp(22px, 2.1vw, 36px);
  line-height: 1.12;
  letter-spacing: -.025em;
  font-weight: 500;
}
.t-body { font-size: clamp(14px, .98vw, 16px); line-height: 1.55; }
.t-body p + p { margin-top: 1.1em; }
.t-label {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.25;
}
.label { display: inline-flex; align-items: center; gap: 10px; }
.label::before { content: ""; width: 6px; height: 6px; background: currentColor; flex: none; }
.label--red::before { background: var(--red); }
.muted { color: var(--muted); }

/* máscara de linha (SplitText) */
.ln-mask { overflow: clip; padding-bottom: .06em; margin-bottom: -.06em; }

/* ---------- layout ---------- */
.wrap { position: relative; padding: 0 var(--gutter); max-width: 1760px; margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.c-rule { grid-column: 2 / 12; }
.c-label { grid-column: 2 / 5; }
.c-main { grid-column: 5 / 12; }
.rule { height: 1px; background: currentColor; transform-origin: left center; margin-bottom: 18px; }

@media (max-width: 900px) {
  .c-rule, .c-label, .c-main { grid-column: 1 / -1; }
  .c-label { margin-bottom: 28px; }
}

/* ---------- hover em rolo (texto sobe e é trocado) ---------- */
.roll { position: relative; display: inline-flex; overflow: hidden; vertical-align: top; }
.roll { margin-top: -.16em; }
.roll > span { display: block; padding-top: .16em; transition: transform .55s var(--ease-out); }
.roll > span + span { position: absolute; inset: 0; transform: translateY(105%); }
a:hover .roll > span:first-child, button:hover .roll > span:first-child, .roll:hover > span:first-child { transform: translateY(-105%); }
a:hover .roll > span + span, button:hover .roll > span + span, .roll:hover > span + span { transform: translateY(0); }

/* ---------- header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; pointer-events: none; color: var(--ink); transition: color .45s var(--ease-out), transform .6s var(--ease-out); }
body.header-hidden .header { transform: translateY(-140px); }
.header > * { pointer-events: auto; }
body[data-header="dark"] .header,
body[data-header="hero"] .header__right { color: var(--white); }
.logo {
  position: absolute;
  top: calc(var(--pad) + 12px);
  left: calc(var(--pad) + 16px);
  display: block;
  font-family: var(--f-display);
  font-size: 19px;
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.logo i { font-style: normal; color: var(--red); }
.header__right {
  position: absolute;
  top: calc(var(--pad) + 14px);
  right: calc(var(--pad) + 18px);
  display: flex;
  align-items: center;
  gap: 26px;
}
.chap-btn { display: inline-flex; align-items: center; gap: 8px; }
.chap-btn svg { width: 10px; height: 10px; transition: transform .4s var(--ease-out); }
.chap-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.burger { width: 30px; height: 18px; position: relative; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.burger span:nth-child(1) { top: 4px; }
.burger span:nth-child(2) { top: 12px; }
body.menu-open .burger span:nth-child(1) { top: 8px; transform: rotate(45deg); }
body.menu-open .burger span:nth-child(2) { top: 8px; transform: rotate(-45deg); }
body.menu-open .header { color: var(--white); }

/* menu de capítulos */
.chapters {
  position: absolute;
  top: calc(100% + 14px);
  right: 46px;
  min-width: 250px;
  padding: 10px;
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .35);
  clip-path: inset(0 0 100% 0 round 8px);
  visibility: hidden;
  transition: clip-path .6s var(--ease-out), visibility 0s .6s;
}
.chapters.is-open { clip-path: inset(0 0 0 0 round 8px); visibility: visible; transition: clip-path .6s var(--ease-out); }
.chapters a { display: grid; grid-template-columns: 34px 1fr 10px; align-items: center; padding: 11px 10px; border-radius: 4px; }
.chapters a:hover { background: var(--paper-3); }
.chapters a::after { content: ""; width: 6px; height: 6px; background: var(--red); opacity: 0; transition: opacity .3s; }
.chapters a.is-active::after { opacity: 1; }
.chapters .num { color: var(--muted); }

/* botão fixo canto inferior direito */
.cta {
  position: fixed;
  z-index: 49;
  right: calc(var(--pad) + 8px);
  bottom: calc(var(--pad) + 8px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px 12px;
  background: var(--red);
  color: var(--white);
  border-radius: 4px;
}
.cta svg { width: 12px; height: 12px; }

/* ---------- entalhes (cantos recortados do quadro) ---------- */
.notch { position: absolute; z-index: 3; background: var(--paper); }
.notch::before, .notch::after { content: ""; position: absolute; width: var(--fillet); height: var(--fillet); }
.notch--tl { top: 0; left: 0; width: 158px; height: 66px; border-bottom-right-radius: var(--fillet); }
.notch--tl::before { top: 0; left: 100%; background: radial-gradient(circle at 100% 100%, transparent calc(var(--fillet) - .5px), var(--paper) var(--fillet)); }
.notch--tl::after { top: 100%; left: 0; background: radial-gradient(circle at 100% 100%, transparent calc(var(--fillet) - .5px), var(--paper) var(--fillet)); }
.notch--br { right: 0; bottom: 0; width: var(--cta-w, 170px); height: var(--cta-h, 54px); border-top-left-radius: var(--fillet); }
.notch--br::before { bottom: 100%; right: 0; background: radial-gradient(circle at 0 0, transparent calc(var(--fillet) - .5px), var(--paper) var(--fillet)); }
.notch--br::after { right: 100%; bottom: 0; background: radial-gradient(circle at 0 0, transparent calc(var(--fillet) - .5px), var(--paper) var(--fillet)); }

/* ---------- transição entre páginas (obturador de câmera) ---------- */
.wipe { position: fixed; inset: 0; z-index: 100; pointer-events: none; display: none; background: var(--ink); }
html.js .wipe { display: block; }
.wipe.is-svg { background: transparent; }
html.wipe-done .wipe { visibility: hidden; }
.shutter { position: absolute; inset: 0; width: 100%; height: 100%; }
.wipe__loader {
  position: absolute;
  z-index: 2;
  inset: auto var(--gutter) var(--gutter) var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.wipe__count { font-family: var(--f-display); font-size: clamp(80px, 13vw, 220px); line-height: .8; }
/* contador escolhido no editor (ajustes.js): "f/22" só aparece depois que o JS escreve o primeiro valor */
html.sem-contador .wipe__loader, html[data-contador="nenhum"] .wipe__loader { display: none; }
html[data-contador="f"] .wipe__count:not([data-pronto]) { visibility: hidden; }
.wipe__name { padding-bottom: .6em; text-align: right; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 3; height: 100vh; height: 100svh; }
.hero__stage { position: absolute; inset: 0; background: var(--paper); will-change: clip-path; }
.hero__frame { position: absolute; inset: var(--pad); border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.hero__slides { position: absolute; inset: 0; }
.hero__slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.hero__slides img.is-active { opacity: 1; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,.12) 38%, rgba(0,0,0,.18) 62%, rgba(0,0,0,.62) 100%); }
.hero__shutter { position: absolute; inset: 0; pointer-events: none; }
.hero__shutter span { position: absolute; left: 0; right: 0; height: 50.5%; background: #000; transform: scaleY(0); }
.hero__shutter span:first-child { top: 0; transform-origin: top; }
.hero__shutter span:last-child { bottom: 0; transform-origin: bottom; }
/* títulos quebrados em letras: cada palavra é uma máscara */
.w { display: inline-block; overflow: hidden; padding: .16em .015em .02em; margin: -.16em -.015em -.02em; vertical-align: top; }
.c { display: inline-block; }
.hero__title {
  position: absolute;
  inset: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 .2em;
  text-align: center;
  color: var(--white);
  font-size: clamp(88px, 15.5vw, 300px);
  line-height: .84;
  white-space: nowrap;
  pointer-events: none;
}
.hl { display: inline-block; }
.hero__ui { position: absolute; inset: 0; pointer-events: none; }
.hero__ui a, .hero__ui button { pointer-events: auto; }
.hero__sub { position: absolute; left: 0; right: 0; top: calc(50% + clamp(56px, 8.5vw, 160px)); text-align: center; color: var(--white); }
.hero__hud {
  position: absolute;
  left: calc(var(--gutter) * .75);
  bottom: calc(var(--gutter) * .7);
  color: var(--white);
  display: grid;
  gap: 6px;
}
.rec { display: inline-flex; align-items: center; gap: 8px; }
.rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.hero__cap { color: var(--muted-inv); min-height: 1.25em; }
.scroll-hint { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); color: var(--white); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.scroll-hint__line { width: 1px; height: 56px; background: rgba(255,255,255,.28); position: relative; overflow: hidden; }
.scroll-hint__line::after { content: ""; position: absolute; inset: 0; background: var(--white); transform: translateY(-100%); animation: drip 2.2s var(--ease-io) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 55% { transform: translateY(0); } 100% { transform: translateY(100%); } }
.iris-layer { position: absolute; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.iris-lines { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- seções claras ---------- */
.sec { position: relative; z-index: 1; padding: clamp(96px, 12vw, 200px) 0; }
.sec--after-wipe { margin-top: -100vh; margin-top: -100svh; padding-top: clamp(110px, 9vw, 160px); }
/* a tela inicial e as frases gigantes continuam por cima do começo da seção seguinte depois
   que o diafragma fecha: só a parte que aparece (recortada por ele) recebe clique */
.pin-spacer:has(> .hero), .pin-spacer:has(> .quote), .hero, .quote, .quote__stage { pointer-events: none; }
.hero__stage, .quote__poster { pointer-events: auto; }
.lead-block { display: grid; gap: clamp(32px, 4vw, 56px); }
.about__row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--gap); row-gap: 28px; align-items: start; margin-top: clamp(40px, 4vw, 64px); }
.about__img { grid-column: 1 / 4; aspect-ratio: 4 / 5; }
.about__txt { grid-column: 4 / 7; padding-top: 4px; }
@media (max-width: 900px) {
  .about__img { grid-column: 1 / 5; }
  .about__txt { grid-column: 1 / -1; }
}

/* mídia com revelação */
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: rgba(14, 14, 14, .12); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
.media--parallax img { height: 116%; margin-top: -8%; will-change: transform; }

/* ---------- cards estilo pasta ---------- */
.cards { display: flex; gap: var(--gap); align-items: flex-start; margin-top: clamp(80px, 9vw, 150px); }
.fcard { flex: 1 1 0; min-width: 0; display: block; color: var(--ink); }
.fcard__tabrow { display: flex; justify-content: flex-end; }
.fcard__tab {
  position: relative;
  padding: 12px 14px 0 18px;
  background: var(--paper-2);
  border-radius: 8px 8px 0 0;
  min-width: 46%;
}
.fcard__tab::before {
  content: "";
  position: absolute;
  right: 100%;
  bottom: 0;
  width: var(--fillet);
  height: var(--fillet);
  background: radial-gradient(circle at 0 0, transparent calc(var(--fillet) - .5px), var(--paper-2) var(--fillet));
}
.fcard__body { background: var(--paper-2); border-radius: 8px 0 8px 8px; padding: 16px 16px 40px; }
.fcard__row { border-top: 1px solid var(--ink); padding-top: 4px; margin-top: 28px; }
.fcard__row:first-child { margin-top: 0; }
.fcard__val { margin-top: 12px; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(28px, 2.6vw, 46px); line-height: .9; }
.fcard__val--sm { font-size: clamp(22px, 1.8vw, 30px); }
.fcard__media { border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; }
.fcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
a.fcard:hover .fcard__media img { transform: scale(1.06); }
.fcard__go { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; }
.fcard__go svg { width: 12px; height: 12px; }
@media (max-width: 900px) { .cards { flex-direction: column; } .fcard { width: 100%; } }

/* carrossel de publicações */
.pubs { position: relative; }
.pubs__view { position: relative; aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; background: var(--paper-3); }
.pubs__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; clip-path: inset(0 0 0 100%); }
.pubs__view img.is-active { clip-path: inset(0 0 0 0); }
.pubs__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.pubs__arrows { display: flex; gap: 6px; flex: none; }
.pubs__arrows button { width: 32px; height: 24px; border: 1px solid var(--ink); border-radius: 4px; display: grid; place-items: center; transition: background .3s, color .3s; }
.pubs__arrows button:hover { background: var(--ink); color: var(--paper); }
.pubs__arrows svg { width: 14px; height: 10px; }

/* ---------- citação gigante (seção escura) ---------- */
.quote { position: relative; z-index: 3; height: 100vh; height: 100svh; margin-top: -100vh; margin-top: -100svh; }
.quote__stage { position: absolute; inset: 0; overflow: hidden; }
.quote__poster { position: absolute; inset: 0; background: var(--ink); clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); will-change: clip-path; }
.quote__poster img, .quote__poster video { position: absolute; inset: -4%; width: 108%; height: 108%; object-fit: cover; filter: blur(3px) saturate(1.05); transform: scale(1.12); }
.quote__poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,.55), rgba(10,10,10,.35) 50%, rgba(10,10,10,.6)); }
.quote__text {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 2;
  white-space: nowrap;
  color: var(--white);
  font-size: clamp(150px, 26vw, 460px);
  line-height: .84;
  will-change: transform;
}
.quote__credit { position: absolute; z-index: 2; left: var(--gutter); bottom: calc(var(--gutter) * .8); color: var(--muted-inv); }

/* ---------- capítulos ---------- */
.chapter__title { font-size: clamp(76px, 11vw, 210px); margin: -.06em 0 .14em; }
/* duas colunas no ritmo do site de referência: a da esquerda anda mais devagar */
.cols { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.col-a { grid-column: 2 / 5; display: grid; align-content: start; gap: 22px; padding-top: 4px; }
.col-b { grid-column: 6 / 12; }
.blk + .blk { margin-top: clamp(90px, 10vw, 170px); }
.t-quote { font-size: clamp(18px, 1.4vw, 25px); line-height: 1.18; letter-spacing: -.02em; font-weight: 500; }
.t-lead--xl { font-size: clamp(24px, 2.35vw, 40px); }
.ph-big { aspect-ratio: 16 / 10; margin: 10px 0 34px; }
.col-b .t-lead { max-width: 620px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: 52px; align-items: start; }
.pair .media:nth-child(1) { aspect-ratio: 3 / 2; }
.pair .media:nth-child(2) { aspect-ratio: 4 / 5; margin-top: 14vh; width: 78%; justify-self: end; }
.flip { margin: 6px 0 4px; }
.flip__view { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--paper-3); }
.flip__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.flip__view img.is-active { opacity: 1; }
.flip--contain .flip__view img { object-fit: contain; padding: 14px; }
.flip figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; }
@media (max-width: 900px) {
  .col-a, .col-b { grid-column: 1 / -1; }
  .col-b { margin-top: 56px; }
  .flip { max-width: 70%; }
}

/* ---------- galeria horizontal ---------- */
.hg { position: relative; z-index: 1; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hg__head { position: absolute; top: clamp(84px, 11vh, 120px); left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; }
.hg__track { position: relative; display: flex; align-items: flex-start; width: max-content; gap: clamp(16px, 2vw, 36px); padding: 4vh var(--gutter) 0 calc(var(--gutter) + 8vw); will-change: transform; }
.hg__item { flex: none; height: clamp(300px, 56vh, 680px); }
.hg__item .media { height: 100%; aspect-ratio: var(--ar, 1.5); }
.hg__item figcaption { margin-top: 10px; display: flex; gap: 14px; }
.hg__item figcaption .muted { flex: none; }
/* tira de negativo: perfurações em cima e embaixo, marcação de borda em âmbar */
.hg__track.film { padding: 36px 20px 54px; margin-left: calc(var(--gutter) + 6vw); gap: 12px; background: #121212; border-radius: 3px; box-shadow: 0 30px 60px -40px rgba(0,0,0,.6); }
.film::before, .film::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='12'%3E%3Crect x='7' y='1' width='12' height='10' rx='2' fill='%23ECEBE6'/%3E%3C/svg%3E") repeat-x;
}
.film::before { top: 12px; }
.film::after { bottom: 12px; }
.film .hg__item { position: relative; height: clamp(280px, 50vh, 620px); }
.film .media { border-radius: 2px; background: #1d1d1d; }
.film .film__edge { position: absolute; left: 2px; right: 0; top: calc(100% + 7px); margin: 0; gap: 16px; white-space: nowrap; overflow: hidden; color: #E8A33D; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.hg__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(36px, 6vh, 64px); height: 1px; background: var(--line); }
.hg__progress span { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }

/* convite no fim da tira: um quadro em branco esperando o próximo trabalho */
.hg__cta { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; height: 100%; aspect-ratio: var(--ar, .82); padding: clamp(14px, 2.2vh, 24px); background: var(--paper); color: var(--ink); border-radius: 2px; }
.hg__cta-t { font-size: clamp(36px, 6.4vh, 70px); line-height: .88; }
.hg__cta-go { display: inline-flex; align-items: center; gap: 10px; padding: 13px 16px 12px; background: var(--red); color: var(--white); border-radius: 4px; }
.hg__cta-go svg { width: 12px; height: 12px; }

/* ---------- reels ---------- */
.reels { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(64px, 7vw, 120px); }
.reel { position: relative; display: block; width: 100%; text-align: left; cursor: pointer; }
.reel .media { aspect-ratio: 9 / 16; border-radius: 10px; }
.reel--sq .media { aspect-ratio: 1 / 1; }
.reel__play { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; background: rgba(247,246,242,.9); color: var(--ink); display: grid; place-items: center; transition: transform .5s var(--ease-out), background .3s; }
.reel__play svg { width: 11px; height: 11px; margin-left: 2px; }
.reel:hover .reel__play { transform: scale(1.12); background: var(--red); color: var(--white); }
.reel__cap { display: block; margin-top: 10px; }
@media (max-width: 1100px) { .reels { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .reels { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- capítulo de vídeo: visor da câmera e ficha do serviço ---------- */
.vf { margin: 6px 0 4px; }
.vf__view { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: var(--white); }
.vf__view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vf__view::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0,0,0,.4), rgba(0,0,0,0) 30%, rgba(0,0,0,0) 66%, rgba(0,0,0,.55)); }
/* cantoneiras e cruz do visor */
.vf__mira {
  --c: rgba(247, 246, 242, .92); --l: 18px; --t: 1.5px;
  position: absolute; inset: 12px; z-index: 2; pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) center / 14px var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) center / var(--t) 14px no-repeat;
}
.vf__rec { position: absolute; z-index: 2; top: 24px; left: 26px; }
.vf__tc { position: absolute; z-index: 2; left: 26px; bottom: 24px; font-variant-numeric: tabular-nums; }
.vf figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 9px; }
.ficha { margin-top: clamp(40px, 4vw, 64px); max-width: 620px; border-bottom: 1px solid var(--ink); }
.ficha__row { display: grid; grid-template-columns: minmax(118px, 32%) minmax(0, 1fr); align-items: baseline; column-gap: var(--gap); padding: 15px 0 12px; border-top: 1px solid var(--ink); }
.ficha__val { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(22px, 1.8vw, 30px); line-height: .95; }
@media (max-width: 900px) { .vf { max-width: 70%; } }

/* ---------- ilha de edição: os vídeos numa timeline que corre com o scroll ----------
   Sem JavaScript, ou com "reduzir movimento", fica a grade simples de vídeos (.nle__grade).
   Com movimento, o home.js monta o monitor e a timeline dentro de .nle__stage e liga .nle--on. */
.nle { position: relative; z-index: 1; padding: 0 0 clamp(96px, 12vw, 200px); }
.nle__head { display: flex; justify-content: space-between; align-items: center; }
.nle__stage { display: none; }
.nle__grade .reels { margin-top: clamp(32px, 4vw, 56px); }
.nle--on { height: 100vh; height: 100svh; padding: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.nle--on .nle__head { position: absolute; top: clamp(84px, 11vh, 120px); left: 0; right: 0; }
.nle--on .nle__stage { display: block; width: 100%; margin-top: clamp(28px, 5vh, 56px); }
.nle--on .nle__grade { display: none; }
.nle__app {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  height: min(68vh, 660px);
  height: min(68svh, 660px);
  padding: 14px;
  background: #121212;
  color: var(--white);
  border-radius: 12px;
  box-shadow: 0 40px 70px -46px rgba(0, 0, 0, .7);
}
/* monitor */
.nle__monitor { position: relative; height: 100%; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; background: #000 center / contain no-repeat; cursor: pointer; }
.nle__monitor video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.nle__monitor video.is-active { opacity: 1; }
.nle__corte { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.nle__hud { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 12px 12px 11px; background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,0) 20%, rgba(0,0,0,0) 72%, rgba(0,0,0,.72)); }
.nle__hud-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.nle__tc { font-size: clamp(14px, 1.2vw, 19px); letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.nle__som { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-inv); white-space: nowrap; }
.nle__som svg { width: 13px; height: 13px; }
.nle__play { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%; background: rgba(247, 246, 242, .92); color: var(--ink); display: grid; place-items: center; transition: transform .5s var(--ease-out), background .3s, color .3s; }
.nle__play svg { width: 15px; height: 17px; margin-left: 3px; }
.nle__monitor:hover .nle__play, .nle__monitor:focus-visible .nle__play { transform: scale(1.1); background: var(--red); color: var(--white); }
/* dados do clipe */
.nle__side { min-width: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 12px; }
.nle__dica { display: flex; align-items: center; gap: 10px; padding-left: 12px; color: var(--muted-inv); }
.nle__dica::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.nle__info { min-width: 0; padding: 8px 6px 0 12px; display: grid; gap: clamp(12px, 1.6vw, 22px); align-content: start; }
.nle__meta { display: flex; flex-wrap: wrap; gap: 6px 24px; color: var(--muted-inv); }
.nle__meta b { color: var(--white); font-weight: 500; }
.nle__title-mask { overflow: hidden; }
.nle__title-mask .nle__title { padding: .14em 0 .12em; margin: -.06em 0 -.08em; }
.nle__title { font-size: clamp(40px, 5.4vw, 100px); line-height: .88; }
.nle__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.nle__btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 16px 12px; background: var(--red); color: var(--white); border-radius: 4px; }
.nle__btn svg { width: 9px; height: 11px; }
.nle__link { display: inline-flex; align-items: center; gap: 10px; }
.nle__link[hidden] { display: none; }
.nle__link svg { width: 14px; height: 10px; }
/* timeline */
.nle__tl { --lab: 44px; --rh: 24px; --vh: 110px; --ah: 54px; --phx: 120px; --pps: 14; position: relative; padding-bottom: 8px; border-radius: 8px; overflow: hidden; background: #1b1b1b; user-select: none; -webkit-user-select: none; }
.nle__labs { position: absolute; z-index: 3; left: 0; top: 0; bottom: 0; width: var(--lab); display: grid; grid-template-rows: var(--rh) var(--vh) var(--ah); row-gap: 4px; background: #1b1b1b; border-right: 1px solid rgba(247, 246, 242, .14); color: var(--muted-inv); }
.nle__labs span { display: grid; place-items: center; }
.nle__view { position: relative; margin-left: var(--lab); overflow: hidden; }
.nle__seq { position: relative; display: grid; grid-template-rows: var(--rh) var(--vh) var(--ah); row-gap: 4px; will-change: transform; }
.nle__ruler {
  position: relative;
  border-bottom: 1px solid rgba(247, 246, 242, .14);
  background-image: linear-gradient(90deg, rgba(247, 246, 242, .55) 1px, transparent 1px), linear-gradient(90deg, rgba(247, 246, 242, .26) 1px, transparent 1px);
  background-size: calc(var(--pps) * 5px) 11px, calc(var(--pps) * 1px) 5px;
  background-position: 0 100%, 0 100%;
  background-repeat: repeat-x;
}
.nle__ruler span { position: absolute; top: 4px; padding-left: 5px; font-family: var(--f-mono); font-size: 9px; font-weight: 500; line-height: 1; letter-spacing: .08em; color: var(--muted-inv); font-variant-numeric: tabular-nums; }
.nle__v, .nle__a { position: relative; }
.nle__clip { position: absolute; top: 0; bottom: 0; display: block; border-radius: 4px; overflow: hidden; background: #2a2a2a; opacity: .45; transition: opacity .35s; }
.nle__clip:hover { opacity: .8; }
.nle__clip.is-active { opacity: 1; box-shadow: inset 0 0 0 1px rgba(247, 246, 242, .9); }
.nle__clip-name { position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 18px; padding: 0 7px; display: flex; align-items: center; gap: 8px; background: var(--white); color: var(--ink); font-family: var(--f-mono); font-size: 9px; font-weight: 500; line-height: 1; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.nle__clip.is-active .nle__clip-name { background: var(--red); color: var(--white); }
.nle__clip-strip { position: absolute; left: 0; right: 0; top: 18px; bottom: 0; background-color: #1d1d1d; background-repeat: no-repeat; background-size: auto 100%; background-position: 0 0; }
.nle__clip-strip.sem-tira { background-repeat: repeat-x; }
.nle__wave { position: absolute; top: 0; bottom: 0; border-radius: 4px; overflow: hidden; background: #26221a; opacity: .45; transition: opacity .35s; }
.nle__wave.is-active { opacity: 1; }
.nle__wave canvas { display: block; width: 100%; height: 100%; }
/* agulha: parada no lugar, a timeline corre por baixo */
.nle__ph { position: absolute; z-index: 4; top: 0; bottom: 0; left: calc(var(--lab) + var(--phx)); width: 0; pointer-events: none; }
.nle__ph::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--red); }
.nle__ph::after { content: ""; position: absolute; top: 0; left: -7px; width: 14px; height: 13px; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
@media (max-width: 900px) {
  .nle__app { height: auto; padding: 10px; gap: 10px; border-radius: 10px; }
  .nle__monitor { height: min(42vh, 360px); height: min(42svh, 360px); }
  .nle__side { display: contents; }
  .nle__info { padding: 4px 0 0 2px; gap: 12px; }
  .nle__meta { gap: 5px 14px; }
  .nle__title { font-size: clamp(26px, 8.6vw, 46px); line-height: .9; }
  .nle__acts { gap: 10px 16px; }
  .nle__btn { padding: 11px 12px 10px; }
  .nle__dica { grid-column: 1 / -1; padding-left: 2px; font-size: 10px; }
  .nle__tl { grid-column: 1 / -1; --lab: 30px; --rh: 20px; --vh: 76px; --ah: 36px; }
  .nle__play { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .nle__hud { padding: 10px; }
  .nle__som span { display: none; }
  .nle__claq { gap: 10px; padding: 0 10px 42px; }
  .nle__claq i { top: 11%; height: 8%; }
  .nle__claq-campos { gap: 6px 8px; padding-top: 10px; font-size: 9px; }
  .nle__claq strong { font-size: 42px; }
}

/* fim da timeline: o convite. Clipe vazio na trilha e claquete no monitor */
.nle__btn[hidden] { display: none; }
.nle__clip--cta { background: transparent; border: 1px dashed rgba(247, 246, 242, .55); opacity: .75; }
.nle__clip--cta .nle__clip-name { background: transparent; color: var(--white); }
.nle__clip--cta .nle__clip-strip { background: repeating-linear-gradient(-55deg, rgba(247, 246, 242, .12) 0 6px, transparent 6px 14px); }
.nle__clip--cta.is-active { border: 1px solid var(--red); box-shadow: none; }
.nle__wave--cta { background: transparent; border: 1px dashed rgba(247, 246, 242, .28); }
.nle__claq { position: absolute; inset: 0; display: none; flex-direction: column; justify-content: flex-end; gap: clamp(12px, 2.4vh, 26px); padding: 0 14px 56px; background: var(--ink); color: var(--white); }
.nle__claq i { position: absolute; left: 0; right: 0; top: 12%; height: 11%; background: repeating-linear-gradient(-58deg, var(--white) 0 20px, var(--ink) 20px 40px); }
.nle__claq-campos { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 12px; padding-top: 14px; border-top: 1px solid var(--line-inv); color: var(--muted-inv); }
.nle__claq-campos b { color: var(--white); font-weight: 500; text-align: right; }
.nle__claq strong { font-size: clamp(50px, 6.6vw, 104px); line-height: .84; color: var(--red); }
.nle__app.is-cta .nle__claq { display: flex; }
.nle__app.is-cta .nle__monitor video, .nle__app.is-cta .nle__play, .nle__app.is-cta .nle__som { visibility: hidden; }

/* ---------- faixa de nomes: corre sozinha e acelera com o scroll ---------- */
.faixa { position: relative; z-index: 1; padding: 0 0 clamp(110px, 13vw, 210px); }
.faixa__janela { display: flex; margin-top: clamp(20px, 2.4vw, 36px); }
.faixa__linha { flex: none; display: flex; margin: 0; padding: .08em 0 0; list-style: none; white-space: nowrap; font-size: clamp(60px, 8.6vw, 156px); line-height: 1; will-change: transform; }
.faixa__linha li { display: flex; align-items: center; }
.faixa__linha li::after { content: ""; flex: none; width: .15em; height: .15em; margin: 0 .34em; background: var(--red); }
.faixa__linha li:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }
html.reduced .faixa__janela { padding: 0 var(--gutter); }
html.reduced .faixa__linha { flex: 1 1 auto; flex-wrap: wrap; white-space: normal; font-size: clamp(34px, 6vw, 80px); row-gap: .1em; }

/* ---------- índice ---------- */
.index { margin-top: clamp(40px, 5vw, 80px); border-bottom: 1px solid var(--ink); }
.index__row {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 200px 200px 24px;
  align-items: center;
  gap: var(--gap);
  padding: 18px 8px 14px;
  border-top: 1px solid var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.index__row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease-out); }
.index__row:hover { color: var(--white); }
.index__row:hover .muted { color: var(--muted-inv); }
.index__row:hover::before { transform: scaleY(1); }
.index__title { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(34px, 4.4vw, 76px); line-height: .9; }
.index__row svg { width: 18px; height: 18px; transition: transform .5s var(--ease-out); }
.index__row:hover svg { transform: rotate(-45deg); }
.index__preview { position: fixed; z-index: 40; left: 0; top: 0; width: clamp(200px, 18vw, 300px); aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.85); }
.index__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
  .index__row { grid-template-columns: 44px minmax(0, 1fr) 20px; }
  .index__row .hide-m { display: none; }
  .index__preview { display: none; }
}

/* ---------- contato (escuro) ---------- */
.contact { position: relative; z-index: 3; min-height: 100vh; min-height: 100svh; color: var(--white); }
.contact__bg { position: absolute; inset: 0; background: var(--ink); clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%); }
.contact__inner { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding-top: clamp(120px, 16vh, 180px); padding-bottom: calc(var(--gutter) + 64px); }
.contact__title { font-size: clamp(84px, 14.5vw, 280px); line-height: .84; }
.contact__title em { font-style: normal; color: var(--red); }
.contact__links { display: flex; flex-wrap: wrap; gap: 14px 48px; margin-top: 48px; }
.contact__cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 4.4vw, 80px); align-items: start; margin-top: clamp(30px, 4vw, 60px); }
@media (max-width: 900px) { .contact__cols { grid-template-columns: minmax(0, 1fr); } }
/* pedido em três toques */
.brief { display: grid; gap: clamp(18px, 2vw, 26px); padding: clamp(16px, 2vw, 28px); border: 1px solid var(--line-inv); border-radius: 10px; background: rgba(247, 246, 242, .035); }
.brief__passo { display: grid; gap: 12px; }
.brief__passo > .t-label, .brief__msg > .t-label { color: var(--muted-inv); }
.brief__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 12px 14px 11px; border: 1px solid var(--line-inv); border-radius: 4px; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25; color: var(--white); transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--white); }
.chip[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--ink); }
.brief__msg { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line-inv); }
.brief__texto { min-height: 3.75em; font-size: clamp(18px, 1.5vw, 24px); line-height: 1.25; letter-spacing: -.015em; font-weight: 500; }
.brief__texto::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 3px; vertical-align: -.14em; background: var(--red); animation: blink 1s steps(2, start) infinite; }
.brief__acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.brief__btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 18px 14px; border: 1px solid var(--red); border-radius: 4px; background: var(--red); color: var(--white); }
.brief__btn svg { width: 12px; height: 12px; }
.brief__btn--sec { background: transparent; border-color: var(--line-inv); }
.brief__btn[hidden], .brief__aviso[hidden] { display: none; }
.brief__aviso { color: #E8A33D; }
@media (prefers-reduced-motion: reduce) { .brief__texto::after { animation: none; } }
.contact__link { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(30px, 3.4vw, 60px); line-height: .9; display: inline-flex; align-items: flex-start; gap: 12px; }
.contact__link svg { width: .42em; height: .42em; margin-top: .1em; }
.contact__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 80px; padding-top: 14px; border-top: 1px solid var(--line-inv); color: var(--muted-inv); }
.contact__foot a:hover { color: var(--white); }

/* ---------- menu tela cheia ---------- */
.menu { position: fixed; inset: 0; z-index: 45; background: var(--ink); color: var(--white); clip-path: inset(0 0 100% 0); visibility: hidden; overflow: hidden; }
.menu__inner { height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); padding: clamp(110px, 15vh, 160px) var(--gutter) var(--gutter); }
.menu__main { grid-column: 1 / 7; display: flex; flex-direction: column; justify-content: space-between; }
.menu__nav a { display: flex; align-items: baseline; gap: 18px; font-family: var(--f-display); text-transform: uppercase; font-size: clamp(44px, 6.4vw, 112px); line-height: .96; }
.menu__nav .t-label { color: var(--muted-inv); }
.menu__nav .roll > span { padding-bottom: .03em; }
.menu__side { grid-column: 8 / 13; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.menu__projects { display: grid; gap: 4px; }
.menu__projects a { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-inv); font-size: 15px; }
.menu__projects a .t-label { color: var(--muted-inv); }
.menu__thumb { position: relative; aspect-ratio: 3 / 2; border-radius: 6px; overflow: hidden; background: var(--ink-3); }
.menu__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.menu__thumb img.is-active { opacity: 1; }
.menu__social { display: flex; gap: 24px; }
.menu .reveal-y { display: block; overflow: clip; }
@media (max-width: 900px) {
  .menu__inner { grid-template-columns: 1fr; overflow-y: auto; row-gap: 40px; }
  .menu__main, .menu__side { grid-column: 1 / -1; }
  .menu__thumb { display: none; }
  .chap-btn { display: none; }
  .menu__social { margin-top: 30px; }
  body.menu-open .cta { opacity: 0 !important; visibility: hidden !important; }
}

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(10, 10, 10, .97); color: var(--white); display: grid; grid-template-rows: auto 1fr auto; visibility: hidden; opacity: 0; transition: opacity .45s var(--ease-out), visibility 0s .45s; }
.lb.is-open { visibility: visible; opacity: 1; transition: opacity .45s var(--ease-out); }
.lb__top, .lb__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px var(--gutter); }
.lb__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(56px, 7vw, 120px); }
.lb__stage img, .lb__stage video { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 1px solid var(--line-inv); border-radius: 50%; display: grid; place-items: center; transition: background .3s, color .3s; }
.lb__nav:hover { background: var(--white); color: var(--ink); }
.lb__nav svg { width: 16px; height: 12px; }
.lb__prev { left: var(--gutter); }
.lb__next { right: var(--gutter); }
/* um dedo arrasta a foto (core.js), dois dedos ainda dão zoom; a página de trás não rola */
.lb { touch-action: pinch-zoom; }
.lb__proj { display: inline-flex; align-items: center; gap: 10px; flex: none; white-space: nowrap; }
.lb__proj[hidden] { display: none; }
.lb__proj svg { width: 14px; height: 10px; }
@media (hover: hover) { .lb-abre { cursor: zoom-in; } }
/* celular: a foto ocupa a largura toda e as setas ficam por cima dela */
@media (max-width: 700px) {
  .lb__stage { padding: 0; }
  .lb__stage img, .lb__stage video { border-radius: 0; }
  .lb__nav { width: 40px; height: 40px; background: rgba(10, 10, 10, .45); border-color: rgba(247, 246, 242, .3); }
  .lb__prev { left: 10px; }
  .lb__next { right: 10px; }
}

/* ---------- página de projeto ---------- */
.p-hero { position: relative; z-index: 3; height: 100vh; height: 100svh; }
.p-hero__frame { position: absolute; inset: var(--pad); border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.p-hero__media { position: absolute; inset: 0; }
.p-hero__frame img, .p-hero__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,0) 40%, rgba(0,0,0,.65)); }
.p-hero__content { position: absolute; z-index: 2; left: calc(var(--pad) + var(--gutter) * .75); right: calc(var(--pad) + var(--gutter) * .75); bottom: calc(var(--pad) + var(--gutter) * .7 + 56px); color: var(--white); }
.p-hero__title { font-size: clamp(72px, 13vw, 250px); line-height: .84; }
.p-hero__meta { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 22px; color: var(--muted-inv); }
.p-hero__meta b { color: var(--white); font-weight: 500; }
.p-hero__meta a:hover b { color: var(--red); }

.pg { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); row-gap: clamp(72px, 9vw, 160px); margin-top: clamp(80px, 10vw, 170px); }
.pg__item { position: relative; cursor: zoom-in; }
.pg__item .media { aspect-ratio: var(--ar, 1.5); }
.pg__item figcaption { margin-top: 10px; display: flex; gap: 14px; }
.pg__item figcaption .muted { flex: none; }
.pg__item--full { grid-column: 2 / 12; }
.pg__item--wide-l { grid-column: 1 / 9; }
.pg__item--wide-r { grid-column: 5 / 13; }
.pg__item--half-l { grid-column: 2 / 7; }
.pg__item--half-r { grid-column: 7 / 12; margin-top: 18vh; }
.pg__item--solo-l { grid-column: 2 / 7; }
.pg__item--solo-r { grid-column: 7 / 12; }
.pg__item--video { grid-column: 5 / 9; cursor: pointer; }
.pg__item--video-sq { grid-column: 4 / 10; cursor: pointer; }
/* vídeos verticais seguidos ficam lado a lado, em alturas diferentes (parede de reels) */
.pg__item--v2-1 { grid-column: 4 / 7; }
.pg__item--v2-2 { grid-column: 7 / 10; margin-top: 12vh; }
.pg__item--v3-1 { grid-column: 2 / 5; }
.pg__item--v3-2 { grid-column: 5 / 8; margin-top: 12vh; }
.pg__item--v3-3 { grid-column: 8 / 11; margin-top: 4vh; }
.pg__item .reel__play { z-index: 2; }
.pg__item:hover .reel__play { transform: scale(1.12); background: var(--red); color: var(--white); }
@media (max-width: 900px) {
  .pg { row-gap: 56px; }
  .pg__item { grid-column: 1 / -1 !important; margin-top: 0 !important; }
  .pg__item--half-l, .pg__item--half-r, .pg__item--solo-l, .pg__item--solo-r, .pg__item--video { grid-column: 2 / 12 !important; }
  .pg__item--v2-1, .pg__item--v3-1 { grid-column: 1 / 7 !important; }
  .pg__item--v2-2, .pg__item--v3-2 { grid-column: 7 / 13 !important; margin-top: 9vh !important; }
  .pg__item--v3-3 { grid-column: 4 / 10 !important; }
}

.next { position: relative; z-index: 1; display: block; padding: clamp(110px, 14vw, 230px) 0 clamp(120px, 12vw, 200px); }
.next__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: end; }
.next__label { grid-column: 2 / 12; }
.next__title { grid-column: 2 / 9; font-size: clamp(72px, 11vw, 210px); line-height: .84; margin-top: 18px; }
.next__thumb { grid-column: 9 / 12; aspect-ratio: 4 / 3; }
.next__thumb img { transition: transform 1.2s var(--ease-out); }
.next:hover .next__thumb img { transform: scale(1.07); }
.next:hover .next__title { color: var(--red); }
.next__title { transition: color .4s; }
@media (max-width: 900px) { .next__title, .next__thumb, .next__label { grid-column: 1 / -1; } .next__thumb { margin-top: 24px; } }

/* ---------- estados iniciais (só com JS e movimento) ---------- */
html.js:not(.reduced) [data-reveal] { clip-path: inset(100% 0 0 0); }
html.js:not(.reduced) [data-rule] { transform: scaleX(0); }
html.js:not(.reduced) [data-fade] { opacity: 0; }
html.js:not(.reduced) [data-lines] { visibility: hidden; }
html.js:not(.reduced) .fcard[data-rise], html.js:not(.reduced) [data-rise] { opacity: 0; }

/* ---------- movimento reduzido: tudo estático e legível ---------- */
html.reduced .hero__stage, html.reduced .quote__poster, html.reduced .contact__bg { clip-path: none !important; }
html.reduced .quote { height: auto; margin-top: 0; }
html.reduced .sec--after-wipe { margin-top: 0; }
html.reduced .quote__stage { position: relative; height: 70vh; }
html.reduced .quote__text { white-space: normal; font-size: clamp(64px, 11vw, 180px); left: var(--gutter); right: var(--gutter); }
html.reduced .hg { height: auto; overflow: visible; padding: 120px 0; }
html.reduced .hg__head { position: relative; top: 0; }
html.reduced .hg__track { width: auto; overflow-x: auto; margin-top: 32px; }
html.reduced .hg__progress { display: none; }
@media (prefers-reduced-motion: reduce) {
  .scroll-hint__line::after, .rec::before { animation: none; }
}

/* ---------- mobile ---------- */
@media (max-width: 700px) {
  :root { --fillet: 8px; }
  .notch--tl { width: 128px; height: 58px; }
  .logo { font-size: 16px; top: calc(var(--pad) + 11px); left: calc(var(--pad) + 13px); }
  .hero__title { font-size: 23vw; flex-direction: column; line-height: .86; }
  .hero__sub { top: calc(50% + 30vw); }
  .cta { padding: 11px 13px 10px; }
  .quote__text { font-size: 38vw; }
  .hg__item { height: 52vh; }
  .hg__track { padding-left: var(--gutter); }
  .contact__inner { padding-bottom: calc(var(--gutter) + 72px); }
}
.chap-btn[hidden] { display: none; }
