/* ============================================================
   DUZZI IA STUDIO
   Neo-Brutalista Cinematografico
   ============================================================ */

/* ---------- FONTS ---------- */
/* ---------- Google Fonts hospedadas localmente (latin + latin-ext) ---------- */
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(FONTS/Archivo-400i-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: italic;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(FONTS/Archivo-400i-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(FONTS/Archivo-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url(FONTS/Archivo-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(FONTS/Archivo-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url(FONTS/Archivo-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(FONTS/Archivo-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url(FONTS/Archivo-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(FONTS/JetBrainsMono-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(FONTS/JetBrainsMono-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(FONTS/JetBrainsMono-500-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(FONTS/JetBrainsMono-500-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(FONTS/PlayfairDisplay-400i-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(FONTS/PlayfairDisplay-400i-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(FONTS/PlayfairDisplay-400-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(FONTS/PlayfairDisplay-400-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(FONTS/PlayfairDisplay-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(FONTS/PlayfairDisplay-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'HeadingNow';
  src: url('TIPOGRAPHY/HeadingNow-54Regular.woff2') format('woff2'),
       url('TIPOGRAPHY/HeadingNow-54Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HeadingNow';
  src: url('TIPOGRAPHY/HeadingNow-26Bold.woff2') format('woff2'),
       url('TIPOGRAPHY/HeadingNow-26Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HeadingNow';
  src: url('TIPOGRAPHY/HeadingNow-88Heavy.woff2') format('woff2'),
       url('TIPOGRAPHY/HeadingNow-88Heavy.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HeadingNow Wide';
  src: url('TIPOGRAPHY/HeadingNow-74Regular.woff2') format('woff2'),
       url('TIPOGRAPHY/HeadingNow-74Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'HeadingNow Heavy';
  src: url('TIPOGRAPHY/HeadingNow-58Heavy.woff2') format('woff2'),
       url('TIPOGRAPHY/HeadingNow-58Heavy.otf') format('opentype');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- PALETTE ---------- */
:root {
  --black: #0a0a0a;
  --black-warm: #0e0c0a;
  --black-soft: #141210;
  --red: #c40f1a;
  --red-deep: #8a0a12;
  --red-glow: rgba(196, 15, 26, 0.18);
  --cream: #f2efe9;
  --cream-muted: #d6d0c4;
  --cream-dim: #a09888;
  --white: #ffffff;
  --line: rgba(242, 239, 233, 0.10);
  --line-strong: rgba(242, 239, 233, 0.18);
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
  --display: "HeadingNow", "Anton", sans-serif;
  --display-wide: "HeadingNow Wide", "HeadingNow", sans-serif;
  --display-heavy: "HeadingNow Heavy", "HeadingNow", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--red); color: var(--white); }
p, h1, h2, h3 { text-wrap: pretty; }
.case-section-title, .case-hero-title, .section-title, .manifesto-statement p { text-wrap: balance; }

/* ---------- GRAIN ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- CRT FLICKER ---------- */
.crt-flicker {
  position: fixed;
  inset: 0;
  z-index: 9996;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.012);
  animation: crtFlicker 0.3s infinite;
}
@keyframes crtFlicker {
  0%, 100% { opacity: 0.01; }
  50% { opacity: 0.02; }
}

/* ---------- CURSOR ---------- */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(196, 15, 26, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
}

/* ---------- CURSOR PLATE ---------- */
.cursor-plate {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  border: 1px solid var(--line);
  background: var(--black-warm);
  z-index: 10001;
  pointer-events: none;
  display: none;
  overflow: hidden;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.6);
  will-change: transform;
}
.cursor-plate.visible { display: block; }
.cursor-plate-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.cursor-plate-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.78) saturate(0.74);
}
.cursor-plate-media::before,
.cursor-plate-media::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 1px solid var(--red);
  opacity: 0;
  z-index: 2;
  transition: opacity 0.4s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cursor-plate-media::before {
  border-bottom: none;
  border-right: none;
  top: 12px;
  left: 12px;
  transform: translate(-12px, -12px);
}
.cursor-plate-media::after {
  border-top: none;
  border-left: none;
  bottom: 12px;
  right: 12px;
  transform: translate(12px, 12px);
}
.cursor-plate.visible .cursor-plate-media::before,
.cursor-plate.visible .cursor-plate-media::after {
  opacity: 1;
  transform: translate(0, 0);
}
.cursor-plate-body {
  border-top: 1px solid var(--line);
  padding: 14px 16px;
}
.cursor-plate-meta {
  display: flex;
  justify-content: space-between;
  font: 500 10px var(--mono);
  color: var(--cream-dim);
  letter-spacing: 0.14em;
}
.cursor-plate-title {
  font: 400 22px / 1 var(--display-heavy);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-top: 8px;
}
.cursor-plate-tag {
  font: 500 9px var(--mono);
  color: var(--red);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 8px;
}
.cursor.hover { width: 40px; height: 40px; background: transparent; border: 1px solid var(--red); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: var(--black);
}

/* Background video */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) saturate(0.6);
}

/* Vignette */
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    /* base uniforme: a montagem tem planos de fundo branco e toda a UI do hero
       (menu, barra REC, timecode) fica ilegível sem este piso */
    linear-gradient(rgba(10, 10, 10, 0.34), rgba(10, 10, 10, 0.34)),
    /* Sem rampa nenhuma: qualquer degradê forte o bastante para dar contraste
       vira faixa visível sobre planos de fundo uniforme. A legibilidade vem do
       halo aplicado ao próprio texto, que não toca na imagem. */
    linear-gradient(rgba(10, 10, 10, 0.06), rgba(10, 10, 10, 0.06));
}

/* Scanlines */
.hero-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
  opacity: 0.5;
}

/* Chromatic aberration — subtle edge shift */
.hero-chromatic {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(90deg,
      rgba(196, 15, 26, 0.04) 0%,
      transparent 8%,
      transparent 92%,
      rgba(30, 60, 120, 0.04) 100%);
  mix-blend-mode: screen;
}

/* Frame lines */
.hero-frame {
  position: absolute;
  inset: 24px;
  pointer-events: none;
  z-index: 2;
}
.frame-line {
  position: absolute;
  background: var(--line-strong);
}
.frame-line.top    { top: 0; left: 0; right: 0; height: 1px; }
.frame-line.right  { top: 0; right: 0; bottom: 0; width: 1px; }
.frame-line.bottom { bottom: 0; left: 0; right: 0; height: 1px; }
.frame-line.left   { top: 0; left: 0; bottom: 0; width: 1px; }

.frame-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--red);
  opacity: 0.5;
}
.frame-corner.tl { top: 0; left: 0; border-top: 1px solid; border-left: 1px solid; }
.frame-corner.tr { top: 0; right: 0; border-top: 1px solid; border-right: 1px solid; }
.frame-corner.bl { bottom: 0; left: 0; border-bottom: 1px solid; border-left: 1px solid; }
.frame-corner.br { bottom: 0; right: 0; border-bottom: 1px solid; border-right: 1px solid; }

/* Top bar */
.hero-top-bar {
  position: absolute;
  top: 40px;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}
.hero-rec {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 500 11px var(--mono);
  color: var(--red);
  letter-spacing: 0.16em;
}
.rec-dot {
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
  animation: recpulse 1.4s infinite;
}
@keyframes recpulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}
.hero-timecode {
  font: 500 11px var(--mono);
  color: var(--cream-dim);
  letter-spacing: 0.08em;
}

.hero-brand {
  height: 28px;
  width: auto;
  opacity: 0.85;
}

/* Nav — vertical left sidebar, fixed */
.hero-nav {
  position: fixed;
  bottom: 40px;
  left: 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 500;
  padding-left: 14px;
  border-left: 1px solid rgba(196, 15, 26, 0.2);
  animation: navPulse 3s ease-in-out infinite;
}
@keyframes navPulse {
  0%, 100% { border-left-color: rgba(196, 15, 26, 0.15); }
  50% { border-left-color: rgba(196, 15, 26, 0.5); }
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
  transition: opacity 0.3s, transform 0.3s;
  opacity: 0.55;
}
.nav-item:hover,
.nav-item.active {
  opacity: 1;
  transform: translateX(6px);
}

.nav-num {
  font: 500 10px var(--mono);
  color: var(--red);
  letter-spacing: 0.08em;
  min-width: 18px;
  opacity: 0.7;
  transition: opacity 0.3s, text-shadow 0.3s;
}
.nav-item:hover .nav-num,
.nav-item.active .nav-num {
  opacity: 1;
  text-shadow: 0 0 8px rgba(196, 15, 26, 0.6);
}

.nav-label {
  font: 500 10px var(--mono);
  color: var(--cream);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-cta .nav-label { color: var(--red); }
.nav-cta {
  opacity: 0.7;
  animation: navCtaPulse 2.5s ease-in-out infinite;
}
@keyframes navCtaPulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.hero-langs {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--cream-dim);
}
.hero-langs span {
  cursor: pointer;
  transition: color 0.3s;
  font: 500 10px var(--mono);
}
.hero-langs span:hover { color: var(--cream); }
.hero-langs .active { color: var(--red); }

/* Switcher de idioma — visível apenas no mobile (o menu lateral some) */
.hero-langs-mobile { display: none; }
@media (max-width: 1023px) {
  .hero-langs-mobile {
    display: flex;
    position: fixed;
    top: 52px;
    right: 20px;
    gap: 12px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    z-index: 600;
  }
}

/* Body */
.hero-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  padding: 0 80px;
  position: relative;
  z-index: 3;
}

/* O hero é uma montagem com planos claros (traço preto sobre branco): em ~46%
   dos quadros o texto creme perderia contraste. Duas camadas resolvem sem
   achatar os planos escuros, que já estão corretos.
   1) véu radial atrás do bloco, forte no centro e nulo nas bordas.
   2) halo no próprio texto — sombra preta, invisível sobre fundo escuro,
      recorta as letras quando o fundo é claro. */
.hero-body::before {
  content: '';
  display: none; /* rampa removida — a legibilidade fica por conta do halo */
  position: absolute;
  left: 50%;
  top: 50%;
  width: 165%;
  height: 150%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  /* Muitas paradas suavizadas: com poucas, a queda de alpha vira uma borda
     visível sobre os planos escuros. */
  background: radial-gradient(ellipse 58% 54% at 50% 48%,
    rgba(6, 6, 6, 0.76) 0%,
    rgba(6, 6, 6, 0.745) 16%,
    rgba(6, 6, 6, 0.71) 30%,
    rgba(6, 6, 6, 0.655) 41%,
    rgba(6, 6, 6, 0.575) 51%,
    rgba(6, 6, 6, 0.48) 60%,
    rgba(6, 6, 6, 0.375) 68%,
    rgba(6, 6, 6, 0.27) 76%,
    rgba(6, 6, 6, 0.175) 83%,
    rgba(6, 6, 6, 0.10) 89%,
    rgba(6, 6, 6, 0.045) 94%,
    rgba(6, 6, 6, 0.012) 97.5%,
    rgba(6, 6, 6, 0) 100%);
}
.hero-body > * {
  position: relative;
  z-index: 1;
}

.hero-wordmark {
  text-align: center;
}
.hero-wordmark .word {
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.8;
  text-shadow:
    0 0 30px rgba(0, 0, 0, 0.78),
    0 0 12px rgba(0, 0, 0, 0.66),
    0 1px 2px rgba(0, 0, 0, 0.55);
}
.hero-copy-red {
  text-shadow:
    0 0 22px rgba(0, 0, 0, 0.9),
    0 0 9px rgba(0, 0, 0, 0.85),
    0 0 3px rgba(0, 0, 0, 0.8);
}
/* halo na UI do hero: nulo sobre plano escuro, recorta sobre plano claro */
.hero-nav .nav-item,
.hero-langs span,
.hero-top-bar,
.hero-top-bar *,
.hero-cta,
.hero-meta,
.hero-meta * {
  text-shadow:
    0 0 16px rgba(0, 0, 0, 0.95),
    0 0 7px rgba(0, 0, 0, 0.9),
    0 0 3px rgba(0, 0, 0, 0.85),
    0 1px 1px rgba(0, 0, 0, 0.8);
}
.hero-wordmark .line1 { font-size: clamp(48px, 5.5vw, 72px); color: var(--cream); }
.hero-wordmark .line2 { font-size: clamp(48px, 5.5vw, 74px); color: var(--red); }
.hero-wordmark .line3 { font-size: clamp(24px, 3.5vw, 48px); color: var(--cream); line-height: 0.85; }
.hero-wordmark .dot { color: var(--red); }

.hero-copy-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-copy {
  font-family: var(--display);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--cream-muted);
  max-width: 520px;
  text-align: center;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-copy-sub {
  display: block;
  font-size: 12px;
  line-height: 1.55;
  letter-spacing: 0.08em;
  max-width: 480px;
  margin: 10px auto 0;
  text-wrap: balance;
}
.hero-copy-red {
  display: block;
  color: var(--red);
  font-size: 1.95em;
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 4px;
  white-space: nowrap;
}
/* no desktop a frase cabe em uma linha — a quebra fica desativada */
.hero-copy-red .brk { display: none; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 12px var(--sans);
  letter-spacing: 0.14em;
  color: var(--red);
  transition: gap 0.3s, color 0.3s;
}
.hero-cta:hover { gap: 20px; color: var(--cream); }
.hero-cta .arrow { font-size: 16px; }

/* Bottom bar */
.hero-bottom-bar {
  position: absolute;
  bottom: 40px;
  left: 40px;
  right: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  z-index: 5;
}
.hero-spec {
  font: 500 11px var(--mono);
  color: var(--cream-dim);
  letter-spacing: 0.1em;
}
.hero-spec-sep {
  width: 4px;
  height: 4px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.5;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 140px 80px 140px 160px;
  border-top: 1px solid var(--line);
}
.section-dark { background: var(--black-warm); }

.section-head {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 40px;
  margin-bottom: 80px;
  align-items: start;
}

.section-num {
  font: 500 13px var(--mono);
  color: var(--red);
  letter-spacing: 0.1em;
  padding-top: 6px;
}

.section-title {
  font: 900 clamp(36px, 4.5vw, 56px) / 1.05 var(--display);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.section-title .dot { color: var(--red); }

.section-sub {
  font: 400 13px / 1.5 var(--mono);
  color: var(--cream-dim);
  letter-spacing: 0.08em;
  margin-top: 12px;
  max-width: 480px;
}

/* ---------- REGISTRY REEL ---------- */
.reel-card {
  position: relative;
  background: var(--black-soft);
}

.reel-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.reel-media > a {
  display: block;
  width: 100%;
  height: 100%;
}
.reel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), filter 0.7s;
  filter: grayscale(0.3) brightness(0.7);
}
.reel-card a:hover .reel-media img {
  transform: scale(1.04);
  filter: grayscale(0) brightness(0.9);
}

.reel-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.reel-card a:hover .reel-preview { opacity: 1; }

/* Poster tagline — topo do cartaz */
.reel-tagline {
  position: absolute;
  top: 28px;
  left: 28px;
  right: 28px;
  font: italic 400 13px var(--serif);
  color: var(--cream);
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.reel-card a:hover .reel-tagline { opacity: 1; }

/* Poster credits — base do cartaz */
.reel-poster-credits {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 28px 32px;
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.9));
  pointer-events: none;
}

.reel-title {
  font: 400 clamp(24px, 2.5vw, 36px) / 1.05 var(--display-heavy);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  transition: color 0.3s;
}
.reel-card a:hover .reel-title { color: var(--red); }

.reel-credits-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.reel-credits-block span {
  font: 500 9px var(--mono);
  color: var(--cream-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reel-code {
  position: absolute;
  top: 20px;
  right: 20px;
  font: 500 11px var(--mono);
  color: var(--red);
  letter-spacing: 0.14em;
  pointer-events: none;
}

/* ---------- MANIFESTO ---------- */
.manifesto-statement {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0 40px;
  text-align: center;
}
.manifesto-statement p {
  font: italic 400 clamp(40px, 6.4vw, 96px) / 1.08 var(--serif);
  color: var(--cream);
  letter-spacing: -0.01em;
}
.manifesto-statement em {
  display: inline-block;
  font-style: normal;
  color: var(--red);
  font-family: var(--display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

/* ---------- SERVIÇOS — row horizontal ---------- */
.services-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
}
.service-item {
  background: var(--black);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.4s;
  position: relative;
}
.service-item:hover { background: var(--red-deep); }

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--red);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-item:hover::before { opacity: 1; }

.service-num {
  font: 500 12px var(--mono);
  color: var(--red);
  letter-spacing: 0.14em;
}

.service-title {
  font: 400 clamp(20px, 2vw, 28px) / 1.05 var(--display-heavy);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
  transition: color 0.3s;
}
.service-item:hover .service-title { color: var(--white); }

.service-copy {
  font: 400 13px / 1.55 var(--sans);
  color: var(--cream-dim);
  transition: color 0.3s;
}
.service-item:hover .service-copy { color: var(--cream); }

.service-item-audio { cursor: pointer; }

/* ---------- PIPELINE ---------- */
.pipeline-intro {
  font: italic 400 18px / 1.7 var(--serif);
  color: var(--cream-muted);
  max-width: 520px;
  margin: 0 0 56px auto;
  text-align: left;
}

.phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
}

.phase {
  position: relative;
  background: var(--black);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: background 0.4s;
}
.phase:hover { background: var(--red-deep); }

.phase-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--black-soft);
}
.phase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) brightness(0.6);
  transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), filter 0.7s;
}
.phase:hover .phase-media img {
  transform: scale(1.05);
  filter: grayscale(0) brightness(0.9);
}

.phase-body {
  padding: 32px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phase-num {
  font: 500 12px var(--mono);
  color: var(--red);
  letter-spacing: 0.14em;
}

.phase-title {
  font: 400 clamp(22px, 2.2vw, 32px) / 1.05 var(--display-heavy);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.phase:hover .phase-title { color: var(--white); }

.phase-copy {
  font: 400 14px / 1.6 var(--sans);
  color: var(--cream-dim);
  transition: color 0.3s;
}
.phase:hover .phase-copy { color: var(--cream); }

.pipeline-status {
  margin-top: 40px;
  font: 500 12px var(--mono);
  color: var(--red);
  letter-spacing: 0.14em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}
.blink {
  width: 8px;
  height: 16px;
  background: var(--red);
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- PROOF ---------- */
.proof-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  max-width: 1024px;
  margin: 0 auto;
}

.proof-lead {
  font: italic 400 clamp(18px, 2.2vw, 24px) / 1.55 var(--serif);
  color: var(--cream-muted);
  margin-bottom: 32px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.proof-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 12px var(--sans);
  letter-spacing: 0.12em;
  color: var(--red);
  transition: gap 0.3s, color 0.3s;
  border: 1px solid var(--red);
  padding: 12px 24px;
  background: transparent;
}
.proof-cta:hover {
  gap: 20px;
  color: var(--black);
  background: var(--red);
}
.proof-cta .arrow { font-size: 16px; }

.proof-frame-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.fc {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: var(--red);
}
.fc.top-left     { top: 16px; left: 16px; border-top: 1px solid; border-left: 1px solid; }
.fc.top-right    { top: 16px; right: 16px; border-top: 1px solid; border-right: 1px solid; }
.fc.bottom-left  { bottom: 16px; left: 16px; border-bottom: 1px solid; border-left: 1px solid; }
.fc.bottom-right { bottom: 16px; right: 16px; border-bottom: 1px solid; border-right: 1px solid; }

/* ---------- DIRECTOR ---------- */
.director-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: rgba(10, 10, 10, 0.85);
  font: 500 10px var(--mono);
  color: var(--red);
  letter-spacing: 0.16em;
}

.director-lead {
  font: 400 16px / 1.7 var(--sans);
  color: var(--cream-muted);
  margin-bottom: 48px;
}

.director-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-bottom: 40px;
}
.stat {
  background: var(--black-soft);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num {
  font: 400 clamp(38px, 4vw, 46px) / 1 var(--display-heavy);
  color: var(--red);
  letter-spacing: 0.015em;
}
.stat-label {
  font: 500 10px var(--mono);
  color: var(--cream-dim);
  letter-spacing: 0.06em;
}

/* ---------- CONTACT ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-lead {
  font: italic 400 clamp(18px, 2vw, 22px) / 1.55 var(--serif);
  color: var(--cream-muted);
}

.contact-links {
  display: flex;
  flex-direction: column;
}

.contact-link {
  display: grid;
  grid-template-columns: 80px 1fr 24px;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.contact-link:first-child { border-top: 1px solid var(--line); }
.contact-link:hover { background: rgba(196, 15, 26, 0.06); }

.link-label {
  font: 500 10px var(--mono);
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.link-value {
  font: 400 15px var(--sans);
  color: var(--cream);
}
.link-arrow {
  font-size: 16px;
  color: var(--cream-dim);
  text-align: right;
}
.contact-link:hover .link-arrow { color: var(--red); }

.contact-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font: 500 10px var(--mono);
  color: var(--cream-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-brand {
  height: 20px;
  width: auto;
  opacity: 0.6;
}

.footer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 22%;
  border: 1px solid var(--line-strong);
}

/* ---------- VIDEO MODAL ---------- */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.video-modal.open { opacity: 1; pointer-events: auto; }

.video-modal-dialog {
  position: relative;
  max-width: 960px;
  max-height: 85vh;
}
.video-modal-dialog video {
  width: 100%;
  height: auto;
  max-height: 85vh;
  display: block;
}
.video-modal-dialog.aspect-vertical {
  max-width: 420px;
}
.video-modal-dialog.aspect-vertical video {
  max-height: 85vh;
}

.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  color: var(--cream);
  font-size: 32px;
  line-height: 1;
  transition: color 0.3s;
}
.video-modal-close:hover { color: var(--red); }

/* ---------- REVEAL ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

/* Smooth scroll (Lenis-like) desativa o smooth nativo p/ não brigar com o RAF */
html.has-smooth { scroll-behavior: auto; }
html.has-smooth body { }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1023px) {
  .hero-body {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 40px;
  }
  .hero-wordmark { text-align: center; }
  /* fallback proporcional (o JS ajusta com precisão para largura uniforme) */
  .hero-wordmark .line1 { font-size: 17vw; }
  .hero-wordmark .line2 { font-size: 17vw; }
  .hero-wordmark .line3 { font-size: 10.6vw; }
  /* a copy nunca fica mais larga que o título */
  .hero-copy { max-width: 76vw; }
  .hero-copy-red .brk { display: inline; }   /* quebra na vírgula */
  .hero-copy-red { line-height: 1.24; text-wrap: normal; }
  .hero-copy-sub { margin-top: 12px; max-width: none; text-wrap: balance; }
  .hero-nav { display: none; }
  .hero-frame { inset: 16px; }
  .hero-top-bar { top: 24px; left: 24px; right: 24px; }
  /* marca no centro REAL da tela (não no meio do espaço entre REC e timecode) */
  .hero-brand { position: absolute; left: 50%; transform: translateX(-50%); height: 22px; }
  /* ficha técnica centralizada — acompanha o eixo do hero */
  .hero-bottom-bar { bottom: 24px; left: 24px; right: 24px; gap: 12px; justify-content: center; }
  .hero-spec-sep { width: 3px; height: 3px; }

  .section { padding: 100px 40px 100px 40px; }
  .hero-body { padding: 0 40px; }
  .section-head { grid-template-columns: 48px 1fr; gap: 24px; margin-bottom: 56px; }

  .reel-poster-credits { padding: 32px 20px 28px; }
  .reel-tagline { top: 20px; left: 20px; right: 20px; font-size: 12px; }
  .proof-layout { grid-template-columns: 1fr; gap: 48px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .director-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .hero { padding: 100px 0 60px; }
  .hero-body { padding: 0 24px; gap: 28px; }
  .hero-wordmark .line1 { font-size: 18vw; }
  .hero-wordmark .line2 { font-size: 18vw; }
  .hero-wordmark .line3 { font-size: 11.2vw; }
  .hero-copy { font-size: 14px; }
  /* subtexto: respiro quando quebra em 2 linhas */
  .hero-copy-red { font-size: 1.28em; line-height: 1.28; }
  .hero-copy-sub { font-size: 11.5px; line-height: 1.6; margin-top: 12px; max-width: 300px; }
  /* topo em 3 pontos equilibrados: REC · MARCA (centro) · idiomas */
  .hero-top-bar { top: 20px; left: 20px; right: 20px; }
  .hero-brand { height: 19px; }
  .hero-timecode { display: none; }
  .hero-langs-mobile { top: 18px; right: 20px; gap: 10px; }
  .hero-bottom-bar { bottom: 20px; left: 16px; right: 16px; gap: 10px; justify-content: center; flex-wrap: wrap; }
  .hero-spec { font-size: 10px; letter-spacing: 0.08em; }
  .hero-frame { inset: 12px; }

  .section { padding: 80px 24px; }
  .section-head { grid-template-columns: 1fr; gap: 12px; margin-bottom: 40px; }
  .section-num { padding-top: 0; }

  .phase { grid-template-columns: 1fr; gap: 12px; }
  .stat { padding: 20px; }
  .stat-num { font-size: 32px; }
  .contact-link { grid-template-columns: 1fr; gap: 4px; }
  .contact-footer { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================================
   MICROINTERAÇÕES — glitch / decode / glow / rise / scanline / blur
   ============================================================ */

/* ---------- GLITCH ON NAV CLICK ---------- */
body.glitch-active {
  animation: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) both bodyGlitch;
}
@keyframes bodyGlitch {
  0% { filter: hue-rotate(0) contrast(1); transform: translate(0); }
  20% { filter: hue-rotate(90deg) contrast(1.5); transform: translate(-2px, 2px); }
  40% { filter: hue-rotate(-90deg) contrast(1.5); transform: translate(2px, -2px); }
  60% { filter: hue-rotate(45deg) contrast(1.2); transform: translate(-1px, -1px); }
  80% { filter: invert(10%); transform: translate(1px, 1px); }
  100% { filter: hue-rotate(0) contrast(1); transform: translate(0); }
}

/* ---------- GLITCH HOVER NOS TÍTULOS ---------- */
.section-title, .case-section-title, .case-hero-title, .manifesto-statement p, .case-quote p {
  transition: text-shadow 0.2s, transform 0.2s;
}
.section-title:hover, .case-section-title:hover, .case-hero-title:hover,
.manifesto-statement p:hover, .case-quote p:hover {
  text-shadow: 2px 0 var(--red), -2px 0 cyan;
  transform: skew(-2deg);
}

/* ---------- RED GLOW PULSE ---------- */
.text-red, .section-title .dot, .reel-code, .case-ep-num, .phase-num {
  text-shadow: 0 0 10px rgba(196, 15, 26, 0.2);
  animation: 4s ease-in-out infinite redGlow;
}
@keyframes redGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(196, 15, 26, 0.2); }
  50% { text-shadow: 0 0 20px rgba(196, 15, 26, 0.5), 0 0 30px rgba(196, 15, 26, 0.2); }
}

/* ---------- HERO RISE ANIMATION ---------- */
.hero-wordmark .word {
  animation: 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards riseUp;
  transform: translateY(110%);
}
.hero-wordmark .line2 { animation-delay: 0.08s; }
.hero-wordmark .line3 { animation-delay: 0.16s; }
@keyframes riseUp {
  to { transform: translateY(0); }
}

/* ---------- SCANLINE SWEEP (stills / director / case-still) ---------- */
.case-still::before, .director-bg::after, .case-context-image::before, .case-fullbleed::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--red);
  box-shadow: 0 0 15px var(--red), 0 0 30px var(--red);
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.case-still:hover::before, .director-bg:hover::after,
.case-context-image:hover::before, .case-fullbleed:hover::before {
  opacity: 0.85;
  animation: 2.5s linear infinite scanlineSweep;
}
@keyframes scanlineSweep {
  0% { top: -3px; }
  100% { top: 100%; }
}

/* ---------- BACKDROP BLUR ---------- */
.stat, .meta-item, .case-stat, .case-challenge-card, .case-direction-step,
.case-deliverable, .case-terminal, .case-preview-frame, .service-overlay {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.case-header {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ---------- DECODE TEXT ---------- */
.decode-text {
  transition: opacity 0.3s;
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .crt-flicker, .cursor-ring { display: none !important; }
  .hero-wordmark .word { transform: none; animation: none; }
}

/* ============================================================
   REDESIGN — LAYOUTS EDITORIAIS (mosaico / service / mission / work)
   ============================================================ */

/* ---------- OBRAS — MOSAICO EDITORIAL (Grid + JS span) ---------- */
.registry-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.filter-btn {
  font: 500 11px var(--mono);
  color: var(--cream-dim);
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
/* O preenchimento é feito pelo ::before, que varre da esquerda para a direita.
   O botão não pode ter background próprio, senão cobre a varredura. */
.filter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: -1;
}
.filter-btn:hover {
  color: var(--cream);
  border-color: var(--line-strong);
}
.filter-btn:active {
  transform: scale(0.97);
}
.filter-btn.active {
  color: var(--black);
  border-color: var(--red);
}
.filter-btn.active::before {
  transform: scaleX(1);
}
@media (prefers-reduced-motion: reduce) {
  .filter-btn,
  .filter-btn::before,
  .registry-mosaic .reel-card.is-fading {
    transition-duration: 0.01ms;
  }
}
.filter-btn.hidden {
  display: none;
}
.registry-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 10px;
  grid-auto-flow: dense;
  gap: 2px;
  position: relative; /* âncora dos cards congelados durante o filtro */
}
/* O JS faz FLIP: aplica transition inline no momento certo. Aqui só o fade
   de saída, que roda com o card já congelado fora do fluxo. */
.registry-mosaic .reel-card.is-fading {
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.34s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.registry-mosaic .reel-card.is-out {
  display: none;
}
.registry-mosaic .reel-card {
  min-height: 0;
}
.registry-mosaic .reel-media {
  aspect-ratio: auto;
  height: 100%;
}
.registry-mosaic .reel-media > a {
  display: block;
  width: 100%;
  height: 100%;
}
.registry-mosaic .reel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.registry-mosaic .reel-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-still {
  position: relative;
  overflow: hidden;
  background: var(--black-soft);
}
.reel-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.45) brightness(0.5);
  transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), filter 0.7s;
}
.reel-still:hover img {
  transform: scale(1.05);
  filter: grayscale(0) brightness(0.85);
}
.reel-still-code {
  position: absolute;
  top: 14px;
  left: 14px;
  font: 500 10px var(--mono);
  color: var(--cream-dim);
  letter-spacing: 0.14em;
  opacity: 0.55;
  pointer-events: none;
}

/* ---------- PROVA — MISSION ---------- */
.proof-layout {
  grid-template-columns: 0.82fr 1fr;
  gap: 64px;
  align-items: center;
  max-width: 1180px;
}

/* ---------- DIRETOR — WORK EXPERIENCE ---------- */
.director-hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  padding: 56px;
  overflow: hidden;
  background: var(--black-soft);
}
.director-bg { position: absolute; inset: 0; z-index: 0; }
.director-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 22%;
  filter: grayscale(0.1) brightness(0.6);
}
.director-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.7) 45%, rgba(10, 10, 10, 0.15) 100%);
}
.director-hero-content { position: relative; z-index: 2; max-width: 640px; }
.director-display {
  font: 400 clamp(72px, 11vw, 168px) / 0.85 var(--display-heavy);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.director-hero .director-lead { margin-bottom: 28px; max-width: 520px; }
.director-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.director-list li {
  position: relative;
  padding-left: 22px;
  font: 400 15px / 1.5 var(--sans);
  color: var(--cream-muted);
}
.director-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  background: var(--red);
  border-radius: 50%;
}
.director-stats { margin-top: 2px; }
.director-hero .director-badge { z-index: 2; left: auto; right: 0; width: auto; }

/* ---------- RESPONSIVE (REDESIGN) ---------- */
@media (max-width: 1023px) {
  .registry-mosaic { grid-template-columns: repeat(2, 1fr); }

  .phases { grid-template-columns: 1fr; }
  .phase-media { aspect-ratio: 16 / 10; }

  .services-row { grid-template-columns: repeat(2, 1fr); }
  .proof-layout { grid-template-columns: 1fr; gap: 40px; }

  .director-hero { min-height: 480px; padding: 40px; }
  .director-hero-overlay { background: linear-gradient(0deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.55) 60%, rgba(10, 10, 10, 0.25) 100%); }
  .director-hero-content { max-width: none; }
  .director-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .registry-mosaic { grid-template-columns: 1fr; }
  .manifesto-statement { padding: 20px 0; }
  .services-row { grid-template-columns: 1fr; }

  /* DIRETOR no celular: foto em cima (rosto visível), texto embaixo — sem sobreposição */
  .director-hero {
    display: block;
    min-height: 0;
    padding: 0;
  }
  .director-bg {
    position: relative;
    inset: auto;
    height: 72vw;
    max-height: 380px;
  }
  .director-bg img {
    object-position: 62% 16%;
    filter: grayscale(0.08) brightness(0.82);
  }
  .director-hero-overlay {
    top: auto;
    bottom: 0;
    height: 45%;
    background: linear-gradient(0deg, var(--black-soft) 0%, rgba(20, 18, 16, 0) 100%);
  }
  .director-hero-content {
    max-width: none;
    padding: 24px 24px 30px;
    background: var(--black-soft);
  }
  .director-display { margin-bottom: 18px; }
  .director-hero .director-lead { margin-bottom: 22px; }
  .director-hero .director-badge { display: none; }
}

/* ============================================================
   EDITORIAL PASS — brutalismo equilibrado (assimetria intencional)
   ============================================================ */

/* ---------- CABEÇALHOS DE SEÇÃO ---------- */
.section-head {
  display: block;
  position: relative;
  margin-bottom: 72px;
}
.section-num {
  position: static;
  display: block;
  padding: 0;
  margin: 0 0 2px -2px;
  font: 900 clamp(52px, 6vw, 104px) / 0.82 var(--display);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red-deep);
  text-stroke: 1.5px var(--red-deep);
  letter-spacing: -0.03em;
  opacity: 0.55;
  pointer-events: none;
}
.section-title {
  font-size: clamp(44px, 6.2vw, 88px);
  margin-left: -4px;
}
.section-sub {
  margin-top: 18px;
  margin-left: 34%;
  max-width: 400px;
}

/* ---------- SERVIÇOS — colunas desiguais (override não necessário, row já é 4 col) ---------- */

/* ---------- CONTATO — assimétrico ---------- */
.contact-layout {
  grid-template-columns: 1.35fr 0.9fr;
  gap: 100px;
}

/* ---------- MOBILE / TABLET — volta ao limpo ---------- */
@media (max-width: 1023px) {
  .section-head { margin-bottom: 48px; }
  .section-num {
    position: static;
    -webkit-text-stroke: 0;
    text-stroke: 0;
    color: var(--red);
    font: 500 13px var(--mono);
    letter-spacing: 0.1em;
    opacity: 1;
    margin-bottom: 10px;
    display: block;
  }
  .section-title { font-size: clamp(32px, 8vw, 46px); margin-left: 0; }
  .section-sub { margin-left: 0; max-width: none; }
  .pipeline-intro { max-width: none; margin: 0; }
  .services-row { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
}

/* celular: serviços em coluna única (evita estourar a tela) */
@media (max-width: 767px) {
  .services-row { grid-template-columns: 1fr !important; }
}

/* ---------- PROVA — trabalho autoral (2 obras) ---------- */
.proof-lead {
  text-align: left;
  margin: 0 0 44px;
  max-width: 640px;
}
.proof-works {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.proof-works .reel-media { aspect-ratio: 16 / 9; }
.proof-cta { margin-top: 44px; }
@media (max-width: 1023px) {
  .proof-works { grid-template-columns: 1fr; }
}

/* ============================================================
   CASE PAGES — Template unificado
   ============================================================ */

/* ---------- HEADER ---------- */
.case-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 40px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.case-back img {
  height: 24px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.3s;
}
.case-back:hover img { opacity: 1; }

.case-nav {
  display: flex;
  gap: 28px;
}
.case-nav a {
  font: 500 10px var(--mono);
  color: var(--cream-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.case-nav a:hover { color: var(--red); }

.case-langs {
  display: flex;
  gap: 10px;
  color: var(--cream-dim);
}
.case-langs span {
  cursor: pointer;
  transition: color 0.3s;
  font: 500 10px var(--mono);
}
.case-langs span:hover { color: var(--cream); }
.case-langs .active { color: var(--red); }

/* ---------- HERO ---------- */
.case-hero {
  padding: 140px 80px 100px;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
}
.case-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.case-hero-text { max-width: 520px; }
.case-eyebrow {
  font: 500 11px var(--mono);
  color: var(--red);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.case-hero-title {
  font: 900 clamp(48px, 7vw, 96px) / 0.9 var(--display);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.case-hero-title .text-red { color: var(--red); }
.case-hero-copy {
  font: italic 400 17px / 1.6 var(--serif);
  color: var(--cream-muted);
  margin-bottom: 40px;
}

.case-meta-group {
  display: flex;
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.case-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.case-meta-item b {
  font: 500 10px var(--mono);
  color: var(--cream-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.case-meta-item span {
  font: 400 14px var(--sans);
  color: var(--cream);
}

/* Preview frame */
.case-hero-media { display: flex; justify-content: flex-end; }
.case-preview-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: pointer;
  background: var(--black-soft);
}
.case-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) brightness(0.8);
  transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), filter 0.7s;
}
.case-preview-frame:hover img {
  transform: scale(1.04);
  filter: grayscale(0) brightness(0.9);
}
.case-watch-btn {
  position: absolute;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--red);
  font: 500 11px var(--mono);
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.case-preview-frame:hover .case-watch-btn {
  background: var(--red);
  color: var(--black);
}
.watch-icon { font-size: 10px; }

/* ---------- SECTIONS ---------- */
.case-section {
  padding: 120px 80px;
  border-top: 1px solid var(--line);
}
.case-section-dark { background: var(--black-warm); }

.case-section-head {
  display: block;
  position: relative;
  margin-bottom: 64px;
}
.case-section-num {
  display: block;
  margin: 0 0 2px -2px;
  font: 900 clamp(40px, 5vw, 80px) / 0.82 var(--display);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red-deep);
  letter-spacing: -0.03em;
  opacity: 0.55;
  pointer-events: none;
}
.case-section-title {
  font: 900 clamp(36px, 5vw, 64px) / 1.05 var(--display);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-left: -4px;
}
.case-section-title .text-red { color: var(--red); }
.case-section-title .dot { color: var(--red); }

.case-copy {
  font: 400 15px / 1.7 var(--sans);
  color: var(--cream-muted);
}
.case-copy + .case-copy { margin-top: 16px; }

/* ---------- CONTEXT ---------- */
.case-context-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 80px;
  align-items: start;
}
.case-context-text { max-width: 560px; }

.case-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
}
.case-stat {
  background: var(--black);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-stat-num {
  font: 400 clamp(36px, 3.5vw, 44px) / 1 var(--display-heavy);
  color: var(--red);
  letter-spacing: 0.015em;
}
.case-stat-label {
  font: 500 10px var(--mono);
  color: var(--cream-dim);
  letter-spacing: 0.06em;
}

/* ---------- STILLS ---------- */
.case-stills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.case-still {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--black-soft);
}
.case-still img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) brightness(0.8);
  transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1), filter 0.7s;
}
.case-still:hover img {
  transform: scale(1.05);
  filter: grayscale(0) brightness(0.95);
}
.case-still-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.9));
  font: italic 400 13px var(--serif);
  color: var(--cream);
  letter-spacing: 0.04em;
}

/* ---------- TERMINAL ---------- */
.case-process-intro {
  max-width: 640px;
  margin-bottom: 48px;
}

.case-terminal {
  max-width: 640px;
  background: var(--black-soft);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
}
.case-terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--black);
  border-bottom: 1px solid var(--line);
}
.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cream-dim);
  opacity: 0.3;
}
.terminal-dot.red { background: var(--red); opacity: 1; }
.terminal-label {
  margin-left: 12px;
  font: 500 10px var(--mono);
  color: var(--cream-dim);
  letter-spacing: 0.2em;
}
.case-terminal-body {
  padding: 24px 18px;
  font: 400 13px / 1.8 var(--mono);
  color: var(--cream-muted);
}
.log-line {
  opacity: 0;
  transition: opacity 0.3s;
}
.log-line.visible { opacity: 1; }
.log-line b {
  color: var(--red);
  font-weight: 500;
}
.log-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--red);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

/* ---------- CHALLENGE ---------- */
.case-challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--line);
}
.case-challenge-card {
  padding: 48px 40px;
  background: var(--black);
}
.case-challenge-before { border-top: 3px solid var(--cream-dim); }
.case-challenge-after { border-top: 3px solid var(--red); }
.case-challenge-tag {
  font: 500 11px var(--mono);
  color: var(--cream-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.case-challenge-after .case-challenge-tag { color: var(--red); }
.case-challenge-title {
  font: 400 clamp(24px, 3vw, 36px) / 1.1 var(--display-heavy);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
}
.case-challenge-copy {
  font: 400 14px / 1.6 var(--sans);
  color: var(--cream-muted);
}

/* ---------- DIRECTION ---------- */
.case-direction-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: var(--line);
}
.case-direction-step {
  padding: 40px 36px;
  background: var(--black);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.case-direction-num {
  font: 400 40px / 1 var(--display);
  color: var(--red);
  opacity: 0.6;
}
.case-direction-title {
  font: 400 22px var(--display-heavy);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.case-direction-copy {
  font: 400 14px / 1.6 var(--sans);
  color: var(--cream-dim);
}

/* ---------- DELIVERABLES ---------- */
.case-deliverables {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--line);
}
.case-deliverable {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 32px;
  align-items: start;
  padding: 36px 32px;
  background: var(--black);
}
.case-deliverable-icon {
  font-size: 20px;
  color: var(--red);
}
.case-deliverable-title {
  font: 400 24px var(--display-heavy);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.case-deliverable-copy {
  font: 400 14px / 1.6 var(--sans);
  color: var(--cream-dim);
  max-width: 540px;
}

/* ---------- QUOTE ---------- */
.case-quote {
  padding: 120px 80px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.case-quote p {
  font: italic 400 clamp(28px, 4.5vw, 56px) / 1.15 var(--serif);
  color: var(--cream);
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- CONTACT ---------- */
.case-contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 80px;
  margin-bottom: 80px;
}
.case-contact-lead {
  font: italic 400 clamp(18px, 2vw, 22px) / 1.55 var(--serif);
  color: var(--cream-muted);
}
.case-contact-links {
  display: flex;
  flex-direction: column;
}
.case-contact-link {
  display: grid;
  grid-template-columns: 80px 1fr 24px;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s;
}
.case-contact-link:first-child { border-top: 1px solid var(--line); }
.case-contact-link:hover { background: rgba(196, 15, 26, 0.06); }

.case-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font: 500 10px var(--mono);
  color: var(--cream-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.case-footer .footer-brand {
  height: 20px;
  width: auto;
  opacity: 0.6;
}
.case-footer a {
  color: var(--cream-dim);
  transition: color 0.3s;
}
.case-footer a:hover { color: var(--red); }

/* ---------- CASE RESPONSIVE ---------- */
@media (max-width: 1023px) {
  .case-header { padding: 16px 24px; }
  .case-nav { display: none; }

  .case-hero { padding: 120px 24px 80px; min-height: auto; }
  .case-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .case-hero-media { justify-content: flex-start; }
  .case-preview-frame { max-width: none; }

  .case-section { padding: 80px 24px; }
  .case-section-head { margin-bottom: 40px; }
  .case-section-num {
    -webkit-text-stroke: 0;
    color: var(--red);
    font: 500 13px var(--mono);
    letter-spacing: 0.1em;
    opacity: 1;
    margin-bottom: 8px;
  }
  /* menor que o título do hero — mantém a hierarquia h1 > h2 */
  .case-section-title { font-size: clamp(22px, 6.4vw, 34px); margin-left: 0; }

  .case-context-grid { grid-template-columns: 1fr; gap: 40px; }
  .case-stills-grid { grid-template-columns: 1fr; }
  .case-still { aspect-ratio: 16 / 10; }
  .case-challenge-grid { grid-template-columns: 1fr; }
  .case-direction-grid { grid-template-columns: 1fr; }
  .case-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .case-quote { padding: 80px 24px; }
}

@media (max-width: 767px) {
  .case-meta-group { flex-direction: column; gap: 16px; }
  .case-stats-grid { grid-template-columns: 1fr; }
  .case-deliverable { grid-template-columns: 1fr; gap: 12px; }
  .case-footer { flex-direction: column; gap: 12px; text-align: center; }
}

/* ============================================================
   CASE — IMAGE-DRIVEN LAYOUT
   ============================================================ */

/* ---------- HERO FULL-BLEED ---------- */
.case-hero-fullbleed {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px 80px 80px;
  overflow: hidden;
}
.case-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  cursor: pointer;
}
.case-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4) saturate(0.7);
  transition: transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.case-hero-bg:hover img { transform: scale(1.03); }
.case-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(10,10,10,0.9) 0%, rgba(10,10,10,0.3) 50%, rgba(10,10,10,0.5) 100%);
}
.case-hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.case-hero-title {
  font: 900 clamp(56px, 9vw, 128px) / 0.85 var(--display);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
}
.case-hero-title .text-red { color: var(--red); }
.case-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 11px var(--mono);
  color: var(--cream-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.case-hero-meta .sep { color: var(--red); }
.case-hero-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid var(--red);
  font: 500 12px var(--mono);
  color: var(--red);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
}
.case-hero-play:hover { background: var(--red); color: var(--black); }
.play-icon { font-size: 10px; }
.case-hero-scroll {
  position: absolute;
  bottom: 32px;
  right: 40px;
  z-index: 2;
  font: 500 14px var(--mono);
  color: var(--cream-dim);
  animation: scrollbounce 2s ease-in-out infinite;
}
@keyframes scrollbounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ---------- SECTION NUM INLINE ---------- */
.case-section-num-inline {
  display: block;
  font: 900 clamp(36px, 4.5vw, 72px) / 0.82 var(--display);
  color: transparent;
  -webkit-text-stroke: 1.5px var(--red-deep);
  letter-spacing: -0.03em;
  opacity: 0.55;
  margin-bottom: 4px;
}

/* ---------- CONTEXT SPLIT (imagem + texto) ---------- */
.case-context-split {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}
.case-context-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.case-context-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) brightness(0.9);
  transition: transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.case-context-image:hover img { transform: scale(1.04); }
.case-context-text .case-section-title {
  font-size: clamp(36px, 5vw, 64px);
  margin: 12px 0 24px;
}

/* ---------- FULL-BLEED BREAK ---------- */
.case-fullbleed {
  position: relative;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
}
.case-fullbleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
  transition: transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}
.case-fullbleed:hover img { transform: scale(1.04); }
.case-fullbleed-caption {
  position: absolute;
  bottom: 40px;
  left: 80px;
  right: 80px;
  font: italic 400 clamp(20px, 2.5vw, 32px) / 1.3 var(--serif);
  color: var(--cream);
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
}

/* ---------- CHARACTER STRIP ---------- */
.case-char-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 40px;
}
.case-char {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--black);
}
.case-char img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.2) brightness(0.85);
  transition: transform 0.5s, filter 0.5s;
}
.case-char:hover img { transform: scale(1.08); filter: grayscale(0) brightness(1); }
.case-char-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 12px 12px;
  background: linear-gradient(transparent, rgba(10,10,10,0.92));
  font: 500 11px var(--mono);
  color: var(--cream);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.case-char-note {
  max-width: 640px;
  font: italic 400 15px / 1.6 var(--serif);
  color: var(--cream-muted);
}

/* ---------- TAKES ROW (4 mixed image/video) ---------- */
.case-takes-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.case-take {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--black-soft);
}
.case-take img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) brightness(0.75);
  transition: transform 0.6s, filter 0.6s, opacity 0.5s;
}
.case-take:hover img { transform: scale(1.06); filter: grayscale(0) brightness(0.95); }

.case-take-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}
.case-take-video:hover video { opacity: 1; }
.case-take-video:hover img { opacity: 0; }

.case-take-num {
  position: absolute;
  top: 12px;
  right: 12px;
  font: 500 10px var(--mono);
  color: var(--red);
  letter-spacing: 0.14em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
  z-index: 2;
}

/* ---------- PIPELINE + CHALLENGE SPLIT ---------- */
.case-pipeline-challenge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.case-pipeline-block .case-terminal { margin-top: 32px; }
.case-challenge-cards {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 32px;
}
.case-challenge-cards .case-challenge-card {
  padding: 32px 28px;
}
.case-challenge-cards .case-challenge-copy {
  font-size: 14px;
  line-height: 1.55;
}

/* ---------- DIRECTION GRID 4 COL ---------- */
.case-direction-grid {
  grid-template-columns: repeat(4, 1fr);
}
.case-direction-step { padding: 32px 24px; }
.case-direction-num { font-size: 32px; }
.case-direction-title { font-size: 20px; }
.case-direction-copy { font-size: 13px; }

/* ---------- RESPONSIVE (IMAGE-DRIVEN) ---------- */
@media (max-width: 1023px) {
  .case-hero-fullbleed { padding: 120px 24px 60px; min-height: auto; }
  .case-hero-content { max-width: 100%; min-width: 0; }
  /* fallback seguro para o pior caso; o JS ajusta cada título à largura exata */
  .case-hero-title { font-size: clamp(26px, 8.2vw, 56px); max-width: 100%; overflow-wrap: break-word; text-wrap: balance; margin: 12px 0 18px; }
  /* elementos de apoio proporcionais ao título reduzido */
  .case-eyebrow { font-size: 9.5px; letter-spacing: 0.12em; margin-bottom: 14px; }
  .case-hero-meta { font-size: 9.5px; gap: 8px; letter-spacing: 0.08em; margin-bottom: 22px; flex-wrap: wrap; }
  .case-hero-play { font-size: 10.5px; padding: 11px 18px; gap: 8px; }
  .case-hero-play .play-icon { font-size: 8px; }
  .case-hero-scroll { display: none; }

  .case-context-split { grid-template-columns: 1fr; gap: 32px; }
  .case-fullbleed { height: 50vh; min-height: 280px; }
  .case-fullbleed-caption { left: 24px; right: 24px; bottom: 24px; }

  .case-char-strip { grid-template-columns: repeat(3, 1fr); }

  .case-takes-row { grid-template-columns: repeat(2, 1fr); }

  .case-pipeline-challenge { grid-template-columns: 1fr; gap: 48px; }

  .case-direction-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  .case-char-strip { grid-template-columns: repeat(2, 1fr); }
  .case-takes-row { grid-template-columns: 1fr; }
  .case-direction-grid { grid-template-columns: 1fr; }
}

/* ---------- EPISODES GRID ---------- */
.case-episodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.case-episode {
  background: var(--black);
  cursor: pointer;
  transition: background 0.3s;
}
.case-episode:hover { background: var(--red-deep); }
.case-ep-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--black-soft);
}
.case-ep-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.25) brightness(0.7);
  transition: transform 0.6s, filter 0.6s;
}
.case-episode:hover .case-ep-thumb img {
  transform: scale(1.05);
  filter: grayscale(0) brightness(0.9);
}
.case-ep-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--red);
  border-radius: 50%;
  font-size: 14px;
  color: var(--red);
  background: rgba(10, 10, 10, 0.7);
  opacity: 0;
  transition: opacity 0.3s;
}
.case-episode:hover .case-ep-play { opacity: 1; }
.case-ep-body {
  padding: 24px 24px 32px;
}
.case-ep-num {
  font: 500 11px var(--mono);
  color: var(--red);
  letter-spacing: 0.14em;
}
.case-ep-title {
  font: 400 22px var(--display-heavy);
  color: var(--cream);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 8px 0 10px;
}
.case-ep-desc {
  font: 400 13px / 1.5 var(--sans);
  color: var(--cream-dim);
}

@media (max-width: 1023px) {
  .case-episodes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .case-episodes-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE TRANSITION + PRELOADER
   ============================================================ */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  animation: ptFallback 0.01s linear 2.4s forwards; /* revela sozinho se JS falhar */
}
@keyframes ptFallback { to { transform: translateY(-100%); visibility: hidden; } }
.page-transition.pt-js { animation: none; }
.page-transition.pt-anim { transition: transform 0.72s cubic-bezier(0.76, 0, 0.24, 1); }

.pt-inner { text-align: center; }
.pt-logo { height: 24px; width: auto; opacity: 0.85; margin: 0 auto 22px; display: block; }
.pt-counter {
  font: 900 clamp(52px, 9vw, 120px) / 1 var(--display-heavy, var(--display));
  color: var(--cream);
  letter-spacing: -0.02em;
  opacity: 0;
  transition: opacity 0.3s;
}
.pt-counter .pt-pct { color: var(--red); }
.page-transition.pt-first .pt-counter { opacity: 1; }
.pt-bar {
  width: min(240px, 46vw);
  height: 2px;
  margin: 22px auto 0;
  background: var(--line);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s;
}
.page-transition.pt-first .pt-bar { opacity: 1; }
.pt-bar span { display: block; height: 100%; width: 0; background: var(--red); }

@media (prefers-reduced-motion: reduce) {
  .page-transition { animation: none !important; display: none !important; }
}

/* ============================================================
   MICRO-INTERAÇÕES (magnetic) + SOM
   ============================================================ */
/* botões magnéticos — mantém as transições existentes + transform */
.hero-cta { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), gap 0.3s, color 0.3s; }
.proof-cta { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), gap 0.3s, color 0.3s, background 0.3s; }
.case-hero-play, .case-watch-btn { transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s, color 0.3s, border-color 0.3s; }
.hero-cta, .proof-cta, .case-hero-play, .case-watch-btn { will-change: transform; }

/* toggle de som */
.sound-toggle {
  position: fixed;
  z-index: 600;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  font: 500 10px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  background: rgba(10, 10, 10, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--line);
  padding: 8px 13px;
  border-radius: 100px;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s, opacity 0.4s;
}
.sound-toggle:hover { color: var(--cream); border-color: var(--line-strong); }
.sound-toggle .st-eq { display: flex; align-items: center; gap: 2px; height: 12px; }
.sound-toggle .st-eq i {
  width: 2px;
  height: 3px;
  background: var(--red);
  display: block;
  border-radius: 1px;
}
.sound-toggle.on .st-eq i { animation: stEq 0.8s ease-in-out infinite; }
.sound-toggle.on .st-eq i:nth-child(2) { animation-delay: 0.12s; }
.sound-toggle.on .st-eq i:nth-child(3) { animation-delay: 0.24s; }
.sound-toggle.on .st-eq i:nth-child(4) { animation-delay: 0.36s; }
@keyframes stEq { 0%, 100% { height: 3px; } 50% { height: 11px; } }

@media (max-width: 767px) {
  .sound-toggle { bottom: 14px; right: 14px; padding: 7px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .sound-toggle.on .st-eq i { animation: none; }
}

/* ============================================================
   ACABAMENTO — FOCO / A11Y / REDUCED-MOTION
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 13000;
  background: var(--red);
  color: var(--white);
  font: 600 12px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 11px 16px;
  border-radius: 4px;
  transform: translateY(-160%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.skip-link:focus { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .hero-bg, .case-hero-bg, .hero-wordmark, .hero-body { transform: none !important; }
}

/* ============================================================
   MENU MOBILE (hambúrguer + painel)
   ============================================================ */
/* O painel é criado por JS e anexado ao <body>. Sem um display:none global ele
   renderiza como texto solto no fim da página em telas ≥1024px. */
.mnav-toggle,
.mnav-panel { display: none; }

@media (max-width: 1023px) {
  .mnav-toggle {
    position: fixed;
    z-index: 11000;
    bottom: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border-radius: 100px;
    border: 1px solid var(--line-strong);
    background: rgba(10, 10, 10, 0.62);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    font: 500 10px var(--mono);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cream);
    cursor: pointer;
  }
  .mnav-bars { display: flex; flex-direction: column; gap: 3px; width: 15px; }
  .mnav-bars i {
    display: block;
    height: 1.5px;
    width: 100%;
    background: var(--red);
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
  }
  .mnav-open .mnav-bars i:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
  .mnav-open .mnav-bars i:nth-child(2) { opacity: 0; }
  .mnav-open .mnav-bars i:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

  .mnav-panel {
    position: fixed;
    inset: 0;
    z-index: 10900;
    background: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 32px 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(24px);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s;
  }
  .mnav-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }

  .mnav-link {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--cream);
  }
  .mnav-link .mnav-num {
    font: 500 10px var(--mono);
    color: var(--red);
    letter-spacing: 0.1em;
    min-width: 22px;
  }
  .mnav-link .mnav-label {
    font: 400 clamp(24px, 7vw, 34px) / 1 var(--display-heavy);
    text-transform: uppercase;
    letter-spacing: 0.01em;
  }
  .mnav-panel .mnav-foot {
    margin-top: 32px;
    font: 500 10px var(--mono);
    letter-spacing: 0.14em;
    color: var(--cream-dim);
    text-transform: uppercase;
  }
  body.mnav-lock { overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .mnav-panel, .mnav-bars i { transition: none !important; }
}

/* ============================================================
   FORMULÁRIO DE BRIEFING
   ============================================================ */
.contact-form {
  margin-top: 40px;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cf-field { display: flex; flex-direction: column; gap: 7px; }
.cf-label {
  font: 500 10px var(--mono);
  color: var(--red);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  font: 400 15px var(--sans);
  color: var(--cream);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 14px;
  width: 100%;
  transition: border-color 0.3s, background 0.3s;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--cream-dim); opacity: 0.65; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.05);
}
.contact-form input:user-invalid,
.contact-form textarea:user-invalid { border-color: var(--red-deep); }

.cf-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 12px var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 13px 26px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, gap 0.3s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.cf-submit:hover { background: var(--red); color: var(--black); gap: 20px; }
.cf-submit[disabled] { opacity: 0.5; pointer-events: none; }

.cf-status {
  font: 500 11px var(--mono);
  letter-spacing: 0.1em;
  color: var(--cream-dim);
  min-height: 16px;
}
.cf-status.ok { color: var(--cream); }
.cf-status.err { color: var(--red); }

@media (max-width: 767px) {
  .cf-row { grid-template-columns: 1fr; }
}

/* ============================================================
   UI FLUTUANTE — não atrapalhar a leitura no mobile
   ============================================================ */
@media (max-width: 1023px) {
  /* começam ocultos: o hero fica limpo. O JS libera após passar do hero. */
  .mnav-toggle, .sound-toggle {
    transform: translateY(160%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s, color 0.3s, border-color 0.3s;
  }
  body.ui-visible .mnav-toggle,
  body.ui-visible .sound-toggle {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  /* com o menu aberto, o botão continua acessível */
  body.mnav-lock .mnav-toggle {
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  /* espaço no fim da página para o último conteúdo não ficar sob os botões */
  .case-footer, .contact-footer { padding-bottom: 72px; }
}

/* impede que o wordmark infle o container (e vaze a tela) */
.hero-body, .hero-wordmark, .hero-copy-block { min-width: 0; max-width: 100%; }
.hero { overflow-x: clip; }

/* nenhum grid/filho pode inflar além da tela no mobile */
@media (max-width: 1023px) {
  .case-context-split,
  .case-context-image,
  .case-context-text,
  .case-pipeline-challenge,
  .case-takes-row,
  .services-row,
  .contact-layout { min-width: 0; max-width: 100%; }
  .case-context-split > *,
  .case-context-text > * { min-width: 0; max-width: 100%; }
}

/* ============================================================
   CURSOR CUSTOMIZADO — só em dispositivos com mouse
   ============================================================ */
@media (hover: none), (pointer: coarse) {
  .cursor,
  .cursor-ring,
  .cursor-plate { display: none !important; }
}

/* fim da home no mobile: evita linha dupla entre o último contato e o rodapé */
@media (max-width: 1023px) {
  .contact-links .contact-link:last-child { border-bottom: none; }
  .contact-footer { margin-top: 44px; }
}

/* botão de som: oculto sobre o hero também no desktop */
.sound-toggle {
  transform: translateY(160%);
  opacity: 0;
  pointer-events: none;
}
body.ui-visible .sound-toggle {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

/* ---------- NOTA DE SIGILO (Registro) ---------- */
.registry-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font: 500 11px var(--mono);
  color: var(--cream-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  max-width: 720px;
}
.registry-note-mark {
  flex: none;
  width: 22px;
  height: 1px;
  background: var(--red);
}
@media (max-width: 767px) {
  .registry-note {
    font-size: 10px;
    letter-spacing: 0.04em;
    margin-top: 32px;
    align-items: flex-start;
    gap: 10px;
  }
  .registry-note-mark { margin-top: 7px; width: 16px; }
}

/* ---------- HERO: legenda em box vermelho translúcido ---------- */
.hero-copy-sub {
  display: inline-block;
  background: rgba(10, 10, 10, 0.55);
  border: none;
  color: var(--cream);
  padding: 9px 18px 8px;
  letter-spacing: 0.09em;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
@media (max-width: 767px) {
  .hero-copy-sub {
    font-size: 10px;
    letter-spacing: 0.04em;
    line-height: 1.5;
    padding: 7px 12px 6px;
  }
  .hero-copy { max-width: 88vw; }
}

/* ============================================================
   ESPAÇO LATENTE — demonstração interativa (fase 02)
   O progresso é sintetizado no cliente a partir de uma única
   imagem: mosaico + ruído + desfoque proporcionais ao arraste.
   ============================================================ */
.latent {
  margin: 64px 0 8px;
}
.latent-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #060606;
  border: 1px solid var(--line);
  cursor: ew-resize;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
.latent-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.latent-frame.pronto .latent-canvas { opacity: 1; }
/* A imagem fica visível como fallback: se o JS falhar, o bloco continua
   mostrando o quadro. O canvas cobre ela quando assume. */
.latent-src {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.latent-frame.pronto .latent-src { visibility: hidden; }

.latent-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font: 500 11px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(8, 8, 8, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.latent-frame.tocado .latent-hint { opacity: 0; }
.latent-arrow {
  font-size: 15px;
  color: var(--red);
  animation: latentNudge 1.9s ease-in-out infinite;
}
@keyframes latentNudge {
  0%, 100% { transform: translateX(-3px); }
  50%      { transform: translateX(3px); }
}

.latent-scale {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 9px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-dim);
  pointer-events: none;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.9);
}
.latent-bar {
  flex: 1;
  height: 1px;
  background: rgba(242, 239, 233, 0.22);
  position: relative;
}
.latent-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--red);
  display: block;
}
.latent-caption {
  margin-top: 14px;
  font: 400 12px var(--mono);
  letter-spacing: 0.06em;
  color: var(--cream-dim);
  text-align: center;
}

@media (max-width: 767px) {
  .latent { margin: 40px 0 4px; }
  .latent-scale { left: 12px; right: 12px; bottom: 10px; font-size: 8px; gap: 8px; }
  .latent-hint { font-size: 10px; padding: 8px 14px; }
  .latent-caption { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .latent-arrow { animation: none; }
}
