/* ════════════════════════════════════════════════════════════
   Peixoto David Arquitetura — Rebrand
   Recreated from the Lovable reference design (React + Tailwind)
   as hand-written CSS to keep the Flask stack & deploy unchanged.
   ════════════════════════════════════════════════════════════ */

/* ── Design tokens (oklch palette pulled from the PD logo) ── */
:root {
  --radius: 0.25rem;

  --background: oklch(0.992 0.003 240);
  --foreground: oklch(0.28 0.025 250);

  --card: oklch(1 0 0);
  --card-foreground: oklch(0.28 0.025 250);

  --primary: oklch(0.62 0.045 245);
  --primary-foreground: oklch(0.99 0.003 240);
  --secondary: oklch(0.95 0.012 240);
  --secondary-foreground: oklch(0.32 0.03 250);
  --muted: oklch(0.955 0.008 240);
  --muted-foreground: oklch(0.5 0.02 250);

  --border: oklch(0.9 0.012 240);
  --input: oklch(0.92 0.01 240);

  --brand: oklch(0.62 0.045 245);
  --brand-soft: oklch(0.82 0.03 240);
  --brand-deep: oklch(0.38 0.04 250);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;

  --maxw: 1500px;
}

/* ── Reset / base ── */
*, *::before, *::after { box-sizing: border-box; }
* { border-color: var(--border); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin: 0;
}

::selection { background-color: color-mix(in oklch, var(--brand) 30%, transparent); }

.page { min-height: 100vh; }

/* ── Shared layout helpers ── */
.section {
  padding-inline: 1.5rem;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-top: 6rem;
  padding-bottom: 6rem;
}
@media (min-width: 768px) {
  .section { padding-inline: 3rem; padding-top: 9rem; padding-bottom: 9rem; }
}
@media (min-width: 1280px) {
  .section { padding-inline: 6rem; }
}

.section-band { background: color-mix(in oklch, var(--secondary) 50%, var(--background)); border-block: 1px solid var(--border); }

/* ── Typographic helpers ── */
.display-xl { font-family: var(--font-display); line-height: 0.85; letter-spacing: -0.02em; font-size: clamp(4rem, 14vw, 13rem); }
.display-lg { font-family: var(--font-display); line-height: 0.9; font-size: clamp(3rem, 8vw, 6rem); }
.display-md { font-family: var(--font-display); line-height: 0.9; font-size: clamp(2.5rem, 7vw, 4.5rem); }
.display-sm { font-family: var(--font-display); line-height: 0.9; font-size: clamp(2.25rem, 6vw, 3.75rem); }
.display-xl em, .display-lg em, .display-md em, .display-sm em { font-style: italic; font-weight: 300; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.light-weight { font-weight: 300; }

.kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--brand);
  display: inline-block;
}
.kicker.light { color: rgba(255,255,255,0.8); }
.kicker.soft { color: var(--brand-soft); }
.kicker.muted { color: var(--muted-foreground); }

.chip {
  display: inline-flex;
  align-items: baseline;
  padding: 0.1em 0.7em;
  margin: 0 0.25em;
  border-radius: 999px;
  background: color-mix(in oklch, var(--brand-soft) 50%, transparent);
  color: var(--brand-deep);
  font-size: 0.7em;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

/* ── Brand lockup ── */
.brand-lockup { display: flex; align-items: center; gap: 0.75rem; }
.brand-mark { height: 2.25rem; width: 2.25rem; border-radius: 999px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,0.4); }
.brand-words { display: none; align-items: baseline; gap: 0.5rem; font-family: var(--font-sans); }
.brand-words span:not(.brand-dot) { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.32em; color: #fff; }
.brand-words.dark span:not(.brand-dot) { color: var(--foreground); }
.brand-dot { display: inline-block; height: 4px; width: 4px; border-radius: 999px; background: rgba(255,255,255,0.7); }
.brand-dot-blue { background: var(--brand); }
@media (min-width: 768px) { .brand-words { display: flex; } }

/* ── Pill CTA ── */
.pill-cta {
  display: inline-flex; align-items: center; gap: 0.75rem;
  background: #0a0a0a; color: #fff;
  padding: 0.5rem 0.5rem 0.5rem 1.75rem;
  border: none; border-radius: 999px;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.45);
  transition: background-color 0.5s ease;
}
.pill-cta:hover { background: #1a1a1a; }
.pill-cta-text { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.3em; }
.pill-cta-arrow {
  height: 2.5rem; width: 2.5rem; border-radius: 999px;
  background: #fff; color: #0a0a0a;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.5s ease;
}
.pill-cta:hover .pill-cta-arrow { transform: rotate(45deg); }

/* ════════════════════════════ HERO ════════════════════════════ */
.hero { position: relative; padding: 1rem 0.75rem 5rem; }
@media (min-width: 768px) { .hero { padding: 1.25rem 1.25rem 6rem; } }

.hero-frame {
  position: relative; width: 100%;
  aspect-ratio: 10 / 13;
  border-radius: 1.5rem; overflow: hidden;
  background: var(--secondary);
}
@media (min-width: 768px) { .hero-frame { aspect-ratio: 16 / 10; } }
@media (min-width: 1280px) { .hero-frame { aspect-ratio: 16 / 9; } }

.hero-bg { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.hero-bg img { height: 120%; width: 100%; object-fit: cover; }
.hero-bg-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.15), rgba(0,0,0,0.05) 50%, rgba(0,0,0,0.3)); }
/* Reforço de azul/escuro no topo para legibilidade da barra de navegação */
.hero-bg-topfade { position: absolute; top: 0; left: 0; right: 0; height: 34%; background: linear-gradient(to bottom, rgba(20,40,70,0.45), rgba(20,40,70,0)); }

/* Top bar */
.hero-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem; color: #fff;
}
@media (min-width: 768px) { .hero-top { padding: 1.75rem 2.5rem; } }

/* Barra única: logo branco ligado aos links de navegação */
.nav-pill {
  display: flex; align-items: center; gap: 1.1rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px; padding: 0.75rem 1rem 0.75rem 0.75rem;
}
@media (min-width: 1024px) {
  .nav-pill {
    gap: 0;
    padding: 0.65rem 2.25rem 0.65rem 0.65rem;
    min-height: 5.25rem;
    align-items: center;
  }
}
.nav-logo-wrap {
  flex-shrink: 0;
  width: 3.75rem;
  height: 3.75rem;
  display: grid;
  place-items: center;
  place-content: center;
}
@media (min-width: 1024px) {
  .nav-logo-wrap {
    width: 5.25rem;
    height: 5.25rem;
  }
}
.nav-logo {
  display: block;
  width: 3.75rem;
  height: 3.75rem;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center center;
  mix-blend-mode: screen;
}
@media (min-width: 1024px) {
  .nav-logo {
    width: 5.25rem;
    height: 5.25rem;
    /* PNG tem margem assimétrica — ajuste óptico para centro vertical na barra */
    translate: 0 2px;
  }
}
.nav-sep { display: none; width: 1px; height: 2.25rem; background: rgba(255,255,255,0.3); align-self: center; flex-shrink: 0; margin: 0; }
@media (min-width: 1024px) {
  .nav-sep { display: block; height: 2.5rem; margin-left: 0; margin-right: 2rem; }
}
.nav-links { display: none; align-items: center; gap: 2rem; align-self: center; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links button {
  background: none; border: none; color: rgba(255,255,255,0.85);
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.22em;
  transition: color 0.3s; line-height: 1; padding: 0; margin: 0;
  display: flex; align-items: center;
}
@media (min-width: 1024px) { .nav-links button { font-size: 13px; } }
.nav-links button:hover { color: #fff; }

.hero-tagline {
  display: none; font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.3em; color: rgba(255,255,255,0.7);
  text-align: right; line-height: 1.3;
}
@media (min-width: 768px) { .hero-tagline { display: block; } }

.nav-burger { display: flex; flex-direction: column; justify-content: center; gap: 6px; background: none; border: none; padding: 0.65rem; width: auto; min-height: 44px; min-width: 44px; }
.nav-burger span { display: block; height: 1px; width: 24px; background: #fff; transition: all 0.3s ease; }
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }
@media (min-width: 1024px) { .nav-burger { display: none; } }

.mobile-menu {
  position: absolute; top: 4.75rem; left: 1rem; right: 1rem; z-index: 25;
  background: color-mix(in oklch, var(--background) 97%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border); border-radius: 1.25rem;
  padding: 1.25rem; flex-direction: column; gap: 0.25rem;
  display: none; box-shadow: 0 24px 48px rgba(0,0,0,0.12);
}
.mobile-menu.open { display: flex; }
.mobile-menu button {
  background: none; border: none; text-align: left;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: color-mix(in oklch, var(--foreground) 80%, transparent);
  padding: 0.85rem 0.75rem; min-height: 44px;
  border-radius: 0.5rem; transition: background-color 0.2s, color 0.2s;
}
.mobile-menu button:hover { background: var(--secondary); color: var(--foreground); }
@media (min-width: 1024px) { .mobile-menu { display: none !important; } }

/* Especialidades (substitui o card de estatísticas) */
.hero-specs {
  position: absolute; z-index: 10;
  display: flex; flex-direction: column;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 1.25rem; overflow: hidden; color: #fff;
  top: auto; bottom: 10.5rem; left: 1rem; right: 1rem; width: auto;
}
@media (min-width: 640px) {
  .hero-specs { top: 7rem; bottom: auto; right: 1.25rem; left: auto; width: 20rem; }
}
@media (min-width: 768px) { .hero-specs { top: 7.5rem; right: 2.5rem; width: 22.5rem; } }
@media (min-width: 1280px) { .hero-specs { width: 24rem; } }
.hero-spec {
  display: flex; align-items: center; gap: 0.85rem;
  background: none; border: none; color: #fff; text-align: left;
  padding: 0.9rem 1.1rem; width: 100%; min-height: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
  transition: background-color 0.3s, padding-left 0.3s;
}
@media (min-width: 768px) { .hero-spec { padding: 1.4rem 1.75rem; gap: 1.25rem; } }
.hero-spec:last-child { border-bottom: none; }
.hero-spec:hover { background: rgba(255,255,255,0.12); padding-left: 1.35rem; }
@media (min-width: 768px) { .hero-spec:hover { padding-left: 1.85rem; } }
.hero-spec-icon { display: flex; flex-shrink: 0; align-items: center; }
.hero-spec-icon svg { width: 1.2rem; height: 1.2rem; color: rgba(255,255,255,0.9); }
@media (min-width: 768px) { .hero-spec-icon svg { width: 1.5rem; height: 1.5rem; } }
.hero-spec-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; line-height: 1.35; }
@media (min-width: 768px) { .hero-spec-label { font-size: 13px; letter-spacing: 0.18em; } }

/* Wordmark */
.hero-wordmark {
  position: absolute; bottom: 2rem; left: 1rem; right: 1rem; z-index: 10; color: #fff;
}
@media (min-width: 768px) { .hero-wordmark { bottom: 3.5rem; left: 2.5rem; right: auto; } }
.hero-kicker { font-size: 10px; text-transform: uppercase; letter-spacing: 0.35em; color: rgba(255,255,255,0.8); }
@media (min-width: 768px) { .hero-kicker { font-size: 11px; letter-spacing: 0.4em; } }
.hero-name {
  margin-top: 0.75rem; font-family: var(--font-display); font-weight: 300;
  line-height: 0.82; letter-spacing: -0.01em; text-transform: lowercase;
  display: flex; flex-direction: column;
  font-size: clamp(3.25rem, 14vw, 13rem);
}
@media (min-width: 768px) { .hero-name { margin-top: 1rem; font-size: clamp(6rem, 11vw, 13rem); } }
.hero-name .italic { font-style: italic; padding-left: 0.18em; }

.hero-cta-wrap { position: relative; margin-top: -1.75rem; display: flex; justify-content: center; z-index: 30; }
@media (min-width: 768px) { .hero-cta-wrap { margin-top: -2rem; } }

/* ════════════════════════════ QUEM SOMOS ════════════════════════════ */
.qs-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.qs-head em { white-space: nowrap; }
.qs-star { display: none; font-size: 1.5rem; color: var(--brand); margin-top: 1rem; }
@media (min-width: 768px) { .qs-star { display: block; } }

.qs-lead { margin-top: 3rem; max-width: 64rem; font-size: 1.25rem; line-height: 1.35; color: color-mix(in oklch, var(--foreground) 80%, transparent); font-weight: 300; }
@media (min-width: 768px) { .qs-lead { margin-top: 4rem; font-size: 1.875rem; } }
.qs-lead p { margin: 0; }

.qs-media { margin-top: 3.5rem; display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .qs-media { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; } }
.qs-photos img { width: 100%; height: auto; border-radius: 1rem; display: block; }
.qs-body { color: color-mix(in oklch, var(--foreground) 65%, transparent); font-size: 0.95rem; line-height: 1.75; }
@media (min-width: 768px) { .qs-body { font-size: 15px; } }
.qs-body p { margin: 0 0 1rem; }
.qs-emph { font-style: italic; color: var(--brand-deep); }

/* Stats strip */
.stats-strip {
  margin-top: 5rem;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 1rem; overflow: hidden;
}
@media (min-width: 1024px) { .stats-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-cell { background: var(--card); padding: 1.75rem; display: flex; flex-direction: column; gap: 0.75rem; transition: background-color 0.5s; }
@media (min-width: 768px) { .stat-cell { padding: 2.25rem; } }
.stat-cell:hover { background: var(--secondary); }
.stat-num { font-family: var(--font-display); font-size: 3rem; color: var(--brand-deep); line-height: 1; }
@media (min-width: 768px) { .stat-num { font-size: 3.75rem; } }
.stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--muted-foreground); }

/* ════════════════════════════ SERVIÇOS ════════════════════════════ */
.band-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
@media (min-width: 768px) { .band-head { margin-bottom: 5rem; } }

.servicos-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: stretch; }
@media (min-width: 1024px) { .servicos-grid { grid-template-columns: 1fr 1fr; gap: 4rem; } }

.servicos-list { display: flex; flex-direction: column; }
.service-row { display: flex; align-items: flex-start; gap: 1.5rem; padding: 1.75rem 0; border-top: 1px solid var(--border); transition: padding-left 0.5s ease; }
@media (min-width: 768px) { .service-row { padding: 2rem 0; } }
.servicos-list .service-row:last-child { border-bottom: 1px solid var(--border); }
.service-row:hover { padding-left: 0.5rem; }
.service-icon { color: var(--brand); padding-top: 0.15rem; width: 2rem; flex-shrink: 0; display: flex; }
.service-icon svg { width: 1.7rem; height: 1.7rem; }
.service-row:hover .service-icon { color: var(--brand-deep); }
.service-main { flex: 1; }
.service-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.service-title-row h3 { font-family: var(--font-sans); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.05rem; color: var(--foreground); transition: color 0.3s; }
@media (min-width: 768px) { .service-title-row h3 { font-size: 1.3rem; } }
.service-row:hover .service-title-row h3 { color: var(--brand-deep); }
.service-arrow { margin-top: 0.5rem; color: var(--brand); opacity: 0; transform: translateX(-0.5rem); transition: all 0.5s ease; }
.service-row:hover .service-arrow { opacity: 1; transform: translateX(0); }
.service-main p { margin: 0.75rem 0 0; font-size: 0.875rem; color: color-mix(in oklch, var(--foreground) 65%, transparent); line-height: 1.7; max-width: 32rem; }
@media (min-width: 768px) { .service-main p { font-size: 15px; } }

.servicos-feature {
  position: relative; min-height: 420px; border-radius: 1.5rem;
  overflow: hidden; background: var(--secondary);
}
@media (min-width: 768px) { .servicos-feature { min-height: 520px; } }
@media (min-width: 1024px) { .servicos-feature { min-height: 100%; aspect-ratio: 4 / 5; } }
.servicos-feature img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 35%;
  transition: transform 1.2s ease;
}
.servicos-feature:hover img { transform: scale(1.04); }
/* ════════════════════════════ DIFERENCIAIS ════════════════════════════ */
.dif-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
@media (min-width: 768px) { .dif-grid { grid-template-columns: repeat(12, 1fr); gap: 2rem; } }
.dif-photo { position: relative; border-radius: 1.5rem; overflow: hidden; min-height: 520px; background: var(--secondary); }
@media (min-width: 768px) { .dif-photo { grid-column: span 7; min-height: 640px; } }
.dif-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dif-photo-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.4), rgba(0,0,0,0.1) 50%, transparent); }
.dif-photo-caption { position: absolute; bottom: 2rem; left: 1.5rem; color: #fff; }
@media (min-width: 768px) { .dif-photo-caption { bottom: 3rem; left: 2.5rem; } }
.dif-photo-name { margin-top: 0.75rem; font-family: var(--font-display); line-height: 0.85; font-size: 14vw; }
@media (min-width: 768px) { .dif-photo-name { font-size: 8vw; } }
.dif-photo-name .italic { padding-left: 4vw; }

.dif-cards { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 768px) { .dif-cards { grid-column: span 5; gap: 1.5rem; } }
.dif-card { background: var(--card); border: 1px solid var(--border); border-radius: 1.5rem; padding: 2rem; flex: 1; }
@media (min-width: 768px) { .dif-card { padding: 2.5rem; } }
.dif-card p { margin: 1.25rem 0 0; font-size: 1rem; line-height: 1.7; color: color-mix(in oklch, var(--foreground) 80%, transparent); }
@media (min-width: 768px) { .dif-card p { font-size: 1.125rem; } }
.dif-card-dark { background: var(--foreground); color: var(--background); }
.dif-card-dark p { color: color-mix(in oklch, var(--background) 85%, transparent); }

/* ════════════════════════════ PARCERIAS ════════════════════════════ */
.partner-grid {
  margin-top: 4rem;
  display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--border); border-radius: 1rem; overflow: hidden;
  background: var(--card);
}
@media (min-width: 768px) { .partner-grid { grid-template-columns: repeat(3, 1fr); margin-top: 5rem; } }
@media (min-width: 1024px) { .partner-grid { grid-template-columns: repeat(6, 1fr); } }
.partner-cell {
  aspect-ratio: 3 / 2; display: flex; align-items: center; justify-content: center;
  padding: 0; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border);
  transition: background-color 0.5s; overflow: hidden;
}
.partner-logo-slot {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  box-sizing: border-box;
  overflow: hidden;
}
@media (min-width: 768px) { .partner-logo-slot { padding: 1.35rem 1.15rem; } }
@media (min-width: 1024px) { .partner-logo-slot { padding: 1.25rem 1.35rem; } }
.partner-cell:hover { background: var(--background); }
.partner-logo {
  max-height: 3.25rem; max-width: 100%; width: auto; height: auto;
  object-fit: contain; transition: transform 0.5s ease;
  transform-origin: center center;
}
@media (min-width: 768px) { .partner-logo { max-height: 4.75rem; } }
@media (min-width: 1024px) { .partner-logo { max-height: 5.25rem; } }
.partner-logo--boost { transform: scale(1.28); }
.partner-logo--boost-lg { transform: scale(1.42); }
.partner-cell:hover .partner-logo { transform: scale(1.06); }
.partner-cell:hover .partner-logo--boost { transform: scale(1.34); }
.partner-cell:hover .partner-logo--boost-lg { transform: scale(1.48); }
/* Desktop: logos largos — mantém zoom grande, slot com padding extra evita invadir borda */
@media (min-width: 1024px) {
  .partner-cell:nth-child(4) .partner-logo-slot,
  .partner-cell:nth-child(5) .partner-logo-slot,
  .partner-cell:nth-child(6) .partner-logo-slot {
    padding-inline: 1.65rem;
  }
}

/* Work / videos */
.work { margin-top: 6rem; }
@media (min-width: 768px) { .work { margin-top: 8rem; } }
.work-head { margin-bottom: 2.5rem; }
@media (min-width: 768px) { .work-head { margin-bottom: 3.5rem; } }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
@media (min-width: 768px) { .work-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .work-grid { grid-template-columns: repeat(6, 1fr); } }
.work-cell { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 1rem; background: var(--secondary); }
.work-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter 0.7s, transform 0.7s; }
.work-cell:hover .work-video { filter: grayscale(0); transform: scale(1.05); }

/* ════════════════════════════ CONTATO ════════════════════════════ */
.contato-title { max-width: 56rem; }

.founders { margin-top: 4rem; background: var(--card); border: 1px solid var(--border); border-radius: 1.5rem; padding: 2rem; }
@media (min-width: 768px) {
  .founders {
    margin-top: 5rem; padding: 2.5rem 3rem;
    display: flex; align-items: center; justify-content: flex-start; gap: 3.5rem;
  }
}
@media (min-width: 1024px) { .founders { gap: 5rem; padding: 2.5rem 3.5rem; } }
.founders-lead { display: flex; flex-shrink: 0; }
.founders-logo { height: auto; width: 280px; max-width: 72vw; object-fit: contain; }
@media (min-width: 768px) { .founders-logo { width: 360px; } }
@media (min-width: 1024px) { .founders-logo { width: 400px; } }
.founders-people { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; flex-wrap: wrap; }
@media (min-width: 768px) { .founders-people { gap: 2.5rem; margin-top: 0; } }
.founder { display: flex; align-items: center; gap: 1rem; }
.founder-avatar {
  height: 5rem; width: 5rem; border-radius: 999px; flex-shrink: 0; overflow: hidden;
  box-shadow: 0 0 0 1px var(--border);
}
@media (min-width: 768px) { .founder-avatar { height: 6rem; width: 6rem; } }
.founder-avatar img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.founder:hover .founder-avatar img { transform: scale(1.08); }
.founder-role { font-size: 9px; text-transform: uppercase; letter-spacing: 0.3em; color: var(--muted-foreground); }
.founder-name { font-family: var(--font-display); font-size: 1.125rem; margin-top: 0.25rem; }
@media (min-width: 768px) { .founder-name { font-size: 1.25rem; } }

.contato-grid { margin-top: 4rem; display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) { .contato-grid { margin-top: 5rem; grid-template-columns: 5fr 7fr; gap: 5rem; } }

.contato-info { display: flex; flex-direction: column; gap: 1.75rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
.contact-icon {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  height: 2.5rem; width: 2.5rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--brand);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.contact-icon svg { width: 1.1rem; height: 1.1rem; }
a.contact-item:hover .contact-icon { background: var(--brand); color: #fff; border-color: var(--brand); }
.contact-text { display: flex; flex-direction: column; padding-top: 0.15rem; min-width: 0; }
.contact-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.35em; color: var(--muted-foreground); margin-bottom: 0.4rem; }
.contact-value { font-family: var(--font-display); font-size: 1.2rem; color: var(--foreground); transition: color 0.3s; word-break: break-word; }
@media (min-width: 768px) { .contact-value { font-size: 1.4rem; } }
a.contact-item:hover .contact-value { color: var(--brand); }

.contato-form { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 768px) { .contato-form { grid-template-columns: 1fr 1fr; } }
.field { position: relative; display: block; }
.field-full { grid-column: 1 / -1; }
.field input, .field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--border);
  padding: 1.5rem 0 0.75rem; color: var(--foreground); font-family: inherit; font-size: 1rem;
  transition: border-color 0.3s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--brand); }
.field > span {
  position: absolute; left: 0; top: 0; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.3em; color: var(--muted-foreground);
}
.form-submit { margin-top: 1rem; }

.contato-success { border: 1px solid var(--border); border-radius: 1.5rem; padding: 3rem; background: var(--card); text-align: center; }
.contato-success h3 { font-size: 1.875rem; color: var(--brand-deep); }
.contato-success p { margin: 0.75rem 0 0; color: color-mix(in oklch, var(--foreground) 70%, transparent); }

/* ════════════════════════════ FOOTER ════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1.5rem; max-width: var(--maxw); margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
}
@media (min-width: 768px) { .footer { padding-inline: 3rem; flex-direction: row; justify-content: space-between; } }
@media (min-width: 1280px) { .footer { padding-inline: 6rem; } }
.footer-copy { font-size: 0.75rem; color: var(--muted-foreground); margin: 0; }

/* ════════════════════════════ SCROLL REVEAL ════════════════════════════ */
[data-reveal] { opacity: 0; transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
[data-reveal="up"] { transform: translateY(40px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ════════════════════════════ MOBILE REFINEMENTS ════════════════════════════ */
@media (max-width: 1023px) {
  .hero-top { padding: 1rem; gap: 0.75rem; }
  .nav-pill { justify-content: center; min-height: 3.5rem; padding: 0.55rem 0.9rem; }
}

@media (max-width: 767px) {
  .section { padding-top: 4.5rem; padding-bottom: 4.5rem; padding-inline: 1.25rem; }
  .display-xl { font-size: clamp(3rem, 16vw, 5rem); }
  .display-lg { font-size: clamp(2.5rem, 11vw, 4rem); }
  .display-sm { font-size: clamp(2rem, 9vw, 3rem); }

  .band-head { flex-direction: column; align-items: flex-start; gap: 0.75rem; margin-bottom: 2.5rem; }
  .band-head .kicker { letter-spacing: 0.3em; }

  .pill-cta { padding: 0.45rem 0.45rem 0.45rem 1.25rem; gap: 0.6rem; max-width: calc(100vw - 2.5rem); }
  .pill-cta-text { font-size: 0.68rem; letter-spacing: 0.22em; }
  .pill-cta-arrow { height: 2.15rem; width: 2.15rem; }

  .qs-lead { margin-top: 2rem; font-size: 1.1rem; }
  .qs-media { margin-top: 2.5rem; gap: 1.5rem; }
  .stats-strip { margin-top: 3rem; }
  .stat-cell { padding: 1.35rem; }
  .stat-num { font-size: 2.5rem; }
  .stat-label { font-size: 9px; letter-spacing: 0.22em; }

  .service-row { gap: 1rem; padding: 1.35rem 0; }
  .service-title-row h3 { font-size: 0.95rem; letter-spacing: 0.06em; }
  .servicos-feature { min-height: 280px; border-radius: 1.25rem; }

  .dif-photo { min-height: 360px; border-radius: 1.25rem; }
  .dif-photo-name { font-size: 18vw; }
  .dif-card { padding: 1.5rem; border-radius: 1.25rem; }
  .dif-card p { font-size: 0.95rem; }

  .partner-grid { margin-top: 2.5rem; border-radius: 0.85rem; }
  .partner-cell { padding: 1.15rem 0.75rem; }
  .partner-logo { max-height: 2.75rem; }
  .partner-logo--boost { transform: scale(1.22); }
  .partner-logo--boost-lg { transform: scale(1.32); }

  .work { margin-top: 4rem; }
  .work-grid { gap: 0.5rem; }
  .work-cell { border-radius: 0.75rem; }

  .founders { padding: 1.5rem; border-radius: 1.25rem; }
  .founders-lead { justify-content: center; width: 100%; }
  .founders-logo { width: min(100%, 240px); margin-inline: auto; }
  .founders-people { margin-top: 1.75rem; justify-content: center; width: 100%; }
  .founder { flex: 1 1 100%; max-width: 100%; }

  .contato-grid { margin-top: 2.5rem; gap: 2.5rem; }
  .contact-value { font-size: 1.05rem; }
  .form-submit { display: flex; justify-content: center; }

  .footer { padding: 2.5rem 1.25rem; text-align: center; }
  .footer-copy { text-align: center; line-height: 1.6; }
}

@media (max-width: 479px) {
  .hero-frame { border-radius: 1.25rem; }
  .hero-specs { bottom: 9.5rem; border-radius: 1rem; }
  .hero-name { font-size: clamp(2.75rem, 13vw, 3.5rem); }
  .hero-wordmark { bottom: 1.5rem; }
  .founders-people { flex-direction: column; align-items: flex-start; }
}
