/* =========================================================
   Wanna Studio — portfólio estilo streaming
   Paleta: #1b493d verde · #f5ede5 creme · #808080 cinza · #000000 preto
   ========================================================= */

:root,
:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #0e0e0e;
  --surface-2: #161616;
  --text: #f5ede5;
  --muted: #808080;
  --accent: #1b493d;
  --accent-hover: #24604f;
  --accent-glow: rgba(36, 96, 79, 0.55);
  --on-accent: #f5ede5;
  --border: rgba(245, 237, 229, 0.12);
  --nav-bg: rgba(0, 0, 0, 0.72);
  --shade: 0, 0, 0;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5ede5;
  --surface: #ece2d7;
  --surface-2: #e3d6c8;
  --text: #000000;
  --muted: #5c5c5c;
  --accent: #1b493d;
  --accent-hover: #143a30;
  --accent-glow: rgba(27, 73, 61, 0.35);
  --on-accent: #f5ede5;
  --border: rgba(0, 0, 0, 0.14);
  --nav-bg: rgba(245, 237, 229, 0.8);
  --shade: 245, 237, 229;
  color-scheme: light;
}

:root {
  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0; }
svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Logo por tema */
:root[data-theme="dark"] .logo-light,
:root[data-theme="light"] .logo-dark { display: none !important; }

.eyebrow {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.accent-word { position: relative; white-space: nowrap; isolation: isolate; }
.accent-word::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em;
  background: var(--accent); border-radius: 4px; z-index: -1;
  transform-origin: left; animation: underline 1.2s .6s var(--ease) both;
}
@keyframes underline { from { transform: scaleX(0); } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer;
  transition: background-color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--accent svg { fill: currentColor; stroke: none; }
.btn--accent:hover { background: var(--accent-hover); box-shadow: 0 10px 30px -10px var(--accent-glow); transform: translateY(-1px); }
.btn--ghost { background: rgba(var(--shade), .35); border-color: var(--border); color: var(--text); backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--text); }
.btn--outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn--outline:hover { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.btn--sm { padding: .6em 1.15em; font-size: .85rem; }
.btn--lg { padding: 1em 1.9em; font-size: 1rem; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font-weight: 600; color: var(--text); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 1px solid var(--border); cursor: pointer; color: var(--text);
  transition: border-color .25s, background-color .25s;
}
.icon-btn:hover { border-color: var(--text); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--bg);
  transition: opacity .6s var(--ease), visibility .6s;
}
.loader img { width: 110px; animation: owl 1.4s ease-in-out infinite; }
.loader.is-done { opacity: 0; visibility: hidden; }
@keyframes owl { 0%, 100% { opacity: .35; transform: scale(.94); } 50% { opacity: 1; transform: scale(1); } }

/* ---------- Navegação ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  transition: background-color .35s, backdrop-filter .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--border); }
.nav__logo img { height: 44px; width: auto; }
.nav__links { display: flex; gap: 6px; padding: 5px; border-radius: 999px; border: 1px solid var(--border); background: rgba(var(--shade), .3); backdrop-filter: blur(10px); }
.nav__links a { text-decoration: none; font-size: .88rem; font-weight: 500; padding: .45em 1em; border-radius: 999px; transition: background-color .2s; }
.nav__links a:hover { background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__menu { display: none; }
#themeToggle .i-moon { display: none; }
:root[data-theme="light"] #themeToggle .i-sun { display: none; }
:root[data-theme="light"] #themeToggle .i-moon { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate;
}
.hero__slides { position: absolute; inset: 0; z-index: -2; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.slide.is-active { opacity: 1; }
.slide__bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(38px) saturate(1.1) brightness(.55); }
.slide__fg {
  position: absolute; top: 0; bottom: 0; right: var(--gutter);
  width: min(46vw, 640px); height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 22%, #000 88%, transparent);
}
.slide.is-active .slide__fg { animation: kenburns 9s linear both; }
@keyframes kenburns { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(var(--shade), .92) 0%, rgba(var(--shade), .55) 42%, rgba(var(--shade), 0) 70%),
    linear-gradient(0deg, var(--bg) 0%, rgba(var(--shade), 0) 35%);
}
.hero__content { width: 100%; padding: 0 var(--gutter) clamp(48px, 9vh, 96px); max-width: 1400px; }
.hero .eyebrow { color: var(--text); opacity: .78; }
:root[data-theme="dark"] .hero__content { text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.hero__title { font-size: clamp(2.6rem, 7.4vw, 6.4rem); font-weight: 800; max-width: 11.5em; margin-bottom: 28px; letter-spacing: -0.035em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero__feature { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 18px; }
.hero__tag { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); padding: .35em .8em; border-radius: 6px; }
.hero__feature-title { font-weight: 500; color: var(--text); }
.hero__feature-title small { color: var(--muted); font-size: .85em; margin-left: .4em; }
.hero__dots { display: flex; gap: 8px; }
.hero__dots button { width: 34px; height: 4px; border-radius: 4px; border: 0; padding: 0; cursor: pointer; background: var(--border); position: relative; overflow: hidden; }
.hero__dots button::after { content: ""; position: absolute; inset: 0; background: var(--text); transform: scaleX(0); transform-origin: left; }
.hero__dots button.is-active::after { animation: progress var(--slide-ms, 7000ms) linear forwards; }
.hero.is-paused .hero__dots button.is-active::after { animation-play-state: paused; }
@keyframes progress { to { transform: scaleX(1); } }

.hero__sound { position: absolute; right: var(--gutter); bottom: clamp(48px, 9vh, 96px); z-index: 2; background: rgba(0,0,0,.35); color: #f5ede5; border-color: rgba(245,237,229,.35); backdrop-filter: blur(8px); }
.hero__sound[hidden] { display: none; }
.hero__sound .i-sound, .hero__sound.is-on .i-muted { display: none; }
.hero__sound.is-on .i-sound { display: block; }

/* ---------- Catálogo / fileiras ---------- */
.section-head { padding: 0 var(--gutter); margin-bottom: 28px; }
.catalog { padding: clamp(56px, 10vh, 110px) 0 40px; }
.row { margin-bottom: 44px; position: relative; }
.row__head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--gutter); margin-bottom: 14px; }
.row__title { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 600; }
.row__count { color: var(--muted); font-size: .85rem; }
.row__track {
  display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 18px var(--gutter) 26px; scrollbar-width: none;
}
.row__track::-webkit-scrollbar { display: none; }
.row__arrow {
  position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--nav-bg); border: 1px solid var(--border); color: var(--text); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .25s, border-color .25s;
}
.row__arrow--prev { left: 12px; }
.row__arrow--next { right: 12px; }
.row:hover .row__arrow:not([disabled]) { opacity: 1; }
.row__arrow:hover { border-color: var(--text); }
.row__arrow[disabled] { opacity: 0 !important; pointer-events: none; }

.card {
  flex: 0 0 auto; width: clamp(190px, 19vw, 270px); aspect-ratio: 3 / 4;
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  scroll-snap-align: start; border: 1px solid var(--border); padding: 0; background: var(--surface);
  text-align: left; color: #f5ede5;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s;
}
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.2) 45%, rgba(0,0,0,0) 65%); }
.card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 16px; }
.card__title { font-weight: 700; font-size: 1.02rem; line-height: 1.2; margin-bottom: 6px; }
.card__meta { font-size: .74rem; color: rgba(245, 237, 229, .75); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.card__meta span + span::before { content: "·"; margin-right: 8px; }
.card__kicker { font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(245, 237, 229, .72); margin-bottom: 4px; }
.card__synopsis {
  font-size: .78rem; line-height: 1.45; color: rgba(245, 237, 229, .88);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  max-height: 0; opacity: 0; margin-top: 0; transition: max-height .45s var(--ease), opacity .35s, margin .45s var(--ease);
}
.card__cta {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600;
  background: #f5ede5; color: #000; padding: .45em .95em .45em .8em; border-radius: 999px;
  max-height: 0; opacity: 0; margin-top: 0; overflow: hidden; transition: max-height .45s var(--ease), opacity .35s, margin .45s var(--ease);
}
.card__cta svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.card__badge { position: absolute; top: 12px; left: 12px; z-index: 1; font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: #f5ede5; padding: .3em .65em; border-radius: 6px; }
.card__play {
  position: absolute; top: 12px; right: 12px; z-index: 1; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(0,0,0,.5); border: 1px solid rgba(245,237,229,.3);
}
.card__play svg { width: 14px; height: 14px; fill: #f5ede5; stroke: none; margin-left: 2px; }
@media (hover: hover) {
  .card:hover { transform: translateY(-6px) scale(1.035); border-color: rgba(36, 96, 79, .9); box-shadow: 0 24px 50px -18px var(--accent-glow), 0 0 0 1px var(--accent); z-index: 2; }
  .card:hover img { transform: scale(1.06); }
  .card:hover::after { background: linear-gradient(0deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.6) 50%, rgba(0,0,0,.1) 80%); }
  .card:hover .card__synopsis { max-height: 4.5em; opacity: 1; margin-top: 8px; }
  .card:hover .card__cta { max-height: 3em; opacity: 1; margin-top: 12px; }
}
.card:focus-visible .card__synopsis { max-height: 4.5em; opacity: 1; margin-top: 8px; }
.card::after { transition: background .4s; }

/* Filtros */
.chips { display: flex; gap: 8px; padding: 0 var(--gutter); margin: -6px 0 26px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  white-space: nowrap; padding: .55em 1.25em; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--text); font-size: .88rem; font-weight: 500; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--text); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.row[hidden] { display: none; }
.row.fade-in { animation: rowIn .5s var(--ease); }
@keyframes rowIn { from { opacity: 0; transform: translateY(12px); } }

/* Top N com números gigantes */
.top-tag { display: inline-block; background: var(--accent); color: var(--on-accent); font-size: .68rem; font-weight: 700; letter-spacing: .08em; padding: .3em .6em; border-radius: 5px; vertical-align: middle; margin-right: 8px; position: relative; top: -2px; }
.top-item { flex: 0 0 auto; display: flex; align-items: flex-end; scroll-snap-align: start; }
.top-num {
  /* Poppins 800: algarismos ocupam de 0,025em a 0,795em numa caixa de 0,85em.
     Tamanho = altura do card / 0,85, então o número inteiro cabe na altura do card e não vaza. */
  --card-h: clamp(226.67px, 20vw, 293.33px);
  font-size: calc(var(--card-h) / .85); font-weight: 800; line-height: .85; letter-spacing: -0.06em;
  color: var(--bg); -webkit-text-stroke: 3px rgba(245, 237, 229, .5); margin-right: -.12em;
  user-select: none; pointer-events: none; overflow: hidden;
}
:root[data-theme="light"] .top-num { -webkit-text-stroke-color: rgba(0, 0, 0, .3); }
.top-item .card { scroll-snap-align: none; width: clamp(170px, 15vw, 220px); }
.row--top .row__track { gap: 18px; }

/* ---------- Faixas de detalhe ---------- */
.strip { position: relative; height: clamp(240px, 46vh, 460px); overflow: hidden; margin: 20px 0; }
.strip img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; will-change: transform; filter: brightness(.82); }
.strip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(var(--shade), 0) 22%, rgba(var(--shade), 0) 78%, var(--bg) 100%); }
.strip__text { position: absolute; z-index: 1; left: var(--gutter); bottom: 22%; font-size: clamp(1.3rem, 3vw, 2.2rem); font-weight: 700; color: #f5ede5; max-width: 14em; text-shadow: 0 2px 24px rgba(0,0,0,.6); letter-spacing: -0.02em; }

/* ---------- Sobre ---------- */
.about {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center;
  padding: clamp(64px, 12vh, 130px) var(--gutter); max-width: 1400px; margin: 0 auto;
}
.about__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about__photo { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 4; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__photo--offset { transform: translateY(48px); }
.about__photo figcaption { position: absolute; left: 14px; bottom: 12px; font-weight: 600; color: #f5ede5; font-size: .9rem; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); padding: .25em .8em; border-radius: 999px; }
.about__text h2 { margin-bottom: 22px; }
.about__text p + p { margin-top: 14px; }
.about__text p:not(.eyebrow) { color: var(--muted); font-size: 1.02rem; max-width: 36em; }
:root[data-theme="dark"] .about__text p:not(.eyebrow) { color: rgba(245, 237, 229, .72); }
.about__social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.about__social a { text-decoration: none; font-size: .88rem; font-weight: 500; padding: .5em 1em; border-radius: 999px; border: 1px solid var(--border); transition: border-color .2s; }
.about__social a:hover { border-color: var(--accent); }
.about__bts { grid-column: 1 / -1; margin-top: 40px; }
.bts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bts-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: var(--radius); }

/* ---------- Serviços ---------- */
.services { padding: clamp(64px, 12vh, 120px) 0; }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0 var(--gutter); }
.service {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border);
  transition: border-color .3s, transform .3s var(--ease);
}
.service:hover { border-color: var(--accent); transform: translateY(-4px); }
.service__num { font-size: .8rem; font-weight: 600; color: var(--muted); }
.service p { color: var(--muted); font-size: .93rem; flex: 1; }
:root[data-theme="dark"] .service p { color: rgba(245, 237, 229, .66); }
.service .btn { margin-top: 8px; }

.steps { padding: 64px var(--gutter) 0; }
.steps__title { margin-bottom: 22px; font-size: 1.3rem; }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.steps__list li { counter-increment: step; display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 2px solid var(--border); position: relative; }
.steps__list li::before { content: "0" counter(step); position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--accent); font-size: 0; }
.steps__list strong { font-weight: 600; }
.steps__list span { color: var(--muted); font-size: .9rem; }

/* ---------- Contato ---------- */
.contact { padding: clamp(80px, 14vh, 150px) var(--gutter); text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact h2 { max-width: 14em; font-size: clamp(2rem, 5.4vw, 4.4rem); font-weight: 800; }
.contact__sub { color: var(--muted); margin: 18px 0 34px; }
.contact__ig { margin-top: 22px; font-size: .88rem; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--border); }
.contact__ig:hover { color: var(--text); }
.contact__ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Rodapé ---------- */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--border); padding: 48px var(--gutter) 40px; }
.footer__owl { position: absolute; right: -3%; bottom: -30%; height: 160%; width: auto; opacity: .05; pointer-events: none; }
.footer__inner { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__links a { text-decoration: none; font-size: .9rem; color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__copy { width: 100%; color: var(--muted); font-size: .8rem; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #f5ede5; box-shadow: 0 12px 30px -8px rgba(0,0,0,.5), 0 0 0 1px rgba(245,237,229,.12);
  transition: transform .3s var(--ease), background-color .25s;
}
.wa-float svg { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.wa-float:hover { transform: scale(1.07); background: var(--accent-hover); }

/* ---------- Modal ---------- */
.modal {
  width: min(1060px, 100% - 24px); max-height: calc(100% - 48px); margin: auto;
  padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); overflow: hidden;
}
.modal::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px); }
.modal[open] { animation: modalIn .45s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal__box { max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain; }
.modal__close { position: sticky; top: 14px; float: right; margin: 14px 14px -56px 0; z-index: 5; background: rgba(0,0,0,.55); color: #f5ede5; border-color: rgba(245,237,229,.25); backdrop-filter: blur(8px); }
/* topo do modal: sempre escuro, estilo página de título */
.modal__top { position: relative; min-height: min(68vh, 600px); display: flex; align-items: flex-end; overflow: hidden; background: #000; isolation: isolate; }
.modal__hero { position: absolute; inset: 0; z-index: -1; }
.modal__hero > .bg { position: absolute; inset: -30px; width: calc(100% + 60px); height: calc(100% + 60px); object-fit: cover; filter: blur(30px) brightness(.42); }
.modal__hero > .fg {
  position: absolute; top: 0; right: 0; height: 100%; width: min(60%, 600px); object-fit: cover; object-position: 50% 25%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 32%); mask-image: linear-gradient(to right, transparent, #000 32%);
  transition: width .5s var(--ease);
}
.modal__hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transition: opacity .4s;
  background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 42%, rgba(0,0,0,0) 72%), linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,0) 45%);
}
.modal__hero.is-playing { z-index: 2; }
.modal__hero.is-playing > .fg { width: 100%; object-fit: contain; -webkit-mask-image: none; mask-image: none; }
.modal__hero.is-playing::after { opacity: 0; }
.modal__top:has(.is-playing) .modal__info { opacity: 0; pointer-events: none; }
.modal__info { position: relative; z-index: 1; max-width: 620px; padding: 110px clamp(20px, 4vw, 44px) 34px; color: #f5ede5; transition: opacity .4s; }
.modal__kicker { font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(245,237,229,.7); margin-bottom: 10px; }
.modal__info h2 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 12px; }
.modal__tags { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .86rem; color: rgba(245,237,229,.75); margin-bottom: 16px; }
.modal__tags span + span::before { content: "·"; margin: 0 8px; }
.modal__tags span:first-child { color: #f5ede5; font-weight: 600; }
.modal__synopsis { color: rgba(245,237,229,.88); max-width: 34em; margin-bottom: 24px; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.modal__info .btn--ghost { color: #f5ede5; border-color: rgba(245,237,229,.3); background: rgba(0,0,0,.35); }
.modal__info .btn--ghost:hover { border-color: #f5ede5; }
.btn--light { background: #f5ede5; color: #000; }
.btn--light svg { fill: currentColor; stroke: none; }
.btn--light svg rect { fill: none; stroke: currentColor; stroke-width: 2; }
.btn--light:hover { background: #fff; transform: translateY(-1px); }
.wa-ico { fill: currentColor; stroke: none; }

.modal__tabs {
  position: sticky; top: 0; z-index: 3; display: flex; gap: 28px;
  padding: 0 clamp(20px, 4vw, 44px); background: var(--surface); border-bottom: 1px solid var(--border);
}
.modal__tab {
  background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 18px 0 15px; cursor: pointer;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.modal__tab span { opacity: .7; margin-left: 4px; }
.modal__tab:hover { color: var(--text); }
.modal__tab.is-active { color: var(--text); border-color: var(--accent); }
:root[data-theme="dark"] .modal__tab.is-active { border-color: #f5ede5; }
.modal__similar { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; padding: 24px clamp(20px, 4vw, 44px) 40px; }
.modal__similar[hidden], .modal__gallery[hidden], .modal__videos[hidden], .modal__tab[hidden] { display: none; }
.modal__hero > img.fg[hidden] { display: none; }

/* Vídeos como episódios */
.modal__videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 12px; padding: 24px clamp(20px, 4vw, 44px) 40px; }
.episode { display: flex; flex-direction: column; gap: 10px; padding: 0; border: 0; background: none; color: var(--text); text-align: left; cursor: pointer; }
.episode__thumb { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); transition: border-color .3s, transform .4s var(--ease); }
.episode__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.episode__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 45%); }
.episode__play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.45); border: 1px solid rgba(245,237,229,.4); backdrop-filter: blur(6px); color: #f5ede5; opacity: .9; transition: transform .3s var(--ease), background-color .3s; }
.episode__play svg { width: 16px; height: 16px; fill: currentColor; stroke: none; margin-left: 2px; }
.episode__time { position: absolute; right: 8px; bottom: 8px; z-index: 1; font-size: .72rem; font-weight: 600; color: #f5ede5; background: rgba(0,0,0,.6); padding: .15em .5em; border-radius: 5px; }
.episode__info { display: flex; gap: 8px; align-items: baseline; }
.episode__num { font-size: .78rem; font-weight: 700; color: var(--muted); }
.episode__title { font-size: .88rem; font-weight: 600; line-height: 1.3; }
.episode:hover .episode__thumb { border-color: var(--accent); transform: translateY(-3px); }
.episode:hover .episode__thumb img { transform: scale(1.05); }
.episode:hover .episode__play { background: var(--accent); transform: scale(1.08); }
.episode.is-current .episode__thumb { border-color: #f5ede5; box-shadow: 0 0 0 1px #f5ede5; }
:root[data-theme="light"] .episode.is-current .episode__thumb { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.card--grid { width: auto; }
.modal__gallery { columns: 3 220px; column-gap: 10px; padding: 24px clamp(20px, 4vw, 44px) 36px; }
.modal__gallery button { display: block; width: 100%; margin: 0 0 10px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--surface-2); break-inside: avoid; }
.modal__gallery img { width: 100%; height: auto; transition: transform .5s var(--ease), opacity .3s; }
.modal__gallery button:hover img { transform: scale(1.03); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.96); display: grid; place-items: center; touch-action: pan-y; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); object-fit: contain; border-radius: 6px; user-select: none; -webkit-user-drag: none; transition: opacity .25s; }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(245,237,229,.08); border: 1px solid rgba(245,237,229,.2); color: #f5ede5; }
.lb-btn:hover { background: rgba(245,237,229,.18); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgba(245,237,229,.7); font-size: .85rem; }

/* ---------- Granulado de filme ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
:root[data-theme="light"] .grain { opacity: .05; filter: invert(1); }
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); } 80% { transform: translate(5%, 4%); } 100% { transform: translate(0, 0); }
}

/* ---------- Título do topo palavra por palavra ---------- */
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.hero__title .w__in { display: inline-block; transform: translateY(108%); animation: wordUp 1s var(--ease) forwards; animation-delay: calc(var(--i) * 110ms + 900ms); }
.hero__title .accent-word::after { animation-delay: 1.9s; }
@keyframes wordUp { to { transform: none; } }

/* ---------- Borda com brilho percorrendo ---------- */
@property --beam-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.beam { position: relative; isolation: isolate; --beam-color: #f5ede5; }
:root[data-theme="light"] .beam { --beam-color: #000; }
.beam::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--beam-angle), transparent 0 68%, var(--beam-color) 84%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: beam 3.4s linear infinite;
}
@keyframes beam { to { --beam-angle: 360deg; } }

/* ---------- Prévia de vídeo no card ---------- */
.card__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.card__video.is-on { opacity: 1; }
.card.is-previewing .card__play { opacity: 0; }
.card__play { transition: opacity .3s; }

/* ---------- Vídeo no celular ---------- */
.showreel {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 100px); align-items: center;
  margin: 72px var(--gutter) 0; padding: clamp(28px, 5vw, 64px); border-radius: var(--radius-lg);
  background: radial-gradient(120% 120% at 100% 0%, rgba(27, 73, 61, .55), transparent 55%), var(--surface);
  border: 1px solid var(--border); overflow: hidden;
}
.showreel__text h3 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.showreel__text p:not(.eyebrow) { color: var(--muted); max-width: 30em; margin-bottom: 26px; }
:root[data-theme="dark"] .showreel__text p:not(.eyebrow) { color: rgba(245, 237, 229, .7); }
.phone {
  position: relative; width: clamp(230px, 22vw, 290px); aspect-ratio: 9 / 19.5; border-radius: 48px; padding: 11px;
  background: linear-gradient(145deg, #3a3a3a, #121212 40%, #262626);
  box-shadow: 0 0 0 1px rgba(245,237,229,.14) inset, 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 2px #0a0a0a;
  transform: rotate(4deg);
}
.phone.reveal.is-in { transform: rotate(4deg); }
.phone__btn { position: absolute; left: -3px; width: 3px; border-radius: 2px 0 0 2px; background: #2a2a2a; }
.phone__btn--a { top: 22%; height: 9%; }
.phone__btn--b { top: 34%; height: 9%; }
.phone__screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #000; }
.phone__screen video { width: 100%; height: 100%; object-fit: cover; }
.phone__island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 34%; height: 24px; border-radius: 20px; background: #000; }
.phone__side { position: absolute; right: 12px; bottom: 90px; display: flex; flex-direction: column; gap: 16px; color: #f5ede5; }
.phone__side svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 4px rgba(0,0,0,.5)); }
.phone__caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 18px; color: #f5ede5; font-size: .72rem; background: linear-gradient(0deg, rgba(0,0,0,.7), transparent); }
.phone__user { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: .78rem; }
.phone__user img { width: 26px; height: 26px; padding: 4px; object-fit: contain; border-radius: 50%; background: #1b493d; }

/* ---------- Revelar ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.about__photo--offset.reveal.is-in { transform: translateY(48px); }

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .services__grid, .steps__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav { gap: 8px; }
  .nav__links { gap: 2px; padding: 4px; }
  .nav__links a { font-size: .8rem; padding: .4em .8em; }
  .nav__logo img { height: 36px; }

  .slide__fg { inset: 0; right: 0; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero__shade { background: linear-gradient(0deg, var(--bg) 6%, rgba(var(--shade), .86) 45%, rgba(var(--shade), .55) 62%, rgba(var(--shade), .15) 82%, rgba(var(--shade), .4) 100%); }
  .hero__ctas .btn { flex: 1 1 auto; }
  .row__arrow { display: none; }
  .card { width: 44vw; max-width: 240px; }

  .about { grid-template-columns: 1fr; }
  .about__bts { margin-top: 30px; }
  .bts-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .modal { width: 100%; max-width: 100%; max-height: 100%; height: 100%; border-radius: 0; border: 0; }
  .modal__box { max-height: 100vh; max-height: 100dvh; height: 100%; }
  .modal__top { min-height: 82vh; min-height: 82dvh; }
  .modal__hero > .fg { width: 100%; -webkit-mask-image: none; mask-image: none; }
  .modal__hero::after { background: linear-gradient(0deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.75) 35%, rgba(0,0,0,0) 65%); }
  .modal__info { max-width: none; padding-top: 40vh; }
  .modal__actions .btn { flex: 1 1 auto; }
  .hero__sound { top: 84px; bottom: auto; }
  .top-num { --card-h: 48vw; -webkit-text-stroke-width: 2px; }
  .top-item .card { width: 36vw; }
  .showreel { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .showreel__text p:not(.eyebrow) { margin-left: auto; margin-right: auto; }
  .phone, .phone.reveal.is-in { width: 240px; transform: none; }
  .card__kicker, .card__meta span:first-child { display: none; }
  .card__meta span + span::before { content: none; }
  .card__body { padding: 12px; }
  .card__title { font-size: .92rem; }
  .modal__gallery { columns: 2; column-gap: 8px; }
  .lb-prev, .lb-next { display: none; }
}
@media (max-width: 520px) {
  .services__grid, .steps__list { grid-template-columns: 1fr; }
  .about__photo--offset, .about__photo--offset.reveal.is-in { transform: translateY(28px); }
  .strip { height: 220px; }
}

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