/* ==========================================================================
   FIELDS MEDIA — estilos
   ========================================================================== */

/* Fiorello CG Condensed — coloque os arquivos em assets/fonts/ com estes nomes */
@font-face {
  font-family: "Fiorello CG";
  /* só o .otf existe. Se um dia houver uma versão .woff2, adicione-a antes desta linha */
  src: url("../assets/fonts/FiorelloCG-Condensed.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #013944;
  --bg-2: #043f40;
  --bg-deep: #012c35;
  --accent: #ffff5d;
  --ink: #ffffff;
  --ink-2: rgba(255, 255, 255, .68);
  --ink-3: rgba(255, 255, 255, .42);
  --line: rgba(255, 255, 255, .14);
  --black: #000;

  --f-display: "Fiorello CG", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;                                          /* largura máxima do conteúdo */
  --side: max(var(--gutter), calc((100% - var(--maxw)) / 2)); /* margem lateral efetiva */

  /* regra de cantos: ações = pílula · botões de play e painéis = 14px · mídia (vídeo, foto) = 6px */
  --r-action: 999px;
  --r-play: 14px;
  --r-media: 6px;
  --section-y: clamp(96px, 15vw, 200px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; -webkit-tap-highlight-color: transparent; }
a, button, input, textarea, label { touch-action: manipulation; }
body {
  margin: 0;
  background: var(--bg);
  background-image: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
ol, ul { list-style: none; margin: 0; padding: 0; }
em { font-style: normal; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

/* grão de película — estático, custo zero */
.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06;
  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");
}

/* ---------- tipografia ---------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: .96;
  letter-spacing: -.005em;
  text-wrap: balance;
}
.display em, .hl { color: var(--accent); }

.label {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2);
}
.label b {
  font-weight: 500; color: var(--accent);
  display: inline-flex; align-items: center; gap: 14px;
}
.label b::after { content: ""; width: 32px; height: 1px; background: var(--line); }
.label--center { justify-content: center; }
.label--muted { color: var(--ink-3); }

/* palavra riscada — o traço amarelo é desenhado quando entra na tela */
.strike { position: relative; display: inline-block; color: var(--ink-3); }
.strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 50%;
  height: .07em; min-height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.1s var(--ease) .35s;
}
.is-in .strike::after, .strike.is-in::after { transform: scaleX(1); }

/* ---------- layout ---------- */
.section { padding: var(--section-y) var(--side); position: relative; }
.section__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 12px 22px; border-radius: var(--r-action); overflow: hidden; isolation: isolate;
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--ink);
  transition: color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--accent); transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover { color: var(--bg); border-color: var(--accent); }
.btn:hover::before { transform: translateY(0); }
.btn--small { padding: 10px 18px; font-size: 12px; }
.btn--big { padding: 20px 32px; font-size: 14px; }
.btn--accent { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.btn--accent::before { background: var(--ink); }
.btn--accent:hover { color: var(--bg); border-color: var(--ink); }
.btn--outline { border-color: rgba(255,255,255,.4); }
.icon { width: 20px; height: 20px; fill: currentColor; flex: none; }
.icon--stroke { fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ---------- mídia + placeholders ---------- */
.media { position: relative; overflow: hidden; background: var(--bg-2); }
.media > video, .media > img { width: 100%; height: 100%; object-fit: cover; }
.media.is-missing {
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255,255,93,.10), transparent 55%),
    radial-gradient(100% 80% at 90% 100%, rgba(4,90,92,.9), transparent 60%),
    linear-gradient(160deg, #04505a, var(--bg) 60%, var(--bg-deep));
}
.media.is-missing > video, .media.is-missing > img { opacity: 0; }
.media.is-missing::after {
  content: attr(data-label);
  position: absolute; left: 12px; bottom: 10px; right: 12px;
  font: 500 10px/1.3 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- visor de câmera ---------- */
.viewfinder { position: absolute; inset: clamp(14px, 2.4vw, 32px); pointer-events: none; z-index: 3; }
.viewfinder span { position: absolute; width: clamp(18px, 2.4vw, 34px); height: clamp(18px, 2.4vw, 34px); border: 0 solid rgba(255,255,255,.7); }
.viewfinder span:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.viewfinder span:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.viewfinder span:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.viewfinder span:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.viewfinder--tight { inset: 14px; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px var(--gutter);
  padding-top: max(16px, env(safe-area-inset-top));
  transition: background-color .5s var(--ease), backdrop-filter .5s var(--ease), border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(1, 44, 53, .72);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav__logo img { height: 30px; width: auto; }
.nav__logo { opacity: 0; transform: translateY(-6px); transition: opacity .5s var(--ease), transform .5s var(--ease); pointer-events: none; }
.nav.is-scrolled .nav__logo { opacity: 1; transform: none; pointer-events: auto; }
.nav__right { display: flex; align-items: center; gap: clamp(10px, 2vw, 24px); }

.lang { display: flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 500; letter-spacing: .1em; }
.lang__icon { width: 15px; height: 15px; fill: none; stroke: var(--ink-2); stroke-width: 1.4; margin-right: 6px; }
.lang button { padding: 6px 6px; color: var(--ink-3); transition: color .3s; position: relative; }
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { color: var(--accent); }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  display: grid; place-items: center; overflow: hidden; background: var(--bg-deep);
}
.hero__media { position: absolute; inset: 0; animation: focusIn 2.2s var(--ease) both; }
.hero__media.is-missing { background-size: 200% 200%; animation: focusIn 2.2s var(--ease) both, drift 14s ease-in-out infinite alternate; }
.hero__shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(1,44,53,.55) 0%, rgba(1,44,53,.05) 30%, rgba(1,44,53,.15) 60%, var(--bg) 100%),
    radial-gradient(90% 70% at 50% 50%, transparent 30%, rgba(1,30,36,.55) 100%);
}
.hero__content { position: relative; z-index: 2; text-align: center; padding: 0 var(--gutter); }
/* logo empilhado (ícone + FIELDS MEDIA + Produção Audiovisual) */
.hero__logo img {
  width: min(70vw, 34vh * 1.65, 560px); height: auto; margin-inline: auto;
  filter: drop-shadow(0 6px 40px rgba(1, 30, 36, .45));
  animation: rise 1.6s var(--ease) .5s both;
}
.hero__meta {
  position: absolute; z-index: 3; bottom: clamp(30px, 4vw, 56px);
  display: flex; align-items: center; gap: 18px;
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
  animation: fade 1.2s ease 1.3s both;
}
.hero__meta--left { left: calc(var(--gutter) + 16px); }
.hero__meta--right { right: calc(var(--gutter) + 16px); }
.rec { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font: inherit; letter-spacing: inherit; padding: 6px 8px; margin: -6px -8px; border-radius: var(--r-action); cursor: pointer; transition: background-color .3s; }
.rec:hover { background: rgba(255, 255, 255, .1); }
.rec.is-paused i { animation: none; background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.rec.is-paused { color: var(--ink-2); }
.rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: blink 1.2s steps(2, jump-none) infinite; }
.timecode { font-variant-numeric: tabular-nums; }
.scroll-cue { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.scroll-cue i { position: relative; width: 1px; height: 28px; background: var(--line); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 12px; background: var(--accent); animation: drip 1.8s var(--ease-in-out) infinite; }

/* profundidade de campo: o hero sai de foco ao rolar (só navegadores com suporte) */
@supports (animation-timeline: view()) {
  .hero__content {
    animation: defocus linear both;
    animation-timeline: view();
    animation-range: exit 0% exit 70%;
  }
}

/* ==========================================================================
   2. CLIENTES
   ========================================================================== */
.clients { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.clients .label { margin-bottom: clamp(28px, 4vw, 44px); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  flex: none; display: grid; place-items: center;
  --box: clamp(56px, 6.5vw, 88px);
  height: var(--box); padding: 0 clamp(26px, 4vw, 56px);
}
/* todos os logos viram brancos, independente da cor original */
.marquee__item img { height: calc(var(--box) * var(--k, .6)); width: auto; max-width: none; object-fit: contain; filter: brightness(0) invert(1); opacity: .62; transition: opacity .4s; }
.marquee__item:hover img { opacity: 1; }

/* ==========================================================================
   3. MANIFESTO
   ========================================================================== */
.manifesto { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(28px, 4vw, 48px); }
.manifesto__title { font-size: clamp(4rem, 15.5vw, 16rem); line-height: .94; }
.manifesto__title .w { display: inline-block; opacity: .13; transition: opacity .5s ease, color .5s ease; }
.manifesto__title .w.is-lit { opacity: 1; }
.manifesto__sub {
  display: flex; flex-wrap: wrap; gap: .4em;
  font-size: clamp(1.05rem, 2.2vw, 1.9rem); font-weight: 300; color: var(--ink-2); letter-spacing: .02em;
}

/* ==========================================================================
   4. SHOWREEL
   ========================================================================== */
/* showreel ocupa a tela inteira do navegador (largura total; no desktop, altura da janela) */
.showreel { padding-top: 0; padding-left: 0; padding-right: 0; }
.showreel .section__head { padding-inline: var(--side); }
.player { position: relative; aspect-ratio: 16 / 9; width: 100%; background: var(--bg-deep); overflow: hidden; container-type: size; }
@media (min-width: 900px) and (orientation: landscape) {
  .player { aspect-ratio: auto; height: 100vh; height: 100svh; min-height: 520px; }
}
.player:fullscreen { aspect-ratio: auto; background: #000; }

/* capa */
.player__facade { position: absolute; inset: 0; z-index: 2; width: 100%; display: block; }
.player__facade img {
  width: 100%; height: 100%; object-fit: cover; filter: saturate(.9) brightness(.72); transform: scale(1.02);
  transition: opacity 1.2s ease, transform 1.2s var(--ease), filter .8s var(--ease);
}
.player__facade:hover img { transform: scale(1.06); filter: saturate(1) brightness(.85); }
.player.is-previewing .player__facade img { opacity: 0; }
/* leve escurecimento para o botão se destacar sobre qualquer cena */
.player__facade::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 50%, rgba(1, 30, 36, .35), transparent 70%); }

/* botão: retângulo arredondado + ícone + texto, com pulso suave */
.player__play {
  position: absolute; left: 50%; top: 50%; z-index: 1; translate: -50% -50%;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 26px 10px 10px; border-radius: var(--r-play);
  background: var(--accent); color: var(--bg);
  font-size: clamp(12px, 1vw, 14px); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
  transition: transform .6s var(--ease), padding .6s var(--ease), gap .6s var(--ease);
}
.player__play::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1.5px solid var(--accent);
  animation: pulse 2.6s var(--ease) infinite;
}
.player__icon {
  width: clamp(40px, 3.4vw, 48px); aspect-ratio: 1; border-radius: calc(var(--r-play) - 5px); flex: none;
  display: grid; place-items: center; background: var(--bg); color: var(--accent);
  transition: transform .6s var(--ease);
}
.player__icon svg { width: 42%; height: 42%; fill: currentColor; transform: translateX(8%); /* compensa o peso visual do triângulo */ }
.player__facade:hover .player__play { transform: scale(1.04); gap: 18px; padding-right: 30px; }
.player__facade:hover .player__icon { transform: rotate(-8deg) scale(1.06); }

/* vídeo completo (após o clique) */
.player__full { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }
.player.is-playing .player__facade, .player.is-playing .viewfinder, .player.is-playing .player__hint { display: none; }

/* prévia muda: preenche o player (sem faixas pretas) e o zoom esconde a interface do YouTube */
.player__preview { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity 1.2s ease; }
.player__preview video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player.is-previewing .player__preview { opacity: 1; }

.player__hint {
  position: absolute; left: clamp(28px, 3vw, 48px); top: clamp(26px, 3vw, 44px); z-index: 3;
  display: inline-flex; align-items: center; gap: 10px; pointer-events: none;
  font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .85);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
  opacity: 0; transition: opacity .8s ease .4s;
}
.player__hint svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.player.is-previewing .player__hint { opacity: 1; }
@media (max-width: 600px) { .player__hint { display: none; } .player__play { padding-right: 18px; gap: 10px; } }

/* ==========================================================================
   5. IMPACTO
   ========================================================================== */
.impact { display: grid; gap: clamp(28px, 4vw, 56px); }
.impact__title { font-size: clamp(3rem, 9.5vw, 10rem); max-width: 14ch; }
.impact__text {
  justify-self: end; max-width: 26ch;
  font-size: clamp(1.4rem, 3.2vw, 3rem); font-weight: 300; line-height: 1.18; letter-spacing: -.01em;
}
.impact__text em { color: var(--accent); font-weight: 400; }

/* ==========================================================================
   6. SERVIÇOS
   ========================================================================== */
.services .label { margin-bottom: clamp(28px, 4vw, 56px); }
.services__list { border-bottom: 1px solid var(--line); counter-reset: svc; }
.service {
  display: grid; grid-template-columns: 3.5rem 1fr; align-items: baseline; column-gap: 12px; row-gap: 10px;
  padding: clamp(20px, 2.6vw, 34px) 0; border-top: 1px solid var(--line);
  transition: opacity .5s var(--ease);
}
.service__num { font-size: 12px; font-weight: 500; letter-spacing: .12em; color: var(--accent); }
.service__name { font-size: clamp(2.5rem, 7vw, 7rem); transition: transform .6s var(--ease), color .4s; }
.service__desc { grid-column: 2; color: var(--ink-2); max-width: 38ch; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.5; }
.service__arrow { display: none; }

@media (min-width: 900px) {
  .service { grid-template-columns: 4.5rem 1fr minmax(240px, 30%) 40px; align-items: center; column-gap: 24px; }
  .service__desc { grid-column: 3; }
  .service__arrow {
    display: block; width: 28px; height: 28px; justify-self: end;
    fill: none; stroke: var(--ink-2); stroke-width: 1.4;
    transition: transform .6s var(--ease), stroke .4s;
  }
}
@media (hover: hover) and (pointer: fine) {
  .services__list:hover .service:not(:hover) { opacity: .32; }
  .service:hover .service__name { transform: translateX(clamp(8px, 1.5vw, 24px)); color: var(--accent); }
  .service:hover .service__arrow { transform: rotate(-45deg); stroke: var(--accent); }
}

/* vídeo que segue o cursor */
.services__preview {
  position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
  width: clamp(260px, 24vw, 400px); aspect-ratio: 16 / 10; border-radius: var(--r-media); overflow: hidden;
  clip-path: inset(50% 50% 50% 50%);
  transition: clip-path .6s var(--ease);
  will-change: transform;
  background: var(--bg-2);
}
.services__preview.is-on { clip-path: inset(0 0 0 0); }
.services__preview .media { position: absolute; inset: 0; opacity: 0; transition: opacity .35s ease; }
.services__preview .media.is-active { opacity: 1; }
@media (hover: none), (pointer: coarse) { .services__preview { display: none; } }

/* ==========================================================================
   7. REELS
   ========================================================================== */
.reels { overflow: hidden; }
.reels__head { display: grid; gap: clamp(20px, 3vw, 40px); margin-bottom: clamp(40px, 6vw, 88px); }
.reels__count { display: flex; align-items: flex-end; flex-wrap: wrap; gap: clamp(12px, 2vw, 32px); }
.reels__num { font-size: clamp(7rem, 26vw, 24rem); line-height: .78; color: var(--accent); font-variant-numeric: tabular-nums; }
.reels__copy { padding-bottom: .5em; display: grid; gap: clamp(10px, 1.2vw, 16px); }
.reels__text { font-size: clamp(1.3rem, 2.8vw, 2.6rem); font-weight: 300; line-height: 1.12; }
.reels__sub { font-size: clamp(14px, 1.1vw, 16px); color: var(--ink-2); max-width: 34ch; line-height: 1.5; }

.reels__wall { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
.reels__wall::-webkit-scrollbar { display: none; }
.reels__col { display: contents; }
.reel {
  flex: none; width: min(62vw, 300px); aspect-ratio: 9 / 16; border-radius: var(--r-media);
  scroll-snap-align: center; border: 1px solid var(--line);
}
@media (min-width: 900px) {
  .reels__wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 24px); overflow: visible; margin: 0; padding: 0; }
  .reels__col { display: flex; flex-direction: column; gap: clamp(14px, 1.6vw, 24px); will-change: transform; }
  .reels__col:nth-child(even) { margin-top: clamp(60px, 9vw, 150px); }
  .reel { width: 100%; }
}

/* ==========================================================================
   8. SOBRE
   ========================================================================== */
.about { display: grid; gap: clamp(36px, 5vw, 80px); align-items: center; }
.about__photo { aspect-ratio: 4 / 5; border-radius: var(--r-media); max-width: 520px; width: 100%; }
.about__body { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.about__title { font-size: clamp(4rem, 12vw, 11rem); display: flex; flex-wrap: wrap; column-gap: .25em; }
.about__text { display: grid; gap: 1em; max-width: 54ch; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; }
.about__text em { color: var(--ink); }
.about__sign { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.about__sign a { color: var(--accent); border-bottom: 1px solid currentColor; }
@media (min-width: 900px) {
  .about { grid-template-columns: 5fr 7fr; }
}

/* ==========================================================================
   9. BASTIDORES
   ========================================================================== */
.gallery__title { font-size: clamp(3rem, 8vw, 8rem); margin-bottom: clamp(36px, 5vw, 72px); max-width: 12ch; }
/* mosaico: verticais (4:5) e horizontais (16:9, classe .is-wide) */
.gallery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; grid-auto-flow: dense; }
.gallery__item { border-radius: var(--r-media); aspect-ratio: 4 / 5; }
.gallery__item.is-wide { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (max-width: 899px) { .gallery__item.is-orphan { grid-column: span 2; aspect-ratio: 4 / 3; } }
.about__photo img { object-position: 50% 20%; }
.gallery__item img { position: absolute; inset: 0; transition: transform 1.4s var(--ease); }
.gallery__item:hover img { transform: scale(1.04); }
@media (min-width: 900px) {
  /* 12 colunas: vertical ocupa 4, horizontal ocupa 8 e acompanha a altura da vertical ao lado */
  .gallery__grid { grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.4vw, 20px); }
  .gallery__item { grid-column: span 4; }
  .gallery__item.is-wide { grid-column: span 8; aspect-ratio: auto; }
}

/* ==========================================================================
   10. DEPOIMENTOS
   ========================================================================== */
.testimonials .label { margin-bottom: clamp(28px, 4vw, 56px); }
.testimonials__list { display: grid; gap: clamp(20px, 3vw, 40px); }
@media (min-width: 900px) { .testimonials__list { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); } }
.quote { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--r-media); display: grid; gap: 24px; align-content: space-between; }
.quote blockquote { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.6rem); font-weight: 300; line-height: 1.35; }
.quote blockquote::before { content: "“"; display: block; font-family: var(--f-display); font-size: 4em; line-height: .6; color: var(--accent); }
.quote figcaption { font-size: 13px; letter-spacing: .06em; color: var(--ink-2); }
.quote figcaption b { display: block; color: var(--ink); font-weight: 500; }

/* ==========================================================================
   11. CTA
   ========================================================================== */
.cta { text-align: center; display: grid; gap: clamp(28px, 4vw, 52px); justify-items: center; }
.cta__title { font-size: clamp(3.2rem, 10vw, 11rem); max-width: 13ch; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ==========================================================================
   12. RODAPÉ
   ========================================================================== */
.footer {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-deep), #011f26);
  padding: clamp(56px, 7vw, 96px) var(--side) 0;
  border-top: 1px solid var(--line);
}
.footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col .label { margin-bottom: 6px; }
.footer__link, .footer__text, #footerSocial a { font-size: 15px; color: var(--ink); width: fit-content; }
.footer__link, #footerSocial a { position: relative; }
.footer__link::after, #footerSocial a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.footer__link:hover::after, #footerSocial a:hover::after { transform: scaleX(1); transform-origin: left; }
#footerSocial { display: grid; gap: 10px; }
#footerSocial a small { color: var(--ink-3); margin-left: 6px; font-size: 12px; }
.footer__text { display: grid; gap: 4px; color: var(--ink-2); }

/* claquete */
.footer__slate {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-media); overflow: hidden; position: relative;
  padding-top: 14px;
}
.footer__slate::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px;
  background: repeating-linear-gradient(-55deg, rgba(255,255,255,.85) 0 14px, transparent 14px 28px);
  opacity: .9;
}
.footer__slate div { padding: 12px 14px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.footer__slate div:nth-child(odd) { border-right: 1px solid var(--line); }
.footer__slate small { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.footer__slate b { font-family: var(--f-display); font-weight: 400; font-size: 20px; text-transform: uppercase; letter-spacing: .02em; }

@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr 1.3fr; }
  .footer__slate { grid-column: auto; }
}

.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  margin-top: clamp(48px, 6vw, 80px); padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-3); letter-spacing: .04em;
}
.footer__top:hover { color: var(--accent); }
.footer__motto {
  font-size: clamp(4.5rem, 19vw, 24rem); line-height: .78; white-space: nowrap;
  /* centraliza pelo meio da página mesmo quando é mais largo que o limite de 1440px */
  width: max-content; position: relative; left: 50%; transform: translateX(-50%);
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14);
  margin: clamp(40px, 5vw, 96px) 0 -.1em; /* respiro para o acento do É */
  user-select: none; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,0) 85%);
  -webkit-background-clip: text; background-clip: text;
}

/* ==========================================================================
   WhatsApp flutuante
   ========================================================================== */
.wa-fab {
  position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--bg);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transform: translateY(140%) scale(.8); opacity: 0;
  transition: transform .6s var(--ease), opacity .4s;
}
.wa-fab svg { width: 26px; height: 26px; fill: currentColor; }
.wa-fab.is-visible { transform: none; opacity: 1; }
.wa-fab:hover { transform: scale(1.08); }

/* ==========================================================================
   Revelação no scroll
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes focusIn { from { filter: blur(22px); transform: scale(1.12); opacity: 0; } 30% { opacity: 1; } to { filter: blur(0); transform: scale(1); opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes drip { from { transform: translateY(-14px); } to { transform: translateY(30px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes drift { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@keyframes pulse { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.18, 1.45); } }
@keyframes defocus { to { filter: blur(12px); opacity: 0; transform: translateY(-6vh) scale(.96); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .manifesto__title .w { opacity: 1; }
}

/* ==========================================================================
   Ajustes de celular
   ========================================================================== */
@media (max-width: 600px) {
  .hero__meta--right [data-i18n="heroLocation"] { display: none; }
  .manifesto { min-height: 80svh; }
  .manifesto__title { font-size: 21vw; }
  .impact__title { font-size: 15vw; }
  .cta__title { font-size: 15vw; }
  .service { grid-template-columns: 2.25rem 1fr; }
  .cta__actions { width: 100%; flex-direction: column; align-items: stretch; }
}

/* ==========================================================================
   Seções com foto de fundo (definidas em content.js → sectionBackgrounds)
   Foto dessaturada, escurecida e tingida de teal, com textura de película
   e bordas que se dissolvem no fundo do site.
   ========================================================================== */
.has-photo { isolation: isolate; overflow: hidden; }
.has-photo .about__text { color: rgba(255, 255, 255, .82); }
.pull-quote {
  margin-top: .4em; padding-left: 18px; border-left: 2px solid var(--accent);
  font-size: clamp(1.15rem, 1.7vw, 1.55rem); font-weight: 400; line-height: 1.35; color: var(--ink);
}
.has-photo::before,
.has-photo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image:
    linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, transparent 0%, #000 22%, #000 78%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
/* foto: tingida de teal (blend "color"), baixa saturação e exposição */
.has-photo::before {
  z-index: -2;
  background:
    linear-gradient(rgba(1, 57, 68, .9), rgba(1, 57, 68, .9)),
    var(--photo, none) center / cover no-repeat;
  background-blend-mode: color, normal;
  filter: saturate(.5) brightness(.36) contrast(1.1);
  opacity: 0; transition: opacity 1.4s ease;
}
.has-photo.photo-ready::before { opacity: 1; }
/* textura: grão + linhas finas de scan + escurecimento no centro para leitura */
.has-photo::after {
  z-index: -1;
  background:
    radial-gradient(75% 65% at 50% 50%, rgba(1, 40, 48, .55), transparent 75%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .8;
}

/* ==========================================================================
   "Dê play na sua próxima história" — passeio automático pelas seções
   ========================================================================== */
.tour-btn {
  position: relative; margin-top: clamp(22px, 3.2vh, 40px);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 22px 8px 8px; border-radius: var(--r-play);
  background: rgba(1, 44, 53, .5); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--ink); font-size: clamp(11px, .95vw, 13px); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  animation: rise 1.6s var(--ease) 1s both;
  transition: background-color .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), transform .45s var(--ease);
}
.tour-btn::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--accent);
  animation: pulse 2.8s var(--ease) 2.4s infinite; opacity: 0;
}
.tour-btn__icon {
  width: 36px; aspect-ratio: 1; border-radius: calc(var(--r-play) - 5px); display: grid; place-items: center; flex: none;
  background: var(--accent); color: var(--bg); transition: background-color .45s, color .45s, transform .45s var(--ease);
}
.tour-btn__icon svg { width: 40%; height: 40%; fill: currentColor; transform: translateX(8%); }
.tour-btn:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); transform: translateY(-2px); }
.tour-btn:hover .tour-btn__icon { background: var(--bg); color: var(--accent); transform: rotate(-8deg); }
body.is-touring .tour-btn { visibility: hidden; }

/* REC fica vermelho durante a reprodução */
body.is-touring .rec i, .tour__rec i { background: #ff3b30; animation-duration: .8s; }

.tour {
  position: fixed; z-index: 70; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  width: min(760px, calc(100% - 32px));
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: clamp(12px, 1.6vw, 22px);
  padding: 12px 12px 12px 18px; border-radius: var(--r-play);
  background: rgba(1, 36, 44, .78); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  transform: translate(-50%, 140%); opacity: 0;
  transition: transform .7s var(--ease), opacity .5s ease;
}
.tour[hidden] { display: none; }
.tour.is-on { transform: translate(-50%, 0); opacity: 1; }
.tour__rec { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; letter-spacing: .16em; }
.tour__rec i { width: 8px; height: 8px; border-radius: 50%; animation: blink .8s steps(2, jump-none) infinite; }
.tour__info { display: grid; gap: 8px; min-width: 0; }
.tour__scene { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour__scene b { color: var(--accent); font-weight: 600; margin-right: 6px; }
.tour__track { position: relative; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); }
.tour__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--accent); }
.tour__ticks { position: absolute; inset: -3px 0; }
.tour__ticks i { position: absolute; top: 0; width: 1px; height: 9px; background: rgba(255, 255, 255, .28); }
.tour__tc { font-size: 12px; font-weight: 500; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.tour__stop {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-action);
  background: rgba(255, 255, 255, .08); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: background-color .3s, color .3s;
}
.tour__stop svg { width: 14px; height: 14px; fill: currentColor; }
.tour__stop:hover { background: var(--accent); color: var(--bg); }
body.is-touring .wa-fab { opacity: 0; pointer-events: none; }
@media (max-width: 600px) {
  .tour { grid-template-columns: 1fr auto; padding: 10px 10px 10px 14px; }
  .tour__rec, .tour__tc { display: none; }
  .tour__stop span { display: none; }
}

/* final: holofote nos botões de contato */
.cta__actions.is-spotlight .btn--accent { animation: spotlight 1.2s var(--ease) 3; }
@keyframes spotlight { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 93, 0); } 50% { box-shadow: 0 0 0 14px rgba(255, 255, 93, .18); } }

/* ==========================================================================
   Reels no celular: 3 faixas em movimento contínuo
   ========================================================================== */
.reels__wall.is-rows {
  display: grid; gap: 10px; overflow: hidden; scroll-snap-type: none;
  margin: 0 calc(var(--gutter) * -1); padding: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.reels__row { overflow: hidden; }
.reels__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.reels__row:nth-child(2) .reels__track { animation-direction: reverse; animation-duration: 44s; }
.reels__row:nth-child(3) .reels__track { animation-duration: 41s; }
.reels__track .reel { flex: none; width: 31vw; max-width: 210px; margin-right: 10px; border-radius: var(--r-media); scroll-snap-align: none; }
@media (prefers-reduced-motion: reduce) {
  .reels__track { animation: none; }
  .reels__row { overflow-x: auto; }
}

/* textos maiores na seção de reels no celular */
@media (max-width: 600px) {
  .reels__head { margin-bottom: 32px; }
  .reels__count { gap: 12px 16px; }
  .reels__num { font-size: 44vw; }
  .reels__text { font-size: 7.6vw; line-height: 1.08; }
  .reels__sub { font-size: 15px; }
}

/* barra do "Dê play": sempre acima de tudo (inclusive vídeos) e da área de gestos */
.tour { z-index: 95; bottom: calc(14px + env(safe-area-inset-bottom)); will-change: transform; }

/* ==========================================================================
   Formulário de contato (CTA)
   ========================================================================== */
.cta__or {
  display: flex; align-items: center; gap: 16px; width: min(720px, 100%);
  font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
}
.cta__or::before, .cta__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.contact-form {
  width: min(720px, 100%); text-align: left;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 28px) clamp(16px, 2.4vw, 32px);
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; padding: 10px 0 12px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .28); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 17px/1.4 var(--f-body);
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field input.is-invalid, .field textarea.is-invalid { border-bottom-color: #ff7a6b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 6px; }
.contact-form__status { font-size: 14px; color: var(--ink-2); min-height: 1.4em; flex: 1 1 240px; }
.contact-form__status[data-kind="ok"] { color: var(--accent); }
.contact-form__status[data-kind="error"] { color: #ff9c90; }
.contact-form button[disabled] { opacity: .6; pointer-events: none; }
@media (max-width: 600px) {
  .contact-form { grid-template-columns: 1fr; }
  .contact-form__foot .btn { width: 100%; }
}

/* ==========================================================================
   Acessibilidade: link "pular para o conteúdo" (aparece só ao navegar com Tab)
   ========================================================================== */
.skip-link {
  position: fixed; z-index: 100; left: 16px; top: 16px;
  padding: 12px 18px; border-radius: var(--r-action);
  background: var(--accent); color: var(--bg); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }
#manifesto { scroll-margin-top: 80px; }

/* ==========================================================================
   Serviços no celular: miniatura em vídeo abaixo do texto
   ========================================================================== */
.service__media { grid-column: 2; aspect-ratio: 16 / 9; border-radius: var(--r-media); margin-top: 6px; }
@media (min-width: 900px) { .service__media { display: none; } }

/* ==========================================================================
   Clientes no celular: grade estática (4 + 3), sem loop
   (o movimento fica só nos reels)
   ========================================================================== */
@media (max-width: 767px) {
  .clients .marquee { -webkit-mask-image: none; mask-image: none; padding: 0 var(--gutter); }
  .clients .marquee__track {
    animation: none; width: 100%;
    display: flex; flex-wrap: wrap; justify-content: center; row-gap: 22px;
  }
  .clients .marquee__item { width: 25%; padding: 0 6px; --box: 52px; }
  .clients .marquee__item.is-dup { display: none; }
  .clients .marquee__item img { max-width: 100%; }
}

/* ==========================================================================
   Tela de carregamento (aguarda o vídeo do topo; sobe como uma cortina)
   ========================================================================== */
.loader { display: none; }
.is-loading .loader, .loader.is-leaving {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(80% 60% at 50% 45%, var(--bg), var(--bg-deep) 70%, #011f26);
  clip-path: inset(0 0 0 0);
}
.loader.is-leaving { clip-path: inset(0 0 100% 0); transition: clip-path .9s var(--ease-in-out); }
.loader__inner { display: grid; justify-items: center; gap: 22px; width: min(260px, 70vw); }
.loader__inner img { width: 76px; height: auto; animation: fade .8s ease both; }
.loader__bar { width: 100%; height: 2px; background: rgba(255, 255, 255, .14); border-radius: 2px; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.loader__meta {
  width: 100%; display: flex; justify-content: space-between;
  font-size: 11px; font-weight: 500; letter-spacing: .16em; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.loader__rec { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.loader__rec i { width: 7px; height: 7px; border-radius: 50%; background: #ff3b30; animation: blink 1s steps(2, jump-none) infinite; }

/* enquanto carrega, as animações de entrada do topo esperam (começam quando a cortina sobe) */
.is-loading .hero__media, .is-loading .hero__logo img, .is-loading .tour-btn, .is-loading .hero__meta { animation-play-state: paused; }

/* logos no celular: onda de reflexo amarelo + leve pulso, um logo de cada vez */
.logo { position: relative; display: inline-flex; }
@media (max-width: 767px) {
  .clients .logo { animation: logoPulse 6s cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: calc(var(--i) * .3s); }
  .clients .logo::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 32%, var(--accent) 50%, transparent 68%) no-repeat;
    background-size: 300% 100%; background-position: 150% 0;
    -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat;
    animation: logoShine 6s cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: calc(var(--i) * .3s);
  }
}
@keyframes logoShine { 0% { background-position: 150% 0; } 34%, 100% { background-position: -50% 0; } }
@keyframes logoPulse { 0%, 34%, 100% { transform: scale(1); } 17% { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .clients .logo, .clients .logo::after { animation: none; } }

/* "Quem está por trás" no celular: rótulo e título acima da foto, texto abaixo */
@media (max-width: 899px) {
  .about { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .about__body { display: contents; }
  .about__body > .label { order: 1; }
  .about__title { order: 2; margin-bottom: 6px; }
  .about__photo { order: 3; max-width: none; }
  .about__text { order: 4; margin-top: 10px; }
  .about__sign { order: 5; }
}
