/* =========================================================
   CORE FILMS — Premium Black · linguagem de câmera de cinema
   Tokens → base → HUD → seções. Movimento em js/main.js
   (Lenis + GSAP ScrollTrigger).
   ========================================================= */
:root {
  --bg: #070707;
  --bg-2: #0d0d0d;
  --fg: #d9d9d6;
  --fg-hi: #f4f3ef;
  --mute: #7a7a76;
  --dim: #343432;
  --line: rgba(255, 255, 255, .12);
  --accent: #ceff02; /* verde-limão da CORE: REC, cursor, cena ativa, hover */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-serif: "Archivo", "Helvetica Neue", Arial, sans-serif; /* destaque = mesma família dos títulos, fina e itálica */
  --f-mono: "Geist Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 2.2vw, 32px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color-scheme: dark; overflow-anchor: none; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;   /* clip (não hidden): corta o que passar da largura sem virar área de rolagem, senão o "fixo na tela" (sticky) para de funcionar */
}
body.is-loading { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; background: none; border: 0; }
::selection { background: var(--accent); color: #000; }

.mono { font-family: var(--f-mono); font-size: 11.5px; line-height: 1.4; letter-spacing: .04em; text-transform: uppercase; font-weight: 400; }
.acc { color: var(--accent); }
.display {
  font-family: var(--f-display);
  font-stretch: 68%;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(72px, 13vw, 210px);
  line-height: .86;
  letter-spacing: -.012em;
  color: var(--fg-hi);
}
.serif {
  /* destaque: mesma Archivo dos títulos, fina e itálica (vale em qualquer contexto) */
  font-family: var(--f-serif);
  font-stretch: 68% !important;
  font-weight: 300 !important;
  font-style: italic;
  text-transform: none;
  letter-spacing: -.02em;
}
.display .serif, .display.serif { font-size: 1.04em; line-height: .86; }
.layer { position: relative; z-index: 2; background: var(--bg); }

/* split de letras */
.split-line { display: inline-block; white-space: nowrap; overflow: hidden; vertical-align: top; padding: .14em .04em .1em; margin: -.14em -.04em -.1em; }
.split-char { display: inline-block; will-change: transform; }

.link-u { position: relative; display: inline-block; font-size: 17px; }
.link-u::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform-origin: right; transition: transform .6s var(--ease); }
.link-u:hover { color: var(--accent); }
.link-u:hover::after { transform: scaleX(0); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px; cursor: pointer; overflow: hidden; border-radius: 100px; }
.btn--ghost { border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(8px); background: rgba(0,0,0,.18); color: var(--fg-hi); transition: background .5s, color .5s, border-color .5s; }
.btn--ghost:hover { background: var(--accent); color: #050505; border-color: var(--accent); }
.btn--solid { background: var(--fg-hi); color: #050505; transition: background .4s; }
.btn--solid:hover { background: var(--accent); }
.btn__roll { display: grid; height: 1.4em; overflow: hidden; }
.btn__roll span { display: block; transition: transform .6s var(--ease); }
.btn:hover .btn__roll span { transform: translateY(-100%); }

.rec { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 7px; vertical-align: 1px; animation: rec 1.2s steps(1) infinite; }
@keyframes rec { 50% { opacity: .15; } }

/* ======================= LOADER (contagem de película) ======================= */
.loader { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.loader__bar { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--bg); }
.loader__bar--t { top: 0; }
.loader__bar--b { bottom: 0; }
.leader { position: absolute; left: 50%; top: 50%; width: min(46vh, 70vw); aspect-ratio: 1; transform: translate(-50%, -50%); display: grid; place-items: center; }
.leader__sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(rgba(255,255,255,.1) calc(var(--a, 0) * 1turn), transparent 0); }
.leader__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); box-shadow: inset 0 0 0 14px var(--bg), inset 0 0 0 15px rgba(255,255,255,.18); }
.leader__h, .leader__v { position: absolute; background: rgba(255,255,255,.18); }
.leader__h { left: -30%; right: -30%; height: 1px; top: 50%; }
.leader__v { top: -30%; bottom: -30%; width: 1px; left: 50%; }
.leader__n { position: relative; font-stretch: 62%; font-weight: 500; font-size: min(30vh, 46vw); line-height: 1; color: var(--fg-hi); }
.loader__meta { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 32px; display: flex; justify-content: space-between; color: var(--mute); }

/* ======================= HUD ======================= */
.hud { position: fixed; inset: 0; z-index: 50; pointer-events: none; color: var(--fg-hi); }
.hud a, .hud button { pointer-events: auto; }
/* faixa preta fixa atrás de logo, REC e menu: desce junto com a barra de cinema do topo e para nesta altura */
.hud { --hudbar: 72px; }
.hud__bg { position: absolute; left: 0; right: 0; top: 0; height: var(--hudbar); background: #000; transform-origin: top; transform: scaleY(0); }
.hud__logo { position: absolute; top: 26px; left: var(--gutter); width: 108px; mix-blend-mode: difference; }
.hud__rec { position: absolute; top: 32px; left: 50%; transform: translateX(-50%); white-space: nowrap; mix-blend-mode: difference; }
.hud__tc { margin-left: 10px; opacity: .65; font-variant-numeric: tabular-nums; }
.hud__nav { position: absolute; top: 32px; right: var(--gutter); display: flex; gap: 22px; mix-blend-mode: difference; }
.hud__nav a { position: relative; }
.hud__nav a::before { content: ""; position: absolute; left: -11px; top: 50%; width: 5px; height: 5px; margin-top: -3px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .4s var(--ease); }
.hud__nav a:hover::before { transform: scale(1); }
.hud__menu { position: absolute; top: 30px; right: var(--gutter); cursor: pointer; mix-blend-mode: difference; color: var(--fg-hi); z-index: 2; }
.frame { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(255,255,255,.55); mix-blend-mode: difference; }
.frame--tl { top: 82px; left: var(--gutter); border-top-width: 1px; border-left-width: 1px; }
.frame--tr { top: 82px; right: var(--gutter); border-top-width: 1px; border-right-width: 1px; }
.frame--bl { bottom: 22px; left: var(--gutter); border-bottom-width: 1px; border-left-width: 1px; }
.frame--br { bottom: 22px; right: var(--gutter); border-bottom-width: 1px; border-right-width: 1px; }
.hud__cam, .hud__fmt, .hud__section { position: absolute; bottom: 26px; white-space: nowrap; mix-blend-mode: difference; }
.hud__cam { left: calc(var(--gutter) + 36px); opacity: .6; }
.hud__fmt { right: calc(var(--gutter) + 36px); opacity: .6; }
.hud__cam b, .hud__fmt b { font-weight: 400; opacity: .5; margin: 0 4px; }
.hud__section { left: 50%; transform: translateX(-50%); }
.hud__scene { color: var(--accent); }
.hud__progress { position: absolute; right: 0; top: 0; bottom: 0; width: 2px; }
.hud__progress i { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); opacity: .8; }

.grain { position: fixed; inset: -50%; z-index: 49; pointer-events: none; background: url(../assets/img/grain.png); opacity: .35; mix-blend-mode: overlay; animation: grain .9s steps(6) infinite; }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

.menu { position: fixed; inset: 0; z-index: 45; background: var(--bg); display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 60px; clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease); }
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__nav { display: grid; gap: .6vh; justify-items: start; }
.menu__nav a { position: relative; display: flex; align-items: flex-start; gap: 14px; color: var(--fg-hi); }
.menu__nav .mono { color: var(--accent); padding-top: .9em; }
.menu__t { font-stretch: 68%; font-weight: 500; text-transform: uppercase; font-size: clamp(44px, 8.4vh, 110px); line-height: .95; letter-spacing: -.01em; transition: color .4s; }
.menu__nav a:hover .menu__t { color: #fff; }
.menu__foot { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 6vh; color: var(--mute); }
.menu__foot a:hover { color: var(--accent); }

/* ======================= CURSOR (PLAY) ======================= */
.cursor { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; }
.cursor__dot { position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--fg-hi); mix-blend-mode: difference; transition: transform .4s var(--ease); }
.cursor__play { position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #050505; font-weight: 500; transform: scale(0); transition: transform .55s var(--ease); }
.cursor.is-play .cursor__play { transform: scale(1); }
.cursor.is-play .cursor__dot { transform: scale(0); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ======================= HERO ======================= */
.hero { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; z-index: 1; }
.hero__media { position: absolute; inset: 0; }
.hero__media video { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 55%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 45%, rgba(0,0,0,.72) 100%); }
/* vídeo por dentro das letras: preto × vídeo = preto, branco × vídeo = vídeo */
.knock { position: absolute; inset: 0; z-index: 2; background: #000; mix-blend-mode: multiply; display: grid; place-items: center; overflow: hidden; }
/* logo branca (PNG transparente): branco × vídeo = vídeo; o zoom parte de um ponto sólido da logo (63,9% 47,5%) */
.knock__logo { display: block; width: min(78vw, 1200px); height: auto; transform-origin: 63.9% 47.5%; will-change: transform; }
.hero__bars i { position: absolute; left: 0; right: 0; height: 0; background: #000; z-index: 4; }
.hero__bars i:first-child { top: 0; }
.hero__bars i:last-child { bottom: 0; }
.hero__content { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 70px; z-index: 3; }
.hero__title { display: grid; color: var(--fg-hi); }
.hero__line { display: block; font-stretch: 68%; font-weight: 500; text-transform: uppercase; font-size: clamp(72px, 12.5vw, 200px); line-height: .84; letter-spacing: -.01em; }
.hero__line.serif { text-transform: none; font-size: clamp(76px, 13vw, 210px); margin-left: 9vw; line-height: .9; }
.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 26px; padding-right: 64px; }
.hero__sub { color: var(--fg-hi); opacity: .85; }

/* ======================= MANIFESTO ======================= */
.intro { display: grid; grid-template-columns: 1fr 3fr 1fr; gap: var(--gutter); padding: 14vh var(--gutter) 14vh; }
.intro__label { padding-top: 14px; }
.intro__text { font-size: clamp(30px, 3.9vw, 62px); line-height: 1.06; letter-spacing: -.035em; color: var(--fg-hi); font-weight: 400; }
.intro__text--2 { margin-top: .7em; }
.reel__ig { line-height: 1.6; }
.intro__side { text-align: right; color: var(--mute); align-self: end; }
.w { display: inline-block; opacity: .14; will-change: opacity; }

/* ======================= PROJETOS (grid editorial) ======================= */
.projects { padding: 0 var(--gutter) 10vh; }
.rule { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 28px 0; color: var(--mute); }
.rule i { height: 1px; background: var(--line); }
.projects__head { display: flex; justify-content: space-between; align-items: flex-end; padding: 2vh 0 6vh; }
.projects__head .display { font-size: clamp(76px, 13.5vw, 220px); }
.projects__serif { display: inline-block; margin-left: .1em; color: var(--fg); }
.projects__count { color: var(--accent); padding-bottom: 1.2em; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 9vh; align-items: start; }
.card { cursor: none; }
.card--a { grid-column: 1 / 8; }
.card--b { grid-column: 9 / 13; margin-top: 10vh; }
.card--c { grid-column: 2 / 6; }
.card--d { grid-column: 7 / 13; margin-top: 7vh; }
.card--e { grid-column: 1 / 8; }
.card--f { grid-column: 9 / 12; margin-top: 9vh; }
.card__media { position: relative; overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 5; }
.card--a .card__media, .card--d .card__media, .card--e .card__media { aspect-ratio: 16 / 10; }
.card__media video { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; transform: scale(1.05); filter: saturate(.8) brightness(.88); transition: transform 1.3s var(--ease), filter .8s; }
.card:hover .card__media video { transform: scale(1); filter: none; }
.card__info { display: flex; align-items: baseline; gap: 14px; margin-top: 16px; }
.card__take { color: var(--accent); white-space: nowrap; }
.card__title { font-family: var(--f-serif); font-stretch: 68%; font-weight: 300; font-style: italic; font-size: clamp(26px, 2.5vw, 40px); letter-spacing: -.02em; line-height: 1; color: var(--fg-hi); transition: transform .7s var(--ease); }
.card:hover .card__title { transform: translateX(8px); }
.card__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--mute); }
.projects__more { text-align: center; padding-top: 8vh; }

/* ======================= FRASE CINÉTICA → TELA CHEIA ======================= */
.kinetic { height: 340vh; }
.kinetic__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.kinetic__rows { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gutter); }
.krow { display: flex; align-items: center; gap: 2.4vw; white-space: nowrap; will-change: transform; }
.krow .display { font-size: clamp(76px, 14vw, 220px); }
.krow .display.serif { font-size: clamp(82px, 15vw, 236px); }
.krow:nth-child(1) { justify-content: flex-start; gap: 4vw; padding-left: 7vw; }
.krow:nth-child(2) { justify-content: flex-end; gap: 4vw; padding-right: 7vw; }
.krow:nth-child(3) { justify-content: flex-start; padding-left: 14vw; }
.krow:nth-child(4) { justify-content: flex-end; padding-right: 5vw; }
.krow__note { color: var(--mute); }
.krow__slot { width: 30vw; height: 11vw; flex: none; }
/* nota manuscrita da cena 4: some junto com a frase quando o vídeo cresce */
.kinetic__hand { position: absolute; left: var(--gutter); bottom: 14vh; }
.kinetic__media { position: absolute; left: 0; top: 0; overflow: hidden; }
.kinetic__media video { width: 100%; height: 100%; object-fit: cover; }
.kinetic__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0) 45%, rgba(0,0,0,.35)); opacity: 0; }
.letterbox i { position: absolute; left: 0; right: 0; height: 0; background: #000; z-index: 2; }
.letterbox i:first-child { top: 0; }
.letterbox i:last-child { bottom: 0; }
.kinetic__copy { position: absolute; inset: 0; z-index: 3; padding: 17vh var(--gutter) 0; pointer-events: none; opacity: 0; }
.kinetic__copy a { pointer-events: auto; margin-top: 24px; color: var(--fg-hi); }
.kinetic__lead { font-size: clamp(32px, 4.2vw, 66px); line-height: 1.02; letter-spacing: -.035em; color: var(--fg-hi); max-width: 12em; }
.kinetic__lead .serif { font-size: 1.08em; }
.kinetic__label { position: absolute; right: var(--gutter); top: 17vh; text-align: right; color: var(--fg-hi); }

/* ======================= SERVIÇOS ======================= */
.services { padding: 10vh var(--gutter) 10vh; }
.services__head { display: grid; grid-template-columns: 1fr 3fr 1fr; gap: var(--gutter); margin-bottom: 7vh; }
.services__lead { font-size: clamp(28px, 3.3vw, 52px); line-height: 1.06; letter-spacing: -.035em; color: var(--fg-hi); }
.srv { list-style: none; border-top: 1px solid var(--line); }
.srv__row { position: relative; display: grid; grid-template-columns: 1fr 3fr 1.4fr; align-items: center; gap: var(--gutter); padding: 3.4vh 0; border-bottom: 1px solid var(--line); }
.srv__n { color: var(--mute); transition: color .4s; }
.srv__t { font-stretch: 68%; font-weight: 500; text-transform: uppercase; font-size: clamp(48px, 7.4vw, 120px); letter-spacing: -.01em; line-height: .9; color: var(--fg-hi); transition: transform .7s var(--ease), color .5s; }
.srv__d { color: var(--mute); max-width: 30ch; transition: color .5s; }
/* destaque de hover só onde existe mouse (no celular o toque deixava as outras linhas apagadas) */
@media (hover: hover) {
  .srv:hover .srv__t { color: var(--dim); }
  .srv .srv__row:hover .srv__t { color: var(--fg-hi); transform: translateX(2vw); }
  .srv .srv__row:hover .srv__n { color: var(--accent); }
  .srv .srv__row:hover .srv__d { color: var(--fg); }
}
.srv__float { position: fixed; left: 0; top: 0; width: 20vw; aspect-ratio: 4/5; z-index: 30; pointer-events: none; overflow: hidden; border-radius: 4px; clip-path: inset(50% 50% 50% 50%); transition: clip-path .7s var(--ease); }
.srv__float.is-on { clip-path: inset(0 0 0 0); }
.srv__float img { width: 100%; height: 100%; object-fit: cover; }

/* ======================= ARSENAL (drones em ficha técnica) ======================= */
.fpv { padding: 10vh 0 4vh; }
.fpv__intro { padding: 0 var(--gutter); }
.fpv__title { display: grid; justify-items: center; font-size: clamp(72px, 12.5vw, 200px); }
.fpv__line { display: flex; justify-content: center; align-items: center; gap: 2vw; }
.fpv__line .serif { font-size: 1.06em; }
.fpv__pill { display: inline-block; width: 22vw; height: 9.6vw; overflow: hidden; border-radius: 100vw; vertical-align: middle; }
.fpv__pill video { width: 100%; height: 100%; object-fit: cover; }
.fpv__sub { display: grid; grid-template-columns: 1fr 3fr 1fr; gap: var(--gutter); margin-top: 6vh; }
.fpv__sub p { font-size: clamp(24px, 2.6vw, 40px); line-height: 1.1; letter-spacing: -.03em; color: var(--fg-hi); }
.drone { position: relative; height: 86vh; margin: 4vh var(--gutter) 0; display: grid; place-items: center; border-top: 1px solid var(--line);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 8vw 8vw; background-position: center; }
.drone::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse at center, transparent 30%, rgba(7,7,7,.75) 80%); pointer-events: none; }
.drone > * { position: relative; z-index: 1; }
.drone__head { position: absolute; top: 14px; left: 0; right: 0; display: flex; justify-content: space-between; color: var(--mute); }
.drone__img { width: min(56vw, 800px); will-change: transform; }
.drone__img img { width: 100%; filter: grayscale(1) contrast(1.08) brightness(1.05); }
.drone__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.drone__lines polyline { fill: none; stroke: var(--accent); stroke-width: 1; }
.drone__dim { position: absolute; left: 50%; bottom: 14%; width: 34vw; transform: translateX(-50%); display: flex; align-items: center; gap: 14px; color: var(--fg); }
.drone__dim i { flex: 1; height: 1px; background: var(--fg); position: relative; }
.drone__dim i::before { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--fg); }
.drone__dim i:first-child::before { left: 0; }
.drone__dim i:last-child::before { right: 0; }
.drone__zoom { position: absolute; top: 12%; width: 16vw; aspect-ratio: 1.15; border: 1px solid var(--accent); background: var(--bg) var(--img) no-repeat; background-size: 330%; background-position: var(--zx) var(--zy); filter: grayscale(1); }
.drone__zoom span { position: absolute; top: -20px; left: 0; color: var(--accent); }
.drone__zoom--r { right: 10vw; }
.drone__zoom--l { left: 10vw; }
.spec { position: absolute; bottom: 12%; width: min(320px, 30vw); }
.spec--l { left: 0; }
.spec--r { right: 0; }
.spec__name { font-family: var(--f-serif); font-stretch: 68%; font-weight: 300; font-style: italic; font-size: clamp(40px, 4.4vw, 68px); line-height: 1; letter-spacing: -.02em; color: var(--fg-hi); margin-bottom: 14px; }
.spec dl div { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.spec dt { color: var(--mute); }
.spec dd { color: var(--fg-hi); }

/* ======================= CLIENTES ======================= */
.clients { display: grid; grid-template-columns: 1fr 2fr 1.4fr; gap: var(--gutter); padding: 20vh var(--gutter); align-items: start; }
.clients__label { position: sticky; top: 50vh; }
.clients__intro { grid-column: 2 / 4; font-size: 18px; color: var(--mute); max-width: 26ch; margin-bottom: 8vh; }
.clients__list { grid-column: 2; list-style: none; padding: 20vh 0 30vh; }
.clients__list li { font-family: var(--f-serif); font-stretch: 68%; font-weight: 300; font-style: italic; font-size: clamp(48px, 6vw, 96px); line-height: 1.04; letter-spacing: -.025em; color: var(--dim); transition: color .5s, transform .7s var(--ease); }
.clients__list li.is-active { color: var(--fg-hi); transform: translateX(1.4vw); }
.clients__preview { grid-column: 3; grid-row: 2 / 4; position: sticky; top: 26vh; aspect-ratio: 4/5; overflow: hidden; background: var(--bg-2); border-radius: 4px; }
.clients__preview img { width: 100%; height: 100%; object-fit: cover; }
.clients__tag { position: absolute; left: 12px; top: 12px; color: var(--fg-hi); }

/* ======================= CONTATO ======================= */
.contact { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 6vw; padding: 10vh var(--gutter); align-items: end; }
.contact__title { display: grid; font-size: clamp(72px, 11vw, 190px); }
.contact__indent { padding-left: 10vw; }
.form { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px var(--gutter); }
.form__label { grid-column: 1 / -1; color: var(--mute); }
.field { display: grid; gap: 8px; min-width: 0; }
.field input, .field select { width: 100%; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field span { color: var(--mute); }
.field input, .field select { border-bottom: 1px solid var(--line); padding: 8px 0 10px; font-size: 18px; outline: none; transition: border-color .4s; border-radius: 0; }
.field select option { background: var(--bg); }
.field input:focus, .field select:focus { border-color: var(--accent); }
.form .btn { grid-column: 1 / -1; height: 58px; }

/* ======================= FAQ ======================= */
.faq { display: grid; grid-template-columns: 1fr 3fr 1fr; gap: var(--gutter); padding: 2vh var(--gutter) 10vh; }
.faq__label { padding-top: 26px; }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: clamp(19px, 1.7vw, 26px); letter-spacing: -.02em; transition: color .4s; }
.qa summary:hover { color: var(--fg-hi); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--f-mono); transition: transform .5s var(--ease), color .4s; }
.qa[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 0 26px; color: var(--mute); max-width: 60ch; }

/* ======================= RODAPÉ ======================= */
.footer { padding: 9vh var(--gutter) 0; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__cta { font-size: clamp(32px, 3.4vw, 52px); letter-spacing: -.035em; line-height: 1.02; color: var(--fg-hi); }
.footer__copy { margin-top: 20px; font-size: clamp(20px, 2.2vw, 32px); letter-spacing: -.03em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; cursor: pointer; transition: color .3s; }
.footer__copy:hover { color: var(--accent); }
.footer__phones { display: flex; flex-wrap: wrap; gap: 0 2.4vw; }
.footer__hint { display: block; margin-top: 10px; color: var(--mute); }
.footer__cols { display: flex; gap: 6vw; }
.footer__cols div { display: grid; gap: 6px; align-content: start; }
.footer__h { color: var(--mute); margin-bottom: 8px; }
.footer__cols a:hover { color: var(--accent); }
.footer__mark { margin: 12vh 0 0; }
.footer__mark img { display: block; width: 78%; height: auto; margin: 0 auto; }
.footer__bar { display: flex; justify-content: space-between; padding: 22px 0 64px; color: var(--mute); }

.zap { position: fixed; right: var(--gutter); bottom: 64px; z-index: 40; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--fg-hi); color: #050505; transition: transform .5s var(--ease), background .3s; }
.zap svg { width: 22px; height: 22px; fill: currentColor; }
.zap:hover { transform: scale(1.08); background: var(--accent); }

.player { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 70px var(--gutter) 40px; visibility: hidden; pointer-events: none; }
.player::before { content: ""; position: absolute; inset: 0; background: rgba(5,5,5,.96); opacity: 0; transition: opacity .6s var(--ease); }
.player.is-open { visibility: visible; pointer-events: auto; }
.player.is-open::before { opacity: 1; }
.player.is-closing::before { opacity: 0; transition-duration: .9s; }
.player video { position: relative; z-index: 1; display: block; max-width: 100%; max-height: calc(100svh - 110px); width: auto; height: auto; opacity: 0; transition: opacity .35s; }
/* o vídeo sempre cabe inteiro na tela: limitado pela largura E pela altura, no formato dele */
.player.is-h video { width: min(100%, 1400px, calc((100svh - 110px) * 16 / 9)); height: auto; aspect-ratio: 16 / 9; }
.player.is-v video { width: min(100%, calc((100svh - 110px) * 9 / 16)); height: auto; aspect-ratio: 9 / 16; }
.player.is-ready video { opacity: 1; }
/* foto do card que viaja até o player */
.player__ghost { position: fixed; left: 0; top: 0; z-index: 91; pointer-events: none; visibility: hidden; background: #000 center / cover no-repeat; transform-origin: 50% 50%; will-change: left, top, width, height; }
/* moldura de visor: cantos + título + timecode, acompanha o vídeo */
.player__frame { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; visibility: hidden; }
.pf { position: absolute; width: 22px; height: 22px; border: 0 solid var(--accent); }
.pf--tl { left: -12px; top: -12px; border-top-width: 1.5px; border-left-width: 1.5px; }
.pf--tr { right: -12px; top: -12px; border-top-width: 1.5px; border-right-width: 1.5px; }
.pf--bl { left: -12px; bottom: -12px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.pf--br { right: -12px; bottom: -12px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.player__meta { position: absolute; left: 0; bottom: 100%; margin-bottom: 18px; color: var(--fg-hi); white-space: nowrap; }
.player__tc { position: absolute; right: 0; bottom: 100%; margin-bottom: 18px; color: var(--mute); font-variant-numeric: tabular-nums; }
.player__close { position: absolute; z-index: 3; top: 30px; right: var(--gutter); cursor: pointer; color: var(--fg-hi); }
.player__close:hover { color: var(--accent); }

/* ======================= v3 · MISTURA COM A 2ª REFERÊNCIA ======================= */
/* anotação "de diretor" escrita à mão */
.hand { font-family: "Caveat", cursive; font-weight: 600; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.05; color: var(--accent); letter-spacing: 0; text-transform: none; }
.acc-ink { color: #5d7a00; }

.hl { position: relative; display: inline-block; isolation: isolate; justify-self: start; }
.process__last, .contact__last { position: relative; display: inline-block; }

/* hero: nota à mão + selo giratório */
.hero__hand { margin: 10px 0 0 9vw; }
.badge { position: absolute; z-index: 3; right: var(--gutter); top: 21vh; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; cursor: none; }
.badge__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; }
.badge__ring text { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .26em; fill: var(--fg-hi); }
.badge__play { width: 54px; height: 54px; border-radius: 50%; background: var(--accent); position: relative; transition: transform .6s var(--ease); }
.badge__play::after { content: ""; position: absolute; left: 22px; top: 18px; border-left: 15px solid #050505; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.badge:hover .badge__play { transform: scale(1.18); }
@keyframes spin { to { transform: rotate(360deg); } }

.intro__hand { margin-top: 28px; }

/* faixa gigante */
.marquee { overflow: hidden; padding: 4vh 0 6vh; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee__track { display: flex; align-items: center; gap: 3vw; width: max-content; white-space: nowrap; will-change: transform; }
.marquee__track span { font-stretch: 62%; font-weight: 600; text-transform: uppercase; font-size: 17vw; line-height: .9; color: var(--fg-hi); }
.marquee__track span.serif { font-size: 16vw; font-weight: 400; color: var(--fg); }
.marquee__dot { flex: none; width: 2.6vw; height: 2.6vw; border-radius: 50%; background: var(--accent); }

/* pontos de vista: chão / céu */
.pov { padding: 18vh var(--gutter) 20vh; }
.pov__head { display: grid; grid-template-columns: 1fr 4fr; gap: var(--gutter); margin-bottom: 12vh; }
.pov__head .display { font-size: clamp(60px, 9vw, 150px); }
.pov__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: start; }
.pov__card { position: relative; cursor: none; }
.pov__card--b { margin-top: 22vh; }
.pov__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-2); }
.pov__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1.3s var(--ease); }
.pov__card:hover .pov__media video { transform: scale(1.04); }
.pov__num { position: absolute; left: -.04em; top: 0; transform: translateY(-58%); font-stretch: 62%; font-weight: 700; font-size: clamp(110px, 17vw, 280px); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--fg-hi); pointer-events: none; z-index: 1; }
.pov__txt { display: grid; gap: 10px; margin-top: 22px; }
.pov__t { font-family: var(--f-serif); font-stretch: 68%; font-weight: 300; font-style: italic; font-size: clamp(48px, 5vw, 84px); line-height: .9; color: var(--fg-hi); letter-spacing: -.02em; }
.pov__d { color: var(--mute); max-width: 34ch; }

/* processo — seção clara (quebra de ritmo) */
.light { --line: rgba(0,0,0,.14); background: #ecebe6; color: #121211; }
.light .display { color: #0b0b0b; }
.light .mono { color: #5b5b57; }
.process { padding: 11vh var(--gutter) 11vh; }
.process__head { display: grid; grid-template-columns: 1fr 4fr; gap: var(--gutter); align-items: end; margin-bottom: 8vh; position: relative; }
.process__title { font-size: clamp(70px, 11.5vw, 190px); }
.process__hand { position: absolute; right: 0; bottom: 1.4em; color: #5d7a00; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gutter); }
.step__n { display: block; font-family: var(--f-display); font-stretch: 62%; font-weight: 700; font-size: clamp(72px, 7vw, 120px); line-height: .9; color: transparent; -webkit-text-stroke: 1.2px #121211; letter-spacing: 0; }
.step__line { display: block; width: 100%; height: 4px; margin: 14px 0 22px; overflow: visible; }
.step__line path { stroke: #121211; stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.step__t { font-stretch: 68%; font-weight: 600; text-transform: uppercase; font-size: clamp(28px, 2.4vw, 40px); line-height: 1; margin-bottom: 10px; }
.step p { color: #4a4a47; max-width: 24ch; }

/* reels — galeria horizontal presa ao scroll */
.reels { position: relative; }
.reels__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 5vh; }
.reels__head { display: grid; grid-template-columns: 1fr 3fr 1.2fr; gap: var(--gutter); align-items: end; padding: 0 var(--gutter); }
.reels__head .display { font-size: clamp(54px, 6.4vw, 110px); }
.reels__hand { justify-self: end; }
.reels__track { display: flex; gap: 2vw; padding: 0 var(--gutter); width: max-content; will-change: transform; }
.reel { flex: none; width: clamp(190px, 17vw, 290px); cursor: none; color: inherit; }
.reel__media { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 12px; background: var(--bg-2); }
.reel__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.reel:hover .reel__media video { transform: scale(1.05); }
.reel__n { display: block; margin-top: 12px; color: var(--accent); }
.reel__t { font-family: var(--f-serif); font-stretch: 68%; font-weight: 300; font-style: italic; font-size: 28px; line-height: 1; color: var(--fg-hi); margin-top: 4px; }
.reel--more { aspect-ratio: 9 / 16; height: auto; border: 1px solid var(--line); border-radius: 12px; display: grid; place-content: center; text-align: center; gap: 12px; cursor: pointer; transition: border-color .4s, background .4s; }
.reel--more .serif { font-size: 56px; color: var(--fg-hi); }
.reel--more:hover { border-color: var(--accent); background: rgba(206,255,2,.06); }

/* arquivo completo (dados em assets/data/portfolio.js) */
.archive { padding: 10vh var(--gutter) 8vh; }
.archive__head { display: grid; grid-template-columns: 1fr 4fr; gap: var(--gutter); align-items: end; margin-bottom: 7vh; }
.archive__head .display { font-size: clamp(70px, 11vw, 180px); }
.archive__count { color: var(--accent); margin-left: .3em; font-size: 12px; vertical-align: top; }
.filters { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 6vh; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter { position: relative; cursor: pointer; color: var(--mute); padding: 4px 0; transition: color .3s; }
.filter sup { color: var(--accent); margin-left: 3px; font-size: 9px; }
.filter:hover, .filter.is-on { color: var(--fg-hi); }
.vault { columns: 3; column-gap: var(--gutter); }
.item { break-inside: avoid; margin-bottom: 5vh; cursor: none; display: block; }
.item__media { position: relative; overflow: hidden; background: var(--bg-2); border-radius: 4px; }
.item--h .item__media { aspect-ratio: 16 / 9; }
.item--v .item__media { aspect-ratio: 9 / 16; }
.item__media img, .item__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.item__media video { opacity: 0; transition: opacity .5s; }
.item.is-playing .item__media video { opacity: 1; }
.item__media img { transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.8) brightness(.85); }
.item:hover .item__media img { transform: scale(1.04); filter: none; }
.item__dur { position: absolute; right: 10px; bottom: 10px; color: var(--fg-hi); background: rgba(0,0,0,.55); padding: 3px 7px; border-radius: 3px; }
.item__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; }
.item__t { font-family: var(--f-serif); font-stretch: 68%; font-weight: 300; font-style: italic; font-size: clamp(22px, 1.9vw, 30px); line-height: 1.02; color: var(--fg-hi); }
.item__c { color: var(--mute); white-space: nowrap; }
.item.is-hidden { display: none; }

.drone__hand { position: absolute; left: 7vw; top: 34%; }
.drone__hand--r { left: auto; right: 7vw; top: 64%; }
.drone__hand--up { top: auto; bottom: calc(12% + 270px); }

/* ======================= RESPONSIVO ======================= */
@media (max-width: 900px) {
  .hud__rec, .hud__nav, .hud__cam, .hud__fmt, .frame--tl, .frame--tr { display: none; }

  .hud__logo { width: 90px; top: 24px; }
  .hud { --hudbar: 60px; }
  .hero__content { bottom: 64px; }
  .hero__line { font-size: 19vw; }
  .hero__line.serif { font-size: 20vw; margin-left: 6vw; }
  .hero__foot { flex-direction: column; align-items: flex-start; }
  .knock__logo { width: 88vw; }
  .intro, .services__head, .fpv__sub, .faq { grid-template-columns: 1fr; }
  .intro { padding: 10vh var(--gutter) 10vh; min-height: auto; }
  .intro__side { display: none; }
  .projects__head .display { font-size: 17vw; }
  .grid { grid-template-columns: 1fr 1fr; row-gap: 8vh; }
  .card--a, .card--d, .card--e { grid-column: 1 / -1; margin-top: 0; }
  .card--b, .card--c, .card--f { grid-column: span 1; margin-top: 0; }
  .card { cursor: pointer; }
  .card__info { flex-direction: column; gap: 6px; }
  .card__meta { flex-direction: column; gap: 2px; }
  .krow .display { font-size: 19vw; }
  .krow .display.serif { font-size: 21vw; }
  .krow__note { display: none; }
  .krow:nth-child(3) { padding-left: 8vw; }
  .krow__slot { width: 36vw; height: 15vw; }
  .kinetic__label { display: none; }
  .kinetic__hand { bottom: 20vh; }
  .srv__row { grid-template-columns: auto 1fr; }
  .srv__d { grid-column: 2; }
  .srv__float { display: none; }
  .fpv__title { font-size: 16vw; }
  .fpv__pill { width: 22vw; height: 10vw; }
  .drone { height: auto; padding: 7vh 0 4vh; display: block; background-size: 16vw 16vw; }
  .drone__img { width: 90vw; margin: 0 auto; }
  .drone__lines, .drone__zoom, .drone__dim { display: none; }
  .spec { position: relative; inset: auto; width: auto; margin-top: 4vh; }   /* relative: fica por cima do sombreado */
  .clients { grid-template-columns: 1fr; padding: 14vh var(--gutter); }
  .clients__label { position: static; }
  .clients__intro, .clients__list { grid-column: 1; }
  .clients__list { padding: 4vh 0; }
  .clients__preview { display: none; }
  .contact { grid-template-columns: 1fr; }
  .contact__title { font-size: 19vw; }
  .form { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; gap: 6px; }
  .zap { bottom: 72px; }
  .badge { width: 112px; height: 112px; top: 16vh; }
  .badge__ring text { font-size: 11px; }
  .badge__play { width: 42px; height: 42px; }
  .badge__play::after { left: 17px; top: 13px; border-left-width: 12px; border-top-width: 8px; border-bottom-width: 8px; }
  .hero__hand { margin-left: 6vw; }
  .marquee__track span { font-size: 26vw; }
  .marquee__track span.serif { font-size: 24vw; }
  .marquee__dot { width: 5vw; height: 5vw; }
  .pov__head, .process__head { grid-template-columns: 1fr; }
  .pov__head .display { font-size: 13vw; }
  .pov__grid { grid-template-columns: 1fr; gap: 14vh; }
  .pov__card--b { margin-top: 0; }
  .pov__num { font-size: 34vw; }
  .process__title { font-size: 17vw; }
  .process__hand { position: static; }
  .steps { grid-template-columns: 1fr; gap: 5vh; }
  .reels__head { grid-template-columns: 1fr; gap: 10px; }
  .reels__head .display { font-size: 12vw; }
  .reels__hand { justify-self: start; }
  .reel { width: 52vw; }
  .drone__hand, .drone__hand--r, .drone__hand--up { position: relative; inset: auto; padding: 2vh var(--gutter) 0; }
  .archive__head { grid-template-columns: 1fr; }
  .archive__head .display { font-size: 17vw; }
  /* no celular: OUTROS / PROJETOS / filmados. em três linhas, sem passar da tela */
  .archive__title > span:not(.serif) { display: block; }
  .archive__title br { display: none; }
  .player { padding: 64px 12px 24px; }
  .player__tc { display: none; }
  .player__meta { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .vault { columns: 2; column-gap: 12px; }
  .item { margin-bottom: 4vh; cursor: pointer; }
  .item__row { flex-direction: column; gap: 4px; }
  .item__c { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .w { opacity: 1; }
  .knock { display: none; }
}
