/* Marco Films — site de portfólio
   Visual: palco escuro de cinema, logo branca, vermelho só no ponto REC e nos detalhes. */

:root {
  --ink: #0d0c0c;
  --stage: #151313;
  --line: rgba(239, 233, 228, 0.1);
  --fg: #efe9e4;
  --mute: #9a908b;
  --red: #c42329;
  --red-hot: #e0262d;

  --display: "Unbounded", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --gutter: clamp(20px, 5vw, 64px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* ---------- peças comuns ---------- */
.dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--red);
  flex: none;
}
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn--light { background: var(--fg); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--ghost { border: 1px solid rgba(239, 233, 228, 0.35); }
.btn--ghost:hover { border-color: var(--fg); background: rgba(239, 233, 228, 0.06); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hot); }
.btn--big { min-height: 60px; padding: 0 36px; font-size: 17px; }

.section { padding: clamp(80px, 12vw, 150px) var(--gutter); }
.section__head { margin-bottom: 40px; }
.section__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ---------- menu ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 22px var(--gutter);
  transition: background 0.4s, padding 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled {
  padding-block: 14px;
  background: rgba(13, 12, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__logo img { width: 150px; height: auto; }
.footer img { width: 140px; height: auto; }
.nav__links { display: flex; gap: 30px; margin-left: auto; }
.nav__links a {
  position: relative;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  color: rgba(239, 233, 228, 0.75);
  transition: color 0.3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover { color: var(--fg); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid rgba(239, 233, 228, 0.35);
  font-size: 14px; font-weight: 600;
  transition: background 0.3s, border-color 0.3s;
}
.nav__cta:hover { background: var(--red); border-color: var(--red); }
.nav__menu { display: none; width: 40px; height: 40px; margin-left: auto; position: relative; }
.nav__menu span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--fg); transition: transform 0.3s; }
.nav__menu span:first-child { top: 15px; }
.nav__menu span:last-child { top: 23px; }
.nav.is-open .nav__menu span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__menu span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- topo ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  padding: 96px var(--gutter);
  text-align: center;
  overflow: hidden;
}
.hero__media, .hero__shade { position: absolute; inset: 0; }
.hero__media { z-index: 0; overflow: hidden; }
.hero__shade { z-index: 1; }
.hud { z-index: 2; }
.hero__content { z-index: 3; }
.hero__poster, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { opacity: 0; transition: opacity 1.2s; }
.hero__video.is-ready { opacity: 1; }
.hero__shade {
  background:
    linear-gradient(180deg, rgba(13,12,12,0.55) 0%, rgba(13,12,12,0.1) 30%, rgba(13,12,12,0.1) 70%, rgba(13,12,12,0.85) 100%),
    radial-gradient(ellipse at center, rgba(13,12,12,0.45) 0%, rgba(13,12,12,0) 65%);
}
.hud { position: absolute; inset: 96px var(--gutter) 28px; pointer-events: none; font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; }
.hud__rec { position: absolute; top: 18px; left: 22px; display: flex; align-items: center; gap: 9px; }
.hud__rec .dot { animation: rec 1.6s steps(1) infinite; }
.hud__tc { position: absolute; top: 18px; right: 22px; color: rgba(239,233,228,0.8); font-variant-numeric: tabular-nums; }
.hud__corner { position: absolute; width: 26px; height: 26px; border-color: rgba(239,233,228,0.55); border-style: solid; border-width: 0; }
.hud__corner--tl { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.hud__corner--tr { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.hud__corner--bl { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hud__corner--br { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
@keyframes rec { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0; } }

.hero__content { position: relative; }
.hero__title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(22px, 6.6vw, 96px);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -0.045em;
}
.dot--title {
  width: 0.2em; height: 0.2em;
  margin-left: 0.06em;
  vertical-align: baseline;
}
.hero__title { text-shadow: 0 4px 40px rgba(0,0,0,0.35); }

/* aviso de rolar: leva ao portfólio */
.hero__scroll {
  position: absolute; z-index: 3; left: 50%; bottom: 46px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: rgba(239,233,228,0.75);
}
.hero__scroll i { width: 1.5px; height: 44px; background: linear-gradient(var(--red), transparent); animation: desce 1.8s var(--ease-out) infinite; transform-origin: top; }
.hero__scroll:hover { color: var(--fg); }
@keyframes desce { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* entrada do topo */
.hero__content > * { animation: rise 1s var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } }

/* ---------- portfólio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip {
  padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px; color: var(--mute);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.chip:hover { color: var(--fg); border-color: rgba(239,233,228,0.35); }
.chip.is-active { background: var(--fg); color: var(--ink); border-color: var(--fg); }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.card {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--stage);
  cursor: pointer;
  border-radius: 2px;
  animation: cardIn 0.7s var(--ease-out) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
.card__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.72) saturate(0.95);
  transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease-out);
}
.card::after { /* sombra embaixo para o texto ler */
  content: ""; position: absolute; inset: 40% 0 0 0;
  background: linear-gradient(transparent, rgba(13,12,12,0.85));
  transition: opacity 0.5s;
}
.card__meta {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2;
  transition: transform 0.6s var(--ease-out);
}
.card__cat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(239,233,228,0.65); }
.card__title { margin: 4px 0 0; font-family: var(--display); font-weight: 600; font-size: clamp(15px, 1.35vw, 19px); line-height: 1.2; letter-spacing: -0.01em; }
.card__time {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums;
  padding: 3px 8px; border-radius: 4px; background: rgba(13,12,12,0.6);
}
/* o "play" é a bolinha do REC */
.card__play {
  position: absolute; top: 50%; left: 50%; z-index: 2;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 14px; border-radius: 999px;
  border: 1px solid rgba(239,233,228,0.6);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  opacity: 0; transform: translate(-50%, -40%) scale(0.9);
  transition: opacity 0.4s var(--ease-out), transform 0.6s var(--ease-out);
}
.card__play .dot { width: 12px; height: 12px; }

@media (hover: hover) {
  .card:hover .card__img { transform: scale(1.07); filter: brightness(0.32) saturate(0.9); }
  .card:hover .card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .card:hover .card__play .dot { animation: blink 0.9s steps(1) 1; }
  .card:hover .card__meta { transform: translateY(-6px); }
  /* visual limpo: título e categoria só aparecem com o mouse em cima */
  .card__img { filter: brightness(0.92) saturate(1); }
  .card::after, .card__meta { opacity: 0; }
  .card__meta { transform: translateY(10px); transition: opacity 0.4s var(--ease-out), transform 0.6s var(--ease-out); }
  .card:hover::after, .card:hover .card__meta { opacity: 1; }
}
.card:focus-visible .card__img { transform: scale(1.07); filter: brightness(0.32); }
.card:focus-visible .card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@keyframes blink { 0%, 30% { opacity: 1; } 31%, 60% { opacity: 0; } 61%, 100% { opacity: 1; } }

.grid__more { display: flex; justify-content: center; margin-top: 36px; }

/* ---------- redes sociais (vídeos verticais) ---------- */
.social { padding-top: 0; }
.social__wrap { position: relative; }
.social__grid { display: grid; grid-auto-flow: column; grid-auto-columns: 25%; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; cursor: grab; }
.social__grid::-webkit-scrollbar { display: none; }
.social__grid.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.social__grid.is-dragging .reel { pointer-events: none; }
.social__arrow {
  position: absolute; z-index: 2; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(13,12,12,0.7); border: 1px solid var(--line); color: var(--fg);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s, opacity 0.3s;
}
.social__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.social__arrow:hover { background: var(--red); border-color: var(--red); }
.social__arrow--prev { left: 14px; } .social__arrow--next { right: 14px; }
.social__arrow[disabled] { opacity: 0; pointer-events: none; }
.reel { scroll-snap-align: start; position: relative; aspect-ratio: 9 / 16; padding: 0; overflow: hidden; background: var(--stage); color: var(--fg); text-align: left; animation: cardIn 0.7s var(--ease-out) both; }
.reel video, .reel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease-out); filter: brightness(0.75); }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,12,12,0) 55%, rgba(13,12,12,0.85) 100%); }
.reel__meta { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 18px; }
.reel__tipo { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(239,233,228,0.75); }
.reel__titulo { display: block; margin-top: 6px; font-family: var(--display); font-weight: 600; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.2; }
.reel__som { position: absolute; z-index: 1; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(13,12,12,0.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity 0.3s; }
.reel__som svg { width: 16px; height: 16px; fill: currentColor; }
@media (hover: hover) {
  /* visual limpo: título só aparece com o mouse em cima */
  .reel video, .reel img { filter: brightness(0.92); }
  .reel::after, .reel__meta { opacity: 0; transition: opacity 0.4s var(--ease-out), transform 0.6s var(--ease-out); }
  .reel__meta { transform: translateY(10px); }
  .reel:hover::after, .reel:hover .reel__meta { opacity: 1; }
  .reel:hover .reel__meta { transform: none; }
  .reel:hover video, .reel:hover img { transform: scale(1.05); filter: brightness(1); }
  .reel:hover .reel__som { opacity: 1; }
}
.player__frame video { width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (max-width: 760px) {
  .social__grid { grid-auto-columns: 62%; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
  .social__arrow { display: none; }
}

/* ---------- fotografia (mural quadrado, como no Be Brave) ---------- */
.photos { padding-top: 0; }
.photos__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 60px; margin-bottom: 40px; }
.photos__title { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(24px, 3.2vw, 40px); line-height: 1.05; letter-spacing: -0.02em; }
.photos__title em { font-style: normal; }
.photos__lead { max-width: 38ch; margin: 0; color: var(--mute); }
.photos__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.photo { position: relative; aspect-ratio: 1; padding: 0; overflow: hidden; background: var(--stage); animation: cardIn 0.7s var(--ease-out) both; }
.photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) brightness(0.85); transition: transform 0.9s var(--ease-out), filter 0.6s var(--ease-out); }
.photo::after { content: ""; position: absolute; top: 14px; right: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); opacity: 0; transition: opacity 0.3s; }
@media (hover: hover) {
  .photo:hover img { transform: scale(1.06); filter: grayscale(0) brightness(1); }
  .photo:hover::after { opacity: 1; animation: blink 0.9s steps(1) 1; }
}
.player__frame img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 760px) { .photos__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- clientes ---------- */
.clients { padding: 40px 0 10px; border-block: 1px solid var(--line); overflow: hidden; }
.clients__label { padding: 0 var(--gutter); }
.marquee { overflow: hidden; padding: 18px 0 34px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(48px, 6vw, 88px); width: max-content; padding-right: clamp(48px, 6vw, 88px); animation: marquee 60s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
/* cada logo tem a altura calculada para todas ocuparem a mesma área (--h) */
.marquee__track img {
  height: var(--h); width: auto; max-width: none;
  opacity: 0.55;
  transition: opacity 0.4s;
}
.marquee__track img:hover { opacity: 1; }
@media (max-width: 760px) { .marquee__track img { height: calc(var(--h) * 0.72); } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- serviços ---------- */
.svc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc__item {
  position: relative;
  display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr); align-items: baseline; gap: 20px;
  padding: 34px 50px 34px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 0.6s var(--ease-out);
}
.svc__item::before { /* luz que entra da esquerda */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(196,35,41,0.14), transparent 70%);
  opacity: 0; transition: opacity 0.5s;
}
.svc__num { font-family: var(--mono); font-size: 13px; color: var(--red); position: relative; }
.svc__name { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.8vw, 36px); letter-spacing: -0.02em; line-height: 1.1; color: rgba(239,233,228,0.6); transition: color 0.4s; position: relative; }
.svc__desc { margin: 0; color: var(--mute); max-width: 46ch; position: relative; transition: color 0.4s; }
.svc__dot { position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%) scale(0); transition: transform 0.5s var(--ease-out); }
@media (hover: hover) {
  .svc__item:hover { padding-left: 20px; }
  .svc__item:hover::before { opacity: 1; }
  .svc__item:hover .svc__name { color: var(--fg); }
  .svc__item:hover .svc__desc { color: rgba(239,233,228,0.85); }
  .svc__item:hover .svc__dot { transform: translateY(-50%) scale(1); animation: blink 0.9s steps(1) 0.2s 1; }
}

/* ---------- sobre ---------- */
.about { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(40px, 8vw, 120px); align-items: center; background: var(--stage); }
.about__photo { position: relative; margin: 0; max-width: 440px; width: 100%; justify-self: center; }
.about__photo > img:first-child { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; border-radius: 2px; filter: saturate(0.9); }
/* o "m●" no canto, como um selo */
.about__badge { position: absolute; right: -22px; top: -22px; width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 14px 40px rgba(0,0,0,0.5); }
.about__photo figcaption { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); }
.about__photo figcaption .dot { width: 8px; height: 8px; }
.about__text p:not(.eyebrow) { max-width: 58ch; margin: 22px 0 0; color: rgba(239,233,228,0.8); font-size: 18px; }
.about__text em { font-style: normal; color: var(--red); }

/* ---------- contato ---------- */
.contact { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact__title { margin: 0 0 40px; font-family: var(--display); font-weight: 700; font-size: clamp(28px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -0.03em; max-width: 14ch; text-wrap: balance; }
.contact__icons { display: flex; justify-content: center; gap: 18px; margin: 48px 0 0; padding: 0; list-style: none; }
.contact__icons a {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--fg);
  transition: background 0.35s var(--ease-out), border-color 0.35s, transform 0.35s var(--ease-out);
}
.contact__icons svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.contact__icons a:hover { background: var(--red); border-color: var(--red); transform: translateY(-4px); }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 30px var(--gutter) calc(30px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); color: var(--mute); font-size: 14px; }
.footer p { margin: 0; }

/* ---------- botão WhatsApp ---------- */
.wa-float {
  position: fixed; z-index: 40;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transition: transform 0.3s var(--ease-out);
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- player ---------- */
.player { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; gap: 16px; padding: 20px; background: rgba(8,7,7,0.94); }
.player[hidden] { display: none; }
.player__frame { width: min(1200px, 100%, calc((100svh - 160px) * 16 / 9)); aspect-ratio: 16 / 9; background: #000; }
.player__frame iframe { width: 100%; height: 100%; border: 0; }
.player__frame.is-vertical { width: min(100%, calc((100svh - 160px) * 9 / 16)); aspect-ratio: 9 / 16; }
.player__title { margin: 0; font-family: var(--display); font-weight: 600; font-size: 18px; text-align: center; }
.player__close { position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); right: var(--gutter); font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; }
.player__close:hover { border-color: var(--fg); }

/* ---------- celular e tablet ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc__item { grid-template-columns: 50px minmax(0, 1fr); }
  .svc__desc { grid-column: 2; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav__menu { display: block; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px;
    padding: 0 var(--gutter);
    background: var(--ink);
    opacity: 0; pointer-events: none; transition: opacity 0.4s;
  }
  .nav__links a { font-family: var(--display); font-size: 34px; font-weight: 600; color: var(--fg); }
  .nav.is-open .nav__links { opacity: 1; pointer-events: auto; }
  /* o desfoque do menu prenderia a tela cheia dentro da barra; desliga enquanto o menu está aberto */
  .nav.is-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
  .hud { inset: 84px 16px 16px; }
  .hud__rec, .hud__tc { top: 14px; }
  .hud__rec { left: 14px; } .hud__tc { right: 14px; }
  .hero__scroll { bottom: 30px; }
  .grid { grid-template-columns: minmax(0, 1fr); }
  .card__play { opacity: 1; transform: translate(-50%, -50%) scale(0.9); padding: 8px 14px 8px 12px; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__photo { max-width: 300px; }
  .about__badge { width: 72px; height: 72px; right: -10px; top: -14px; border-radius: 17px; }
  .svc__item { padding-right: 0; }
  .svc__dot { display: none; }
}

/* celular: sem mouse, as informações aparecem quando o vídeo chega ao meio da tela */
@media (hover: none) {
  .card__img, .reel video, .reel img { filter: brightness(0.92) saturate(1); }
  .card::after, .reel::after { opacity: 0; transition: opacity 0.5s var(--ease-out); }
  .card__meta, .reel__meta { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); }
  .card__play { opacity: 0; }
  .card.is-ativo .card__img { filter: brightness(0.55) saturate(0.95); }
  .card.is-ativo::after, .reel.is-ativo::after,
  .card.is-ativo .card__meta, .reel.is-ativo .reel__meta { opacity: 1; transform: none; }
  .card.is-ativo .card__play { opacity: 1; transform: translate(-50%, -50%) scale(0.9); }
  .reel.is-ativo .reel__som { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
