/* =========================================================
   Fernando Peixoto | Portfólio
   Tema único escuro (os vídeos são protagonistas).
   Raio: mídia e blocos 16px, botões e pílulas em pílula.
   Acento único: bordô.
   ========================================================= */

:root {
  --bg: #0f0d0e;
  --bg-2: #161314;
  --bg-3: #1f1a1c;
  --line: rgb(243 238 238 / .09);
  --line-2: rgb(243 238 238 / .16);
  --text: #f3eeee;
  --muted: #a89fa1;
  --wine: #8f1d38;
  --wine-deep: #5e1225;
  --wine-hi: #d4546f;

  --r: 16px;
  --r-sm: 10px;
  --pill: 999px;

  --f-display: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Switzer", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);

  /* camadas */
  --z-nav: 20;
  --z-menu: 25;
  --z-grain: 40;
  color-scheme: dark;
}

*, *::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(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* grão de filme fixo, fora do fluxo de scroll */
body::after {
  content: "";
  position: fixed; inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol, dl, dd, figure { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--wine-hi); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--wine); color: #fff; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--wine); color: #fff; padding: 8px 14px; border-radius: var(--pill); }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 150px) 0; }

/* ---------- tipografia ---------- */
.h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(38px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -.025em;
  max-width: 16ch;
}
.h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; letter-spacing: -.015em; }
em { font-style: normal; color: var(--wine-hi); }
.lead { margin-top: 20px; max-width: 56ch; color: var(--muted); font-size: clamp(17px, 1.4vw, 19px); }
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--wine-hi); margin-bottom: 22px;
}

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 26px;
  border-radius: var(--pill);
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .25s, border-color .25s;
}
.btn i { font-size: 20px; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--wine); color: #fff; }
@media (hover: hover) and (pointer: fine) { .btn--primary:hover { background: #a3223f; } }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
@media (hover: hover) and (pointer: fine) { .btn--ghost:hover { border-color: var(--text); } }
.btn--sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn--sm i { font-size: 18px; }
.btn--lg { height: 60px; padding: 0 32px; font-size: 17px; }

.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--pill);
  border: 1px solid var(--line-2); font-size: 20px; transition: background-color .2s, transform .3s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--bg-3); } }
.icon-btn:active { transform: scale(.94); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  transition: background-color .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { background: rgb(15 13 14 / .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav__inner { height: 72px; display: flex; align-items: center; gap: 32px; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--pill);
  background: var(--wine); font-family: var(--f-display); font-weight: 800; font-size: 15px; letter-spacing: -.02em;
}
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { text-decoration: none; font-size: 15px; color: var(--muted); transition: color .2s; }
@media (hover: hover) and (pointer: fine) { .nav__links a:hover { color: var(--text); } }
.nav__toggle { display: none; width: 44px; height: 44px; font-size: 26px; place-items: center; }
.menu-mobile { display: none; }

@media (max-width: 1080px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
  .menu-mobile:not([hidden]) {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; inset: calc(72px + env(safe-area-inset-top, 0px)) 0 auto 0; max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; z-index: var(--z-menu);
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 24px;
  }
  .menu-mobile a { font-family: var(--f-display); font-weight: 700; font-size: 28px; text-decoration: none; padding: 8px 0; }
}

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 104px 0 64px;
  background:
    radial-gradient(60% 50% at 85% 40%, rgb(143 29 56 / .28), transparent 70%),
    var(--bg);
}
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(46px, 6vw, 88px);
  line-height: .98; letter-spacing: -.035em;
  max-width: 11ch;
}
.hero__sub { margin-top: 26px; max-width: 44ch; font-size: clamp(17px, 1.45vw, 20px); color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero__reel {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 14px; align-items: center;
  width: 100%; max-width: 640px; justify-self: end;
}
.reel {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 16;
  border-radius: var(--r); overflow: hidden; background: var(--bg-3);
  box-shadow: 0 30px 80px -30px rgb(94 18 37 / .7);
  transition: transform .6s var(--ease);
}
.reel video { width: 100%; height: 100%; object-fit: cover; }
.reel--a { transform: translateY(-9%); }
.reel--c { transform: translateY(11%); }
@media (hover: hover) and (pointer: fine) { .reel:hover { transform: translateY(-2%) scale(1.015); } }
@media (hover: hover) and (pointer: fine) { .reel--a:hover { transform: translateY(-11%) scale(1.015); } }
@media (hover: hover) and (pointer: fine) { .reel--c:hover { transform: translateY(9%) scale(1.015); } }
.reel__play {
  position: absolute; left: 50%; bottom: 16px; translate: -50% 0;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 9px 16px; border-radius: var(--pill);
  background: rgb(15 13 14 / .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / .12);
  font-size: 14px; font-weight: 600;
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: 112px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__reel { gap: 10px; max-width: none; justify-self: stretch; }
  .reel--a { transform: translateY(-6%); }
  .reel--c { transform: translateY(6%); }
  .reel__play { font-size: 12px; padding: 7px 12px; bottom: 10px; }
}

/* ---------- clientes ---------- */
.clients { border-block: 1px solid var(--line); }
.clients__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-block: 32px; text-align: center; }
.clients__label { font-size: 14px; color: var(--muted); }
.clients__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; }
.clients__list li { font-family: var(--f-display); font-weight: 700; font-size: clamp(19px, 1.8vw, 24px); letter-spacing: -.01em; color: rgb(243 238 238 / .72); }
@media (max-width: 760px) {
  .clients__list { gap: 8px 24px; }
}

/* ---------- contexto / dados ---------- */
.stats {
  margin-top: 56px;
  display: grid; gap: 14px;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-areas: "xl a b" "xl w w";
}
.stat {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  min-height: 230px; padding: 28px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r);
}
.stat:nth-of-type(2) { grid-area: a; }
.stat:nth-of-type(3) { grid-area: b; }
.stat--xl { grid-area: xl; background: linear-gradient(160deg, var(--wine) 0%, var(--wine-deep) 100%); border-color: transparent; }
.stat--wide { grid-area: w; min-height: 280px; border: 0; }
.stat__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 5vw, 76px); line-height: .95; letter-spacing: -.03em; }
.stat--xl .stat__num { font-size: clamp(72px, 9vw, 140px); }
.stat__txt { max-width: 30ch; }
.stat--xl .stat__txt { font-size: 19px; }
.stat__src { font-size: 13px; color: var(--muted); text-decoration: none; margin-top: 6px; }
.stat--xl .stat__src { color: rgb(255 255 255 / .72); }
@media (hover: hover) and (pointer: fine) { .stat__src:hover { color: var(--text); text-decoration: underline; } }
.stat__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stat--wide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgb(15 13 14 / .94) 0%, rgb(15 13 14 / .7) 55%, rgb(15 13 14 / .25) 100%); }
.stat__over { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px; }

@media (max-width: 900px) {
  .stats { grid-template-columns: 1fr 1fr; grid-template-areas: "xl xl" "a b" "w w"; }
  .stat { min-height: 190px; padding: 22px; }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; grid-template-areas: "xl" "a" "b" "w"; }
}

/* ---------- manifesto ---------- */
.manifesto { background: var(--bg-2); border-block: 1px solid var(--line); }
.manifesto__text {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(36px, 4.6vw, 70px); line-height: 1.04; letter-spacing: -.03em;
  max-width: 18ch;
}
.manifesto__text .w { opacity: .18; transition: opacity .5s var(--ease); }
.manifesto__text .w.on { opacity: 1; }
.manifesto__text .w.accent.on { color: var(--wine-hi); }
.manifesto__grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
/* Seção com a mesma cor do fundo da foto (borda esquerda da fernando-celular = #690029).
   A foto encosta na borda direita e ocupa a altura toda, então não há emenda visível. */
.manifesto { position: relative; overflow: hidden; background: #690029; border-color: transparent; }
.manifesto__grid { grid-template-columns: minmax(0, 1fr); }
.manifesto__grid > div { position: relative; z-index: 1; max-width: min(58%, 820px); }
.manifesto__photo { position: absolute; top: 0; right: 0; bottom: 0; margin: 0; }
.manifesto__photo img {
  height: 100%; width: auto; max-width: 44vw; object-fit: cover; object-position: 42% 30%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%); mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.manifesto__text .w.accent.on { color: #ffb0c2; }
.manifesto .chain i { color: rgb(255 255 255 / .6); }
.manifesto .chain li:not([aria-hidden]) { border-color: rgb(255 255 255 / .3); }
.manifesto .chain li:last-child { background: #fff; border-color: #fff; color: #690029; }
/* celular e tablet: a foto sai, fica só o texto */
@media (max-width: 900px) {
  .manifesto__grid { display: block; }
  .manifesto__grid > div { max-width: none; }
  .manifesto__photo { display: none; }
}
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 56px; }
.chain li { font-size: 16px; font-weight: 600; }
.chain li:not([aria-hidden]) { padding: 10px 20px; border: 1px solid var(--line-2); border-radius: var(--pill); }
.chain li:last-child { background: var(--wine); border-color: var(--wine); }
.chain i { color: var(--muted); font-size: 18px; }

/* ---------- case ---------- */
.case__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.case__side { position: sticky; top: 110px; }
.case__roles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.case__roles li { font-size: 14px; padding: 7px 14px; border-radius: var(--pill); background: var(--bg-3); }
.case__nums { display: grid; grid-template-columns: auto 1fr; gap: 22px 20px; align-items: baseline; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.case__nums div { display: contents; }
.case__nums dt { font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; letter-spacing: -.02em; color: var(--wine-hi); }
.case__nums dd { color: var(--muted); }
.case__note { margin-top: 32px; font-size: 15px; color: var(--muted); max-width: 46ch; }

.case__wall { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.case__wall > :nth-child(even) { margin-top: 56px; }
.tile {
  position: relative; display: block; width: 100%; aspect-ratio: 9 / 14;
  border-radius: var(--r); overflow: hidden; background: var(--bg-3);
}
.tile--tall { aspect-ratio: 9 / 16; }
@media (max-width: 640px) { .case__wall { gap: 10px; } .case__wall > :nth-child(even) { margin-top: 28px; } .tile, .tile--tall { aspect-ratio: 9 / 16; } }
.tile video { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
@media (hover: hover) and (pointer: fine) { .tile:hover video { transform: scale(1.04); } }
.tile__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; text-align: left;
  font-size: 14px; font-weight: 600;
  background: linear-gradient(transparent, rgb(15 13 14 / .85));
}
/* resultados: prints dos insights */
.results { margin-top: clamp(72px, 9vw, 120px); }
.results__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; }
.results__sub { margin-top: 8px; color: var(--muted); font-size: 15px; }
.results__list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-top: 32px; }
.result { display: flex; flex-direction: column; }
.result__num { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 2vw, 30px); line-height: 1; letter-spacing: -.02em; color: var(--wine-hi); }
.result__txt { margin-top: 6px; font-size: 14px; line-height: 1.4; color: var(--muted); min-height: 2.8em; }
.result__shot {
  display: block; margin-top: 14px; border-radius: var(--r); overflow: hidden; background: #fff;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.result__shot img { width: 100%; }
@media (hover: hover) and (pointer: fine) { .result__shot:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgb(143 29 56 / .6); } }
@media (max-width: 1100px) { .results__list { grid-template-columns: repeat(3, 1fr); row-gap: 36px; } }
@media (max-width: 640px) {
  .results__list {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none;
    margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); gap: 12px;
  }
  .results__list::-webkit-scrollbar { display: none; }
  .result { flex: 0 0 62%; scroll-snap-align: start; }
}

@media (max-width: 900px) {
  .case__grid { grid-template-columns: 1fr; }
  .case__side { position: static; }
  .case__nums { grid-template-columns: 1fr; row-gap: 4px; }
  .case__nums dd { margin-bottom: 16px; }
}

/* ---------- trabalhos ---------- */
.filters { display: flex; gap: 8px; margin: 40px 0 32px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: none; height: 42px; padding: 0 18px; border-radius: var(--pill);
  border: 1px solid var(--line-2); font-size: 15px; font-weight: 500; color: var(--muted);
  transition: background-color .2s, color .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) { .filter:hover { color: var(--text); border-color: var(--text); } }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.filter sup { font-size: 11px; margin-left: 4px; opacity: .6; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { text-align: left; display: block; width: 100%; }
.card__media { display: block; position: relative; aspect-ratio: 9 / 16; border-radius: var(--r); overflow: hidden; background: var(--bg-3); }
.card__media img, .card__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card__media video { opacity: 0; transition: opacity .35s; }
.card.is-playing .card__media video { opacity: 1; }
.card__media::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .06);
}
.card__play {
  position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--pill); background: var(--wine); color: #fff; font-size: 18px;
  opacity: 0; translate: 0 8px; transition: opacity .3s, translate .4s var(--ease);
}
.card:focus-visible .card__play { opacity: 1; translate: 0 0; }
@media (hover: hover) and (pointer: fine) { .card:hover .card__play { opacity: 1; translate: 0 0; } }
.card__meta { display: flex; justify-content: space-between; gap: 12px; padding: 12px 2px 0; }
.card__title { font-weight: 600; font-size: 15px; line-height: 1.35; }
.card__cat { flex: none; font-size: 13px; color: var(--muted); }
.card[hidden] { display: none; }
.more { display: flex; justify-content: center; margin-top: 40px; }
.more .btn[hidden] { display: none; }
.grid .card { animation: cardIn .5s var(--ease) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }

@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card__meta { flex-direction: column; gap: 2px; }
  .card__play { opacity: 1; translate: 0 0; width: 36px; height: 36px; font-size: 15px; right: 8px; bottom: 8px; }
}

/* ---------- serviços (bento) ---------- */
.bento {
  margin-top: 48px; display: grid; gap: 14px;
  grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto;
}
.svc { position: relative; overflow: hidden; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.svc--main { grid-row: span 2; min-height: 620px; display: flex; align-items: flex-end; border: 0; }
.svc__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc--main::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgb(15 13 14 / .2) 0%, rgb(15 13 14 / .55) 40%, rgb(15 13 14 / .96) 100%); }
.svc__body { position: relative; z-index: 2; padding: clamp(24px, 3vw, 40px); }
.svc__body p { margin-top: 12px; color: var(--muted); max-width: 42ch; }
.svc--main .svc__body p { color: rgb(243 238 238 / .82); }
.svc--main .h3 { font-size: clamp(34px, 3.6vw, 52px); }
.svc--maker, .svc--story { display: grid; grid-template-columns: 1fr 34%; min-height: 300px; }
.svc--maker .svc__body, .svc--story .svc__body { display: flex; flex-direction: column; justify-content: flex-end; }
.svc__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.svc--story { background: linear-gradient(150deg, var(--wine-deep), var(--bg-2) 70%); }
.svc__icon { font-size: 30px; color: var(--wine-hi); margin-bottom: auto; padding-bottom: 28px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pills li { font-size: 14px; padding: 7px 14px; border-radius: var(--pill); background: rgb(243 238 238 / .1); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pills--quiet li { background: var(--bg-3); backdrop-filter: none; }

.audience { margin-top: 56px; display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline; }
.audience__title { font-size: 16px; font-weight: 600; color: var(--muted); }
.audience__list { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.audience__list li { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2vw, 28px); letter-spacing: -.01em; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .svc--main { grid-row: auto; min-height: 560px; }
  .audience { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 520px) {
  .svc--maker, .svc--story { grid-template-columns: 1fr 38%; min-height: 260px; }
}

/* ---------- sobre ---------- */
.about__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__media { position: relative; padding: 0 12% 14% 0; }
.about__main { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: var(--r); background: var(--wine-deep); }
.about__second {
  position: absolute; right: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 55% 30%;
  border-radius: var(--r); border: 6px solid var(--bg);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .6);
}
.about__text { margin-top: 28px; display: grid; gap: 16px; color: var(--muted); max-width: 58ch; }
.about__text p:last-child { color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 40px; margin-top: 40px; }
.facts dt { font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.02em; }
.facts dd { margin-top: 6px; font-size: 14px; color: var(--muted); max-width: 18ch; }
.about .pills { margin-top: 36px; }
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ---------- processo ---------- */
.process { border-top: 1px solid var(--line); }
.process__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.process__photo { aspect-ratio: 9 / 14; border-radius: var(--r); overflow: hidden; background: #3a2616; }
.process__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.steps { margin-top: 44px; margin-left: 5px; border-left: 1px solid var(--line-2); }
.step { position: relative; padding: 0 0 30px 32px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; top: 9px; left: -6px; width: 11px; height: 11px; border-radius: var(--pill);
  background: var(--bg); border: 2px solid var(--wine-hi);
}
.step:last-child::before { background: var(--wine-hi); }
.step h3 { font-family: var(--f-display); font-weight: 800; font-size: 24px; letter-spacing: -.01em; }
.step p { margin-top: 4px; font-size: 16px; color: var(--muted); max-width: 44ch; }
@media (max-width: 900px) {
  .process__grid { grid-template-columns: 1fr; }
  .process__photo { max-width: 420px; aspect-ratio: 4 / 5; }
}

/* ---------- contato ---------- */
.contact {
  position: relative; overflow: hidden; padding: clamp(80px, 10vw, 140px) 0 0;
  /* tons tirados do fundo da foto (fernando-led) para ela se fundir à seção */
  background:
    radial-gradient(45% 70% at 78% 62%, rgb(66 27 32 / .9), transparent 75%),
    linear-gradient(180deg, var(--bg) 0%, #1f1316 35%, #341e20 72%, #1d1215 100%);
}
.contact__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; }
.contact__inner { padding-bottom: clamp(80px, 10vw, 140px); }
.contact__photo { align-self: end; }
.contact__photo img {
  width: 100%; max-height: 92dvh; object-fit: cover; object-position: 50% 20%; aspect-ratio: 2 / 3;
  /* bordas dissolvidas nos quatro lados (máscaras cruzadas) */
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 72%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 16%, #000 84%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 14%, #000 72%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__inner { padding-bottom: 0; }
  .contact__photo { max-width: 440px; margin-top: 16px; }
}
.contact__title {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(48px, 8vw, 120px); line-height: .96; letter-spacing: -.035em; max-width: 12ch;
}
.contact .lead { color: rgb(243 238 238 / .82); }
.contact__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.contact .btn--ghost { background: rgb(15 13 14 / .35); border-color: rgb(243 238 238 / .35); }
.contact__phone { margin-top: 24px; font-size: 15px; color: rgb(243 238 238 / .7); }

/* ---------- rodapé ---------- */
.footer { border-top: 1px solid var(--line); background: #1d1215; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-block: 28px; font-size: 14px; color: var(--muted); }
.footer a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer a:hover { color: var(--text); } }

/* ---------- player ---------- */
.player {
  width: min(94vw, 460px); max-height: 96dvh; padding: 0; border: 0; border-radius: var(--r);
  background: var(--bg-2); color: var(--text); overflow: hidden;
}
.player::backdrop { background: rgb(8 6 7 / .88); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.player[open] { animation: playerIn .4s var(--ease); }
@keyframes playerIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.player__stage { background: #000; aspect-ratio: 9 / 16; max-height: calc(96dvh - 76px); margin: 0 auto; }
.player__video { width: 100%; height: 100%; object-fit: contain; }
.player__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.player__title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.player__nav { display: flex; gap: 6px; flex: none; }

/* ---------- revelação ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .manifesto__text .w { opacity: 1; transition: none; }
  .grid .card, .player[open] { animation: none; }
  .reel, .tile video { transition: none; }
}

/* =========================================================
   Camada mobile: toque, safe area e ajustes de layout < 640px
   ========================================================= */
html { -webkit-tap-highlight-color: transparent; }
button, a, .filter { touch-action: manipulation; }
button, .btn, .filter, .chain li, .icon-btn { -webkit-user-select: none; user-select: none; }
.nav { padding-top: env(safe-area-inset-top, 0px); }
.footer__inner { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }

/* retorno imediato ao toque (funciona com mouse e dedo) */
.card, .tile, .reel, .filter, .result__shot { transition: transform .16s var(--ease); }
.card:active, .tile:active, .result__shot:active { transform: scale(.98); }
.filter:active { transform: scale(.96); }

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .eyebrow { font-size: 11px; letter-spacing: .08em; }

  /* hero */
  .hero { padding-top: 100px; padding-bottom: 48px; }
  .hero__sub { margin-top: 18px; }
  .hero__ctas { flex-direction: column; margin-top: 28px; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .hero__reel { margin-top: 12px; }

  /* manifesto: foto com altura limitada */

  /* serviços: foto em cima, texto embaixo */
  .svc--main { min-height: 540px; }
  .svc--main::before { background: linear-gradient(180deg, rgb(15 13 14 / .35) 0%, rgb(15 13 14 / .75) 38%, rgb(15 13 14 / .97) 70%); }
  .svc--maker, .svc--story { grid-template-columns: 1fr; min-height: 0; }
  .svc--maker .svc__img, .svc--story .svc__img { order: -1; height: 260px; object-position: 50% 18%; }
  .svc__icon { margin-bottom: 0; padding-bottom: 14px; }

  /* sobre */
  .about__text { margin-top: 20px; }
  .facts { gap: 20px 28px; }
  .facts > div:last-child { grid-column: 1 / -1; }
  .facts > div:last-child dd { max-width: none; }

  /* contato */
  .contact__ctas .btn { width: 100%; justify-content: center; }
}
