/* =========================================================
   GUSTAVO SOUZA — Landing Page
   Advogado • Investidor Imobiliário • Corretor de Imóveis
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
img { max-width: 100%; height: auto; display: block; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
svg { display: block; }

/* ---------- Design tokens ---------- */
:root {
  --navy-950: #05070d;
  --navy-900: #080d1c;
  --navy-800: #0b1226;
  --navy-700: #101a35;
  --navy-600: #172449;

  --white: #f7f5f0;
  --white-pure: #ffffff;

  --gold: #c9a463;
  --gold-soft: #d8bd8a;
  --gold-light: #ecdcb8;
  --gold-dark: #a3813f;

  --ink: #f7f5f0;
  --ink-muted: rgba(247, 245, 240, 0.68);
  --ink-faint: rgba(247, 245, 240, 0.42);
  --line: rgba(201, 164, 99, 0.22);
  --line-soft: rgba(247, 245, 240, 0.12);

  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1240px;
  --pad: clamp(24px, 5vw, 64px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background: var(--navy-900);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* film-grain overlay, fixed, extremely subtle */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin-right: 14px;
  vertical-align: middle;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.gold-text { color: var(--gold-soft); font-style: italic; }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 76px); }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); margin-top: 18px; }
.section-head p { margin-top: 20px; color: var(--ink-muted); font-size: 1.05rem; max-width: 600px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

section { position: relative; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 17px 34px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
  white-space: normal;
  max-width: 100%;
  text-align: center;
  justify-content: center;
  overflow-wrap: anywhere;
}

.btn .arrow { transition: transform 0.45s var(--ease); font-size: 1rem; line-height: 1; }
.btn:hover .arrow { transform: translateX(6px); }
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-dark));
  color: var(--navy-950);
}
.btn-gold:hover { box-shadow: 0 10px 40px -8px rgba(201, 164, 99, 0.55); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--gold); background: rgba(201, 164, 99, 0.08); transform: translateY(-2px); }

.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 26px 0;
  transition: padding 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  padding: 16px 0;
  background: rgba(5, 7, 13, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header.menu-open { z-index: 600; }

.logo-plate {
  display: inline-flex;
  align-items: center;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.logo-plate:hover { transform: translateY(-1px); opacity: 0.88; }
.logo-plate img { height: 40px; width: auto; transition: height 0.4s var(--ease); }
.header.scrolled .logo-plate img { height: 32px; }

.nav-desktop { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 34px; }
.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.35s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.burger {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  z-index: 600;
}
.burger span {
  position: absolute; left: 8px; right: 8px; height: 1px;
  background: var(--white);
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease), top 0.45s var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger.active span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0;
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  z-index: 550;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 34px;
  opacity: 0; visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}
.mobile-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-nav { overflow-y: auto; padding: 100px var(--pad) 40px; }
.mobile-nav a { font-family: var(--font-serif); font-size: 1.6rem; color: var(--white); }
.mobile-nav a:hover { color: var(--gold-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 60px;
  background: var(--navy-950);
  overflow: hidden;
}

/* camada reservada para vídeo/GIF de fundo (ver comentário no HTML) */
.hero-bg-media {
  position: absolute; inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg-media img,
.hero-bg-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* vídeo de fundo exclusivo do mobile — oculto no desktop */
.hero-bg-video {
  display: none;
  position: absolute; inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}

/* escurece/uniformiza o que estiver na hero-bg-media (ou o navy sólido, se vazia) */
.hero-bg-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 50% at 82% 18%, rgba(201,164,99,0.16), transparent 60%),
    radial-gradient(ellipse 80% 60% at 15% 85%, rgba(23,36,73,0.5), transparent 60%),
    linear-gradient(160deg, rgba(5,7,13,0.6) 0%, rgba(8,13,28,0.52) 55%, rgba(11,18,38,0.46) 100%);
}

.hero-watermark {
  position: absolute;
  top: 50%; left: 50%;
  width: min(1400px, 160vw);
  transform: translate(-50%, -50%);
  opacity: 0.035;
  pointer-events: none;
  z-index: 2;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(20px, 5vw, 60px);
  width: 100%;
}

.hero-copy h1 {
  margin-top: 22px;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  color: var(--white);
}
.hero-copy h1 em { color: var(--gold-soft); font-style: italic; }

.hero-copy p.lead {
  margin-top: 26px;
  max-width: 520px;
  font-size: 1.06rem;
  color: var(--ink-muted);
  font-weight: 300;
}

.hero-actions { margin-top: 42px; display: flex; flex-wrap: wrap; gap: 18px; }

.hero-photo-wrap {
  position: relative;
  height: clamp(420px, 62vw, 640px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-photo-glow {
  position: absolute;
  width: 70%; height: 70%;
  top: 8%; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(201,164,99,0.35), transparent 70%);
  filter: blur(30px);
  z-index: 0;
}

.hero-photo {
  position: relative;
  z-index: 1;
  width: min(420px, 88%);
  height: 100%;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, black 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 78%, transparent 100%);
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  filter: saturate(0.96) contrast(1.04);
}
.hero-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(5,7,13,0) 40%, rgba(5,7,13,0.55) 100%),
              linear-gradient(90deg, rgba(5,7,13,0.35), transparent 30%, transparent 70%, rgba(5,7,13,0.35));
}

.hero-photo-line {
  position: absolute;
  left: -18px; top: 6%; bottom: 12%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  z-index: 2;
}

/* floating gold particles */
.particles { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.particle {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 8px 1px rgba(201, 164, 99, 0.65);
  opacity: 0;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translate(0, 0); opacity: 0; }
  12% { opacity: 0.6; }
  88% { opacity: 0.3; }
  100% { transform: translate(var(--drift-x, 16px), var(--drift-y, -160px)); opacity: 0; }
}

/* ---------- Reveal animation system ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-soft), transform 0.6s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal="fade"] { transform: translateY(14px); }
[data-reveal="scale"] { transform: scale(0.98); }
[data-reveal="left"] { transform: translateX(-18px); }
[data-reveal="right"] { transform: translateX(18px); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Authority stats ---------- */
.stats {
  padding: 68px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--navy-950);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.stat { text-align: left; padding-right: 20px; border-left: 1px solid var(--line); padding-left: 24px; }
.stat .num {
  font-family: 'Montserrat', var(--font-sans);
  font-size: clamp(2.2rem, 3.6vw, 3.2rem);
  color: var(--gold-soft);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.stat .label { margin-top: 14px; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); font-weight: 600; }
.stat .sub { margin-top: 6px; font-size: 0.8rem; color: var(--ink-faint); }

/* ---------- More than a broker ---------- */
.about-intro { padding: clamp(90px, 12vw, 160px) 0; }
.about-intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.about-intro h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-top: 18px; text-align: center; }
.about-intro-text p { color: var(--ink-muted); margin-bottom: 22px; font-size: 1.02rem; max-width: 560px; }

/* foto ao lado do título, cantos bem arredondados — só no desktop (ver media query) */
.about-intro-photo {
  position: relative;
  margin: 40px auto 0;
  width: min(420px, 92%);
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  overflow: hidden;
}
.about-intro-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  filter: saturate(0.96) contrast(1.03);
}

.quote-block {
  margin-top: 44px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.quote-block p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--gold-soft);
  line-height: 1.3;
}

/* ---------- Pillars ---------- */
.pillars { padding: clamp(72px, 9vw, 120px) 0; background: var(--navy-950); }
.pillars .section-head { max-width: 800px; }
.pillars .section-head h2 { text-wrap: balance; }
.pillars .eyebrow { display: block; font-size: 0.65rem; letter-spacing: 0.16em; }
.pillars .eyebrow::before { display: none; }
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.pillar {
  position: relative;
  background: linear-gradient(150deg, rgba(201,164,99,0.06), transparent 65%), var(--navy-900);
  padding: 32px 28px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
}
.pillar::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(var(--gold), transparent 85%);
  opacity: 0.35;
  transition: opacity 0.25s ease;
}
@media (hover: hover) and (pointer: fine) {
  .pillar:hover::after { opacity: 1; }
}
.pillar .num-bg {
  display: block;
  margin-bottom: 28px;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--gold-soft);
  line-height: 1;
  z-index: 0;
  user-select: none;
}
.pillar h3 { position: relative; z-index: 1; font-size: 1.55rem; line-height: 1.25; color: var(--white); margin-top: 16px; text-wrap: balance; }
.pillar p { position: relative; z-index: 1; margin-top: 20px; color: rgba(247,245,240,0.76); font-size: 0.94rem; line-height: 1.8; }
@media (min-width: 1025px) {
  .pillar h3 { min-height: 3.75em; }
}
.pillar .tag { position: relative; z-index: 1; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); }

/* ---------- Marquee ticker ---------- */
.marquee-band {
  overflow: hidden;
  background: var(--navy-950);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 26px 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
  animation-play-state: paused;
}
.marquee-band.is-running .marquee-track { animation-play-state: running; }
.marquee-group {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-shrink: 0;
  min-width: 100vw;
}
.marquee-group span {
  font-family: 'Montserrat', var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--ink-muted);
  white-space: nowrap;
  padding: 0 28px;
}
.marquee-group .dot { font-family: var(--font-sans); font-style: normal; color: var(--gold); font-size: 0.6rem; padding: 0; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Mídia / entrevistas ---------- */
.press { padding: clamp(90px, 12vw, 160px) 0; }
.press-photos {
  margin-top: clamp(50px, 7vw, 90px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 26px);
}
.press-photo {
  position: relative;
  min-width: 0;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
/* Reserve height independently of image loading and flex/grid intrinsic sizing. */
.press-photo::before { content: ''; display: block; padding-top: 75%; }
.press-photo img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; display: block; filter: saturate(0.96) contrast(1.03); }
@media (min-width: 1025px) {
  .press .section-head.center {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }
  .press .section-head h2 {
    max-width: 760px;
    margin: 0 auto;
    color: var(--white);
    font-size: clamp(2.6rem, 3.6vw, 3.4rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
  }
  .press .section-head p {
    max-width: 680px;
    margin: 26px auto 0;
    color: rgba(247, 245, 240, 0.82);
    font-size: 1.05rem;
    line-height: 1.8;
    text-wrap: pretty;
  }
  .press-photos { margin-top: 56px; }
}
.press-photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; user-select: none; }
.press-photos::-webkit-scrollbar { display: none; }
.press-photos .press-photo { flex: 0 0 calc((100% - 2 * clamp(16px, 2.4vw, 26px)) / 3); scroll-snap-align: start; opacity: 1; transform: none; }
.press-photos.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.press-photo img { pointer-events: none; }
.press-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.press-carousel-dots { display: flex; gap: 2px; }
.press-carousel-dot { width: 28px; height: 44px; display: grid; place-items: center; }
.press-carousel-dot::after { content: ''; width: 16px; height: 3px; background: var(--line-soft); border-radius: 2px; }
.press-carousel-dot[aria-current="true"]::after { background: var(--gold); }
.press-carousel-arrow { width: 44px; height: 44px; border: 1px solid var(--line-soft); border-radius: 50%; color: var(--gold); font-size: 22px; }
.press-carousel-arrow:disabled { opacity: .3; cursor: default; }
.press-carousel-controls button:focus-visible, .press-photos:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 1024px) {
  .press .section-head p { margin-left: auto; margin-right: auto; }
  .press-photos {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-top: 36px;
    padding-bottom: 4px;
  }
  .press-photos::-webkit-scrollbar { display: none; }
  .press-photos .press-photo {
    flex: 0 0 88%;
    scroll-snap-align: center;
    border-radius: 6px;
    opacity: 1;
    transform: none;
  }
  .press-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
  }
  .press-carousel-dots { display: flex; gap: 4px; }
  .press-carousel-dot { width: 24px; height: 44px; display: grid; place-items: center; }
  .press-carousel-dot::after { content: ''; width: 18px; height: 3px; background: var(--line-soft); border-radius: 2px; }
  .press-carousel-dot[aria-current="true"]::after { background: var(--gold); }
  .press-carousel-controls button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
}
@media (max-width: 720px) {
  .press-photos { grid-template-columns: 1fr; }
}

/* ---------- Cinematic section ---------- */
.cinematic {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-950);
}
.cinematic-bg {
  position: absolute; inset: -10%;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201,164,99,0.10), transparent 60%),
    linear-gradient(180deg, #05070d 0%, #0a1128 45%, #0d1730 78%, #05070d 100%);
  transform: scale(1);
  transition: transform 6s var(--ease-soft);
  will-change: transform;
}
.cinematic.zoomed .cinematic-bg { animation: cinematicBreathe 16s ease-in-out infinite; }
@keyframes cinematicBreathe {
  0% { transform: scale(1.04); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1.04); }
}

/* vídeo de fundo exclusivo do mobile — oculto no desktop */
.cinematic-bg-video {
  display: none;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
/* vídeo de fundo exclusivo do desktop — oculto no mobile (ver media query) */
.cinematic-bg-video-desktop {
  display: block;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.cinematic-video-scrim {
  display: block;
  position: absolute; inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(5,7,13,0.75) 0%, rgba(5,7,13,0.55) 35%, rgba(5,7,13,0.68) 100%);
}

/* no desktop o vídeo já ocupa o fundo, o skyline dourado por cima ficava carregado demais */
.cinematic-skyline { display: none; position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: auto; opacity: 0.55; z-index: 1; }
.cinematic-skyline path, .cinematic-skyline rect { stroke: var(--gold); }

.cinematic-content { position: relative; z-index: 2; text-align: center; padding: 0 var(--pad); }
.cinematic-content h2 {
  font-size: clamp(2.2rem, 6vw, 4.6rem);
  color: var(--white);
  letter-spacing: 0.01em;
}
.cinematic-content h2 .cinematic-em { display: block; color: var(--gold-soft); font-style: italic; }
.cinematic-content p {
  margin-top: 30px;
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  color: var(--ink-muted);
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}
.cinematic-line { width: 1px; height: 70px; background: linear-gradient(var(--gold), transparent); margin: 0 auto 30px; }

/* ---------- Regions ---------- */
.regions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 44px);
  max-width: 1480px;
  margin: 0 auto;
  padding: 16px var(--pad) clamp(64px, 7vw, 100px);
}
.region {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}
.region-parallax { position: absolute; inset: 0; z-index: -3; }
.region-bg {
  position: absolute; inset: 0;
  background: var(--navy-900);
}
.region-overlay { display: none; }

.region-lines { display: none; }

/* Vídeos amplos, com títulos sobre a imagem e textos alinhados à moldura. */
.region-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.region-video-card {
  position: relative;
  width: 100%;
  aspect-ratio: 6 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(201,164,99,0.12), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
}
.region-video-card video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.region-video-card::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(5,7,13,0.78) 0%, rgba(5,7,13,0) 100%);
  pointer-events: none;
}
.region-video-tag {
  position: absolute;
  left: clamp(20px, 2.5vw, 36px);
  bottom: clamp(20px, 2.5vw, 32px);
  z-index: 1;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.region-text { width: 100%; }
.region-text .eyebrow { margin-top: 0; color: var(--gold-soft); font-size: 0.7rem; letter-spacing: 0.28em; }
.region-text h3 {
  margin-top: 14px;
  font-family: 'Fraunces', var(--font-serif);
  font-weight: 600;
  font-variation-settings: 'SOFT' 100, 'opsz' 28, 'WONK' 0;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  color: var(--white);
}
.region-text p { margin-top: 18px; color: var(--ink-muted); font-size: 1.05rem; line-height: 1.6; }
.region-text .rule { width: 44px; height: 2px; background: var(--gold); margin-top: 24px; transition: width 0.5s var(--ease); }
.region:hover .region-text .rule { width: 80px; }

/* ---------- About / who's behind ---------- */
.founder { padding: clamp(90px, 12vw, 160px) 0; background: var(--navy-950); }
.founder-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.founder-photo {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.96) contrast(1.03); }
/* Keep media out of intrinsic height calculations, including older WebKit. */
.about-intro-photo, .founder-photo, .region-video-card { aspect-ratio: auto; }
.about-intro-photo::before, .founder-photo > picture::before, .region-video-card::before { content: ''; display: block; }
.about-intro-photo::before { padding-top: 100%; }
.founder-photo > picture::before { padding-top: 125%; }
.region-video-card::before { padding-top: 83.333333%; }
.about-intro-photo img, .founder-photo img, .region-video-card video { position: absolute; top: 0; left: 0; }
.hero-bg-media picture { display: block; width: 100%; height: 100%; }
.hero-grid > *, .about-intro-grid > *, .founder-grid > *, .footer-top > * { min-width: 0; }
.footer-contact a { overflow-wrap: anywhere; }
.founder-photo::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(5,7,13,0) 55%, rgba(5,7,13,0.5) 100%);
}
.founder-photo::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(var(--gold), transparent 80%);
}
.founder-text h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-top: 18px; }
.founder-text p { margin-top: 20px; color: var(--ink-muted); max-width: 560px; }
.founder-signature {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.founder-signature .name { font-family: var(--font-serif); font-style: italic; font-size: 1.5rem; color: var(--gold-soft); }
.founder-signature .role { margin-top: 8px; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

/* ---------- Final CTA ---------- */
.final-cta {
  padding: clamp(100px, 14vw, 180px) 0;
  text-align: center;
  background: var(--navy-950);
}
.final-cta h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 760px; margin: 18px auto 0; }
.final-cta p { margin-top: 24px; color: var(--ink-muted); max-width: 520px; margin-left: auto; margin-right: auto; }
.final-cta .actions { margin-top: 44px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { padding: 80px 0 34px; background: var(--navy-950); border-top: 1px solid var(--line-soft); }
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 56px;
}
.footer-brand .logo-plate { margin-bottom: 22px; }
.footer-brand .logo-plate img { height: 56px; }
.footer-brand .role { margin-top: 4px; font-size: 0.8rem; color: var(--ink-muted); }
.footer-brand .footer-region { margin-top: 18px; font-size: 0.82rem; color: var(--ink-faint); }
.footer-brand .footer-contact { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.footer-brand .footer-contact a { font-size: 0.85rem; color: var(--ink-muted); transition: color 0.3s var(--ease); }
.footer-brand .footer-contact a:hover { color: var(--gold-soft); }
.footer-col h4 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 13px; }
.footer-col a { color: var(--ink-muted); font-size: 0.92rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-col .creds { margin-top: 4px; font-size: 0.82rem; color: var(--ink-faint); line-height: 1.9; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px;
  padding-top: 30px; border-top: 1px solid var(--line-soft);
  font-size: 0.76rem; color: var(--ink-faint);
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 400;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-dark));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.6);
  transition: transform 0.4s var(--ease);
}
.whatsapp-float::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(201,164,99,0.5);
  animation: pulse-ring 2.8s var(--ease-soft) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.35); opacity: 0; }
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); }
.whatsapp-float svg { width: 26px; height: 26px; }

/* ---------- Counters trigger helper ---------- */
.count { font-variant-numeric: tabular-nums; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .burger { display: block; }
  .hero-grid { grid-template-columns: 1fr; }

  /* mobile: sem foto do Gustavo — texto centralizado, fundo em vídeo (ver comentário no HTML) */
  .hero-photo-wrap { display: none; }
  .hero-bg-media { display: none; }
  .hero-bg-video { display: block; }

  /* seção cinematográfica: vídeo mobile entra, vídeo desktop sai, skyline volta só no mobile */
  .cinematic-bg-video { display: block; }
  .cinematic-bg-video-desktop { display: none; }
  .cinematic-video-scrim { display: block; }
  .cinematic-skyline { display: block; }

  .cinematic-content p { color: rgba(247, 245, 240, 0.88); }
  .hero-copy {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
  }
  .hero-copy .eyebrow::before { display: none; }
  .hero-copy p.lead {
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85), 0 1px 14px rgba(0, 0, 0, 0.6);
  }
  .hero-actions { justify-content: center; }

  /* fundo mais claro no mobile, pra deixar o vídeo de Itapema visível atrás do texto */
  .hero-bg-overlay {
    background:
      radial-gradient(ellipse 60% 50% at 82% 18%, rgba(201,164,99,0.16), transparent 60%),
      radial-gradient(ellipse 80% 60% at 15% 85%, rgba(23,36,73,0.5), transparent 60%),
      linear-gradient(160deg, rgba(5,7,13,0.68) 0%, rgba(8,13,28,0.6) 55%, rgba(11,18,38,0.54) 100%);
  }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .about-intro-grid, .founder-grid { grid-template-columns: 1fr; }
  .about-intro-photo { display: none; }
  .about-intro h2 { text-align: left; }
  .founder-photo { max-width: 420px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .burger { display: block; }
  .header .logo-plate img { height: 32px; }
  .header.scrolled .logo-plate img { height: 28px; }
  .hero { padding-top: 110px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding-left: 16px; }
  .pillar { padding: 44px 26px 36px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .regions { grid-template-columns: 1fr; gap: 44px; }
  .region-video-card::before { padding-top: 100%; }
  .final-cta .actions { flex-direction: column; align-items: stretch; }
  .whatsapp-float { bottom: 18px; right: 18px; width: 52px; height: 52px; }
}

@media (max-width: 400px) {
  :root { --pad: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transition: none; transform: none !important; }
  .hero-photo, .hero-photo-wrap, .hero-photo-glow { transform: none !important; }
  .pillar::after { transition: none; }
  .cinematic-bg, .region-bg, .logo-plate, .btn, .pillar { transition: none; }
  .whatsapp-float::before, .particle, .marquee-track, .region-bg, .cinematic.zoomed .cinematic-bg { animation: none; }
  .region-parallax { transform: none !important; }
}
