/* =========================================================
   Sávio Martins — Portfólio
   Identidade: "o corte" — a barra "/" é a marca, timecodes e
   trilhas de timeline como linguagem visual, laranja-sinal
   (o ponto do REC) como única cor de destaque.
   ========================================================= */

:root {
  --bg: #0b0b0c;
  --bg-2: #121214;
  --bg-3: #1a1a1d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f3f1ec;
  --muted: #a19e96;
  --dim: #6c6a65;
  --accent: #ff5b2e;
  --accent-soft: rgba(255, 91, 46, 0.14);
  --accent-ink: #1a0802;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --serif: "Instrument Serif", Georgia, serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* grão de filme sutil sobre tudo */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }

/* ---------- Elementos base ---------- */
.rec {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  animation: rec 1.6s steps(1) infinite;
  flex: none;
}
@keyframes rec { 50% { opacity: 0.25; } }

.tag, .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag {
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.eyebrow { margin-bottom: 18px; }
.eyebrow__num { color: var(--accent); }
.eyebrow__num::after { content: " /"; color: var(--dim); }
.eyebrow--center { display: flex; justify-content: center; text-align: center; }

.h2 {
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 20ch;
  text-wrap: balance;
}
.h2 em { color: var(--accent); }
.h2--big { font-size: clamp(40px, 6.6vw, 84px); max-width: 13ch; }
.lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); max-width: 52ch; margin-top: 18px; }
.body { color: var(--muted); font-size: 17px; margin-top: 18px; max-width: 58ch; }
.body strong { color: var(--text); font-weight: 600; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { background: #ff7650; transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-2); background: rgba(255, 255, 255, 0.02); }
.btn--ghost:hover { border-color: var(--text); transform: translateY(-2px); }
.btn--small { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Barra de rolagem (timeline) ---------- */
.scrub { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.scrub__bar { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(11, 11, 12, 0.72);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom-color: var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 17px; }
.logo__mark {
  position: relative;
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--bg);
  border: 1.5px solid var(--accent);
  flex: none;
}
.logo__mark i {
  position: absolute; left: 50%; top: 50%;
  width: 3.5px; height: 64%;
  background: var(--accent);
  transform: translate(-50%, -50%) rotate(22deg);
  border-radius: 2px;
}
.logo__name b { color: var(--accent); font-weight: 400; margin: 0 1px; }

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.06); }

.nav__right { display: flex; align-items: center; gap: 14px; }
.timecode { font-family: var(--mono); font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }

.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang button {
  border: 0; background: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--dim);
  transition: color 0.2s, background 0.2s;
}
.lang button:hover { color: var(--text); }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.menu-btn { display: none; position: relative; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 50%; background: none; }
.menu-btn i { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--text); transition: transform 0.4s var(--ease); }
.menu-btn i:first-child { top: 16px; }
.menu-btn i:last-child { top: 22px; }
.menu-open .menu-btn i:first-child { transform: translateY(3px) rotate(45deg); }
.menu-open .menu-btn i:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 132px 0 0; overflow: hidden; }
.hero__glow {
  position: absolute;
  top: -20%; right: -10%;
  width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(255, 91, 46, 0.16), transparent 62%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  min-height: min(640px, calc(100svh - 240px));
}
.hero__title {
  margin-top: 26px;
  font-size: clamp(50px, 7.2vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  font-weight: 800;
}
.hero__title em { color: var(--accent); font-size: 1.08em; letter-spacing: -0.03em; padding-right: 0.04em; }
.hero__lead { margin-top: 26px; color: var(--muted); font-size: clamp(16px, 1.45vw, 19px); max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Leque de vídeos — uma "mão" de cartas */
.hand {
  position: relative;
  height: 560px;
  --w: 216px;
}
.hand__card {
  position: absolute;
  left: 50%; bottom: 40px;
  width: var(--w);
  aspect-ratio: 9 / 16;
  margin-left: calc(var(--w) / -2);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4);
  transform-origin: 50% 120%;
  transform: translateX(calc(var(--i) * 44px)) rotate(calc(var(--i) * 8deg));
  transition: transform 0.7s var(--ease), box-shadow 0.4s;
  padding: 0;
  cursor: pointer;
}
.hand__card img { width: 100%; height: 100%; object-fit: cover; }
.hand__card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 45%);
}
.hand:hover .hand__card { transform: translateX(calc(var(--i) * 78px)) rotate(calc(var(--i) * 10deg)); }
.hand .hand__card:hover {
  transform: translateX(calc(var(--i) * 78px)) rotate(calc(var(--i) * 10deg)) translateY(-28px);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 0 2px var(--accent);
  z-index: 10;
}
.hand__views {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  font-weight: 800; font-size: 22px; letter-spacing: -0.03em;
  text-align: left; line-height: 1;
}
.hand__views small { display: block; margin-top: 4px; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.hand__chip { position: absolute; top: 10px; left: 10px; z-index: 1; }

/* Números */
.stats {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  margin-top: 40px;
  border-top: 1px solid var(--line);
}
.stats > div { padding: 26px 20px 30px 0; }
.stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.stats dt { font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.stats dd { margin-top: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* ---------- Clientes ---------- */
.clients { padding: 56px 0 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.clients .eyebrow { margin-bottom: 28px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-1 * var(--shift, 50%))); } }
.client {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 22px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  transition: border-color 0.3s, background 0.3s;
}
.client:hover { border-color: var(--accent); }
.client img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--bg-3); filter: grayscale(1); transition: filter 0.4s; }
.client:hover img { filter: none; }
.client__initials { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line-2); font-weight: 700; font-size: 15px; letter-spacing: -0.02em; color: var(--accent); }
.client div strong { display: block; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }
.client div span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: var(--muted); white-space: nowrap; }

/* ---------- Seções ---------- */
.section { padding: clamp(88px, 12vw, 150px) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  margin-bottom: clamp(40px, 6vw, 64px);
  flex-wrap: wrap;
}

/* Filtros */
.filters { display: inline-flex; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg-2); }
.filters button {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  color: var(--muted);
  transition: color 0.2s, background 0.25s;
}
.filters button small { font-family: var(--mono); font-size: 11px; color: var(--dim); }
.filters button:hover { color: var(--text); }
.filters button[aria-selected="true"] { background: var(--text); color: var(--bg); }
.filters button[aria-selected="true"] small { color: rgba(11, 11, 12, 0.5); }

/* Grade de vídeos */
.grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.grid li { animation: cardIn 0.6s var(--ease) both; animation-delay: calc(var(--n) * 50ms); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px); } }
.card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  text-align: left;
  isolation: isolate;
  transition: border-color 0.3s, transform 0.5s var(--ease);
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), filter 0.5s; filter: saturate(0.85); }
.card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.35) 100%);
  z-index: 1;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card:hover img { transform: scale(1.06); filter: saturate(1.05); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff;
}
.chip svg { width: 12px; height: 12px; fill: currentColor; }
.chip--yt svg { color: #ff3b30; }
.chip--ig svg { color: #ff6fae; }
.card .chip { position: absolute; top: 12px; left: 12px; z-index: 2; }

.card__info { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.card__views { font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: #fff; }
.card__views small { display: block; margin-top: 6px; font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.65); }
.card__play {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  transition: background 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.card__play svg { width: 16px; height: 16px; fill: currentColor; margin-left: 2px; }
.card__play--out svg { margin: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card__play { background: var(--accent); color: var(--accent-ink); transform: scale(1.08); }

/* ---------- Processo (trilhas de timeline) ---------- */
.tracks { border-top: 1px solid var(--line-2); }
.track {
  display: grid;
  grid-template-columns: 180px minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 12px 32px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line-2);
  align-items: start;
}
.track__time { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--accent); padding-top: 10px; font-variant-numeric: tabular-nums; }
.track__name { display: flex; align-items: baseline; gap: 14px; font-size: clamp(28px, 3vw, 40px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; }
.track__name span { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.06em; color: var(--dim); }
.track__text { color: var(--muted); font-size: 17px; padding-top: 6px; }
.track__bar {
  grid-column: 1 / -1;
  position: relative;
  height: 8px;
  border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 2.5%);
  margin-top: 10px;
}
.track__bar i {
  position: absolute; top: 0; bottom: 0;
  left: var(--from); width: var(--len);
  border-radius: 4px;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 1.2s var(--ease) 0.2s;
}
.track.is-in .track__bar i { transform: scaleX(1); }

/* ---------- Sobre ---------- */
.about { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 7vw, 100px); align-items: center; }
.about__photo { position: relative; padding: 14px; width: 100%; max-width: 480px; justify-self: center; }
.about__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 6px;
  filter: grayscale(1) contrast(1.08) brightness(0.92);
  transition: filter 0.8s var(--ease);
}
.about__photo:hover img { filter: grayscale(0) contrast(1.02); }
.corner { position: absolute; width: 26px; height: 26px; border: 2px solid var(--accent); }
.corner--tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.corner--tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.corner--bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.corner--br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.about__photo figcaption {
  position: absolute; left: 30px; top: 30px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 6px 10px;
  border-radius: 6px;
}
.mini { margin-top: 36px; margin-bottom: 14px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; color: var(--text); transition: border-color 0.2s, color 0.2s; }
.chips li:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Contato ---------- */
.contact { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.contact::before {
  content: "";
  position: absolute; left: -20%; bottom: -60%;
  width: 80vw; height: 80vw; max-width: 1000px; max-height: 1000px;
  background: radial-gradient(circle, rgba(255, 91, 46, 0.12), transparent 60%);
  pointer-events: none;
}
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 88px); align-items: start; }

.mail {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  margin-top: 40px;
  padding: 20px 22px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  max-width: 520px;
}
.mail__label { width: 100%; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.mail__addr { flex: 1 1 auto; min-width: 0; font-size: clamp(16px, 1.6vw, 19px); font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; transition: color 0.2s; }
.mail__addr:hover { color: var(--accent); }
.mail__copy {
  border: 1px solid var(--line-2); background: none;
  padding: 7px 14px; border-radius: 999px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}
.mail__copy:hover, .mail__copy.is-done { color: var(--accent); border-color: var(--accent); }

.form {
  display: grid; gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  background: var(--bg-2);
}
.field { display: grid; gap: 8px; }
.field span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit; font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.24); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hp { position: absolute; left: -9999px; }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding: 32px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; }
.footer__meta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: 0.03em; }
.footer__top { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.footer__top:hover { color: var(--accent); }

/* ---------- Player ---------- */
.player {
  padding: 0; border: 0;
  background: transparent;
  width: min(400px, 92vw);
  max-height: 92svh;
  overflow: visible;
}
.player::backdrop { background: rgba(5, 5, 6, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.player[open] { animation: pop 0.45s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(10px); } }
.player__frame {
  aspect-ratio: 9 / 16;
  max-height: 86svh;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line-2);
}
.player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player__close {
  position: absolute; top: -52px; right: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  transition: background 0.2s, color 0.2s;
}
.player__close:hover { background: var(--accent); color: var(--accent-ink); }
.player__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Revelação ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
  .timecode { display: none; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hand { --w: 170px; height: 480px; }
}

@media (max-width: 880px) {
  .menu-btn { display: block; }
  .nav__links {
    position: fixed; inset: 72px 0 0;
    display: flex; flex-direction: column; gap: 0;
    padding: 24px var(--gutter);
    background: var(--bg);
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0.3s;
  }
  .menu-open .nav__links { opacity: 1; visibility: visible; transform: none; }
  .menu-open .nav { background: var(--bg); border-bottom-color: var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav__links a {
    padding: 18px 0;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 30px; font-weight: 600; letter-spacing: -0.03em;
    color: var(--text);
  }
  .nav__links a:hover, .nav__links a.is-active { background: none; color: var(--accent); }
  .menu-open { overflow: hidden; }
  .hero { padding-top: 112px; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .hand { height: 400px; --w: 150px; margin-top: 8px; }
  .hand:hover .hand__card, .hand .hand__card:hover { transform: translateX(calc(var(--i) * 34px)) rotate(calc(var(--i) * 7deg)); }
  .stats { margin-top: 8px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .track { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; }
  .track__time, .track__text { padding-top: 0; }
  .about, .contact__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 460px; }
}

@media (max-width: 560px) {
  .nav__cta { display: none; }
  .logo__name { font-size: 16px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hand { height: 330px; --w: 124px; }
  .hand__card, .hand:hover .hand__card, .hand .hand__card:hover { transform: translateX(calc(var(--i) * 24px)) rotate(calc(var(--i) * 6deg)); }
  .hand__views { font-size: 17px; left: 10px; bottom: 10px; }
  .hand__chip { display: none; }
  .stats > div { padding: 20px 12px 22px 0; }
  .stats > div + div { padding-left: 14px; }
  .section__head { gap: 24px; }
  .filters { width: 100%; }
  .filters button { flex: 1; justify-content: center; padding: 10px 8px; font-size: 13px; }
  .filters button small { display: none; }
  .card__info { left: 12px; right: 12px; bottom: 12px; }
  .card__views { font-size: 24px; }
  .card__play { width: 34px; height: 34px; }
  .card .chip { top: 10px; left: 10px; }
  .client { padding-right: 18px; }
  .client img, .client__initials { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
