/* ==========================================================
   Marcela Freire — site institucional
   Paleta: bege / off-white / neutros  ·  Playfair Display + Inter
   ========================================================== */

:root {
  --ivory:      #F3EDE4;
  --paper:      #FAF7F2;
  --ink:        #2B2520;
  --ink-soft:   rgba(43, 37, 32, 0.68);
  --ink-faint:  rgba(43, 37, 32, 0.45);
  --taupe:      #A38B73;
  --taupe-dk:   #86705A;
  --sand:       #D9CBB8;
  --line:       rgba(163, 139, 115, 0.38);
  --line-soft:  rgba(163, 139, 115, 0.22);
  --glow:       rgba(163, 139, 115, 0.16);
  --photo-white:#FBF8F3;
  --spark:      #C9A877;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1180px;
  --pad:  clamp(20px, 5vw, 56px);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; overflow-x: hidden; -webkit-text-size-adjust: 100%; }

body {
  background-color: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--taupe-dk); outline-offset: 3px; }

.skip-link {
  position: absolute; top: -100%; left: 16px; z-index: 1001;
  background: var(--ink); color: var(--paper);
  padding: 8px 16px; border-radius: 0 0 6px 6px; font-size: 14px; transition: top 0.1s;
}
.skip-link:focus { top: 0; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(72px, 11vw, 140px); }

/* ── Flash / partículas / fundo / progresso ───────────── */
.flash {
  position: fixed; inset: 0; z-index: 1000; background: #fff; pointer-events: none;
  animation: flash-out 0.9s cubic-bezier(0.25, 0, 0.8, 1) 0.05s both;
}
@keyframes flash-out { 0% { opacity: 1; } 35% { opacity: 0.75; } 100% { opacity: 0; visibility: hidden; } }

.particles { position: fixed; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.p {
  position: absolute; border-radius: 50%; background: var(--spark);
  box-shadow: 0 0 6px rgba(201, 168, 119, 0.6);
  opacity: 0; will-change: transform, opacity;
  animation: p-rise var(--d, 9s) ease-in var(--delay, 0s) infinite;
}
@keyframes p-rise {
  0%   { transform: translateY(0) scale(1); opacity: 0; }
  12%  { opacity: var(--op, 0.45); }
  78%  { opacity: calc(var(--op, 0.45) * 0.25); }
  100% { transform: translateY(-72vh) scale(0.3); opacity: 0; }
}

.bg-fixed {
  position: fixed; inset: -60px; z-index: 0;
  background: url('../img/bg.webp') center 22% / cover no-repeat;
  filter: blur(46px) saturate(0.85) brightness(1.1);
  transform: scale(1.18); pointer-events: none;
}

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: var(--taupe); transform-origin: 0 50%; transform: scaleX(var(--p, 0));
}

main { position: relative; z-index: 1; background: rgba(243, 237, 228, 0.88); }

/* ── Tipografia de seção ──────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.64rem; font-weight: 500; letter-spacing: 0.36em; text-transform: uppercase;
  color: var(--taupe-dk); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 34px; height: 1px; background: var(--taupe); }
.eyebrow-light { color: var(--sand); }
.eyebrow-light::before { background: var(--sand); }

.title {
  font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em;
  font-size: clamp(2rem, 5.2vw, 3.3rem);
}
.title em { color: var(--taupe-dk); }
.title-light { color: var(--paper); }
.title-light em { color: var(--sand); }

.sec-head { text-align: center; margin-bottom: clamp(36px, 6vw, 64px); }
.sec-head .eyebrow::after { content: ''; width: 34px; height: 1px; background: var(--taupe); }
.lead { margin-top: 14px; font-size: 0.86rem; color: var(--ink-faint); letter-spacing: 0.04em; }

/* ── Botões ───────────────────────────────────────────── */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px;
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease, background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: scale(0.97); }

.btn-solid { background: var(--ink); color: var(--paper); box-shadow: 0 12px 28px rgba(43, 37, 32, 0.28); }
.btn-solid:hover { background: #1c1814; box-shadow: 0 18px 34px rgba(43, 37, 32, 0.34); }
.btn-solid::after, .btn-light::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 30%;
  background: linear-gradient(90deg, transparent, rgba(251, 248, 243, 0.28), transparent);
  animation: shimmer 4.8s ease-in-out 2.4s infinite; pointer-events: none;
}
.btn-light::after { background: linear-gradient(90deg, transparent, rgba(43, 37, 32, 0.12), transparent); }
@keyframes shimmer { 0% { transform: translateX(-120%) skewX(-14deg); } 100% { transform: translateX(380%) skewX(-14deg); } }

.btn-ghost { border-color: currentColor; background: transparent; }
.btn-ghost:hover { background: var(--glow); }
.btn-light { background: var(--paper); color: var(--ink); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28); }
.btn-outline-light { color: var(--paper); border-color: rgba(251, 248, 243, 0.5); }
.btn-outline-light:hover { background: rgba(251, 248, 243, 0.12); border-color: var(--paper); }

/* ── Navegação ────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  color: var(--photo-white);
  transition: background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease, height 0.4s var(--ease);
}
.nav-inner {
  height: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav.is-scrolled, .nav.menu-open {
  color: var(--ink);
  background: rgba(243, 237, 228, 0.86);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-soft);
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img {
  width: auto; height: 44px;
  /* sobre a foto (mobile, topo) a logo vira branca; ao rolar volta ao vinho original */
  filter: brightness(0) invert(1) drop-shadow(0 1px 8px rgba(30, 20, 10, 0.35));
  transition: transform 0.6s var(--ease), filter 0.4s ease;
}
.nav.is-scrolled .nav-logo img, .nav.menu-open .nav-logo img { filter: none; }
.nav-logo:hover img { transform: scale(1.06) rotate(-3deg); }

.nav-links { display: none; gap: 34px; }
.nav-links a {
  position: relative; padding: 6px 0;
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase;
  opacity: 0.8; transition: opacity 0.25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { opacity: 1; }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }

.nav-cta {
  display: none; padding: 11px 22px; border-radius: 100px;
  border: 1px solid currentColor;
  font-size: 0.64rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.nav-cta:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.burger { position: relative; width: 44px; height: 44px; margin-right: -8px; }
.burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px; background: currentColor;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 36px;
  background: var(--ivory);
  clip-path: circle(0 at calc(100% - 36px) 34px);
  visibility: hidden;
  transition: clip-path 0.8s var(--ease), visibility 0s linear 0.8s;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 36px) 34px); visibility: visible; transition: clip-path 0.9s var(--ease), visibility 0s; }
.menu nav { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.menu nav a {
  font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 9vw, 3.2rem); line-height: 1.25;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.8s var(--ease), color 0.3s;
}
.menu nav a:hover { color: var(--taupe-dk); }
.menu.is-open nav a { opacity: 1; transform: none; }
.menu.is-open nav a:nth-child(1) { transition-delay: 0.25s; }
.menu.is-open nav a:nth-child(2) { transition-delay: 0.32s; }
.menu.is-open nav a:nth-child(3) { transition-delay: 0.39s; }
.menu.is-open nav a:nth-child(4) { transition-delay: 0.46s; }
.menu.is-open nav a:nth-child(5) { transition-delay: 0.53s; }
.menu-logo { width: 96px; height: auto; margin-bottom: -8px; opacity: 0; transform: scale(0.9); transition: opacity 0.7s ease 0.2s, transform 0.9s var(--ease) 0.2s; }
.menu.is-open .menu-logo { opacity: 1; transform: none; }
.menu-foot { font-size: 0.64rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--taupe-dk); }

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  background: var(--sand); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-frame { position: absolute; inset: 0; overflow: hidden; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%;
  animation: kenburns 2.8s var(--ease) 0.1s both;
}
@keyframes kenburns { from { transform: scale(1.14); } to { transform: scale(1.02); } }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(43, 30, 20, 0.34) 0%, transparent 24%, transparent 36%, rgba(43, 30, 20, 0.62) 72%, rgba(43, 30, 20, 0.82) 100%);
}
.badge { display: none; }

.hero-text { position: relative; z-index: 2; width: 100%; padding: 0 var(--pad) 72px; color: var(--photo-white); text-align: center; }
.hero-eyebrow {
  font-size: 0.66rem; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase;
  margin-bottom: 14px; color: rgba(251, 248, 243, 0.92);
  animation: rise 1s var(--ease) 0.8s both;
}
.hero-name {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(3.6rem, 17vw, 5.6rem); line-height: 0.95; letter-spacing: -0.02em;
  margin-bottom: 20px; text-shadow: 0 2px 30px rgba(30, 20, 10, 0.35);
}
.hero-name .line { display: block; overflow: hidden; padding: 0.06em 0.1em 0.1em; margin: -0.06em -0.1em -0.1em; }
.hero-name .line > span { display: block; transform: translateY(110%); animation: line-up 1.2s var(--ease) 0.9s forwards; }
.hero-name .line:nth-child(2) > span { animation-delay: 1.05s; }
@keyframes line-up { to { transform: translateY(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

.hero-lead {
  max-width: 420px; margin: 0 auto 26px; font-size: 0.95rem; line-height: 1.7;
  color: rgba(251, 248, 243, 0.86); animation: rise 1s var(--ease) 1.3s both;
}
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; animation: rise 1s var(--ease) 1.45s both; }
.hero-actions .btn { width: min(100%, 300px); }
.hero .btn-solid { background: var(--photo-white); color: var(--ink); }
.hero .btn-solid:hover { background: #fff; }
.hero-place {
  display: none; margin-top: 30px; align-items: center; justify-content: center; gap: 10px;
  font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(251, 248, 243, 0.75);
}
.scroll-cue { display: none; }

/* ── Números ──────────────────────────────────────────── */
.stats { border-bottom: 1px solid var(--line-soft); }
.stats-grid {
  max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding: 48px var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px 16px; text-align: center;
}
.stat-num { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(2.4rem, 7vw, 3.8rem); line-height: 1; color: var(--ink); }
.stat-num small { font-size: 0.4em; margin-left: 6px; color: var(--taupe-dk); letter-spacing: 0.02em; }
.stat-label { display: block; margin-top: 10px; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--taupe-dk); }

/* ── Insights ─────────────────────────────────────────── */
.insights {
  background: rgba(250, 247, 242, 0.45);
  border-top: 1px solid var(--line-soft);
}
.insight-kpis {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
  margin-bottom: clamp(28px, 5vw, 48px);
}
.insight-kpi {
  padding: clamp(18px, 4vw, 28px) clamp(16px, 3vw, 22px);
  border-radius: 14px; background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: 0 10px 28px rgba(70, 50, 30, 0.08);
  text-align: center;
}
.insight-kpi-val {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: clamp(1.6rem, 5vw, 2.35rem); line-height: 1.05; color: var(--ink);
}
.insight-kpi-label {
  display: block; margin-top: 8px;
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--taupe-dk);
}
.insight-grid { display: grid; gap: 14px; }
.insight-card {
  padding: clamp(20px, 4vw, 28px); border-radius: 16px; background: var(--paper);
  border: 1px solid var(--line-soft); box-shadow: 0 12px 32px rgba(70, 50, 30, 0.1);
}
.insight-card-title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.35rem; margin-bottom: 18px; color: var(--ink);
}
.insight-sub {
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--taupe-dk); margin-bottom: 12px;
}
.insight-note { margin-top: 16px; font-size: 0.82rem; line-height: 1.6; color: var(--ink-faint); }
.insight-bars { display: grid; gap: 10px; }
.insight-bars li {
  display: grid; grid-template-columns: minmax(72px, 34%) 1fr auto;
  align-items: center; gap: 10px;
}
.insight-bars-compact li { grid-template-columns: minmax(88px, 38%) 1fr auto; }
.insight-bar-label { font-size: 0.72rem; color: var(--ink-soft); line-height: 1.25; }
.insight-bar-track {
  display: block; height: 8px; border-radius: 100px;
  background: rgba(163, 139, 115, 0.15); overflow: hidden;
}
.insight-bar-fill {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--taupe), var(--spark));
  transition: width 1.15s var(--ease) 0.12s;
}
.insight-bar-fill-alt { background: linear-gradient(90deg, var(--taupe-dk), var(--taupe)); }
.insight-card.is-in .insight-bar-fill { width: var(--w); }
.insight-audience { display: grid; gap: 24px; }
.insight-reports { margin-top: clamp(40px, 7vw, 64px); text-align: center; }
.insight-reports-label {
  font-size: 0.58rem; font-weight: 500; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--taupe-dk);
}
.insight-reports .lead { margin-bottom: 8px; }

.strip {
  display: flex; gap: 12px; margin-top: 16px;
  padding: 4px 0 18px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; cursor: grab; text-align: left;
}
.strip::-webkit-scrollbar { display: none; }
.strip.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.insight-strip {
  margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad);
}
.insight-strip figure { flex: 0 0 auto; scroll-snap-align: start; margin: 0; }
.insight-strip img {
  width: min(72vw, 280px); height: auto; border-radius: 12px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 14px 36px rgba(70, 50, 30, 0.18);
  background: var(--sand); user-select: none;
}

/* ── Sobre ────────────────────────────────────────────── */
.about-grid { display: grid; gap: 48px; align-items: center; }
.about-media { position: relative; max-width: 440px; margin-inline: auto; width: 100%; }
.about-frame { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 200px 200px 18px 18px; box-shadow: 0 24px 60px rgba(70, 50, 30, 0.25); background: var(--sand); }
.about-frame img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; object-position: 50% 25%; will-change: transform; }
.about-media::before {
  content: ''; position: absolute; inset: 16px -16px -16px 16px; z-index: -1;
  border: 1px solid var(--taupe); border-radius: 200px 200px 18px 18px;
}
.about-tag {
  position: absolute; left: -10px; bottom: 36px; padding: 10px 18px; border-radius: 100px;
  background: var(--paper); box-shadow: 0 10px 28px rgba(70, 50, 30, 0.2);
  font-size: 0.6rem; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase; color: var(--taupe-dk);
}
.about-text p { font-size: 0.98rem; line-height: 1.85; color: var(--ink-soft); }
.about-text p + p { margin-top: 18px; }
.about-text .title { margin-bottom: 26px; }
.drop { font-family: var(--serif); color: var(--taupe-dk); font-size: 1.1em; }

.about-more {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows 0.7s var(--ease), margin 0.7s var(--ease);
  margin-top: 0;
}
.about-more-inner { min-height: 0; overflow: hidden; opacity: 0; transition: opacity 0.6s ease; }
.about-more.is-open { grid-template-rows: 1fr; margin-top: 18px; }
.about-more.is-open .about-more-inner { opacity: 1; transition-delay: 0.1s; }

.about-toggle {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  background: none; border: 0; cursor: pointer;
  padding: 8px 0;
  font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--taupe-dk);
  transition: color 0.2s;
}
.about-toggle:hover { color: var(--ink); }
.about-toggle svg { transition: transform 0.5s var(--ease); }
.about-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

.differential {
  margin-top: 34px; padding: 22px 0 22px 24px; border-left: 2px solid var(--taupe);
  font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.45; color: var(--ink);
}

/* ── Serviços ─────────────────────────────────────────── */
.services { background: rgba(250, 247, 242, 0.55); }
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card {
  position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden;
  background: var(--sand); box-shadow: 0 12px 30px rgba(70, 50, 30, 0.16);
  transform-style: preserve-3d; will-change: transform;
  transition: transform 0.5s var(--ease), box-shadow 0.4s ease;
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover img { transform: scale(1.07); }
.card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(36, 26, 18, 0.78) 0%, rgba(36, 26, 18, 0.14) 52%, transparent 74%); }
.card-body { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; color: var(--photo-white); }
.card-num { display: block; font-size: 0.58rem; font-weight: 500; letter-spacing: 0.3em; color: var(--sand); margin-bottom: 4px; }
.card h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.6rem; line-height: 1.1; }
.card p { margin-top: 6px; font-size: 0.74rem; line-height: 1.5; color: rgba(251, 248, 243, 0.8); max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease), opacity 0.5s ease; }
.card:hover p, .card:focus-within p { max-height: 60px; opacity: 1; }
@media (hover: none) { .card p { max-height: 60px; opacity: 1; } }

/* ── Portfólio ────────────────────────────────────────── */
.masonry { columns: 2; column-gap: 12px; }
.work {
  position: relative; display: block; width: 100%; margin-bottom: 12px; padding: 0;
  break-inside: avoid; border-radius: 12px; overflow: hidden; background: var(--sand);
  box-shadow: 0 10px 26px rgba(70, 50, 30, 0.14); cursor: zoom-in;
}
.work img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.work:hover img { transform: scale(1.06); }
.work::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(36, 26, 18, 0.35), transparent 50%);
  opacity: 0; transition: opacity 0.5s ease; pointer-events: none;
}
.work:hover::after { opacity: 1; }

/* ── Mídia kit ────────────────────────────────────────── */
.mediakit { position: relative; z-index: 1; background: var(--ink); color: var(--paper); padding-block: clamp(64px, 10vw, 120px); overflow: hidden; }
.mk-grid { display: grid; gap: 40px; align-items: center; }
.mk-media { position: relative; max-width: 380px; width: 100%; margin-inline: auto; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.mk-media img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; object-position: 50% 40%; will-change: transform; }
.mk-text p { max-width: 460px; margin-top: 22px; font-size: 0.98rem; line-height: 1.85; color: rgba(250, 247, 242, 0.72); }
.mk-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.mk-text .title { max-width: 520px; }

/* ── Marcas / Agências ────────────────────────────────── */
.brands-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-soft); border-left: 1px solid var(--line-soft);
}
.brands-grid li {
  display: flex; align-items: center; justify-content: center; min-height: 92px; padding: 18px 12px; text-align: center;
  border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  transition: background 0.4s ease;
}
.brands-grid li:last-child:nth-child(odd) { grid-column: span 2; } /* última linha ímpar preenche */
.brands-grid li:hover { background: rgba(250, 247, 242, 0.8); }
.bm {
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); opacity: 0.66;
  transition: opacity 0.3s, color 0.3s, transform 0.5s var(--ease);
}
.brands-grid li:hover .bm { opacity: 1; color: var(--taupe-dk); transform: scale(1.06); }
.bm.serif { font-family: var(--serif); font-weight: 500; font-style: italic; letter-spacing: 0.02em; font-size: 1.25rem; text-transform: none; }
.bm.thin  { font-weight: 300; letter-spacing: 0.24em; font-size: 0.82rem; }
.bm.bold  { font-weight: 700; letter-spacing: 0.08em; font-size: 0.98rem; }

.agencies { margin-top: 56px; display: grid; gap: 30px; text-align: center; }
.agency-label { font-size: 0.6rem; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  padding: 9px 16px; border-radius: 100px; border: 1px solid var(--line);
  font-size: 0.74rem; font-weight: 400; letter-spacing: 0.04em; color: var(--ink-soft);
  transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.3s var(--ease);
}
.chip:hover { border-color: var(--taupe-dk); color: var(--ink); background: var(--glow); transform: translateY(-2px); }
.chip-main { color: var(--ink); border-color: var(--taupe); background: rgba(250, 247, 242, 0.7); }

/* ── Contato ──────────────────────────────────────────── */
.contact { padding-top: clamp(40px, 6vw, 70px); }
.contact-card {
  display: grid; gap: 36px; padding: clamp(32px, 6vw, 64px); border-radius: 20px;
  background: linear-gradient(160deg, rgba(250, 247, 242, 0.96), rgba(231, 219, 202, 0.88));
  border: 1px solid var(--line-soft); box-shadow: 0 24px 60px rgba(70, 50, 30, 0.16);
}
.contact-text { max-width: 420px; margin: 18px 0 28px; font-size: 0.98rem; line-height: 1.8; color: var(--ink-soft); }
.contact-list { display: grid; gap: 4px; align-content: center; }
.contact-list li { padding: 16px 0; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }
.contact-list li:last-child { border-bottom: 0; }
.cl-label { font-size: 0.58rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--taupe-dk); }
.contact-list a, .contact-list li > span:last-child { font-family: var(--serif); font-style: italic; font-size: 1.25rem; word-break: break-word; transition: color 0.25s; }
.contact-list a:hover { color: var(--taupe-dk); }

.social { margin-top: 40px; display: flex; justify-content: center; gap: 14px; }
.social-link {
  display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--taupe-dk);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.3s var(--ease);
}
.social-link:hover { border-color: var(--taupe-dk); color: var(--ink); background: var(--glow); transform: translateY(-3px); }

/* ── Rodapé ───────────────────────────────────────────── */
.footer { position: relative; z-index: 1; text-align: center; padding: 56px 20px 56px; background: var(--ivory); border-top: 1px solid var(--line-soft); }
.footer img { width: 104px; height: auto; margin: 0 auto 12px; }
.footer-name { font-family: var(--serif); font-style: italic; font-size: 1.5rem; }
.footer-sub { margin-top: 4px; font-size: 0.64rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--taupe-dk); }
.footer-copy { margin-top: 24px; font-size: 0.7rem; letter-spacing: 0.06em; color: var(--ink-faint); }

/* ── WhatsApp flutuante ───────────────────────────────── */
.fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 14px 30px rgba(43, 37, 32, 0.4);
  opacity: 0; transform: translateY(20px) scale(0.8); pointer-events: none;
  transition: opacity 0.5s ease, transform 0.6s var(--ease), background 0.3s;
}
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.fab:hover { background: #1c1814; transform: translateY(-3px); }
.fab::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--taupe);
  animation: portrait-pulse 3.2s ease-out infinite; pointer-events: none;
}
@keyframes portrait-pulse { 0% { opacity: 0; transform: scale(1); } 30% { opacity: 0.6; } 100% { opacity: 0; transform: scale(1.7); } }

/* ── Lightbox ─────────────────────────────────────────── */
.lb {
  position: fixed; inset: 0; z-index: 500; display: flex; align-items: center; justify-content: center;
  background: rgba(24, 18, 13, 0.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.4s ease;
}
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb-stage { max-width: min(92vw, 900px); max-height: 88vh; display: flex; }
.lb-stage img {
  max-width: 100%; max-height: 88vh; width: auto; height: auto; object-fit: contain; border-radius: 6px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transition: opacity 0.35s ease, transform 0.5s var(--ease);
}
.lb-stage img.is-swap { opacity: 0; transform: scale(0.97); }
.lb-close, .lb-nav {
  position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--paper); border: 1px solid rgba(251, 248, 243, 0.3);
  transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.lb-close:hover, .lb-nav:hover { background: rgba(251, 248, 243, 0.14); border-color: var(--paper); }
.lb-close { top: 18px; right: 18px; }
.lb-nav { top: 50%; margin-top: -24px; }
.lb-prev { left: 14px; } .lb-next { right: 14px; }
.lb-count { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-size: 0.66rem; letter-spacing: 0.3em; color: rgba(251, 248, 243, 0.65); }

/* ── Revelar ao rolar ─────────────────────────────────── */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-img] .about-frame, .js [data-reveal-img].mk-media { clip-path: inset(0 0 100% 0 round 14px); transition: clip-path 1.5s var(--ease); }
.js [data-reveal-img] .about-frame { clip-path: inset(100% 0 0 0 round 200px 200px 18px 18px); }
.js [data-reveal-img].is-in .about-frame, .js [data-reveal-img].mk-media.is-in { clip-path: inset(0 0 0 0 round 14px); }
.js [data-reveal-img].is-in .about-frame { clip-path: inset(0 0 0 0 round 200px 200px 18px 18px); }

/* ══ Tablet / Desktop ═════════════════════════════════════ */
@media (min-width: 700px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .insight-kpis { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .insight-grid { grid-template-columns: 1fr 1fr; }
  .insight-card-wide { grid-column: 1 / -1; }
  .insight-audience { grid-template-columns: 1fr 1fr; gap: 32px; }
  .insight-strip img { width: min(38vw, 320px); }
  .services-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .masonry { columns: 3; column-gap: 16px; }
  .work { margin-bottom: 16px; }
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
  .agencies { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-actions { flex-direction: row; justify-content: center; }
  .hero-actions .btn { width: auto; }
}

@media (min-width: 960px) {
  :root { --nav-h: 82px; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .burger, .menu { display: none; }

  /* Navegação sobre fundo claro no desktop */
  .nav { color: var(--ink); }
  .nav-logo img { filter: none; }

  .hero {
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center; gap: clamp(32px, 5vw, 80px);
    max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding: calc(var(--nav-h) + 24px) var(--pad) 56px;
    background: transparent; overflow: visible;
  }
  .hero-text { order: 1; padding: 0; text-align: left; color: var(--ink); }
  .hero-media { order: 2; position: relative; inset: auto; justify-self: end; width: min(100%, 470px); height: min(76vh, 700px); }
  .hero-frame { border-radius: 999px 999px 26px 26px; box-shadow: 0 30px 70px rgba(70, 50, 30, 0.3); }
  .hero-media::before {
    content: ''; position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
    border: 1px solid var(--taupe); border-radius: 999px 999px 26px 26px;
    animation: rise 1.4s var(--ease) 1.2s both;
  }
  .hero-vignette { background: radial-gradient(ellipse 90% 80% at 50% 35%, transparent 55%, rgba(43, 30, 20, 0.16) 100%); }

  .badge { display: block; position: absolute; left: -62px; bottom: 56px; width: 128px; height: 128px; z-index: 3; animation: rise 1.2s var(--ease) 1.6s both; }
  .badge-ring { transform-origin: 60px 60px; animation: spin 26s linear infinite; }
  .badge text { font-family: var(--sans); font-size: 7.4px; font-weight: 500; fill: var(--ink); letter-spacing: 0.04em; }
  @keyframes spin { to { transform: rotate(360deg); } }

  .hero-eyebrow { color: var(--taupe-dk); }
  .hero-name { font-size: clamp(4.6rem, 8.4vw, 8rem); text-shadow: none; margin-bottom: 26px; }
  .hero-lead { margin: 0 0 32px; color: var(--ink-soft); font-size: 1.05rem; }
  .hero-actions { justify-content: flex-start; }
  .hero .btn-solid { background: var(--ink); color: var(--paper); }
  .hero .btn-solid:hover { background: #1c1814; }
  .hero-place { display: flex; justify-content: flex-start; color: var(--taupe-dk); animation: rise 1s var(--ease) 1.6s both; }
  .hero-place .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--taupe); }

  .scroll-cue { display: block; position: absolute; left: 50%; bottom: 18px; width: 22px; height: 38px; margin-left: -11px; border: 1px solid var(--taupe); border-radius: 12px; opacity: 0.7; }
  .scroll-cue span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--taupe-dk); animation: cue 1.9s ease-in-out infinite; }
  @keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

  .about-grid { grid-template-columns: 0.92fr 1.08fr; gap: clamp(56px, 8vw, 120px); }
  .about-media { margin-inline: 0; }
  .mk-grid { grid-template-columns: 0.8fr 1.2fr; gap: clamp(56px, 8vw, 110px); }
  .mk-media { margin-inline: 0; max-width: 420px; }
  .contact-card { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .masonry { column-gap: 20px; }
  .work { margin-bottom: 20px; }
  .fab { right: 28px; bottom: 28px; }
}

@media (max-width: 380px) {
  .hero-name { font-size: 3.4rem; }
  .brands-grid li { min-height: 80px; }
}

/* ── Movimento reduzido ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flash, .particles, .fab::before, .btn-solid::after, .btn-light::after, .scroll-cue span { display: none; }
  .hero-img, .hero-eyebrow, .hero-lead, .hero-actions, .hero-place, .badge, .hero-media::before { animation: none; }
  .hero-name .line > span { animation: none; transform: none; }
  .badge-ring { animation: none; }
  .brands-grid li, .bm { transition: none; }
  .js [data-reveal], .js [data-reveal-img] .about-frame, .js [data-reveal-img].mk-media { opacity: 1; transform: none; clip-path: none; transition: none; }
  .insight-bar-fill { width: var(--w); transition: none; }
}
