/* ============================================================
   CONVERGENTE ENGENHARIA — Landing Page
   Sistema visual derivado do Design System v1.0
   ============================================================ */

:root {
  --primary:        #1B2845;
  --primary-light:  #2A3D60;
  --primary-700:    #2A3D60;
  --primary-900:    #12193A;
  --accent:         #C9A86B;
  --accent-light:   #DAB876;
  --accent-dark:    #A88B4F;
  --light:          #FAFAF7;
  --neutral:        #F1EEE6;
  --neutral-dark:   #E7E2D6;
  --text:           #1F2937;
  --text-secondary: #6B7280;
  --border:         #E5E1D7;
  --white:          #FFFFFF;

  --gradient-gold:    linear-gradient(135deg, #D4B57C 0%, #C9A86B 50%, #A88B4F 100%);
  --gradient-primary: linear-gradient(135deg, #1B2845 0%, #2A3D60 100%);
  --gradient-hero:    linear-gradient(135deg, #12193A 0%, #1B2845 55%, #2A3D60 100%);

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --shadow-sm:   0 1px 4px rgba(27,40,69,0.08);
  --shadow-md:   0 4px 16px rgba(27,40,69,0.10);
  --shadow-lg:   0 8px 32px rgba(27,40,69,0.14);
  --shadow-xl:   0 24px 70px rgba(27,40,69,0.20);
  --shadow-gold: 0 10px 36px rgba(201,168,107,0.34);

  --ease-spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);

  --maxw: 1240px;

  /* porcelanato polido: grão fino de pedra + leve mosqueado + veio suave */
  --porcelain:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='p'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23p)' opacity='0.1'/%3E%3C/svg%3E"),
    radial-gradient(140% 95% at 12% 6%, rgba(201,168,107,0.11), transparent 55%),
    radial-gradient(130% 95% at 88% 94%, rgba(27,40,69,0.07), transparent 58%),
    linear-gradient(115deg, transparent 0%, transparent 40%, rgba(201,168,107,0.09) 43%, transparent 47%, transparent 62%, rgba(27,40,69,0.055) 65%, transparent 69%, transparent 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--light);
  line-height: 1.65;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--primary); }

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* ============================================================
   LOADER (house icon, smooth reveal)
   ============================================================ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  justify-content: center;
  /* pure-CSS safety net: auto-dismiss even if JS never runs */
  animation: loaderFail 0.8s ease 5s forwards;
}
.loader::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, rgba(201,168,107,0.05) 0px, rgba(201,168,107,0.05) 1px, transparent 1px, transparent 13px);
  pointer-events: none;
}
.loader.done {
  animation: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease-out), visibility 0s linear 0.7s;
}
@keyframes loaderFail { to { opacity: 0; visibility: hidden; } }

.loader-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}
.loader-house {
  width: 122px;
  height: 122px;
  overflow: visible;
  animation: lhBreath 2.6s ease-in-out 1.5s infinite;
}
.loader-house path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.loader-house .lh-base {
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: lhDraw 1.15s var(--ease-out) 0.15s forwards;
}
.loader-house .lh-roof {
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
  opacity: 0;
  animation: lhDraw 0.95s var(--ease-out) 0.75s forwards, lhFade 0.25s ease 0.75s forwards;
}
.loader-house .lh-door {
  stroke-width: 3;
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  opacity: 0;
  animation: lhDraw 0.6s var(--ease-out) 1.15s forwards, lhFade 0.2s ease 1.15s forwards;
}
@keyframes lhDraw { to { stroke-dashoffset: 0; } }
@keyframes lhFade { to { opacity: 1; } }
@keyframes lhBreath { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

.loader-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  animation: lwIn 0.8s var(--ease-out) 1.25s forwards;
}
.loader-word span { color: var(--accent); }
.loader-bar {
  width: 150px;
  height: 2px;
  background: rgba(255,255,255,0.12);
  overflow: hidden;
  opacity: 0;
  animation: lwIn 0.6s ease 1.35s forwards;
}
.loader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gradient-gold);
  animation: lbFill 1.5s var(--ease-out) 1.4s forwards;
}
@keyframes lwIn { to { opacity: 1; transform: none; } }
@keyframes lbFill { to { width: 100%; } }

/* ---- type helpers ---- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.overline {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.eyebrow::before {
  content: "";
  width: 30px; height: 2px;
  background: var(--accent);
}
.eyebrow.on-dark { color: var(--accent); }

/* ---- sketchy gold underline on highlight words ---- */
.hl {
  position: relative;
  display: inline-block;
  color: inherit;
  white-space: nowrap;
}
.hl::after {
  content: "";
  position: absolute;
  left: -3%; right: -3%;
  bottom: -0.18em;
  height: 0.4em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3,11 C42,4 72,15 112,9 C152,3 176,13 197,8' fill='none' stroke='%23C9A86B' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M6,16 C47,10 83,17 123,13 C157,10 181,16 195,13' fill='none' stroke='%23C9A86B' stroke-width='2' stroke-linecap='round' opacity='0.5'/%3E%3C/svg%3E") no-repeat left center;
  background-size: 100% 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1s var(--ease-out) 0.45s;
  pointer-events: none;
}
[data-reveal].is-visible .hl::after { transform: scaleX(1); }

/* ============================================================
   CHEVRON / ROOFLINE BRAND MOTIF
   ============================================================ */
.roofline {
  position: absolute;
  pointer-events: none;
}
.roofline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
/* draw animation */
.roofline.draw path {
  stroke-dasharray: var(--len, 1400);
  stroke-dashoffset: var(--len, 1400);
  transition: stroke-dashoffset 1.6s var(--ease-out);
}
.roofline.draw.is-visible path { stroke-dashoffset: 0; }

/* ============================================================
   DECORATIVE DRAWN CURVES (gold contour lines, navy sections)
   ============================================================ */
.deco-curve {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}
.deco-curve path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.5;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.22s);
}
.deco-curve.is-visible path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .deco-curve path { stroke-dashoffset: 0 !important; transition: none !important; }
}
/* placement per navy section */
.deco-compare { top: -60px; right: -80px; width: 640px; height: 420px; opacity: 0.65; }
.deco-compare-bottom { bottom: -50px; left: -80px; width: 600px; height: 360px; opacity: 0.5; }
.deco-about   { left: -40px; bottom: -36px; width: 540px; height: 300px; opacity: 0.4; z-index: 0; }
.deco-cta     { left: 0; bottom: 0; width: 100%; height: 440px; opacity: 0.38; }
.compare .wrap { position: relative; z-index: 1; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  --bx: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  padding: 17px 38px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-spring);
}
.btn:hover .arrow { transform: translateX(5px); }

.btn-gold { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.btn-gold:hover { background: var(--accent-dark); border-color: var(--accent-dark); box-shadow: var(--shadow-gold); transform: translateY(-2px); }

.btn-navy { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-navy:hover { background: var(--primary-light); border-color: var(--primary-light); box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--accent-dark); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--primary); transform: translateY(-2px); }

.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline-light:hover { background: var(--white); color: var(--primary); border-color: var(--white); }

.btn-sm { padding: 12px 26px; font-size: 0.72rem; }

/* ============================================================
   IMAGE PLACEHOLDER
   ============================================================ */
.ph {
  position: relative;
  overflow: hidden;
  background-color: var(--neutral);
  background-image:
    repeating-linear-gradient(135deg,
      rgba(27,40,69,0.045) 0px,
      rgba(27,40,69,0.045) 1px,
      transparent 1px,
      transparent 11px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph.dark {
  background-color: #18213c;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(201,168,107,0.10) 0px,
      rgba(201,168,107,0.10) 1px,
      transparent 1px,
      transparent 11px);
}
.ph-label {
  font-family: 'Courier New', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  padding: 12px 18px;
  border: 1px dashed rgba(27,40,69,0.22);
  background: rgba(250,250,247,0.6);
  backdrop-filter: blur(2px);
  z-index: 2;
}
.ph.dark .ph-label {
  color: rgba(255,255,255,0.55);
  border-color: rgba(201,168,107,0.3);
  background: rgba(18,25,58,0.4);
}
.ph-corner {
  position: absolute;
  width: 22px; height: 22px;
  border: 2px solid var(--accent);
  z-index: 2;
}
.ph-corner.tl { top: 14px; left: 14px; border-right: none; border-bottom: none; }
.ph-corner.br { bottom: 14px; right: 14px; border-left: none; border-top: none; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.92); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  .hero-title .w > span { transform: none !important; opacity: 1 !important; }
  .hero-eyebrow, .hero-bullets, .hero-actions, .scroll-cue { opacity: 1 !important; transform: none !important; }
  .hero-bg { transform: none !important; }
  .loader { opacity: 0 !important; visibility: hidden !important; }
  .hl::after { transform: none !important; transition: none !important; }
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.45s var(--ease-out), box-shadow 0.45s, padding 0.45s, border-color 0.45s, transform 0.5s var(--ease-out);
  padding: 24px 0;
  border-bottom: 1px solid transparent;
}
/* default = over dark hero: light text + white logo */
.nav .nav-links a { color: rgba(255,255,255,0.82); }
.nav .nav-logo img { filter: brightness(0) invert(1); }
.nav .nav-toggle span { background: var(--white); }

.nav.scrolled {
  background: rgba(250,250,247,0.9);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
  padding: 13px 0;
}
.nav.scrolled .nav-links a { color: var(--primary); }
.nav.scrolled .nav-logo img { filter: none; }
.nav.scrolled .nav-toggle span { background: var(--primary); }
/* hide on scroll down, reveal on scroll up */
.nav.nav-hidden { transform: translateY(-105%); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.nav-logo img { height: 42px; width: auto; transition: height 0.4s; }
.nav.scrolled .nav-logo img { height: 36px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--accent) !important; }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav.scrolled .nav-links a:hover,
.nav.scrolled .nav-links a.active { color: var(--accent-dark) !important; }
.nav-links a.active { color: var(--accent) !important; }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 2px; background: var(--primary);
  transition: transform 0.35s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile menu panel */
.nav-mobile {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(340px, 86vw);
  background: var(--primary);
  z-index: 1001;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
  padding: 96px 36px 40px;
  gap: 6px;
}
.nav-mobile.open { transform: translateX(0); box-shadow: -20px 0 60px rgba(0,0,0,0.4); }
.nav-mobile a {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--white);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.25s, padding-left 0.3s;
}
.nav-mobile a:hover { color: var(--accent); padding-left: 8px; }
.nav-mobile .btn { margin-top: 24px; }
.nav-scrim {
  position: fixed; inset: 0;
  background: rgba(9,14,37,0.5);
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.nav-scrim.open { opacity: 1; pointer-events: all; }

/* ============================================================
   HERO
   ============================================================ */
.hero-pin {
  position: relative;
  height: 185vh;
  background: var(--light);
}
.hero-stick {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
/* city skyline drawn behind the hero as it shrinks */
.hero-city {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}
.hero-city svg {
  width: 100%;
  height: 54%;
  display: block;
}
.hero-city path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.hero-city .city-back { opacity: 0.4; stroke-width: 1.5; }
.hero-city .city-front { opacity: 0.85; }

.hero {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 0 100px;
  overflow: hidden;
  background: var(--primary-900);
  transform-origin: 50% 38%;
  will-change: transform, border-radius;
}
/* fullscreen background image (placeholder) with slow ken-burns zoom */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg .ph { width: 100%; height: 100%; }
.hero-bg .ph.dark { background-color: #10172e; }
.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
  transform-origin: center center;
  animation: heroZoom 14s ease-in forwards;
  will-change: transform;
}
.hero-bg .ph-label {
  background: rgba(16,23,46,0.35);
  border-color: rgba(201,168,107,0.4);
  color: rgba(255,255,255,0.6);
}
@keyframes heroZoom {
  from { transform: scale(1.0); }
  to   { transform: scale(1.06); }
}
/* legibility overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(9,14,37,0.74) 0%, rgba(9,14,37,0.42) 40%, rgba(9,14,37,0.7) 100%),
    radial-gradient(125% 95% at 50% 32%, transparent 38%, rgba(9,14,37,0.55) 100%);
}
.hero-overlay::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-gold);
}
.hero-roof {
  position: absolute;
  z-index: 1;
  top: 50%; left: 50%;
  transform: translate(-50%, -56%);
  width: min(62vh, 540px);
  opacity: 0.13;
}
.hero-roof path { stroke-width: 1.5; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-eyebrow { margin-bottom: 26px; opacity: 0; animation: fadeUp 0.9s var(--ease-out) 0.1s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 40px;
}
.hero-title .line { display: block; white-space: nowrap; }
.hero-title .line.lead {
  font-size: clamp(1.45rem, 3.4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.88);
}
.hero-title .line.punch {
  font-size: clamp(2.7rem, 7.4vw, 6.2rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-top: 0.1em;
  text-transform: uppercase;
}
.hero-title .w {
  display: inline-block;
  vertical-align: top;
  margin-right: 0.28em;
}
.hero-title .w:last-child { margin-right: 0; }
.hero-title .w > span {
  display: inline-block;
}
.hero-title .w.gold > span {
  color: var(--accent);
}

.hero-bullets {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  margin-bottom: 42px;
  max-width: 900px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out) 1.05s, transform 0.9s var(--ease-out) 1.05s;
}
.hero.in .hero-bullets { opacity: 1; transform: none; }
.hero-bullets li {
  flex: 1 1 0;
  position: relative;
  font-size: 0.96rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
  padding: 4px 28px;
}
.hero-bullets li + li { border-left: 1px solid rgba(201,168,107,0.38); }

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out) 1.2s, transform 0.9s var(--ease-out) 1.2s;
}
.hero.in .hero-actions { opacity: 1; transform: none; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 3;
  opacity: 0;
  animation: fadeIn 1s ease 1.7s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.scroll-cue span {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.scroll-cue .line {
  width: 1px; height: 44px;
  background: linear-gradient(rgba(201,168,107,0.55), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-cue .line::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--accent);
  animation: scrollDot 1.8s var(--ease-out) infinite;
}
@keyframes scrollDot {
  0% { top: -50%; }
  100% { top: 100%; }
}

/* safety net: guarantee hero content is visible even if entrance animations
   never run (e.g. tab loaded in background / timers throttled) */
.hero.revealed .hero-eyebrow,
.hero.revealed .hero-bullets,
.hero.revealed .hero-actions,
.hero.revealed .scroll-cue { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
.hero.revealed .hero-title .w > span { opacity: 1 !important; transform: none !important; animation: none !important; }
.hero.revealed .scroll-cue { transform: translateX(-50%) !important; }

/* ============================================================
   FAIXA PARALLAX FULL-BLEED (respiro visual entre seções)
   ============================================================ */
.imgband {
  position: relative;
  height: 62vh;
  min-height: 460px;
  overflow: hidden;
  background: var(--primary-900);
  display: flex;
  align-items: center;
  justify-content: center;
}
.imgband-media {
  position: absolute;
  inset: -12% 0;
  z-index: 0;
  will-change: transform;
}
.imgband-media .ph { width: 100%; height: 100%; }
.imgband-media .ph.dark { background-color: #10172e; }
.imgband-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(9,14,37,0.62) 0%, rgba(9,14,37,0.38) 45%, rgba(9,14,37,0.66) 100%);
}
.imgband::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 10px;
  background: var(--gradient-gold);
  z-index: 3;
}
.imgband::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-gold);
  z-index: 3;
}
.imgband-mark {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(3rem, 12vw, 11rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.22);
  user-select: none;
}
.imgband-roof {
  position: absolute;
  z-index: 2;
  top: 50%; left: 50%;
  transform: translate(-50%, -54%);
  width: min(52vh, 420px);
  opacity: 0.16;
}
.imgband-roof path { stroke-width: 1.4; }

/* ============================================================
   SECTION SHELL
   ============================================================ */
section { position: relative; }

/* ============================================================
   STORY / RELATABILITY (seção editorial — reforma)
   ============================================================ */
.story-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.story-head { position: sticky; top: 120px; }
.story-head .eyebrow { margin-bottom: 20px; }
.story-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--white);
}
.story-body { display: flex; flex-direction: column; gap: 24px; }
.story-body p {
  font-size: 1.18rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  max-width: 54ch;
}
.story-body .story-punch {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--accent);
  max-width: none;
  margin-top: 14px;
  padding-top: 30px;
  border-top: 1px solid rgba(201,168,107,0.3);
}

/* modalidade cards: título + descrição */
.type-body:has(.type-title) { align-items: flex-start; }
.type-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.34rem;
  line-height: 1.08;
  color: var(--primary);
  margin-bottom: 9px;
}
.type-text p {
  font-size: 0.98rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
}
.section { padding: 120px 0; }
.section.navy { background: var(--primary); color: var(--white); }
.section.cream { background: var(--porcelain), var(--neutral); }
.section-head { max-width: 680px; margin-bottom: 64px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.0;
  letter-spacing: -0.015em;
  color: var(--primary);
  margin-bottom: 18px;
}
.section.navy .section-head h2 { color: var(--white); }
.section-head p {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.section.navy .section-head p { color: rgba(255,255,255,0.62); }

/* ============================================================
   DIFERENCIAIS — sticky aside + scroll-driven list
   ============================================================ */
.diff { background: var(--porcelain), var(--light); overflow: hidden; }
.diff-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 80px;
  align-items: start;
}
.diff-aside {
  position: sticky;
  top: 140px;
}
.diff-aside .eyebrow { margin-bottom: 20px; }
.diff-aside h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  color: var(--primary);
  margin-bottom: 40px;
}
.diff-counter {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
}
.diff-count-current {
  font-size: 5.5rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.diff-count-sep { font-size: 2.6rem; color: var(--border); }
.diff-count-total { font-size: 2.6rem; color: var(--text-secondary); }
.diff-progress {
  margin-top: 18px;
  width: 100%;
  max-width: 260px;
  height: 3px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.diff-progress-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: var(--gradient-gold);
  transition: width 0.4s var(--ease-out);
}

.diff-list { position: relative; }
.diff-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 38px 0 38px 28px;
  border-top: 1px solid var(--border);
  transition: padding-left 0.5s var(--ease-out);
}
.diff-row:last-child { border-bottom: 1px solid var(--border); }
/* gold marker line that draws when active */
.diff-row::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 3px; height: 0;
  background: var(--gradient-gold);
  transform: translateY(-50%);
  transition: height 0.5s var(--ease-out);
}
.diff-row.active::before { height: 64%; }
.diff-row.active { padding-left: 40px; }

.diff-row-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--neutral-dark);
  transition: color 0.5s var(--ease-out), -webkit-text-stroke-color 0.5s var(--ease-out), transform 0.6s var(--ease-out);
  min-width: 1.8em;
}
.diff-row.active .diff-row-num {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
}
.diff-row p {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--text-secondary);
  transition: color 0.5s var(--ease-out);
  max-width: 34ch;
}
.diff-row.active p { color: var(--primary); font-weight: 500; }

/* ============================================================
   SOBRE
   ============================================================ */
/* about-intro mantido para compatibilidade */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
}
.about-intro p {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 42ch;
}

/* NOVO LAYOUT: texto + imagem institucional */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 72px;
}
.about-text-col > p {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text);
  max-width: 46ch;
  margin-bottom: 40px;
}

/* Founders — versão texto sem foto */
.about-founders-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.founder-text-item {
  padding: 28px 0 28px 24px;
  border-left: 3px solid var(--accent);
  border-bottom: 1px solid var(--border);
}
.founder-text-item:last-child { border-bottom: none; }

.founder-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 8px;
}
.founder-name {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 14px;
}
.founder-text-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Imagem institucional */
.about-photo-wrap {
  position: sticky;
  top: 100px;
  overflow: hidden;
}
.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 1.2s var(--ease-out);
}
.about-photo-wrap:hover .about-photo { transform: scale(1.03); }
.about-close {
  position: relative;
  background: var(--primary);
  color: var(--white);
  padding: 60px 70px;
  overflow: hidden;
}
.about-close p {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 30ch;
}
.about-close p .hl { color: var(--accent); display: inline; white-space: normal; }
.about-close p .hl::after { display: none; }
.about-close .roofline { right: -60px; top: -40px; width: 420px; opacity: 0.5; }

/* ============================================================
   COMPARATIVA
   ============================================================ */
.compare { overflow: hidden; }
.compare-head-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 14px;
}
.compare-col-label {
  padding: 16px 26px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 5px;
}
.compare-col-label.market {
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.45);
  margin-right: 40px;
}
.compare-col-label.us {
  background: var(--accent);
  color: var(--primary);
  display: flex; align-items: center; gap: 10px;
  margin-left: 40px;
}

/* rows as a "transformation" list with a central gold spine */
.compare-rows { display: flex; flex-direction: column; gap: 14px; position: relative; }
.compare-rows::before {
  content: "";
  position: absolute;
  left: 50%; top: 8px; bottom: 8px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(201,168,107,0.28) 12%, rgba(201,168,107,0.28) 88%, transparent);
}
.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: none;
  position: relative;
  align-items: stretch;
}
/* central node with transformation arrow */
.compare-row::after {
  content: "\2192";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.62);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary-900);
  border: 1.5px solid rgba(201,168,107,0.4);
  color: var(--accent);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  z-index: 4;
  transition: transform 0.55s var(--ease-spring), background 0.45s var(--ease-out), border-color 0.45s, color 0.45s;
}
.compare-row.active::after {
  transform: translate(-50%, -50%) scale(1);
  background: var(--accent);
  border-color: var(--accent);
  color: var(--primary);
}
.compare-cell {
  padding: 26px 30px;
  font-size: 1.04rem;
  line-height: 1.45;
  display: flex;
  gap: 15px;
  align-items: center;
  min-height: 96px;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}
/* staggered slide-in reveal from each side */
.compare-cell.market {
  color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.035);
  margin-right: 40px;
  opacity: 0;
  transform: translateX(-26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), color 0.4s;
}
.compare-cell.us {
  color: var(--white);
  font-weight: 500;
  background: rgba(201,168,107,0.07);
  border-left: 3px solid var(--accent);
  margin-left: 40px;
  opacity: 0;
  transform: translateX(26px);
  transition: opacity 0.7s var(--ease-out) 0.06s, transform 0.7s var(--ease-out) 0.06s, box-shadow 0.5s var(--ease-out);
}
.compare-row.is-visible .compare-cell.market,
.compare-row.is-visible .compare-cell.us { opacity: 1; transform: none; }
/* neutralize the generic row reveal transform so only the cells slide */
.compare-rows [data-reveal] { transform: none; }
/* gold wash that sweeps the solution cell when the row is active */
.compare-cell.us::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(201,168,107,0.20), rgba(201,168,107,0.03));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-out);
  z-index: 0;
}
.compare-row.active .compare-cell.us::before { transform: scaleX(1); }
.compare-row.active .compare-cell.us {
  box-shadow: 0 14px 40px rgba(0,0,0,0.28);
}
.compare-row.active .compare-cell.market { color: rgba(255,255,255,0.34); }
.compare-cell > span,
.compare-cell { position: relative; z-index: 1; }

/* icon badges */
.compare-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.82rem;
  margin-top: 0;
  transition: transform 0.5s var(--ease-spring), opacity 0.4s;
}
.compare-icon.x { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.4); }
.compare-icon.check {
  background: var(--accent); color: var(--primary); font-weight: 700;
  transform: scale(0.4); opacity: 0.45;
}
.compare-row.active .compare-icon.check { transform: scale(1); opacity: 1; }
.compare-cta { margin-top: 56px; display: flex; justify-content: center; }

/* ============================================================
   PORTFÓLIO
   ============================================================ */
.portfolio { background: var(--porcelain), var(--light); overflow: hidden; }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
.pf-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.pf-item .ph { width: 100%; height: 100%; }
.pf-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
  z-index: 1;
}
.pf-item:hover .pf-img { transform: scale(1.08); }
.pf-item .pf-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  background: linear-gradient(0deg, rgba(18,25,58,0.78) 0%, rgba(18,25,58,0.1) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
}
.pf-item:hover .pf-overlay { opacity: 1; }
.pf-overlay .pf-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  transform: translateY(10px);
  transition: transform 0.45s var(--ease-out);
}
.pf-overlay .pf-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  transform: translateY(10px);
  transition: transform 0.45s var(--ease-out) 0.05s;
}
.pf-item:hover .pf-tag,
.pf-item:hover .pf-title { transform: translateY(0); }

/* span layouts */
/* 4 projetos: linha 1 assimétrica, linha 2 simétrica */
.pf-a  { grid-column: span 7; grid-row: span 2; }
.pf-b  { grid-column: span 5; grid-row: span 2; }
.pf-c  { grid-column: span 6; grid-row: span 2; }
.pf-d2 { grid-column: span 6; grid-row: span 2; }

/* count badge */
.pf-count {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

/* ======================== LIGHTBOX ======================== */
.glb {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(6,9,24,0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.glb:not([hidden]) { opacity: 1; }
.glb[hidden] { display: none !important; }

.glb-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 72px 20px 28px;
  background: linear-gradient(180deg, rgba(6,9,24,0.9) 0%, transparent 100%);
}
.glb-project {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}
.glb-counter {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
}
.glb-close {
  position: absolute;
  top: 16px; right: 20px;
  width: 40px; height: 40px;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  z-index: 2;
}
.glb-close:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); }
.glb-close svg { width: 18px; height: 18px; }

.glb-stage {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 80px 8px;
  overflow: hidden;
}
.glb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.glb-img.loaded { opacity: 1; }

.glb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  z-index: 2;
}
.glb-arrow:hover {
  background: rgba(201,168,107,0.18);
  border-color: var(--accent);
  color: var(--accent);
}
.glb-prev { left: 16px; }
.glb-next { right: 16px; }
.glb-arrow svg { width: 22px; height: 22px; }
.glb-prev:hover { transform: translateY(-50%) translateX(-2px); }
.glb-next:hover { transform: translateY(-50%) translateX(2px); }

.glb-strip {
  width: 100%;
  display: flex;
  gap: 6px;
  padding: 10px 80px 20px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(201,168,107,0.3) transparent;
  flex-shrink: 0;
}
.glb-strip::-webkit-scrollbar { height: 3px; }
.glb-strip::-webkit-scrollbar-thumb { background: rgba(201,168,107,0.3); }

.glb-thumb {
  width: 64px;
  height: 48px;
  flex-shrink: 0;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.45;
  border: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
}
.glb-thumb:hover { opacity: 0.75; }
.glb-thumb.active { opacity: 1; border-color: var(--accent); }

/* ============================================================
   TIPOS DE PROJETO
   ============================================================ */
.types { background: var(--neutral); overflow: hidden; }
.types-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.type-item {
  background: var(--porcelain), var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.type-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.type-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  position: relative;
}
.type-media .ph { width: 100%; height: 100%; }
.type-media .ph-img,
.type-media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.type-item:hover .type-media .ph-img,
.type-item:hover .type-media img { transform: scale(1.06); }
.type-body {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px 34px 34px;
}
.type-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  flex-shrink: 0;
  width: 54px; height: 54px;
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.4s, color 0.4s, transform 0.5s var(--ease-spring);
}
.type-item:hover .type-num { background: var(--accent); color: var(--primary); transform: rotate(-6deg); }
.type-text {
  font-size: 1.18rem;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.35;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { background: var(--porcelain), var(--light); }
.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 70px;
  align-items: start;
}
.faq-aside { position: sticky; top: 120px; }
.faq-aside .eyebrow { margin-bottom: 20px; }
.faq-aside h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.0;
  color: var(--primary);
  margin-bottom: 18px;
}
.faq-aside p { color: var(--text-secondary); font-size: 1.06rem; line-height: 1.6; max-width: 34ch; }
.faq-aside .faq-cue {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}
.faq-q {
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.4;
  transition: color 0.3s;
}
.faq-trigger:hover .faq-q { color: var(--accent-dark); }
.faq-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border: 1.5px solid var(--border);
  position: relative;
  transition: background 0.4s var(--ease-out), border-color 0.4s, transform 0.4s var(--ease-spring);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--accent-dark);
  transition: transform 0.4s var(--ease-out), background 0.3s;
}
.faq-icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq-icon::after  { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq-item.open .faq-icon { background: var(--accent); border-color: var(--accent); transform: rotate(90deg); }
.faq-item.open .faq-icon::before,
.faq-item.open .faq-icon::after { background: var(--primary); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s var(--ease-out);
}
.faq-answer-inner {
  padding: 0 0 30px;
  font-size: 1.04rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 60ch;
}
.faq-cta { margin-top: 50px; }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  position: relative;
  background: var(--gradient-hero);
  color: var(--white);
  padding: 150px 0;
  overflow: hidden;
  text-align: center;
}
.cta-final::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-gold);
}
.cta-final .roofline.big {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  opacity: 0.12;
}
.cta-inner { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; }
.cta-inner .eyebrow { justify-content: center; margin-bottom: 26px; }
.cta-inner h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}
.cta-inner h2 .gold { color: var(--accent); }
.cta-actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--primary-900);
  color: rgba(255,255,255,0.6);
  padding: 80px 0 36px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-top .footer-col { justify-self: end; text-align: right; }
.footer-top .footer-col a:hover { padding-left: 0; padding-right: 5px; }
.footer-logo img { height: 46px; filter: brightness(0) invert(1); margin-bottom: 22px; }
.footer-brand p { font-size: 0.95rem; line-height: 1.7; max-width: 32ch; }
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.footer-col a { font-size: 0.95rem; transition: color 0.25s, padding-left 0.25s; }
.footer-col a:hover { color: var(--white); padding-left: 5px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--gradient-gold);
  z-index: 1100;
  transition: width 0.1s linear;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .diff-layout { grid-template-columns: 1fr; gap: 36px; }
  .diff-aside { position: static; }
  .diff-counter { display: none; }
  .pf-a, .pf-b, .pf-c, .pf-d, .pf-d2, .pf-e, .pf-f, .pf-g { grid-column: span 6; }
}

@media (max-width: 860px) {
  .wrap { padding: 0 24px; }
  .section { padding: 84px 0; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .hero-title .line { white-space: normal; }
  .hero-bullets { flex-direction: column; gap: 0; max-width: 460px; }
  .hero-bullets li { padding: 13px 0; }
  .hero-bullets li + li { border-left: none; border-top: 1px solid rgba(201,168,107,0.3); }
  .about-intro { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .about-layout { grid-template-columns: 1fr; gap: 48px; }
  .about-photo-wrap { position: static; }
  .about-photo { aspect-ratio: 16 / 9; }
  .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .faq-aside { position: static; }
  .story-wrap { grid-template-columns: 1fr; gap: 32px; }
  .story-head { position: static; }
  .types-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-top .footer-col { justify-self: start; text-align: left; }
  .footer-top .footer-col a:hover { padding-left: 5px; padding-right: 0; }
  .about-close { padding: 44px 36px; }
  .compare-cell, .compare-col-label { padding: 20px 22px; }

  /* lightbox — tablet/mobile */
  .glb-header { padding: 16px 56px 16px 20px; }
  .glb-stage { padding: 60px 56px 8px; }
  .glb-arrow { width: 40px; height: 40px; }
  .glb-prev { left: 10px; }
  .glb-next { right: 10px; }
  .glb-strip { padding: 10px 20px 16px; }
}

@media (max-width: 560px) {
  .portfolio-grid { grid-auto-rows: 180px; }
  .pf-a, .pf-b, .pf-c, .pf-d, .pf-d2, .pf-e, .pf-f, .pf-g { grid-column: span 12; }
  .compare-head-row, .compare-row { grid-template-columns: 1fr; }
  .compare-row .compare-cell.market { display: none; }
  .compare-row::after { display: none; }
  .compare-rows::before { display: none; }
  .compare-cell.us { margin-left: 0; }
  .compare-col-label.market { display: none; }
  .compare-col-label.us { margin-left: 0; }
  .diff-row { padding-left: 18px; gap: 18px; }

  /* lightbox — phone: arrows sit at bottom, stage uses full width */
  .glb-stage { padding: 56px 12px 4px; }
  .glb-arrow { width: 38px; height: 38px; top: auto; bottom: 92px; transform: none; }
  .glb-prev { left: 16px; }
  .glb-next { right: 16px; }
  .glb-prev:hover, .glb-next:hover { transform: none; }
  .glb-thumb { width: 52px; height: 40px; }
  .glb-project { font-size: 0.9rem; }
  .glb-strip { padding: 8px 16px 14px; }
}

/* ══════════════════════════════════════════════
   MODAIS DE FORMULÁRIOS — BuildV
   ══════════════════════════════════════════════ */
.form-overlay {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(18,25,58,0.72);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}
.form-overlay.open { opacity: 1; pointer-events: all; }
.form-modal {
  background: var(--light);
  border-radius: 8px;
  width: 100%; max-width: 560px;
  max-height: 92vh; overflow-y: auto;
  transform: translateY(24px);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.form-overlay.open .form-modal { transform: translateY(0); }
.form-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 28px 28px 0;
}
.form-modal-header h2 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.form-modal-header p  { font-size: 0.82rem; color: var(--text-secondary); margin-top: 5px; }
.form-modal-close {
  background: none; border: 1px solid var(--border); border-radius: 4px;
  cursor: pointer; font-size: 17px; color: var(--text-secondary);
  padding: 2px 9px; line-height: 1.5; flex-shrink: 0; margin-left: 16px;
  transition: border-color 0.2s, color 0.2s;
}
.form-modal-close:hover { border-color: var(--primary); color: var(--primary); }
.form-modal form { padding: 22px 28px 28px; display: flex; flex-direction: column; gap: 15px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text-secondary); }
.form-group input,
.form-group select {
  padding: 11px 13px; border: 1px solid var(--border); border-radius: 5px;
  font-family: inherit; font-size: 14px; background: #fff; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,168,107,0.14); }
.file-label {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px; border: 1px dashed #c8c5be; border-radius: 5px;
  background: #fff; cursor: pointer; font-size: 13px; color: var(--text-secondary);
  transition: border-color 0.2s, color 0.2s;
}
.file-label:hover { border-color: var(--accent); color: var(--primary); }
input[type="file"] { display: none; }
.file-name { font-size: 12px; color: #666; }
.form-submit {
  padding: 13px; background: var(--primary); color: #fff; border: none; border-radius: 5px;
  font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  letter-spacing: 0.02em; transition: background 0.2s;
}
.form-submit:hover { background: var(--primary-light); }
.form-submit:disabled { opacity: .45; cursor: not-allowed; }
.form-feedback { padding: 11px 14px; border-radius: 5px; font-size: 13px; display: none; }
.form-feedback.success { background: #f0faf4; border: 1px solid #a3d9b1; color: #1a6b35; }
.form-feedback.error   { background: #fdf2f2; border: 1px solid #e8b4b4; color: #8a2020; }

.privacy-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(18,25,58,0.8); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.privacy-overlay.open { opacity: 1; pointer-events: all; }
.privacy-modal {
  background: #fff; border-radius: 8px;
  width: 100%; max-width: 640px; max-height: 86vh;
  display: flex; flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.privacy-overlay.open .privacy-modal { transform: translateY(0); }
.privacy-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid #eee; flex-shrink: 0;
}
.privacy-header h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.privacy-close { background: none; border: none; cursor: pointer; font-size: 22px; color: #999; padding: 4px; transition: color 0.2s; }
.privacy-close:hover { color: var(--primary); }
.privacy-body { overflow-y: auto; padding: 24px; font-size: 13px; line-height: 1.78; color: #333; }
.privacy-body h3 { font-size: 13px; font-weight: 700; margin: 20px 0 6px; color: var(--primary); }
.privacy-body p, .privacy-body ul { margin-bottom: 12px; }
.privacy-body ul { padding-left: 18px; }

.cookie-notice {
  position: fixed; bottom: 24px; left: 24px; right: auto; z-index: 700;
  width: 320px; max-width: calc(100vw - 48px);
  background: var(--primary-900);
  border: 1px solid rgba(201,168,107,0.22);
  border-radius: 14px;
  padding: 18px 20px 16px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.4);
  transform: translateY(calc(100% + 24px)); opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
}
.cookie-notice.show { transform: translateY(0); opacity: 1; }
.cookie-notice p { font-size: 0.8rem; color: rgba(255,255,255,0.68); line-height: 1.55; }
.cookie-notice p button { background: none; border: none; padding: 0; color: var(--accent); font-size: inherit; font-family: inherit; cursor: pointer; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-btn { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 6px; font-family: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer; white-space: nowrap; text-align: center; }
.cookie-btn--accept { background: var(--accent); color: var(--primary); border: none; }
.cookie-btn--decline { background: transparent; color: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.18); }
@media (max-width: 600px) {
  /* mantém à esquerda e deixa espaço à direita p/ o botão flutuante de WhatsApp */
  .cookie-notice { left: 16px; right: auto; bottom: 16px; width: auto; max-width: calc(100vw - 88px); }
}

/* ===== Subpáginas institucionais (Fornecedores / Trabalhe Conosco) ===== */
.subpage-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--neutral); }
.subpage-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 40px; background: var(--primary-900); position: sticky; top: 0; z-index: 50; }
.subpage-nav .nav-logo img { height: 34px; display: block; }
.subpage-back { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,0.82); font-size: 0.85rem; font-weight: 600; text-decoration: none; padding: 8px 14px; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; transition: border-color 0.2s, color 0.2s; }
.subpage-back:hover { color: #fff; border-color: var(--accent); }
.subpage-main { flex: 1; display: flex; justify-content: center; align-items: flex-start; padding: 60px 20px 80px; }
.subpage-card { background: var(--light); border-radius: 12px; width: 100%; max-width: 600px; box-shadow: var(--shadow-xl); overflow: hidden; }
.subpage-card-head { padding: 38px 34px 4px; }
.subpage-card-head .eyebrow { color: var(--accent-dark); }
.subpage-card-head h1 { font-family: var(--font-display); font-size: clamp(1.9rem,4vw,2.5rem); font-weight: 700; color: var(--primary); line-height: 1.05; margin: 10px 0 10px; }
.subpage-card-head p { color: var(--text-secondary); font-size: 0.96rem; line-height: 1.5; }
.subpage-card form { padding: 26px 34px 36px; display: flex; flex-direction: column; gap: 15px; }
@media (max-width: 600px) {
  .subpage-nav { padding: 14px 20px; }
  .subpage-card-head { padding: 30px 22px 4px; }
  .subpage-card form { padding: 22px 22px 30px; }
}
