/* ==========================================================================
   Manticá Filmes — estilos
   ========================================================================== */

:root {
  /* Cores */
  --bg: #F2ECE3;
  --beige: #E7DDCF;
  --beige-ph: #D6C8B5;
  --ink: #2B211A;
  --text-2: #5E5348;
  --text-glass: #3E3229;
  --text-glass-2: #4A3F35;
  --terracota: #9A5034;
  --terracota-hover: #874528;
  --terracota-light: #C98A68;
  --olive: #6F6A3A;
  --olive-light: #A9A46A;
  --olive-light-2: #BDB884;
  --musgo: #47563A;
  --offwhite: #F7F1E8;
  --text-light-2: #CFC3B2;

  /* Ritmo */
  --gap: clamp(10px, 1vw, 14px);
  --pad-x: clamp(20px, 5vw, 64px);
  --block-x: clamp(12px, 2vw, 24px);
  --header-h: 72px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --grain: .08;
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grão de filme (fixo, cobrindo só a viewport para não gerar rolagem lateral) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 150;
  opacity: var(--grain);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.13 0 0 0 0 0.1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
em { font-style: italic; }

a { color: var(--terracota); text-decoration: none; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--terracota);
  outline-offset: 3px;
}

::selection { background: var(--terracota); color: var(--bg); }

.page { position: relative; overflow-x: hidden; overflow-x: clip; background: var(--bg); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 300;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-size: 14px;
}
.skip-link:focus { top: 12px; }

/* Vidro */
.glass {
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* Tipografia ------------------------------------------------------------- */
.h1 {
  font-weight: 300;
  font-size: clamp(36px, 6vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2 {
  font-weight: 300;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h2--sm { font-size: clamp(28px, 3.6vw, 46px); }
.h2--xl { font-size: clamp(32px, 5.4vw, 72px); line-height: 1.06; }
.h3 {
  font-weight: 400;
  font-size: clamp(20px, 1.7vw, 23px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h1 em, .h2 em { color: var(--terracota); }

.lead {
  max-width: 540px;
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.7;
  color: var(--text-glass);
  text-wrap: pretty;
}
.body-lg {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.8;
  color: var(--text-2);
  text-wrap: pretty;
  padding-top: 6px;
}
.muted { font-size: 15px; line-height: 1.6; color: var(--text-2); }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 400; color: var(--text-2);
}
.eyebrow--light { color: var(--text-light-2); }

/* Botões ----------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500; line-height: 1.2;
  text-align: center;
  transition: background-color .4s ease, border-color .4s ease, color .4s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn--sm { min-height: 42px; padding: 0 22px; }
.btn--lg { min-height: 52px; padding: 0 28px; }

.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--terracota); color: var(--bg); }

.btn--glass {
  background: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .8);
  color: var(--ink);
}
.btn--glass:hover { background: rgba(255, 255, 255, .85); color: var(--ink); }

.btn--light { background: var(--offwhite); color: var(--ink); }
.btn--light:hover { background: #fff; color: var(--ink); }

.btn--outline { border: 1px solid rgba(247, 241, 232, .55); color: var(--offwhite); }
.btn--outline:hover { border-color: var(--offwhite); color: var(--offwhite); }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.btn-row--center { justify-content: center; margin-top: 12px; }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 60;
  padding: 0 clamp(12px, 3vw, 32px);
  pointer-events: none;
}
.site-header__bar,
.menu-mobile {
  pointer-events: auto;
  max-width: 1320px; margin: 0 auto;
  background: rgba(242, 236, 227, .72);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  backdrop-filter: blur(18px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 6px 24px rgba(43, 33, 26, .06);
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
}
.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo img { height: 28px; width: auto; mix-blend-mode: multiply; }

.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 400; }
.site-nav a { color: var(--ink); transition: color .3s ease; }
.site-nav a:hover { color: var(--terracota); }

.site-header__actions { display: flex; align-items: center; gap: 6px; }

.menu-toggle {
  display: none;
  width: 42px; height: 42px; padding: 0;
  border: 0; border-radius: 999px;
  background: transparent; cursor: pointer;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.menu-toggle span {
  position: absolute; left: 13px; right: 13px; height: 1.2px;
  background: var(--ink);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menu-toggle span:first-child { top: 17px; }
.menu-toggle span:last-child { top: 24px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 20.5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 20.5px; transform: rotate(-45deg); }

.menu-mobile {
  margin-top: 8px;
  border-radius: 28px;
  padding: 10px;
  display: grid;
}
.menu-mobile[hidden] { display: none; }
.menu-mobile a {
  padding: 14px 16px;
  border-radius: 18px;
  color: var(--ink); font-size: 16px; font-weight: 400;
}
.menu-mobile a:hover, .menu-mobile a:active { background: rgba(255, 255, 255, .5); color: var(--terracota); }

@media (max-width: 859px) {
  .site-nav { display: none; }
  .menu-toggle { display: block; }
  .site-header__bar { padding-left: 18px; }
}
@media (min-width: 860px) {
  .menu-mobile { display: none !important; }
}

/* Layout ----------------------------------------------------------------- */
.container { max-width: 1240px; margin: 0 auto; }
.container--flush { width: 100%; }
.stack-md { display: grid; gap: clamp(36px, 5vw, 64px); }
.stack-lg { display: grid; gap: clamp(48px, 6vw, 80px); }
.stack-xl { display: grid; gap: clamp(48px, 7vw, 88px); }

.grid { display: grid; gap: var(--gap); }
.grid--280 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid--320 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(28px, 6vw, 96px);
  align-items: start;
}
.section-head { display: grid; gap: 22px; }
.section-head--narrow { max-width: 820px; }

.section { padding-left: var(--pad-x); padding-right: var(--pad-x); }
.section--assinatura { padding-top: clamp(96px, 13vw, 170px); padding-bottom: clamp(64px, 8vw, 110px); }
.section--fazemos { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(96px, 12vw, 160px); }

.block-wrap { padding: var(--gap) var(--block-x) 0; }
#filmes.block-wrap { padding-top: 0; }
.block {
  max-width: 1320px; margin: 0 auto;
  border-radius: 36px;
}
.block--beige { background: var(--beige); padding: clamp(56px, 8vw, 112px) clamp(16px, 4vw, 48px); }
.block--dark { background: var(--ink); color: var(--bg); padding: clamp(56px, 8vw, 112px) var(--pad-x); }
.block--dark .h2 em { color: var(--terracota-light); }
.block--terracota { background: var(--terracota); color: var(--offwhite); padding: clamp(80px, 12vw, 160px) var(--pad-x); }
.block--terracota .h2 em { color: inherit; }

/* Hero ------------------------------------------------------------------- */
.hero { padding: clamp(84px, 9vw, 96px) var(--block-x) 0; }
.hero__grid {
  max-width: 1320px; margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: var(--gap);
}
.hero__main {
  position: relative;
  flex: 2 1 620px;
  min-width: 0;
  min-height: clamp(520px, 80vh, 800px);
  min-height: clamp(520px, 80svh, 800px);
  border-radius: 32px;
  overflow: hidden;
  isolation: isolate;
  background: var(--beige-ph);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 4vw, 56px);
}
.hero__media {
  position: absolute; inset: 0;
  overflow: hidden;
  pointer-events: none;
  container-type: size;
}
/* Poster e vídeo: cobrem o bloco inteiro (como object-fit: cover) com blur leve.
   O scale esconde a borda do blur e a interface do YouTube. */
.hero__poster,
.hero__yt {
  position: absolute; top: 50%; left: 50%;
  width: 100%; height: 100%;
  transform: translate(-50%, -50%) scale(1.18);
  filter: sepia(.25) saturate(.8) contrast(.95) blur(5px);
}
.hero__poster { object-fit: cover; transition: opacity 1.2s ease; }
.hero__yt {
  width: max(100cqw, 177.78cqh);
  height: max(100cqh, 56.25cqw);
  opacity: 0;
  transition: opacity 1.4s ease;
}
.hero__yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hero.is-playing .hero__yt { opacity: 1; }
.hero.is-playing .hero__poster { opacity: 0; }

/* Véu mais denso para o vídeo não brigar com o texto */
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(242, 236, 227, .55) 0%, rgba(242, 236, 227, 0) 55%),
    rgba(242, 236, 227, .78);
}
.hero__content { position: relative; display: grid; gap: 24px; max-width: 760px; }

.tag {
  justify-self: start;
  display: inline-flex; align-items: center;
  min-height: 32px; padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid rgba(255, 255, 255, .7);
  font-size: 12px; font-weight: 400; letter-spacing: .02em;
  color: var(--text-glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}

.hero__side {
  flex: 1 1 300px;
  min-width: 0;
  display: flex; flex-direction: column; gap: var(--gap);
}
.hero-tile {
  flex: 1 1 240px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: 32px;
  transition: background-color .5s ease;
}
.hero-tile p {
  font-weight: 300;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero-tile__top {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 400;
}
.hero-tile__art {
  position: relative;
  flex: 1 1 auto;
  min-height: 96px;
  margin: 0 calc(clamp(24px, 2.6vw, 34px) * -.35);
}
.tile-art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  overflow: visible;
  opacity: .85;
}
.art-layer {
  transform: translate3d(calc(var(--mx, 0) * var(--depth, 0) * 1px), calc(var(--my, 0) * var(--depth, 0) * .4px), 0);
  transition: transform .9s var(--ease);
}
.tile-art .pulse { opacity: .5; transform-origin: 258px 58px; transform-box: view-box; }
.hero-tile:hover .tile-art .pulse { animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.4); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.hero-tile--terracota { background: var(--terracota); color: var(--offwhite); }
.hero-tile--terracota:hover { background: var(--terracota-hover); color: var(--offwhite); }
.hero-tile--musgo { background: var(--musgo); color: var(--bg); }

/* Cards ------------------------------------------------------------------ */
.card {
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(24px, 2.4vw, 32px);
  border-radius: 28px;
  background: var(--beige);
}
.card__body { display: grid; gap: 10px; }
.card__body p { font-size: 15px; line-height: 1.65; text-wrap: pretty; }

.card--pillar { min-height: clamp(220px, 22vw, 300px); gap: 40px; }
.card__num { font-size: 13px; font-weight: 400; color: var(--terracota); font-variant-numeric: tabular-nums; }
.card--pillar .card__body p { color: var(--text-2); }

.card--service {
  position: relative;
  min-height: clamp(300px, 28vw, 380px);
  gap: 28px;
  transition: transform .6s var(--ease);
}
.card--service:hover { transform: translateY(-4px); }
.card__icon {
  width: 52px; height: 52px;
  margin-top: 8px;
  overflow: visible;
}
.card__icon .glow { fill: currentColor; fill-opacity: 0; transition: fill-opacity .6s ease; }
.card--service:hover .card__icon .glow { fill-opacity: .28; }
.card--light .card__icon { color: var(--terracota); }
.card--dark .card__icon { color: var(--terracota-light); }
.card--olive .card__icon { color: #EDE6CF; }

/* Borda que se desenha no hover */
.card__border {
  /* Moldura desenhada 10px para dentro do card (visível em todos os tons) */
  position: absolute; top: 10px; left: 10px;
  width: calc(100% - 20px); height: calc(100% - 20px);
  overflow: visible;
  pointer-events: none;
}
.card__border rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.1;
  stroke-opacity: .85;
  stroke-dasharray: var(--len, 4000);
  stroke-dashoffset: var(--len, 4000);
  transition: stroke-dashoffset 1.3s var(--ease);
}
.card--light .card__border { color: var(--terracota); }
.card--dark .card__border { color: var(--terracota-light); }
.card--olive .card__border { color: #EDE6CF; }
.card--service:hover .card__border rect { stroke-dashoffset: 0; }
@media (hover: none) {
  .card--service.is-in .card__border rect { stroke-dashoffset: 0; transition-delay: .5s; transition-duration: 1.8s; }
  .card__border { opacity: .55; }
}
.card__meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 400;
}
.card--light { background: var(--beige); color: var(--ink); }
.card--light .card__meta { color: var(--terracota); }
.card--light .card__body p { color: var(--text-2); }
.card--dark { background: var(--ink); color: var(--bg); }
.card--dark .card__meta { color: var(--terracota-light); }
.card--dark .card__body p { color: var(--text-light-2); }
.card--olive { background: var(--olive); color: var(--offwhite); }
.card--olive .card__meta { color: #EDE6CF; }
.card--olive .card__body p { color: #F1EBDD; }

/* Filmes ----------------------------------------------------------------- */
.films-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px 40px;
}
.films-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: clamp(24px, 2.6vw, 36px) clamp(12px, 1.4vw, 18px);
}

.film {
  appearance: none; -webkit-appearance: none;
  border: 0; padding: 0; margin: 0;
  background: none; color: inherit; font: inherit; text-align: left;
  cursor: pointer;
  display: grid; gap: 12px;
  width: 100%;
  border-radius: 22px;
  -webkit-tap-highlight-color: transparent;
}
.film__frame {
  position: relative; display: block;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  background: var(--beige-ph);
}
.film__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(.2) saturate(.85);
  transition: transform 1.2s ease;
  pointer-events: none;
}
.film:hover .film__img,
.film:focus-visible .film__img { transform: scale(1.03); }
.film__vignette { position: absolute; inset: 0; box-shadow: inset 0 0 80px rgba(43, 33, 26, .28); }
.film__title { font-size: 14px; font-weight: 400; color: var(--ink); padding-left: 4px; }

.play {
  position: absolute; top: 50%; left: 50%;
  width: 60px; height: 60px;
  margin: -30px 0 0 -30px;
  border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(255, 255, 255, .7);
  transition: transform .5s var(--ease), background-color .4s ease;
}
.play svg { margin-left: 3px; }
.film:hover .play { transform: scale(1.06); background: rgba(255, 255, 255, .6); }

.film--banner { margin-top: clamp(8px, 2vw, 24px); border-radius: 28px; }
.film--banner .film__frame { aspect-ratio: 2.39 / 1; border-radius: 28px; }
.film--banner .film__vignette { box-shadow: inset 0 0 140px rgba(43, 33, 26, .32); }
.film--banner .play {
  width: clamp(56px, 6vw, 80px); height: clamp(56px, 6vw, 80px);
  margin: calc(clamp(56px, 6vw, 80px) / -2) 0 0 calc(clamp(56px, 6vw, 80px) / -2);
}

/* Processo --------------------------------------------------------------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  row-gap: 44px;
}
.step {
  position: relative;
  display: grid; gap: 12px; align-content: start;
  padding: 32px 28px 0 0;
}
.step::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(242, 236, 227, .22);
  transform-origin: left center;
}
.js .step::before { transform: scaleX(0); transition: transform 1.4s var(--ease) calc(var(--delay, 0ms) + 200ms); }
.js .step.is-in::before { transform: scaleX(1); }
.step__dot {
  position: absolute; top: -5px; left: 0;
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--ink); border: 1px solid var(--olive-light);
}
.step__num { font-size: 13px; font-weight: 400; color: var(--olive-light-2); font-variant-numeric: tabular-nums; }
.step p { font-size: 15px; line-height: 1.65; color: var(--text-light-2); max-width: 270px; text-wrap: pretty; }

/* Origem ----------------------------------------------------------------- */
.block--origem {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(560px, 70vw, 760px);
  display: flex; align-items: flex-end;
  padding: clamp(12px, 3vw, 40px);
  background: var(--beige-ph);
}
.origem__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
  filter: sepia(.12) saturate(.95);
}
.js [data-reveal="zoom"] .origem__img { transform: scale(1.1); transition: transform 2.6s var(--ease); }
.js [data-reveal="zoom"].is-in .origem__img { transform: none; }
.origem__vignette { position: absolute; inset: 0; box-shadow: inset 0 0 180px rgba(43, 33, 26, .28); }
.origem__card {
  position: relative;
  max-width: 560px;
  display: grid; gap: 20px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: 28px;
  background: rgba(242, 236, 227, .66);
  -webkit-backdrop-filter: blur(22px) saturate(1.1);
  backdrop-filter: blur(22px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 12px 40px rgba(43, 33, 26, .1);
}
.origem__card p { font-size: 15px; line-height: 1.8; color: var(--text-glass); text-wrap: pretty; }
.origem__card .origem__team {
  margin-top: 4px; padding-top: 18px;
  border-top: 1px solid rgba(43, 33, 26, .14);
  font-size: 12px; line-height: 1.7; color: var(--text-glass-2);
}

/* Contato ---------------------------------------------------------------- */
.contato {
  max-width: 900px; margin: 0 auto;
  display: grid; gap: 24px; justify-items: center; text-align: center;
}
.contato > p { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.6; }

/* Footer ----------------------------------------------------------------- */
.site-footer { padding: 36px var(--pad-x) calc(40px + env(safe-area-inset-bottom, 0px)); }
.site-footer__inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px;
  font-size: 12px; font-weight: 400; color: var(--text-2);
}
.site-footer__inner img { height: 22px; width: auto; mix-blend-mode: multiply; opacity: .85; }

/* Modal ------------------------------------------------------------------ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: clamp(16px, 4vw, 48px);
  padding-top: max(clamp(16px, 4vw, 48px), env(safe-area-inset-top, 0px));
  padding-bottom: max(clamp(16px, 4vw, 48px), env(safe-area-inset-bottom, 0px));
  background: rgba(43, 33, 26, .62);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  overscroll-behavior: contain;
  animation: modal-in .35s var(--ease);
}
.modal[hidden] { display: none; }
@keyframes modal-in { from { opacity: 0; } to { opacity: 1; } }

.modal__content {
  position: relative;
  /* Mantém 16:9 mesmo quando a altura limita (celular deitado) */
  width: min(1180px, 100%, calc((100vh - 140px) * 16 / 9));
  width: min(1180px, 100%, calc((100dvh - 140px) * 16 / 9));
  display: grid; gap: 14px;
}
.modal__close {
  justify-self: end;
  width: 46px; height: 46px; padding: 0;
  border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  cursor: pointer;
  transition: background-color .3s ease;
}
.modal__close:hover { background: rgba(255, 255, 255, .3); }
.modal__close:focus-visible { outline-color: var(--bg); }
.modal__player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: #140F0B;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.modal__player iframe,
.modal__player video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  object-fit: contain;
  background: #140F0B;
}
.modal__title { font-size: 14px; font-weight: 400; color: var(--bg); padding-left: 4px; }

html.is-locked, html.is-locked body { overflow: hidden; }

/* Entrada e reveal ------------------------------------------------------- */
/* Traços desenháveis: começam escondidos, desenham quando o bloco entra */
.js .draw {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 1.6s var(--ease) calc(var(--d, 0s) + var(--delay, 0ms) + .25s);
}
.js .is-in .draw,
.js.no-anim .draw { stroke-dashoffset: 0; }
.js .js-art.is-redraw .draw { transition: none; stroke-dashoffset: var(--len, 1000); }
.js .js-art.is-redrawing .draw { transition-duration: 1.2s; transition-delay: calc(var(--d, 0s) * .7); }

@media (prefers-reduced-motion: no-preference) {
  .js:not(.no-anim) [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition:
      opacity 1.1s var(--ease) var(--delay, 0ms),
      transform 1.2s var(--ease) var(--delay, 0ms);
  }
  .js:not(.no-anim) .card[data-reveal],
  .js:not(.no-anim) .film[data-reveal] { transform: translateY(36px) scale(.97); }
  .js:not(.no-anim) [data-reveal="zoom"] { transform: none; }
  .js:not(.no-anim) [data-reveal].is-in { opacity: 1; transform: none; }
  /* Depois de entrar, volta para transições rápidas (hover sem atraso) */
  .js:not(.no-anim) [data-reveal].is-in.is-done { transition: opacity .6s ease, transform .6s var(--ease); }
  .js:not(.no-anim) .card--service.is-done:hover { transform: translateY(-4px); }

  /* Hero: o bloco aparece inteiro e os filhos entram em sequência */
  .js:not(.no-anim) .hero__content[data-reveal] { opacity: 1; transform: none; }
  .js:not(.no-anim) .hero__main { animation: hero-in 1.4s var(--ease) both; }
  .js:not(.no-anim) .hero .intro {
    opacity: 0; transform: translateY(18px);
    transition: opacity 1s var(--ease), transform 1.1s var(--ease);
    transition-delay: calc(var(--i) * 110ms + 250ms);
  }
  .js:not(.no-anim) .hero__content.is-in .intro { opacity: 1; transform: none; }

  .js:not(.no-anim) .h1 .w > span {
    display: inline-block;
    transform: translateY(105%);
    transition: transform 1.1s var(--ease) calc(var(--w) * 70ms + 300ms);
  }
  .js:not(.no-anim) .hero__content.is-in .h1 .w > span { transform: none; }

  .js:not(.no-anim) .hero-tile[data-reveal] { transform: translateX(28px); }
  .js:not(.no-anim) .hero-tile[data-reveal].is-in { transform: none; }

  .js:not(.no-anim) .site-header__bar { animation: header-in 1s var(--ease) .1s both; }
}
@keyframes hero-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@keyframes header-in { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }

/* Palavras do título: máscara que deixa espaço para descendentes e itálico */
.h1 .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0 .06em .14em;
  margin: 0 -.06em -.14em;
}

/* Mobile ----------------------------------------------------------------- */
@media (max-width: 600px) {
  :root { --header-h: 64px; }

  .site-header { top: max(10px, env(safe-area-inset-top, 0px)); }
  .site-header__logo img { height: 24px; }

  .hero { padding-top: 80px; }
  .hero__main { border-radius: 28px; min-height: clamp(500px, 78svh, 680px); }
  .hero-tile { border-radius: 28px; flex-basis: auto; min-height: 250px; }
  .hero-tile__art { min-height: 110px; }
  .card__icon { width: 46px; height: 46px; }

  .block { border-radius: 28px; }
  .card--pillar, .origem__card { border-radius: 24px; }
  .film__frame { border-radius: 18px; }
  .film--banner .film__frame { border-radius: 22px; aspect-ratio: 16 / 9; }

  .split { gap: 24px; }
  .step { padding-right: 0; }
  .step p { max-width: none; }

  /* Botões ocupam a largura toda e o e-mail não estoura a tela */
  .hero .btn-row .btn,
  .contato .btn { flex: 1 1 100%; }
  .btn--outline { overflow-wrap: anywhere; padding: 12px 20px; }

  .site-footer__inner { justify-content: flex-start; flex-direction: column; align-items: flex-start; }

  .modal { padding-left: 12px; padding-right: 12px; }
  .modal__player { border-radius: 16px; }
}

@media (max-width: 360px) {
  .site-header__bar { padding-left: 14px; gap: 8px; }
  .site-header .btn--sm { padding: 0 16px; }
  .contato .btn--outline { font-size: 13px; padding: 12px 14px; }
}

/* Celular deitado: hero não precisa ocupar mais que a tela */
@media (max-height: 520px) and (orientation: landscape) {
  .hero__main { min-height: 420px; }
  .modal { padding-top: 10px; padding-bottom: 10px; }
  .modal__content { gap: 8px; width: min(100%, calc((100dvh - 110px) * 16 / 9)); }
  .modal__close { width: 38px; height: 38px; }
}

/* Movimento reduzido ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
