/* =========================================================
   R. FERREIRA ARQUITETURA — design system
   ========================================================= */

:root {
  /* Surfaces */
  --bg-0: #F4F1EA;
  --bg-1: #ECE7DC;
  --bg-2: #E4DECF;
  --bg-3: #DAD3C2;
  --border: #D6D0C0;
  --border-soft: #E4DECF;

  /* Dark surfaces (accent sections) */
  --dk-0: #0E0E0E;
  --dk-1: #141414;
  --dk-2: #1A1A1A;
  --dk-border: #262626;
  --dk-border-soft: #1F1F1F;
  --dk-ink: #F2EFE9;
  --dk-ink-2: #BFB9AD;
  --dk-ink-3: #8A857C;
  --dk-ink-4: #5A5750;

  /* Light type */
  --ink: #14130F;
  --ink-2: #44413B;
  --ink-3: #6B665C;
  --ink-4: #9A958A;

  /* Accent */
  --gold: #C9A84C;
  --gold-deep: #A88934;
  --gold-soft: #E0C271;

  /* Whatsapp */
  --wa: #25D366;

  /* Type */
  --f: "Poppins", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --gutter: clamp(24px, 6vw, 96px);
  --section-y: clamp(96px, 14vw, 200px);
  --rhythm: clamp(32px, 5vw, 64px);
  --nav-h: 80px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--f);
  font-weight: 400;
  color: var(--ink);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  overflow-x: hidden;
}

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

::selection { background: var(--gold); color: var(--dk-0); }

/* Dark sections re-map tokens locally so the same components work on dark */
.is-dark, .hero, .portfolio, .cta-strip, .footer, .nav.is-on-dark {
  --bg-0: var(--dk-0);
  --bg-1: var(--dk-1);
  --bg-2: var(--dk-2);
  --bg-3: #222222;
  --border: var(--dk-border);
  --border-soft: var(--dk-border-soft);
  --ink: var(--dk-ink);
  --ink-2: var(--dk-ink-2);
  --ink-3: var(--dk-ink-3);
  --ink-4: var(--dk-ink-4);
  --gold-deep: var(--gold);
  background: var(--dk-0);
  color: var(--dk-ink);
}
.cta-strip {
  background: var(--gold); color: #14130F;
  --ink: #14130F; --ink-2: rgba(20,19,15,0.78); --ink-3: rgba(20,19,15,0.6); --ink-4: rgba(20,19,15,0.45);
  --border: rgba(20,19,15,0.2);
  --gold-deep: #14130F;
}

/* =========================================================
   BRAND MARK
   ========================================================= */
.rf-mark { display: block; }
.logo .rf-mark { width: 34px; height: 34px; }

/* Full mark — used in entry veil. GSAP drives every part. */
.rf-mark-full .rf-disc {
  transform-origin: 14849.48px 7553.72px;
  transform-box: view-box;
}
.rf-mark-full .rf-s {
  transform-origin: 50% 100%;
  transform-box: fill-box;
}
.rf-mark-full .rf-c {
  vector-effect: non-scaling-stroke;
}

/* =========================================================
   ENTRY VEIL — PNG scanner reveal
   ========================================================= */
body.is-loading { overflow: hidden; }
.entry-veil {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-0);
  display: grid; place-items: center;
  pointer-events: none;
}
body.has-dark-hero .entry-veil { background: var(--bg-0); }
.entry-stage {
  display: flex; flex-direction: column; align-items: center;
  gap: 36px;
}
.entry-logo-wrap {
  position: relative;
  width: clamp(220px, 26vw, 360px);
  aspect-ratio: 1598 / 1445;
  display: grid; place-items: center;
}
.entry-logo {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform-origin: 50% 50%;
  will-change: clip-path, opacity, transform;
}
.entry-scan {
  position: absolute;
  left: -6%; right: -6%;
  top: 0%;
  height: 1.5px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,168,76,0.0) 8%,
    var(--gold) 28%,
    var(--gold) 72%,
    rgba(201,168,76,0.0) 92%,
    transparent 100%
  );
  box-shadow: 0 0 14px rgba(201, 168, 76, 0.55), 0 0 32px rgba(201, 168, 76, 0.25);
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  will-change: top, opacity;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 220;
  padding: 22px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  transition: background-color 400ms var(--ease-out),
              color 400ms var(--ease-out),
              border-color 400ms var(--ease-out),
              padding 400ms var(--ease-out),
              backdrop-filter 400ms var(--ease-out);
  border-bottom: 1px solid transparent;
  color: var(--ink);
}
/* Home page has a dark hero — invert nav colors over it */
body.has-dark-hero .nav:not(.is-scrolled) {
  --ink: var(--dk-ink);
  --ink-2: var(--dk-ink-2);
  --ink-3: var(--dk-ink-3);
  --ink-4: var(--dk-ink-4);
  color: var(--dk-ink);
}
.nav.is-scrolled {
  background: rgba(244, 241, 234, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo {
  display: flex; align-items: center; gap: 14px;
  color: var(--ink);
}
.logo-mark {
  width: 34px; height: 34px;
  display: block;
  flex-shrink: 0;
}
.logo-word {
  display: grid;
  line-height: 1;
}
.logo-word .l1 {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 15px;
}
.logo-word .l2 {
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  margin-top: 5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex; gap: 36px;
  justify-content: center;
  list-style: none;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  transition: color 300ms var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.is-active { color: var(--gold-deep); }
body.has-dark-hero .nav:not(.is-scrolled) .nav-links a.is-active { color: var(--gold); }
.nav-links a.is-active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--gold);
}

.nav-cta {
  border: 1px solid var(--gold);
  color: var(--gold-deep);
  padding: 11px 22px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out);
  white-space: nowrap;
}
body.has-dark-hero .nav:not(.is-scrolled) .nav-cta { color: var(--gold); }
.nav-cta:hover { background: var(--gold); color: var(--dk-0); border-color: var(--gold); }

/* =========================================================
   HAMBURGER + MEGA MENU
   ========================================================= */
.nav-burger {
  width: 44px; height: 44px;
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 7px;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 200;
}
.nav-burger .bar {
  display: block;
  height: 1px;
  background: var(--ink);
  transition: width 400ms var(--ease-out),
              transform 400ms var(--ease-out),
              background-color 400ms var(--ease-out);
  transform-origin: 100% 50%;
}
.nav-burger .bar:nth-child(1) { width: 32px; }
.nav-burger .bar:nth-child(2) { width: 22px; }
.nav-burger:hover .bar:nth-child(2) { width: 32px; }
body.has-dark-hero .nav:not(.is-scrolled) .nav-burger .bar { background: var(--dk-ink); }
.nav-burger.is-open .bar { width: 28px; background: var(--dk-ink); }
.nav-burger.is-open .bar:nth-child(1) { transform: translateY(4px) rotate(-45deg); }
.nav-burger.is-open .bar:nth-child(2) { transform: translateY(-4px) rotate(45deg); }

.mega-menu {
  position: fixed; inset: 0;
  z-index: 150;
  background: var(--dk-0);
  color: var(--dk-ink);
  display: grid;
  grid-template-rows: 1fr auto;
  pointer-events: none;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  overflow: hidden;
}
.mega-menu.is-open { pointer-events: auto; }

/* subtle backdrop image bleeding through */
.mega-menu::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url('assets/img/entryway-stairs.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.32;
  filter: grayscale(0.55) contrast(0.92) brightness(0.85);
  pointer-events: none;
  z-index: 0;
}
.mega-menu::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 40%, rgba(201,168,76,0.05), transparent 55%),
    radial-gradient(circle at 88% 10%, rgba(201,168,76,0.04), transparent 55%),
    linear-gradient(180deg, rgba(14,14,14,0.45) 0%, rgba(14,14,14,0.62) 55%, rgba(14,14,14,0.82) 100%);
  pointer-events: none;
  z-index: 1;
}

/* HEAD */
.mega-menu .mega-head {
  display: none;
}

/* BODY */
.mega-body {
  display: grid;
  grid-template-columns: 1.4fr 1px 1fr;
  align-items: stretch;
  padding: calc(var(--nav-h) + clamp(24px, 3vw, 56px)) var(--gutter) clamp(24px, 3vw, 56px);
  gap: clamp(36px, 5vw, 80px);
  position: relative;
  z-index: 2;
  min-height: 0;
  overflow: hidden;
}
.mega-divider {
  background: var(--dk-border);
  height: 100%;
  width: 1px;
  align-self: stretch;
}

/* LEFT — links */
.mega-nav-block {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 20px;
  min-height: 0;
}
.mega-nav-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
}
.mega-nav-eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--gold);
}
.mega-links {
  list-style: none;
  display: grid;
  gap: 0;
  align-content: start;
}
.mega-links li {
  display: block;
  overflow: hidden;
  border-bottom: 1px solid var(--dk-border-soft);
}
.mega-links li:first-child { border-top: 1px solid var(--dk-border-soft); }

.mega-links a {
  display: grid;
  grid-template-columns: 38px 1fr 24px;
  align-items: baseline;
  gap: 20px;
  padding: clamp(10px, 1.1vw, 16px) 0;
  font-size: clamp(22px, min(3.2vw, 5vh), 42px);
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--dk-ink);
  position: relative;
  transition: padding-left 500ms var(--ease-out), color 300ms var(--ease-out);
}
.mega-links a::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 700ms var(--ease-out);
}
.mega-links a:hover {
  color: var(--gold);
  padding-left: 16px;
}
.mega-links a:hover::before { transform: scaleX(1); }
.mega-links a .ml-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--dk-ink-4);
  font-weight: 400;
  align-self: center;
  transition: color 300ms var(--ease-out);
}
.mega-links a:hover .ml-num { color: var(--gold); }
.mega-links a .ml-arrow {
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--dk-ink-4);
  opacity: 0;
  transform: translateX(-12px);
  align-self: center;
  transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out), color 300ms var(--ease-out);
}
.mega-links a:hover .ml-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--gold);
}
.mega-links a.is-active { color: var(--gold); }
.mega-links a.is-active .ml-num { color: var(--gold); }

/* Submenus under a top-level link */
.mega-links .ml-sub {
  list-style: none;
  margin: 0;
  padding: 8px 0 22px 60px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mega-links .ml-sub li {
  border: none;
  display: block;
}
.mega-links .ml-sub li:first-child { border-top: none; }
.mega-links .ml-sub a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  grid-template-columns: none;
  padding: 8px 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dk-ink-2);
  text-decoration: none;
  position: relative;
  transition: color 240ms var(--ease-out), padding-left 360ms var(--ease-out);
}
.mega-links .ml-sub a::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
  transition: width 360ms var(--ease-out), opacity 240ms var(--ease-out);
  position: static;
  transform: none;
}
.mega-links .ml-sub a:hover {
  color: var(--gold);
  padding-left: 0;
}
.mega-links .ml-sub a:hover::before {
  width: 40px;
  opacity: 1;
}

/* RIGHT — aside */
.mega-aside {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 24px;
  min-height: 0;
}
.mega-aside .mega-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 14px;
}
.mega-aside .mega-tag::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--gold);
}
.mega-aside .mega-quote {
  font-size: clamp(18px, min(1.6vw, 2.6vh), 24px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--dk-ink);
  max-width: 22ch;
}
.mega-aside .mega-quote em {
  font-style: normal;
  color: var(--gold);
  font-weight: 600;
}
.mega-aside .mega-units {
  display: grid;
  gap: 20px;
  align-content: end;
}
.mega-aside .mega-unit {
  padding-top: 14px;
  border-top: 1px solid var(--dk-border-soft);
}
.mega-aside .mega-unit-head {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dk-ink-3);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.mega-aside .mega-unit-head::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.mega-aside .mega-unit p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--dk-ink-2);
}
.mega-aside .mega-unit p strong {
  display: block;
  color: var(--dk-ink);
  font-weight: 500;
  margin-top: 6px;
  letter-spacing: 0.02em;
}
.mega-aside .mega-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
  padding: 14px 22px;
  border: 1px solid var(--gold);
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out);
}
.mega-aside .mega-cta:hover { background: var(--gold); color: var(--dk-0); }
.mega-aside .mega-cta .arrow { transition: transform 300ms var(--ease-out); }
.mega-aside .mega-cta:hover .arrow { transform: translateX(6px); }

/* FOOT */
.mega-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px var(--gutter);
  border-top: 1px solid var(--dk-border-soft);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dk-ink-4);
  position: relative;
  z-index: 2;
}
.mega-foot .mega-socials { display: flex; gap: 10px; }
.mega-foot .mega-socials a {
  width: 32px; height: 32px;
  border: 1px solid var(--dk-border);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--dk-ink-3);
  transition: color 300ms var(--ease-out), border-color 300ms var(--ease-out);
}
.mega-foot .mega-socials a:hover { color: var(--gold); border-color: var(--gold); }
.mega-foot .mega-socials svg { width: 13px; height: 13px; }

body.menu-open { overflow: hidden; }
body.menu-open .nav { background: transparent !important; backdrop-filter: none !important; border-bottom-color: transparent !important; }
body.menu-open .nav .logo .l1, body.menu-open .nav .logo .l2 { color: var(--dk-ink); }
body.menu-open .nav .logo .l2 { color: var(--dk-ink-3); }
body.menu-open .nav-burger .bar { background: var(--dk-ink); }

@media (max-width: 900px) {
  .mega-body {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px var(--gutter);
  }
  .mega-divider { display: none; }
  .mega-links a { grid-template-columns: 36px 1fr 24px; gap: 16px; }
}

.nav-mobile-toggle { display: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh; min-height: 720px;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background: var(--bg-1);
  will-change: transform;
}
.hero-media::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(14,14,14,0.78) 0%,
    rgba(14,14,14,0.55) 35%,
    rgba(14,14,14,0.55) 65%,
    rgba(14,14,14,0.95) 100%);
  z-index: 2;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(14,14,14,0.18);
  z-index: 2;
}
.hero-content {
  position: relative; z-index: 3;
  height: 100%;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--gutter) clamp(80px, 12vh, 140px);
  max-width: 1600px; margin: 0 auto;
}
.hero-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  opacity: 0;
}
.hero-eyebrow span { color: var(--ink-3); margin: 0 14px; }
.hero h1 {
  font-size: clamp(48px, 7.6vw, 116px);
  line-height: 0.96;
  font-weight: 300;
  letter-spacing: -0.025em;
  max-width: 14ch;
  opacity: 0;
}
.hero h1 em {
  font-style: normal;
  font-weight: 700;
  color: var(--gold);
}
.hero-ctas {
  display: flex; gap: 20px; margin-top: 48px;
  opacity: 0;
}

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 28px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 300ms var(--ease-out);
}
.btn .arrow { transition: transform 300ms var(--ease-out); }
.btn:hover .arrow { transform: translateX(6px); }

.btn-gold {
  background: var(--gold); color: var(--dk-0);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

.btn-ghost {
  border-color: rgba(242, 239, 233, 0.25);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-dark {
  background: var(--dk-0); color: var(--dk-ink);
  border-color: var(--dk-0);
}
.btn-dark:hover { background: #000; }

/* Floating stats */
.hero-stats {
  position: absolute; z-index: 4;
  right: var(--gutter);
  bottom: clamp(80px, 12vh, 140px);
  display: flex; flex-direction: column;
  gap: 28px;
  border-left: 1px solid rgba(201, 168, 76, 0.4);
  padding-left: 28px;
  opacity: 0;
}
.stat-num {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #FFFFFF;
}
.stat-num em {
  font-style: normal;
  color: #FFFFFF;
  font-weight: 600;
}
.stat-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-top: 6px;
}
.hero-stats { border-left-color: rgba(255,255,255,0.45); }

.hero-scroll {
  position: absolute; z-index: 4;
  left: var(--gutter);
  bottom: 36px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  opacity: 0;
}
.hero-scroll .line {
  display: inline-block; width: 36px; height: 1px;
  background: var(--gold);
  position: relative; overflow: hidden;
}
.hero-scroll .line::after {
  content: ""; position: absolute; inset: 0;
  background: var(--ink);
  animation: scrollLine 2400ms var(--ease-in-out) infinite;
}
@keyframes scrollLine {
  0% { transform: translateX(-100%); }
  60%, 100% { transform: translateX(100%); }
}

/* =========================================================
   IMAGE PLACEHOLDERS
   ========================================================= */
.ph {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
  display: flex; align-items: flex-end;
  border: 1px solid var(--border-soft);
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(135deg,
      rgba(20,19,15,0.025) 0 24px,
      rgba(20,19,15,0.00) 24px 48px);
}
.ph::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%,
    rgba(201,168,76,0.10), transparent 50%);
}
.ph.is-real {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-color: transparent;
}
.ph.is-real::before,
.ph.is-real::after { display: none; }
.ph.is-real .ph-label,
.ph.is-real .ph-mark { display: none; }
.ph .ph-label {
  position: relative; z-index: 2;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 14px 16px;
}
.ph .ph-mark {
  position: absolute; top: 14px; right: 16px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
  z-index: 2;
}
.hero .ph {
  position: absolute; inset: 0;
  border: none;
}
.hero .ph::before {
  background:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.02) 0 28px,
      rgba(255,255,255,0.00) 28px 56px);
}
.hero .ph::after {
  background:
    radial-gradient(ellipse at 25% 35%, rgba(201,168,76,0.10), transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(255,255,255,0.04), transparent 55%);
}
.hero .ph-label {
  position: absolute; left: var(--gutter); top: 130px;
  color: var(--ink-4);
}

/* =========================================================
   FULL-BLEED IMAGE — moments of visual rest
   ========================================================= */
.full-bleed {
  width: 100vw;
  position: relative;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: clamp(420px, 64vh, 760px);
  overflow: hidden;
}
.full-bleed .ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  will-change: transform;
}
.full-bleed .fb-meta {
  position: absolute;
  bottom: 32px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 3;
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px;
  color: var(--dk-ink);
}
.full-bleed .fb-meta .fb-cat {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.full-bleed .fb-meta .fb-title {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-top: 8px;
  max-width: 24ch;
}
.full-bleed::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(14,14,14,0.55) 100%);
  pointer-events: none;
  z-index: 2;
}
.section {
  padding: var(--section-y) var(--gutter);
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: var(--rhythm);
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.section-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: flex; align-items: center; gap: 14px;
}
.section-eyebrow .dot {
  width: 5px; height: 5px; background: var(--gold); border-radius: 50%;
}
.section-eyebrow .num {
  color: var(--ink-4); font-weight: 400;
}
.section-title {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin-top: 18px;
  max-width: 18ch;
}
.section-title em {
  font-style: normal; color: var(--gold); font-weight: 600;
}
.section-aside {
  font-size: 14px;
  color: var(--ink-3);
  max-width: 38ch;
  line-height: 1.55;
  text-align: right;
}

/* =========================================================
   SPECIALTIES
   ========================================================= */
.specialties {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 24px;
}
.spec-card {
  background: #FBF9F3;
  border: 1px solid var(--border);
  padding: 40px;
  min-height: 520px;
  display: flex; flex-direction: column;
  justify-content: space-between;
  transition: border-color 400ms var(--ease-out),
              transform 600ms var(--ease-out);
  position: relative;
  overflow: hidden;
}
.spec-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}
.spec-card .spec-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-4);
}
.spec-card .spec-icon {
  width: 48px; height: 48px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  margin-top: 24px;
  position: relative;
}
.spec-card .spec-icon::after {
  content: ""; position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.18;
}
.spec-card h3 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 36px;
}
.spec-card p {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 32ch;
}
.spec-card .spec-link {
  margin-top: 32px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 10px;
}

/* Featured neuroarq card */
.spec-card.is-featured {
  background:
    linear-gradient(180deg, #14130F, #1A1815);
  color: var(--dk-ink);
  border-color: #14130F;
  padding: 48px;
  --ink: var(--dk-ink);
  --ink-2: var(--dk-ink-2);
  --ink-3: var(--dk-ink-3);
  --ink-4: var(--dk-ink-4);
  --border: var(--dk-border);
}
.spec-card.is-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top right, rgba(201,168,76,0.10), transparent 55%);
  pointer-events: none;
}
.spec-card.is-featured .spec-tag {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 7px 12px;
  border: 1px solid rgba(201,168,76,0.4);
  align-self: flex-start;
}
.spec-card.is-featured .spec-tag .dot {
  width: 5px; height: 5px; background: var(--gold); border-radius: 50%;
}
.spec-card.is-featured h3 {
  position: relative; z-index: 2;
  font-size: 40px;
  margin-top: 24px;
  font-weight: 300;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.spec-card.is-featured h3 em {
  font-style: normal; color: var(--gold); font-weight: 600;
}
.spec-card.is-featured p {
  position: relative; z-index: 2;
  font-size: 15px; line-height: 1.7;
  color: var(--ink-2);
  max-width: 44ch; margin-top: 24px;
}
.spec-card.is-featured .spec-meta {
  position: relative; z-index: 2;
  display: flex; gap: 36px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.spec-card.is-featured .spec-meta div span {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.24em;
  color: var(--ink-4); text-transform: uppercase;
}
.spec-card.is-featured .spec-meta div strong {
  display: block;
  font-size: 22px; font-weight: 300;
  color: var(--ink);
  margin-top: 6px;
  letter-spacing: -0.01em;
}
.spec-card.is-featured .spec-meta div strong em {
  font-style: normal; color: var(--gold); font-weight: 600;
}

/* =========================================================
   PORTFOLIO
   ========================================================= */
.portfolio {
  background: var(--dk-0);
  padding-top: 0; padding-bottom: 0;
}
.portfolio-inner {
  padding: var(--section-y) var(--gutter);
  max-width: 1600px; margin: 0 auto;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
  min-height: 720px;
}
.pf-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.pf-item .ph {
  position: absolute; inset: 0;
  border: none;
  transition: transform 1100ms var(--ease-out);
}
.pf-item:hover .ph { transform: scale(1.04); }
.pf-item .pf-meta {
  position: absolute; left: 32px; bottom: 32px; right: 32px;
  z-index: 3;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.pf-item:hover .pf-meta {
  opacity: 1; transform: translateY(0);
}
.pf-item .pf-meta::before {
  content: ""; position: absolute;
  left: -32px; right: -32px; top: -160px; bottom: -32px;
  background: linear-gradient(180deg, transparent, rgba(14,14,14,0.85));
  z-index: -1; pointer-events: none;
}
.pf-item .pf-cat {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.pf-item .pf-title {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pf-item .pf-corner {
  position: absolute; top: 24px; right: 24px;
  z-index: 3;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.24em;
  color: var(--ink-3);
}
.pf-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 24px;
}
.pf-large { grid-row: 1 / -1; }

.pf-cta {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.pf-cta p {
  color: var(--ink-3); font-size: 14px;
  max-width: 38ch; line-height: 1.6;
}

/* =========================================================
   SOBRE (on home)
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
}
.about-imgs {
  position: relative;
  height: 640px;
}
.about-imgs .ph {
  position: absolute;
}
.about-imgs .ph-1 {
  top: 0; left: 0; width: 70%; height: 82%;
}
.about-imgs .ph-2 {
  bottom: 0; right: 0; width: 56%; height: 52%;
  border-left: 1px solid var(--bg-0);
  border-top: 1px solid var(--bg-0);
}

.about-content .section-eyebrow { margin-bottom: 22px; }
.about-content h2 {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
.about-content h2 em {
  font-style: normal; color: var(--gold); font-weight: 600;
}
.about-content .lead {
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 52ch;
}
.about-content .lead + .lead { margin-top: 16px; color: var(--ink-3); font-size: 15px; }
.about-list {
  margin-top: 36px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
  list-style: none;
}
.about-list li {
  display: flex; gap: 14px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.about-list li::before {
  content: ""; flex-shrink: 0;
  width: 7px; height: 7px; margin-top: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}
.about-content .btn { margin-top: 44px; }

/* =========================================================
   POR QUE — 4 col with numerals
   ========================================================= */
.reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.reason {
  padding: 56px 32px 48px;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background-color 400ms var(--ease-out);
}
.reason:last-child { border-right: none; }
.reason:hover { background: #FBF9F3; }
.reason .r-num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.reason .r-big { display: none; }
.reason h4 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 28px;
}
.reason p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-3);
}

/* =========================================================
   GOLD STRIP CTA
   ========================================================= */
.cta-strip {
  background: var(--gold);
  color: var(--bg-0);
  padding: clamp(80px, 10vw, 130px) var(--gutter);
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: "";
  position: absolute; top: -50%; right: -10%;
  width: 60%; height: 200%;
  background:
    radial-gradient(circle, rgba(14,14,14,0.06), transparent 60%);
  pointer-events: none;
}
.cta-inner {
  max-width: 1600px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr auto;
  align-items: center; gap: 60px;
  position: relative;
}
.cta-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-strip h2 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1;
  max-width: 16ch;
}
.cta-strip h2 strong {
  font-weight: 700;
}
.cta-strip .cta-sub {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0.7;
}

/* =========================================================
   BLOG
   ========================================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card {
  background: #FBF9F3;
  border: 1px solid var(--border);
  transition: border-color 400ms var(--ease-out), transform 500ms var(--ease-out);
  display: flex; flex-direction: column;
}
.blog-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.blog-card .ph {
  height: 260px;
  border: none;
}
.blog-card .blog-body {
  padding: 32px;
  display: flex; flex-direction: column;
  flex: 1;
}
.blog-card .blog-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 10px;
}
.blog-card .blog-tag::before {
  content: ""; width: 18px; height: 1px; background: var(--gold-deep);
}
.blog-card h3 {
  margin-top: 18px;
  font-size: 22px; font-weight: 600;
  line-height: 1.25; letter-spacing: -0.01em;
}
.blog-card p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-3);
  flex: 1;
}
.blog-card .blog-foot {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.blog-card .blog-foot .auth { color: var(--ink-2); }

/* =========================================================
   CONTATO
   ========================================================= */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(48px, 8vw, 120px);
}
.contact-left h2 {
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.contact-left h2 em { font-style: normal; color: var(--gold); font-weight: 600; }
.contact-left .lead {
  margin-top: 24px;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 44ch;
}
.units {
  margin-top: 56px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
}
.unit {
  padding: 24px 0;
  border-top: 1px solid var(--gold);
}
.unit .unit-head {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.unit .unit-head .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.unit h4 {
  margin-top: 12px;
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.01em;
}
.unit p {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-3);
}
.unit p strong { color: var(--ink-2); font-weight: 500; display: block; margin-top: 8px; }

.contact-form {
  background: #FBF9F3;
  border: 1px solid var(--border);
  padding: 48px;
  box-shadow: 0 24px 60px rgba(20,19,15,0.04);
}
.contact-form h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.contact-form .form-sub {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 32px;
}
.field {
  margin-bottom: 22px;
  position: relative;
}
.field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  color: var(--ink);
  font-family: var(--f);
  font-size: 15px;
  outline: none;
  transition: border-color 300ms var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder {
  color: var(--ink-4);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-bottom-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 96px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-actions {
  margin-top: 28px;
  display: flex; gap: 16px; align-items: center;
}
.form-actions .btn { flex: 1; justify-content: center; }
.form-actions .wa-link {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  border: 1px solid var(--wa);
  color: var(--wa);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  transition: background-color 300ms var(--ease-out), color 300ms var(--ease-out);
  flex: 1; justify-content: center;
}
.form-actions .wa-link:hover { background: var(--wa); color: #fff; }
.wa-link .wa-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--wa);
}
.wa-link:hover .wa-dot { background: #fff; }
.form-success {
  display: none;
  padding: 18px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-top: 20px;
}
.form-success.is-on { display: block; animation: fadeUp 400ms var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px var(--gutter) 32px;
  background: var(--bg-0);
}
.footer-inner {
  max-width: 1600px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.footer .logo .l1 { font-size: 16px; }
.footer .col h5 {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer .col ul {
  list-style: none;
  display: grid; gap: 12px;
}
.footer .col li, .footer .col a {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}
.footer .col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1600px; margin: 24px auto 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.footer-social {
  display: flex; gap: 10px;
}
.footer-social a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-3);
  transition: border-color 300ms var(--ease-out), color 300ms var(--ease-out);
}
.footer-social a:hover { color: var(--gold); border-color: var(--gold); }
.footer-social svg { width: 14px; height: 14px; }

/* =========================================================
   WHATSAPP FLOAT
   ========================================================= */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: var(--wa);
  border-radius: 50%;
  display: grid; place-items: center;
  z-index: 90;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 0 rgba(37, 211, 102, 0.6);
  animation: waPulse 2400ms var(--ease-in-out) infinite;
  transition: transform 300ms var(--ease-out);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; color: white; }
@keyframes waPulse {
  0% { box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 18px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================================
   PAGE HERO (interior pages)
   ========================================================= */
.page-hero {
  padding: 200px var(--gutter) 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero-inner {
  max-width: 1600px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end; gap: 40px;
}
.page-hero h1 {
  font-size: clamp(48px, 6.4vw, 96px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1;
  max-width: 14ch;
}
.page-hero h1 em { font-style: normal; color: var(--gold); font-weight: 600; }
.breadcrumb {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 12px;
}
.breadcrumb .crumb-sep { color: var(--gold-deep); }
.breadcrumb .crumb-active { color: var(--gold-deep); }
.page-hero .pg-meta {
  text-align: right;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--ink-3);
  max-width: 32ch;
  line-height: 1.7;
}

/* Team grid (sobre) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: var(--rhythm);
}
.team-card .ph { height: 360px; }
.team-card .t-name {
  margin-top: 20px;
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em;
}
.team-card .t-role {
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.team-card .t-bio {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* Services page */
.services-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.service-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr 200px;
  gap: 56px;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  transition: background-color 400ms var(--ease-out), padding 400ms var(--ease-out);
}
.service-row:hover { padding-left: 24px; padding-right: 24px; }
.service-row:hover {
  background: #FBF9F3;
  padding-left: 24px;
}
.service-row .sr-num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold-deep);
}
.service-row h3 {
  font-size: 36px; font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  max-width: 14ch;
}
.service-row h3 em { font-style: normal; color: var(--gold); font-weight: 600; }
.service-row p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-3);
  max-width: 50ch;
}
.service-row .sr-link {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  text-align: right;
  display: inline-flex; justify-content: flex-end; align-items: center; gap: 12px;
}

/* Blog page */
.blog-feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: var(--rhythm);
}
.blog-feature .ph { height: 540px; }
.blog-feature .blog-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.blog-feature h2 {
  margin-top: 20px;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.blog-feature p {
  margin-top: 20px;
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.7;
  max-width: 44ch;
}
.blog-feature .meta {
  margin-top: 32px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--ink-4);
}

.blog-grid.is-six {
  grid-template-columns: repeat(3, 1fr);
}

/* Por que page — interior */
.pq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.pq-cell {
  padding: 48px;
  border: 1px solid var(--border);
  margin: -1px 0 0 -1px;
  background: #FBF9F3;
  transition: background-color 400ms var(--ease-out);
}
.pq-cell:hover { background: #fff; }
.pq-cell .pq-num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--gold-deep);
}
.pq-cell h3 {
  margin-top: 28px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 14ch;
}
.pq-cell h3 em { font-style: normal; color: var(--gold); font-weight: 600; }
.pq-cell p {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-3);
  max-width: 50ch;
}
.pq-cell .pq-list {
  list-style: none;
  margin-top: 22px;
  display: grid; gap: 10px;
}
.pq-cell .pq-list li {
  font-size: 13px;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
  line-height: 1.55;
}
.pq-cell .pq-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 1px; background: var(--gold);
}

/* =========================================================
   Reveal-on-scroll — initial state only. GSAP drives the anim.
   ========================================================= */
.reveal {
  opacity: 0;
  will-change: opacity, transform;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .specialties { grid-template-columns: 1fr 1fr; }
  .spec-card.is-featured { grid-column: 1 / -1; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .reason:nth-child(2) { border-right: none; }
  .reason:nth-child(1), .reason:nth-child(2) { border-bottom: 1px solid var(--border); }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid .blog-card:last-child { grid-column: 1 / -1; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-cta { padding: 9px 16px; font-size: 11px; }
  .hero h1 { font-size: 44px; }
  .hero-stats { display: none; }
  .section-head { grid-template-columns: 1fr; }
  .section-aside { text-align: left; }
  .specialties { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; min-height: auto; }
  .portfolio-grid .pf-item { height: 380px; position: relative; }
  .pf-right { grid-template-rows: auto; }
  .about { grid-template-columns: 1fr; }
  .about-imgs { height: 480px; }
  .reasons { grid-template-columns: 1fr; }
  .reason { border-right: none; border-bottom: 1px solid var(--border); }
  .reason:last-child { border-bottom: none; }
  .cta-inner { grid-template-columns: 1fr; }
  .cta-buttons .btn { flex: 1; min-width: 140px; justify-content: center; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid .blog-card:last-child { grid-column: auto; }
  .contact { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .pq-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 16px; padding: 32px 0; }
  .service-row .sr-link { text-align: left; justify-content: flex-start; }
  .blog-feature { grid-template-columns: 1fr; }
  .units { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
  .form-actions .btn, .form-actions .wa-link { width: 100%; }
}
