/* Reis Mídia · identidade do site
   Preto quente + papel creme + laranja "REC" (a luz de gravação da câmera). */
:root {
  /* ===== CORES: troque só aqui =====
     --ink e --paper também têm a versão "R, G, B" (usada nas transparências).
     Mantenha os dois iguais ao trocar. */
  --ink: #0e0d0b;          --ink-rgb: 14, 13, 11;      /* fundo escuro */
  --ink-2: #1a1916;        /* cartões e formulário no escuro */
  --paper: #f2ede4;        --paper-rgb: 242, 237, 228; /* creme / texto claro */
  --paper-2: #e7e0d3;      /* fundo de imagem no creme */
  --accent: #ff5b1f;       /* cor de destaque (laranja "REC") */
  --accent-deep: #c93d0b;  /* destaque mais escuro, para texto em fundo creme */
  --accent-ink: #120a06;   /* texto em cima da cor de destaque */
  --muted-d: #a39d92;      /* texto secundário no escuro */
  --muted-l: #5d584f;      /* texto secundário no claro */
  --line-d: rgba(var(--paper-rgb), .14);
  --line-l: rgba(var(--ink-rgb), .14);

  --display: "Bebas Neue", "Oswald", Impact, sans-serif;
  --body: "Montserrat", system-ui, -apple-system, sans-serif;
  --gut: clamp(20px, 4vw, 56px);
  --max: 1320px;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- botões e links ---------- */
.btn { background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15px; letter-spacing: .01em; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--accent:hover { box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55); }
.btn--ghost { border-color: rgba(var(--paper-rgb), .5); color: var(--paper); }
.btn--ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.link { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s var(--ease); padding-bottom: 2px; }
.link:hover { background-size: 100% 1.5px; }

/* ---------- navegação ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background-color .3s, backdrop-filter .3s; }
.nav.is-solid { background: rgba(var(--ink-rgb), .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.nav__links > a:not(.btn) { position: relative; opacity: .85; transition: opacity .2s; padding: 8px 0; }
.nav__links > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links > a:not(.btn):hover { opacity: 1; }
.nav__links > a:not(.btn):hover::after { transform: scaleX(1); }
.nav__cta { min-height: 42px; padding: 0 20px; font-size: 14px; }
.nav__burger { display: none; width: 48px; height: 48px; border: 0; background: none; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--paper); transition: transform .3s var(--ease), top .3s; }
.nav__burger span:first-child { top: 19px; }
.nav__burger span:last-child { top: 27px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--ink-rgb), .55) 0%, rgba(var(--ink-rgb), 0) 22%, rgba(var(--ink-rgb), 0) 40%, rgba(var(--ink-rgb), .88) 100%), linear-gradient(90deg, rgba(var(--ink-rgb), .72) 0%, rgba(var(--ink-rgb), .25) 45%, rgba(var(--ink-rgb), 0) 70%); }
.hero__in { position: relative; z-index: 1; padding-bottom: clamp(48px, 9vh, 96px); }
.eyebrow { text-shadow: 0 1px 12px rgba(0,0,0,.6); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero__title { font: 400 clamp(50px, 6.4vw, 108px)/.9 var(--display); letter-spacing: .005em; max-width: 16ch; text-transform: uppercase; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { margin-top: 22px; max-width: 52ch; font-size: clamp(15px, 1.25vw, 18px); color: rgba(var(--paper-rgb), .86); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__rec { position: absolute; z-index: 1; right: var(--gut); top: 96px; display: flex; align-items: center; gap: 10px; font: 500 13px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; color: rgba(var(--paper-rgb), .85); }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: blink 1.2s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }

/* entrada do hero (uma vez, no carregamento) */
[data-enter] { opacity: 0; transform: translateY(22px); animation: enter .9s var(--ease) forwards; }
[data-enter]:nth-child(2) { animation-delay: .12s; }
[data-enter]:nth-child(3) { animation-delay: .24s; }
[data-enter]:nth-child(4) { animation-delay: .36s; }
@keyframes enter { to { opacity: 1; transform: none; } }

/* ---------- seções ---------- */
.section { padding: clamp(88px, 12vh, 140px) 0; scroll-margin-top: 0; }
.section--dark { background: var(--ink); color: var(--paper); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--line { border-top: 1px solid var(--line-l); }
.section--accent { background: var(--accent); color: var(--accent-ink); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.h2 { font: 400 clamp(48px, 6.4vw, 96px)/.92 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.head__note { max-width: 40ch; font-size: 15px; color: var(--muted-d); }
.section--paper .head__note { color: var(--muted-l); }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; font-weight: 500; }

/* ---------- filtros + grade ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line-d); background: transparent; font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.chip:hover { border-color: var(--paper); transform: translateY(-2px); }
.chip:active { transform: scale(.97); }
.chip.is-on { background: var(--paper); color: var(--ink); border-color: var(--paper); }

#trabalhos .wrap { container-type: inline-size; }
.grid { --cols: 4; --gap: 16px; display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-auto-rows: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) * 1.25); grid-auto-flow: dense; gap: var(--gap); }
.card { position: relative; transition: transform .25s var(--ease); }
.card.is-hidden, .grid:not(.is-all) .card.is-extra { display: none; }
.more-wrap { display: flex; justify-content: center; margin-top: 36px; }
.more-wrap[hidden] { display: none; }
.card button { all: unset; display: block; width: 100%; cursor: pointer; border-radius: var(--r); }
.card button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card:hover { transform: translateY(-2px); }
.card button { height: 100%; }
.card__frame { position: relative; height: 100%; border-radius: var(--r); overflow: hidden; background: var(--ink-2); }
.card--h { grid-column: span 2; }
.card__frame img, .card__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .4s; }
.card__frame video { opacity: 0; }
.card.is-playing .card__frame video { opacity: 1; }
.card:hover .card__frame img, .card:hover .card__frame video { transform: scale(1.03); }
.card__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(var(--ink-rgb), 0) 50%, rgba(var(--ink-rgb), .85) 100%); }
.card__meta { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; }
.card__client { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.card__title { font: 400 clamp(24px, 2vw, 30px)/1 var(--display); letter-spacing: .01em; margin-top: 4px; }
.card__play { position: absolute; z-index: 1; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(var(--ink-rgb), .55); backdrop-filter: blur(6px); display: grid; place-items: center; transition: background-color .2s, transform .2s var(--ease); }
.card__play::before { content: ""; border-left: 12px solid var(--paper); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.card:hover .card__play { background: var(--accent); transform: scale(1.06); }
.card:hover .card__play::before { border-left-color: var(--accent-ink); }

/* ---------- serviços ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.service a { display: block; transition: transform .25s var(--ease); }
.service a:hover { transform: translateY(-2px); }
.service__img { aspect-ratio: 3 / 2; border-radius: var(--r); overflow: hidden; background: var(--paper-2); margin-bottom: 18px; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service a:hover .service__img img { transform: scale(1.03); }
.service h3 { font: 400 32px/1 var(--display); letter-spacing: .01em; text-transform: uppercase; }
.service p { margin-top: 8px; color: var(--muted-l); font-size: 15px; max-width: 42ch; }
.more { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 14px; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; transition: background-size .3s var(--ease); }
.service a:hover .more { background-size: 0 2px; background-position: 100% 100%; }

/* ---------- drone FPV ---------- */
.fpv { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.fpv__text .h2 { margin-bottom: 24px; }
.fpv__text p:not(.lead):not(.eyebrow) { margin-top: 16px; color: var(--muted-d); max-width: 52ch; }
.fpv__text .btn { margin-top: 32px; }
.fpv__media { display: grid; grid-template-columns: .5fr 1fr; gap: 16px; height: min(72svh, 640px); }
.fpv__media > div { border-radius: var(--r); overflow: hidden; background: var(--ink-2); }
.fpv__media video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- processo ---------- */
.process { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.process__head .head__note { margin: 24px 0 32px; font-size: 16px; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--accent); color: var(--accent-ink); }
.steps li { display: grid; grid-template-columns: clamp(80px, 9vw, 130px) 1fr; gap: 20px; align-items: start; border-top: 1.5px solid var(--line-l); padding: 26px 0; transition: border-color .3s; }
.steps li:last-child { border-bottom: 1.5px solid var(--line-l); }
.steps li:hover { border-top-color: var(--accent); }
.steps__n { font: 400 clamp(56px, 6vw, 92px)/.8 var(--display); color: var(--accent-deep); }
.steps h3 { font: 400 32px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.steps p { margin-top: 8px; color: var(--muted-l); font-size: 15px; max-width: 48ch; }

/* ---------- sobre ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__media { aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--ink-2); }
.about__media video, .about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__text .h2 { margin-bottom: 28px; }
.about__text p + p { margin-top: 16px; }
.about__text p:not(.lead) { color: var(--muted-d); }
.about__text .btn { margin-top: 32px; }

/* ---------- bastidores ---------- */
.section--line-d { border-top: 1px solid var(--line-d); }
.bts { columns: 4; column-gap: 16px; }
.bts li { break-inside: avoid; margin-bottom: 16px; border-radius: var(--r); overflow: hidden; background: var(--ink-2); }
.bts img { width: 100%; height: auto; transition: transform .6s var(--ease); }
.bts li:hover img { transform: scale(1.03); }

/* ---------- clientes (momento tipográfico) ---------- */
#clientes .h2 { margin-bottom: 40px; }
.names { display: flex; flex-wrap: wrap; gap: 0 .5em; font: 400 clamp(30px, 4.6vw, 70px)/1.1 var(--display); text-transform: uppercase; }
.names li { transition: color .25s, transform .25s var(--ease); cursor: default; }
.names li::after { content: "·"; margin-left: .5em; opacity: .45; }
.names li:last-child::after { content: none; }
.names li:hover { color: var(--paper); }

/* ---------- contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__title { font: 400 clamp(72px, 11vw, 176px)/.86 var(--display); text-transform: uppercase; color: var(--accent); margin-bottom: 28px; }
.contact__list { margin-top: 32px; display: grid; gap: 14px; font-size: 17px; font-weight: 500; }
.contact__list li { border-top: 1px solid var(--line-d); padding-top: 14px; }
.contact__list span { color: var(--muted-d); }
.form { display: grid; gap: 16px; background: var(--ink-2); padding: clamp(22px, 3vw, 36px); border-radius: var(--r); }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted-d); }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line-d); background: var(--ink); color: var(--paper); font-size: 16px; font-weight: 400; letter-spacing: 0; transition: border-color .2s; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { justify-self: start; }
.form__err { color: var(--accent); font-size: 14px; }
.form__ok { color: var(--paper); font-size: 14px; }

/* ---------- rodapé ---------- */
.foot { border-top: 1px solid var(--line-d); padding: 28px 0 32px; }
.foot__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--muted-d); }
.foot__in img { height: 36px; width: auto; }

/* barra fixa do celular */
.bar { display: none; }

/* ---------- player ---------- */
.player { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; color: var(--paper); }
.player::backdrop { background: rgba(var(--ink-rgb), .94); backdrop-filter: blur(6px); }
.player__box { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; }
.player__media { display: flex; justify-content: center; }
.player__media video, .player__media iframe { border-radius: 12px; background: #000; border: 0; }
.player__media.is-h video, .player__media.is-h iframe { width: min(92vw, calc((100svh - 160px) * 16 / 9)); aspect-ratio: 16 / 9; height: auto; }
.player__media.is-v video { height: min(calc(100svh - 160px), calc(92vw * 16 / 9)); width: auto; aspect-ratio: 9 / 16; }
.player__info { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(92vw, 1100px); }
.player__client { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.player__title { font: 400 30px/1 var(--display); letter-spacing: .01em; }
.player__nav { display: flex; gap: 8px; }
.pbtn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line-d); background: transparent; cursor: pointer; font-size: 18px; transition: background-color .2s, color .2s, transform .2s var(--ease); }
.pbtn:hover { background: var(--paper); color: var(--ink); transform: translateY(-2px); }
.pbtn:active { transform: scale(.96); }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .grid { --cols: 3; }
}
@media (max-width: 900px) {
  .nav__burger { display: block; z-index: 2; }
  .nav__links { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 10px; background: var(--ink); font: 400 44px/1.1 var(--display); text-transform: uppercase; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav__links.is-open { opacity: 1; visibility: visible; }
  .nav__cta { margin-top: 16px; font: 600 16px var(--body); text-transform: none; min-height: 52px; padding: 0 28px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .about, .contact, .process, .fpv { grid-template-columns: 1fr; }
  .fpv__media { height: auto; aspect-ratio: 4 / 3.4; }
  .about__media { aspect-ratio: 4 / 5; max-height: 80svh; }
  .bts { columns: 3; }
}
@media (max-width: 640px) {
  .nav__in { height: 64px; }
  .nav__logo img { height: 32px; }
  .hero__rec { top: 80px; font-size: 11px; }
  .hero__in { padding-bottom: 96px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .grid { --cols: 2; --gap: 10px; }
  .card__meta { left: 12px; right: 12px; bottom: 10px; }
  .card__client { font-size: 10px; }
  .card__title { font-size: 21px; }
  .card__play { width: 36px; height: 36px; top: 10px; right: 10px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--gut)) 24px; padding: 0 var(--gut); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .services { grid-template-columns: 1fr; }
  .bts { columns: 2; column-gap: 10px; }
  .fpv__media { grid-template-columns: 1fr; aspect-ratio: auto; gap: 10px; }
  .fpv__pilot { aspect-ratio: 4 / 5; }
  .fpv__flight { aspect-ratio: 16 / 10; }
  .fpv__text .btn { width: 100%; }
  .bts li { margin-bottom: 10px; }
  .service__img { aspect-ratio: 16 / 9; }
  .steps li { grid-template-columns: 64px 1fr; gap: 14px; }
  .process__head .btn { width: 100%; }
  .form .btn { justify-self: stretch; }
  .foot { padding-bottom: 96px; }
  .foot__in { flex-direction: column; align-items: flex-start; }
  .bar { display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); min-height: 52px; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); transition: transform .3s var(--ease), opacity .3s; }
  .bar.is-away { transform: translateY(140%); opacity: 0; }
  .player__box { padding: 12px; }
  .player__media.is-v video { height: min(calc(100svh - 150px), calc((100vw - 24px) * 16 / 9)); }
  .player__title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-enter] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
