/* =========================================================
   André Victor — Fotógrafo de casamento
   Estilo inspirado em aperture.framer.media
   ========================================================= */

:root {
  --ink: #0d0d0d;
  --ink-2: rgba(0, 0, 0, 0.56);
  --ink-3: rgba(0, 0, 0, 0.32);
  --paper: #ffffff;
  --card: #f3f3f2;
  --line: rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --pad: clamp(20px, 4vw, 48px);
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --font: "Inter", "Inter Placeholder", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: -0.04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; letter-spacing: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - var(--pad) * 2, var(--max)); margin-inline: auto; }

/* ---------- utilitários ---------- */
.tag {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--card);
  font-size: 12px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 500;
}
.lead {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.03em;
  max-width: 46ch;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: -0.03em;
  transition: transform 0.4s var(--ease), background-color 0.3s, color 0.3s, box-shadow 0.4s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5); }
.btn--light { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.btn--lg { height: 48px; padding: 0 26px; font-size: 15px; }
.pill {
  font-style: normal;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  white-space: nowrap;
}

/* cantos de visor (viewfinder) */
.frame { position: relative; overflow: hidden; }
.frame::after {
  --c: rgba(255, 255, 255, 0.95);
  --l: 14px;
  --w: 1.5px;
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  z-index: 2;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l) no-repeat;
  transition: inset 0.6s var(--ease);
}

/* reveal ao rolar */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease) calc(var(--d, 0) * 0.08s),
    transform 0.9s var(--ease) calc(var(--d, 0) * 0.08s),
    filter 0.9s var(--ease) calc(var(--d, 0) * 0.08s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* =========================================================
   PRELOADER
   ========================================================= */
.preloader { display: none; }
.js .preloader {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #fff;
  overflow: hidden;
  will-change: transform, filter;
}
.js body.is-loading { overflow: hidden; }
.preloader__stage { position: absolute; inset: 0; }

.polaroid {
  position: absolute;
  width: clamp(96px, 12vw, 184px);
  padding: 7px 7px 22px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 30px -10px rgba(0,0,0,.22);
  opacity: 0;
  transform: translate(-50%, -50%) translateY(60px) rotate(var(--r)) scale(0.9);
  filter: blur(10px);
  animation:
    polaroid-in 1s var(--ease) forwards,
    polaroid-float 4s ease-in-out infinite alternate;
  animation-delay: calc(0.1s + var(--i) * 0.09s), calc(1.1s + var(--i) * 0.09s);
}
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.p1 { --i: 0; --r: -10deg; left: 22%; top: 31%; }
.p2 { --i: 1; --r: 3deg;   left: 50%; top: 22%; }
.p3 { --i: 2; --r: 9deg;   left: 78%; top: 28%; }
.p4 { --i: 3; --r: -7deg;  left: 31%; top: 73%; }
.p5 { --i: 4; --r: 8deg;   left: 70%; top: 71%; }
.p5 img { object-position: 60% 50%; }

@keyframes polaroid-in {
  to { opacity: 1; transform: translate(-50%, -50%) translateY(0) rotate(var(--r)) scale(1); filter: blur(0); }
}
@keyframes polaroid-float {
  from { translate: 0 0; }
  to   { translate: 0 -10px; }
}

.preloader__logo {
  position: absolute;
  left: 50%; top: 50%;
  width: 44px; height: 44px;
  transform: translate(-50%, -50%);
  color: #121212;
}
.preloader__logo svg { width: 100%; height: 100%; overflow: visible; fill: currentColor; }
.logo-half { transform-box: view-box; transform-origin: 21.5px 21.6px; opacity: 0; }
.logo-half--a { animation: half-a 1.15s var(--ease) 0.4s forwards; }
.logo-half--v { animation: half-v 1.15s var(--ease) 0.5s forwards; }
.preloader__logo svg { animation: logo-breathe 2.4s ease-in-out 1.6s infinite; transform-origin: center; }
@keyframes half-a { from { opacity: 0; transform: rotate(-200deg) scale(0.4); } 40% { opacity: 1; } to { opacity: 1; transform: rotate(0) scale(1); } }
@keyframes half-v { from { opacity: 0; transform: rotate(200deg) scale(0.4); }  40% { opacity: 1; } to { opacity: 1; transform: rotate(0) scale(1); } }
@keyframes logo-breathe { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(18deg) scale(1.06); } }

/* saída: blur + sobe como cortina */
.preloader.is-leaving {
  animation: preloader-out 0.95s var(--ease-io) forwards;
}
@keyframes preloader-out {
  0%   { transform: translateY(0); filter: blur(0); }
  35%  { filter: blur(8px); }
  100% { transform: translateY(-100%); filter: blur(14px); }
}
.preloader.is-done { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: #e9e9e9;
  isolation: isolate;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform-origin: 50% 40%;
  will-change: transform;
}
.hero__media--cut { z-index: 3; pointer-events: none; }
/* figura posicionada idêntica nas duas camadas (foto e recorte); JS calcula --fx/--fy/--fw */
.hero__figure {
  position: absolute;
  left: var(--fx, 0px);
  top: var(--fy, 0px);
  width: var(--fw, 100%);
  aspect-ratio: 853 / 1280;
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }
.hero__sides { position: absolute; inset: 0; }
/* telas largas: foto com bordas suavizadas sobre o degradê das laterais */
.hero--filled .hero__photo {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%);
}
/* grão de filme leve para unir foto e laterais */
.hero__grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* escurecimento graduado do céu (como um filtro ND) para o nome em branco */
.hero__media:not(.hero__media--cut)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.28) 32%, rgba(0,0,0,0) 62%);
  pointer-events: none;
}

.hero__title {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: clamp(120px, 21vh, 210px);
  display: flex;
  gap: 0.22em;
  white-space: nowrap;
  font-weight: 600;
  font-size: var(--fs, 14vw);
  line-height: 0.82;
  letter-spacing: -0.065em;
  color: #fff;
  text-transform: uppercase;
  transform: translate(-50%, var(--ty, 0px));
  opacity: var(--to, 1);
  will-change: transform;
}
.hero__word { display: inline-flex; }
.hero__word .ch { display: inline-block; overflow: hidden; padding: 0.22em 0 0.02em; margin-top: -0.22em; }
.hero__word .ch > span { display: inline-block; will-change: transform; }

.hero__frame {
  position: absolute;
  z-index: 4;
  left: var(--pad);
  right: var(--pad);
  top: 86px;
  height: calc(var(--frame-h, 260px));
  pointer-events: none;
  --c: rgba(255,255,255,.9);
  --l: 12px;
  --w: 1.5px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l) no-repeat;
}

.topbar {
  position: absolute;
  z-index: 6;
  top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--pad);
  color: #fff;
}
.topbar__brand { display: grid; line-height: 1.15; font-size: 15px; }
.topbar__brand strong { font-weight: 500; }
.topbar__brand span { font-size: 13px; color: rgba(255,255,255,.6); }
.topbar__logo img { width: 30px; height: 30px; filter: invert(1); transition: transform 0.8s var(--ease); }
.topbar__logo:hover img { transform: rotate(180deg); }
.topbar__cta { justify-self: end; height: 36px; font-size: 13px; padding: 0 16px; }
.topbar__brand, .topbar__cta { white-space: nowrap; }

.hero__caption {
  position: absolute;
  z-index: 6;
  bottom: clamp(56px, 9vh, 96px);
  font-size: 13px;
  letter-spacing: -0.02em;
  color: rgba(0,0,0,.6);
}
.hero__caption--left { left: var(--pad); }
.hero__caption--right { right: var(--pad); }
.hero__fade {
  position: absolute;
  z-index: 5;
  left: 0; right: 0; bottom: 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.75) 55%, #fff 100%);
  pointer-events: none;
}

/* intro do hero após o preloader */
.js .hero__word .ch > span { transform: translateY(105%); }
.js .topbar, .js .hero__caption, .js .hero__frame { opacity: 0; }
.js .hero__media { transform: scale(1.08); }
.is-ready .hero__word .ch > span {
  transform: translateY(0);
  transition: transform 1.1s var(--ease) calc(0.15s + var(--ci) * 0.045s);
}
.is-ready .topbar, .is-ready .hero__caption, .is-ready .hero__frame {
  opacity: 1;
  transition: opacity 1s var(--ease) 0.6s;
}
.is-ready .hero__media {
  transform: scale(var(--hs, 1));
  transition: transform 1.6s var(--ease);
}
.is-ready.is-settled .hero__media { transition: none; }

/* =========================================================
   TRUST
   ========================================================= */
.trust {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vw, 40px);
  padding: clamp(40px, 8vw, 90px) var(--pad) clamp(60px, 10vw, 120px);
}
.trust__inner { text-align: center; max-width: 440px; }
.avatars { display: inline-flex; margin-bottom: 14px; }
.avatars img {
  width: 34px; height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  margin-left: -9px;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
}
.avatars img:first-child { margin-left: 0; }
.trust__title { font-size: 18px; letter-spacing: -0.04em; margin-bottom: 8px; }
.trust__text { font-size: 14px; line-height: 1.5; color: var(--ink-2); letter-spacing: -0.02em; }
.trust__laurel { width: clamp(46px, 7vw, 86px); flex: none; opacity: .55; }
.trust__laurel svg { width: 100%; height: auto; fill: #c9c9c9; }
.trust__laurel--r svg { transform: scaleX(-1); }

/* =========================================================
   FILOSOFIA (sticky + palavras + fotos em parallax)
   ========================================================= */
.philo { position: relative; height: 320vh; }
.philo__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.philo__content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: min(100% - var(--pad) * 2, 780px);
}
.philo__text {
  margin: 18px 0 22px;
  font-size: clamp(24px, 3.1vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.05em;
}
.philo__text .w {
  display: inline-block;
  opacity: var(--o, 0.12);
  filter: blur(calc((1 - var(--o, 0.12)) * 6px));
  transition: opacity 0.25s linear, filter 0.25s linear;
}
.philo__sign {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-2); letter-spacing: -0.02em;
}
.philo__photos { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.fp {
  position: absolute;
  object-fit: cover;
  border-radius: 6px;
  will-change: transform;
  box-shadow: 0 20px 40px -24px rgba(0,0,0,.35);
}
.fp1 { width: clamp(120px, 16vw, 230px); aspect-ratio: 4/5;  left: 4%;   top: 0; }
.fp2 { width: clamp(110px, 13vw, 190px); aspect-ratio: 3/4;  right: 6%;  top: 0; }
.fp3 { width: clamp(130px, 18vw, 260px); aspect-ratio: 4/3;  left: 34%;  top: 0; z-index: 3; }
.fp4 { width: clamp(120px, 15vw, 220px); aspect-ratio: 4/3;  left: 9%;   top: 0; }
.fp5 { width: clamp(130px, 17vw, 250px); aspect-ratio: 4/5;  right: 4%;  top: 0; }
.fp6 { width: clamp(100px, 11vw, 160px); aspect-ratio: 1;    left: 58%;  top: 0; }

/* =========================================================
   IMAGEM GRANDE
   ========================================================= */
.wide { padding: 0 var(--pad); margin: -10vh 0 clamp(80px, 12vw, 160px); }
.wide__frame {
  width: min(100%, 1200px);
  margin-inline: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  transform: scale(var(--ws, 0.72));
  will-change: transform;
}
.wide__frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--wi, 1.2)); will-change: transform; }

/* =========================================================
   SERVIÇOS
   ========================================================= */
.services {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  padding-bottom: clamp(100px, 14vw, 180px);
}
.services__intro { position: sticky; top: 40px; display: grid; gap: 16px; justify-items: start; }
.services__intro .tag { margin-bottom: 4px; }
.services__inc { font-size: 13px; color: var(--ink); margin-top: 8px; letter-spacing: -0.02em; }
.checklist { display: grid; gap: 10px; margin-bottom: 12px; }
.checklist li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 1px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230d0d0d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.services__list { display: grid; gap: 12px; }
.service {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
  padding: 10px;
  border-radius: var(--radius);
  background: var(--card);
  transition: background-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.service img {
  width: 112px; height: 84px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.7s var(--ease);
}
.service h3 { font-size: 18px; letter-spacing: -0.04em; margin-bottom: 6px; }
.service p { font-size: 14px; line-height: 1.45; color: var(--ink-2); letter-spacing: -0.02em; }
.service:hover { background: #ececea; }
.service:hover img { transform: scale(1.06) rotate(-1.5deg); }

/* =========================================================
   DIFERENCIAIS (bento)
   ========================================================= */
.section-head { text-align: center; display: grid; justify-items: center; gap: 14px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .lead { text-align: center; }
.benefits { padding-bottom: clamp(100px, 14vw, 180px); }
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "a b c"
    "d e e"
    "d f g";
  gap: 12px;
}
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--card);
  padding: 22px;
  min-height: 200px;
  isolation: isolate;
}
.card__title {
  position: relative;
  z-index: 2;
  font-size: clamp(22px, 2.1vw, 28px);
  line-height: 1.08;
  letter-spacing: -0.05em;
  max-width: 13ch;
}
.card__title--light { color: #fff; }
.card__sub { font-size: 14px; color: var(--ink-2); letter-spacing: -0.02em; }
.card__eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; letter-spacing: -0.03em; }

.card--stack { grid-area: a; min-height: 400px; display: flex; flex-direction: column; justify-content: flex-end; }
.stack { position: absolute; left: 50%; top: 28px; width: 56%; aspect-ratio: 4/5; transform: translateX(-50%); }
.stack img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  border: 6px solid #fff;
  border-bottom-width: 16px;
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.35);
  transition: transform 0.8s var(--ease);
}
.stack img:nth-child(1) { transform: rotate(-12deg) translate(-18%, 4%); }
.stack img:nth-child(2) { transform: rotate(10deg) translate(18%, 2%); }
.stack img:nth-child(3) { transform: rotate(-2deg); }
.card--stack:hover .stack img:nth-child(1) { transform: rotate(-18deg) translate(-34%, 6%); }
.card--stack:hover .stack img:nth-child(2) { transform: rotate(16deg) translate(34%, 4%); }
.card--stack:hover .stack img:nth-child(3) { transform: rotate(0) translateY(-6%) scale(1.04); }

.card--gear { grid-area: b; min-height: 400px; padding-bottom: 0; }
.gear { position: absolute; inset: 96px 0 0 0; overflow: hidden; }
.gear img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 18% 42%;
  transform: scale(2.1);
  transform-origin: 18% 42%;
  transition: transform 1.2s var(--ease);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%);
          mask-image: linear-gradient(180deg, transparent 0, #000 22%);
}
.card--gear:hover .gear img { transform: scale(2.3); }

.card--compare { grid-area: c; min-height: 400px; padding: 0; display: flex; align-items: flex-end; }
.card--compare .card__title { padding: 22px; pointer-events: none; }
.card--compare::after {
  content: ""; position: absolute; inset: 50% 0 0 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
}
.compare { position: absolute; inset: 0; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__before {
  filter: saturate(0.45) contrast(0.78) brightness(1.08) sepia(0.12);
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px;
  background: rgba(255,255,255,.9);
  z-index: 2;
  pointer-events: none;
}
.compare__handle i {
  position: absolute; top: 50%;
  font-style: normal; color: #fff; font-size: 18px; line-height: 1;
  transform: translateY(-50%);
}
.compare__handle i:first-child { right: 8px; }
.compare__handle i:last-child { left: 8px; }
.compare__lbl {
  position: absolute; top: 14px; z-index: 2;
  font-size: 11px; padding: 4px 8px; border-radius: 999px;
  background: rgba(0,0,0,.35); color: #fff; letter-spacing: -0.01em;
  backdrop-filter: blur(6px);
}
.compare__lbl--l { left: 14px; }
.compare__lbl--r { right: 14px; }
.compare input {
  position: absolute; inset: 0; z-index: 3;
  width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none;
}

.card--tall { grid-area: d; min-height: 520px; display: flex; align-items: flex-end; }
.card__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform 1.2s var(--ease); }
.card--tall::after { content: ""; position: absolute; inset: 40% 0 0 0; z-index: -1; background: linear-gradient(180deg, transparent, rgba(0,0,0,.6)); }
.card--tall:hover .card__bg { transform: scale(1.05); }

.card--wide { grid-area: e; display: grid; grid-template-columns: 1fr 1.1fr; padding: 0; min-height: 250px; }
.card--wide__text { padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.card--wide__text p { font-size: 14px; line-height: 1.45; color: var(--ink-2); letter-spacing: -0.02em; max-width: 30ch; }
.card--wide__img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card--wide:hover .card--wide__img { transform: scale(1.05); }

.card--count { grid-area: f; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-height: 250px; }
.count-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.count { font-size: clamp(44px, 4.6vw, 60px); line-height: 1; letter-spacing: -0.06em; font-weight: 500; font-variant-numeric: tabular-nums; }
.avatars--sm { margin: 0; }
.avatars--sm img { width: 30px; height: 30px; }

.card--gauge { grid-area: g; min-height: 250px; display: flex; flex-direction: column; justify-content: space-between; }
.gauge { position: relative; width: 80%; max-width: 230px; margin: 10px auto 0; }
.gauge svg { width: 100%; height: auto; overflow: visible; }
.gauge .tick { stroke: #bdbdbd; stroke-width: 1.4; stroke-linecap: round; }
.gauge .tick--major { stroke: #6f6f6f; stroke-width: 2; }
.gauge .needle { stroke: #d6452f; stroke-width: 2.2; stroke-linecap: round; transform-origin: 100px 100px; animation: needle 5s var(--ease-io) infinite alternate; }
.gauge .hub { fill: #0d0d0d; }
.gauge__l, .gauge__r { position: absolute; bottom: -2px; font-size: 11px; color: var(--ink-2); letter-spacing: -0.01em; }
.gauge__l { left: -6px; } .gauge__r { right: -6px; }
@keyframes needle { 0% { transform: rotate(-48deg); } 45% { transform: rotate(-30deg); } 100% { transform: rotate(34deg); } }

/* =========================================================
   PORTFÓLIO
   ========================================================= */
.portfolio { padding-bottom: clamp(100px, 14vw, 180px); }
.portfolio__kinds { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin-top: 8px; font-size: 17px; letter-spacing: -0.04em; color: var(--ink-3); }
.portfolio__kinds span { font-style: italic; font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.01em; }
.works { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.work {
  display: grid;
  gap: 10px;
  padding: 8px 8px 12px;
  border-radius: var(--radius);
  background: var(--card);
  text-align: left;
  transition: transform 0.6s var(--ease);
}
.work__img { display: block; border-radius: 12px; aspect-ratio: 4 / 3; }
.work__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.work:hover .work__img img { transform: scale(1.06); }
.work:hover .frame::after { inset: 16px; }
.work__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 6px 0; }
.work__meta > span { display: grid; gap: 2px; }
.work__meta strong { font-weight: 500; font-size: 15px; letter-spacing: -0.03em; }
.work__meta small { font-size: 12px; color: var(--ink-3); letter-spacing: -0.01em; }

/* =========================================================
   HISTÓRIAS (marquee)
   ========================================================= */
.stories { padding-bottom: clamp(100px, 14vw, 180px); }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: 14px; width: max-content; animation: marquee 48s linear infinite; padding: 4px 0; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 7px)); } }
.quote {
  width: clamp(270px, 28vw, 340px);
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card);
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
}
.quote blockquote { font-size: 15px; line-height: 1.45; letter-spacing: -0.03em; }
.quote figcaption { display: grid; gap: 2px; }
.quote figcaption strong { font-weight: 500; font-size: 14px; }
.quote figcaption span { font-size: 12px; color: var(--ink-3); }

/* =========================================================
   SOBRE
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding-bottom: clamp(100px, 14vw, 180px);
}
.about__img { border-radius: var(--radius); aspect-ratio: 4 / 5; }
.about__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.about__text { display: grid; gap: 16px; justify-items: start; }
.about__text p { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.55; color: var(--ink-2); letter-spacing: -0.025em; max-width: 52ch; }
.about__text p strong { color: var(--ink); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(3, auto); gap: 10px 28px; margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line); width: 100%; }
.stats dt { font-size: 20px; letter-spacing: -0.05em; }
.stats dd { font-size: 13px; color: var(--ink-3); letter-spacing: -0.02em; }

/* =========================================================
   FAQ
   ========================================================= */
.faq {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
  padding-bottom: clamp(100px, 14vw, 180px);
}
.faq__side { display: grid; gap: 14px; justify-items: start; }
.faq__img { width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius); margin-top: 14px; }
.faq__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 88%; }
.faq__list { display: grid; gap: 10px; }
.qa { border-radius: 14px; background: var(--card); }
.qa__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 18px;
  text-align: left;
  font-size: 15px;
  letter-spacing: -0.03em;
}
.qa__q i {
  position: relative; flex: none;
  width: 26px; height: 26px;
  border-radius: 8px; background: #fff;
}
.qa__q i::before, .qa__q i::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 11px; height: 1.5px; background: var(--ink);
  transform: translate(-50%, -50%);
  transition: transform 0.5s var(--ease);
}
.qa__q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa.is-open .qa__q i::after { transform: translate(-50%, -50%) rotate(0); }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.qa__a > div { overflow: hidden; }
.qa__a p { padding: 0 18px 18px; font-size: 14px; line-height: 1.55; color: var(--ink-2); letter-spacing: -0.02em; max-width: 56ch; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }

/* =========================================================
   CTA
   ========================================================= */
.cta { text-align: center; padding-bottom: 60px; }
.cta .container { display: grid; justify-items: center; gap: 16px; }
.cta__title {
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.065em;
  font-weight: 500;
  max-width: 14ch;
}
.cta .lead { text-align: center; margin-bottom: 8px; }
.fan {
  position: relative;
  height: clamp(320px, 42vw, 480px);
  width: min(100%, 760px);
  margin: clamp(40px, 6vw, 70px) auto 28px;
}
.fan__card {
  position: absolute;
  left: 50%; top: 0;
  width: clamp(170px, 22vw, 260px);
  aspect-ratio: 3 / 4.3;
  border-radius: 14px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
  transform-origin: 50% 100%;
  will-change: transform;
}
.fan__card img { width: 100%; height: 100%; object-fit: cover; }
.fan__card--c { z-index: 2; transform: translateX(-50%) translateY(calc((1 - var(--f, 0)) * 24px)); }
.fan__card--l { transform: translateX(calc(-50% - var(--f, 0) * 58%)) rotate(calc(var(--f, 0) * -9deg)) scale(.9); top: 6%; }
.fan__card--r { transform: translateX(calc(-50% + var(--f, 0) * 58%)) rotate(calc(var(--f, 0) * 9deg)) scale(.9); top: 6%; }
.socials { display: flex; justify-content: center; gap: 28px; font-size: 13px; letter-spacing: -0.02em; }
.socials a { display: inline-flex; gap: 4px; color: var(--ink); transition: opacity .3s; }
.socials a:hover { opacity: .55; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding: 60px 0 130px;
  border-top: 1px solid var(--line);
  margin-top: 40px;
}
.footer__brand { display: grid; gap: 14px; max-width: 340px; }
.footer__logo {
  display: inline-flex; align-items: center; gap: 10px;
  width: max-content;
  padding: 6px 10px;
  font-size: 24px; letter-spacing: -0.06em;
  --c: var(--ink); --l: 8px; --w: 1.5px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--w) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--w) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--w) var(--l) no-repeat;
}
.footer__brand p { font-size: 14px; line-height: 1.5; color: var(--ink-2); letter-spacing: -0.02em; }
.footer__brand small { font-size: 12px; color: var(--ink-3); letter-spacing: -0.01em; }
.footer__cols { display: flex; gap: clamp(40px, 7vw, 90px); }
.footer__cols div { display: grid; gap: 8px; align-content: start; }
.footer__cols h4 { font-size: 13px; font-weight: 500; margin-bottom: 4px; letter-spacing: -0.02em; }
.footer__cols a { font-size: 13px; color: var(--ink-2); letter-spacing: -0.02em; transition: color .3s; }
.footer__cols a:hover { color: var(--ink); }

/* =========================================================
   NAV FLUTUANTE (dock)
   ========================================================= */
.dock {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(20px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-radius: 14px;
  background: #0b0b0b;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.55);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.8s var(--ease), opacity 0.5s var(--ease);
}
.dock.is-visible { transform: translate(-50%, 0); opacity: 1; }
.dock a {
  position: relative;
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,.66);
  transition: color .3s, background-color .3s;
}
.dock a:hover { color: #fff; }
.dock a.is-active { color: #fff; background: rgba(255,255,255,.1); }
.dock__logo { padding: 5px 8px !important; margin-right: 4px; }
.dock__logo img { width: 22px; height: 22px; transition: transform .8s var(--ease); }
.dock__logo:hover img { transform: rotate(180deg); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh;
  max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(10,10,10,.97);
  color: #fff;
}
.lightbox[open] { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; animation: lb-in .5s var(--ease); }
.lightbox::backdrop { background: transparent; }
@keyframes lb-in { from { opacity: 0; } }
.lightbox__fig { display: grid; justify-items: center; gap: 12px; height: 100%; padding: 56px 0 40px; align-content: center; }
.lightbox__fig img { max-height: calc(100dvh - 140px); max-width: 100%; width: auto; object-fit: contain; border-radius: 6px; }
.lightbox__fig img.is-swap { animation: lb-img .6s var(--ease); }
@keyframes lb-img { from { opacity: 0; transform: scale(.98); filter: blur(6px); } }
.lightbox__fig figcaption { font-size: 13px; color: rgba(255,255,255,.6); letter-spacing: -0.02em; }
.lightbox__nav { width: 44px; height: 44px; margin: auto; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 26px; line-height: 1; transition: background-color .3s; }
.lightbox__nav:hover { background: rgba(255,255,255,.18); }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; font-size: 16px; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 900px) {
  .services, .about, .faq { grid-template-columns: 1fr; }
  .services__intro { position: static; }
  .bento {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "a b"
      "c d"
      "e e"
      "f g";
  }
  .card--stack, .card--gear, .card--compare, .card--tall { min-height: 360px; }
  .about__img { max-width: 520px; }
}

@media (max-width: 640px) {
  .hero__title { flex-direction: column; align-items: center; gap: 0; line-height: 0.84; top: 17svh; }
  .hero__caption { font-size: 11.5px; bottom: 44px; }
  .hero__caption--right { display: none; }
  .hero__caption--left { left: 0; right: 0; text-align: center; white-space: nowrap; }
  .topbar__cta { padding: 0 12px; }
  .topbar__brand span { font-size: 11.5px; }
  .topbar__brand { font-size: 13.5px; }
  .trust__laurel { display: none; }
  .philo { height: 260vh; }
  .fp1 { left: -4%; } .fp2 { right: -4%; } .fp5 { right: -6%; } .fp4 { left: -6%; }
  .wide { margin-top: -4vh; }
  .wide__frame { aspect-ratio: 4 / 5; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d" "e" "f" "g"; }
  .card--wide { grid-template-columns: 1fr; }
  .card--wide__img { aspect-ratio: 16 / 10; }
  .works { grid-template-columns: 1fr; }
  .service { grid-template-columns: 88px 1fr; gap: 14px; }
  .service img { width: 88px; height: 88px; }
  .stats { grid-template-columns: 1fr 1fr 1fr; gap: 8px 14px; }
  .stats dt { font-size: 16px; }
  .dock { gap: 0; padding: 5px; }
  .dock a { padding: 8px 8px; font-size: 12px; }
  .dock a[data-nav="inicio"] { display: none; }
  .lightbox[open] { grid-template-columns: 1fr; }
  .lightbox__nav { position: absolute; bottom: 18px; }
  .lightbox__nav--prev { left: calc(50% - 56px); }
  .lightbox__nav--next { right: calc(50% - 56px); }
  .lightbox__fig { padding: 60px 10px 80px; }
  .footer { padding-bottom: 120px; }
}

@media (max-width: 390px) {
  .topbar { padding-inline: 16px; }
  .topbar__brand { font-size: 12.5px; }
  .topbar__brand span { font-size: 10.5px; }
  .topbar__cta { height: 32px; font-size: 12px; padding: 0 11px; }
  .topbar__logo img { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; }
  .marquee__track { animation: none; }
}
