/* ==========================================================================
   BRG GROUP — Construção civil & design de interiores
   Design system: navy da marca, vermelho BRG, betão, aço e madeira.
   Tipografia: Archivo (expandida para títulos, normal para texto).
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-var.woff2) format("woff2-variations"), url(../fonts/archivo-var.woff2) format("woff2");
}

:root {
  --navy: #0A1A2B;
  --navy-2: #10263D;
  --navy-3: #1A3550;
  --red: #E0262B;
  --red-dark: #B81C21;
  --concrete: #E4E2DE;
  --concrete-2: #D3D0CA;
  --paper: #F6F5F3;
  --steel: #5B6B7A;
  --steel-light: #9AA6B1;
  --timber: #A8714A;
  --white: #FFFFFF;
  --text: #14212E;
  --text-soft: #4A5866;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem);
  --fs-xl: clamp(2rem, 1.2rem + 3vw, 3.5rem);
  --fs-2xl: clamp(2.6rem, 1.2rem + 5.4vw, 6rem);

  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1320px;
  --radius-s: 4px;
  --radius-m: 10px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1em; max-width: 68ch; }
h1, h2, h3, h4 { margin: 0; line-height: 1.05; font-weight: 800; letter-spacing: -.01em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

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

/* Display type — expanded width, like site hoarding lettering */
.display, .h-xl, .h-lg {
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -.02em;
}
.display { font-size: var(--fs-2xl); line-height: .95; }
.h-xl { font-size: var(--fs-xl); line-height: 1; }
.h-lg { font-size: var(--fs-lg); line-height: 1.1; }
.lead { font-size: var(--fs-md); line-height: 1.55; color: var(--text-soft); max-width: 60ch; }
.kicker {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--red);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* Sections */
.sec { padding: clamp(72px, 10vw, 150px) 0; position: relative; }
.sec-dark { background: var(--navy); color: var(--concrete); }
.sec-dark .lead, .sec-dark p { color: var(--steel-light); }
.sec-dark .h-xl, .sec-dark .h-lg, .sec-dark .display { color: var(--white); }
.sec-concrete { background: var(--concrete); }
.sec-head { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: clamp(40px, 6vw, 80px); }
@media (min-width: 900px) {
  .sec-head { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 60px; }
  .sec-head .lead { justify-self: end; }
}

/* Blueprint grid backdrop for dark sections */
.blueprint::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(154,166,177,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(154,166,177,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}

/* Buttons */
.btn {
  --bg: var(--red); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  background: var(--bg); color: var(--fg);
  border: 0; border-radius: var(--radius-s);
  font-weight: 700; font-size: var(--fs-sm); letter-spacing: .01em;
  overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--red-dark); transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease);
}
.btn:hover::after { transform: scaleX(1); transform-origin: left; }
.btn:hover { box-shadow: 0 14px 30px -12px rgba(224,38,43,.6); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost::after { background: rgba(255,255,255,.1); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px currentColor; }
.sec-concrete .btn-ghost::after, .light .btn-ghost::after { background: rgba(10,26,43,.06); }
.btn-wa { --bg: #1FAF55; }
.btn-wa::after { background: #178a42; }
.btn-wa:hover { box-shadow: 0 14px 30px -12px rgba(31,175,85,.6); }

.link-u {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 4px; transition: background-size .45s var(--ease);
}
.link-u:hover { background-size: 100% 2px; }
.link-u svg, .svc-go svg { width: 18px; height: 18px; flex: none; }

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; color: #fff;
  transition: background .4s var(--ease), box-shadow .4s, transform .5s var(--ease), color .3s;
}
.header.is-solid {
  background: rgba(10,26,43,.88);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.header.is-hidden { transform: translateY(-100%); }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: baseline; gap: 10px; line-height: 1; }
.logo-mark { font-stretch: 125%; font-weight: 900; font-size: 1.75rem; letter-spacing: -.03em; }
.logo-mark b { color: var(--red); font-weight: 900; }
.logo-sub { font-size: .7rem; font-weight: 600; letter-spacing: .32em; color: var(--steel-light); }
.nav { display: none; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  position: relative; display: block; padding: 10px 14px; font-size: var(--fs-sm); font-weight: 600;
  color: rgba(255,255,255,.82); transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { display: none; min-height: 44px; padding: 0 20px; }
.menu-btn {
  width: 48px; height: 48px; display: grid; place-items: center; background: transparent; border: 0;
  margin-right: -10px;
}
.menu-btn span { display: block; width: 26px; height: 2px; background: currentColor; position: relative; transition: background .2s; }
.menu-btn span::before, .menu-btn span::after {
  content: ""; position: absolute; left: 0; width: 26px; height: 2px; background: currentColor; transition: transform .35s var(--ease);
}
.menu-btn span::before { top: -8px; }
.menu-btn span::after { top: 8px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(8px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-8px) rotate(-45deg); }
@media (min-width: 1080px) {
  .nav { display: block; }
  .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
}

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--navy); color: #fff;
  padding: calc(var(--header-h) + 24px) var(--gutter) 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .6s var(--ease), visibility 0s .6s;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease); }
.menu-open { overflow: hidden; }
.mobile-menu ul li { overflow: hidden; }
.mobile-menu ul a {
  display: block; padding: 8px 0; font-stretch: 125%; font-weight: 800; font-size: clamp(1.8rem, 8vw, 3rem);
  letter-spacing: -.02em; transform: translateY(110%); transition: transform .6s var(--ease), color .2s;
}
.mobile-menu ul a[aria-current="page"] { color: var(--red); }
.menu-open .mobile-menu ul a { transform: none; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: .04s; }
.menu-open .mobile-menu li:nth-child(3) a { transition-delay: .08s; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: .12s; }
.menu-open .mobile-menu li:nth-child(5) a { transition-delay: .16s; }
.menu-open .mobile-menu li:nth-child(6) a { transition-delay: .2s; }
.menu-open .mobile-menu li:nth-child(7) a { transition-delay: .24s; }
.mobile-menu-foot { display: grid; gap: 14px; color: var(--steel-light); font-size: var(--fs-sm); }
.mobile-menu-foot .btn { justify-self: start; }

/* ==========================================================================
   Home hero — 3D
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  background: radial-gradient(120% 90% at 70% 40%, #17324D 0%, var(--navy) 60%, #06111D 100%);
  color: #fff; overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-fallback {
  position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0;
  transition: opacity 1s;
}
.no-webgl .hero-fallback { opacity: .55; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(6,17,29,.86) 0%, rgba(6,17,29,.5) 38%, rgba(6,17,29,0) 65%),
              linear-gradient(0deg, rgba(6,17,29,.9) 0%, rgba(6,17,29,0) 40%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(28px, 5vw, 56px); }
.hero h1 { max-width: 15ch; }
.hero h1 .h1-kicker {
  display: flex; align-items: center; gap: 12px;
  font-stretch: 100%; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; color: var(--concrete-2);
  margin-bottom: 22px;
}
.hero h1 .h1-kicker::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.hero h1 .h1-main { display: block; }
.hero .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero .line > span { display: block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.is-ready .hero .line > span { transform: none; }
.is-ready .hero .line:nth-child(2) > span { transition-delay: .08s; }
.is-ready .hero .line:nth-child(3) > span { transition-delay: .16s; }
.hero-sub {
  margin-top: 28px; max-width: 52ch; font-size: var(--fs-md); color: var(--concrete-2);
  opacity: 0; transform: translateY(16px); transition: opacity 1s .4s, transform 1s .4s var(--ease);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; opacity: 0; transition: opacity 1s .6s; }
.is-ready .hero-sub, .is-ready .hero-actions { opacity: 1; transform: none; }
.hero-foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px;
  margin-top: clamp(40px, 8vh, 90px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14);
}
.hero-phase { display: flex; gap: 22px; font-size: var(--fs-xs); color: var(--steel-light); }
.hero-phase span { display: flex; align-items: center; gap: 8px; transition: color .4s; }
.hero-phase span::before { content: ""; width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 50%; transition: background .4s, border-color .4s; }
.hero-phase span.on { color: #fff; }
.hero-phase span.on::before { background: var(--red); border-color: var(--red); }
.hero-hint { font-size: var(--fs-xs); color: var(--steel-light); display: flex; align-items: center; gap: 10px; }
.hero-hint i { width: 1px; height: 36px; background: linear-gradient(var(--red), transparent); display: block; animation: drip 2s infinite var(--ease); transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Inner page hero */
.page-hero {
  position: relative; min-height: clamp(440px, 70vh, 680px); display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--navy);
}
.page-hero-bg { position: absolute; inset: -8% 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: settle 2.4s var(--ease) forwards; }
@keyframes settle { to { transform: scale(1); } }
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(6,17,29,.95) 0%, rgba(6,17,29,.55) 45%, rgba(6,17,29,.35) 100%);
}
.page-hero .wrap { position: relative; z-index: 2; padding-top: calc(var(--header-h) + 40px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { color: var(--concrete-2); margin-top: 20px; }
.crumbs { list-style: none; padding: 0; margin-top: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-xs); color: var(--steel-light); margin-bottom: 22px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a:hover { color: #fff; }

/* ==========================================================================
   Reveal (one style used throughout: rise + clip for images)
   ========================================================================== */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv-img { clip-path: inset(12% 0 0 0); transition: clip-path 1.2s var(--ease); }
.rv-img img { transform: scale(1.12); transition: transform 1.6s var(--ease); }
.rv-img.in { clip-path: inset(0 0 0 0); }
.rv-img.in img { transform: scale(1); }

/* ==========================================================================
   Intro statement — words fill on scroll
   ========================================================================== */
.statement { font-stretch: 112%; font-weight: 700; font-size: clamp(1.6rem, 1rem + 2.6vw, 3.2rem); line-height: 1.18; letter-spacing: -.015em; max-width: 26ch; color: var(--text); }
.statement .w { color: rgba(20,33,46,.16); transition: color .2s; }
.statement .w.on { color: var(--text); }
.intro-grid { display: grid; gap: clamp(40px, 6vw, 80px); }
.intro-media { position: relative; aspect-ratio: 4/5; max-width: 520px; }
.intro-media figure { margin: 0; position: absolute; overflow: hidden; border-radius: var(--radius-s); box-shadow: 0 30px 60px -30px rgba(10,26,43,.5); }
.intro-media figure img { width: 100%; height: 100%; object-fit: cover; }
.intro-media .f1 { inset: 0 18% 14% 0; }
.intro-media .f2 { inset: 46% 0 0 40%; border: 6px solid var(--paper); }
.intro-media figcaption { position: absolute; left: 12px; bottom: 10px; font-size: var(--fs-xs); color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.intro-copy p { color: var(--text-soft); }
@media (min-width: 960px) { .intro-grid { grid-template-columns: 1.25fr .75fr; align-items: center; } }

/* Dimension line — real measurements only */
.dim { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; font-size: var(--fs-xs); color: var(--steel); margin: 28px 0; }
.dim i { height: 1px; background: currentColor; position: relative; }
.dim i::before, .dim i::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: currentColor; }
.dim i::before { left: 0; } .dim i::after { right: 0; }
.sec-dark .dim { color: var(--steel-light); }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); }
.stat { background: var(--navy); padding: clamp(24px, 4vw, 44px) clamp(18px, 3vw, 36px); }
.stat strong { display: block; font-stretch: 125%; font-weight: 800; font-size: clamp(2.4rem, 1.4rem + 4vw, 4.6rem); line-height: 1; color: #fff; letter-spacing: -.03em; }
.stat strong sup { color: var(--red); font-size: .5em; vertical-align: top; position: relative; top: .25em; margin-left: 2px; }
.stat span { display: block; margin-top: 12px; color: var(--steel-light); font-size: var(--fs-sm); }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   Services — schedule list with cursor-following preview
   ========================================================================== */
.svc-list { border-top: 1px solid var(--concrete-2); }
.svc {
  position: relative; display: grid; grid-template-columns: 1fr; gap: 14px;
  padding: clamp(24px, 3vw, 38px) 0; border-bottom: 1px solid var(--concrete-2);
  transition: padding .5s var(--ease);
}
.svc h3 { font-stretch: 125%; font-size: clamp(1.5rem, 1rem + 2vw, 2.6rem); letter-spacing: -.02em; transition: color .3s, transform .5s var(--ease); }
.svc p { color: var(--text-soft); margin: 0; }
.svc .svc-go { font-size: var(--fs-sm); font-weight: 700; color: var(--red); display: inline-flex; gap: 8px; align-items: center; }
.svc .svc-go svg { width: 18px; transition: transform .4s var(--ease); }
.svc:hover .svc-go svg { transform: translateX(6px); }
.svc-thumb { border-radius: var(--radius-s); overflow: hidden; aspect-ratio: 16/9; }
.svc-thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) {
  .svc { grid-template-columns: 1.15fr 1fr auto; align-items: center; gap: 48px; }
  .svc-thumb { display: none; }
  .svc:hover h3 { color: var(--red); transform: translateX(10px); }
}
.svc-preview {
  position: fixed; left: 0; top: 0; z-index: 50; width: 340px; aspect-ratio: 4/3;
  pointer-events: none; border-radius: var(--radius-s); overflow: hidden;
  opacity: 0; transform: translate(-50%, -50%) scale(.8); transition: opacity .3s, transform .4s var(--ease);
  box-shadow: 0 30px 60px -20px rgba(10,26,43,.55);
}
.svc-preview.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.svc-preview img.on { opacity: 1; }
@media (hover: none), (max-width: 959px) { .svc-preview { display: none; } }

/* ==========================================================================
   Process — pinned sequence (real sequence → numbered)
   ========================================================================== */
.process { position: relative; }
.process-grid { display: grid; gap: 40px; }
.step { padding: 28px 0; border-top: 1px solid rgba(255,255,255,.12); }
.step-n { font-stretch: 125%; font-weight: 800; font-size: var(--fs-sm); color: var(--red); }
.step h3 { font-stretch: 125%; font-size: var(--fs-lg); color: #fff; margin: 10px 0 12px; }
.step p { margin: 0; }
.step-img { margin-top: 20px; border-radius: var(--radius-s); overflow: hidden; aspect-ratio: 16/10; }
.step-img img { width: 100%; height: 100%; object-fit: cover; }
.process-stage { display: none; }

@media (min-width: 960px) {
  .process.pinned .process-grid { grid-template-columns: .9fr 1.1fr; align-items: center; min-height: 100vh; padding: calc(var(--header-h) + 20px) 0 40px; }
  .process.pinned .steps { position: relative; min-height: 360px; }
  .process.pinned .step { position: absolute; inset: 0 0 auto; border: 0; padding: 0; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
  .process.pinned .step.on { opacity: 1; transform: none; pointer-events: auto; }
  .process.pinned .step-img { display: none; }
  .process.pinned .process-stage { display: block; position: relative; aspect-ratio: 4/3.4; border-radius: var(--radius-m); overflow: hidden; }
  .process-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); transition: clip-path 1s var(--ease); }
  .process-stage img.on { clip-path: inset(0 0 0 0); }
  .process-stage img.past { clip-path: inset(0 0 0 0); }
  .process-bar { display: flex; gap: 8px; margin-top: 40px; }
  .process-bar i { flex: 1; height: 3px; background: rgba(255,255,255,.14); position: relative; overflow: hidden; }
  .process-bar i b { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
  .process-caption { position: absolute; left: 18px; bottom: 16px; z-index: 2; color: #fff; font-size: var(--fs-xs); background: rgba(6,17,29,.6); padding: 6px 10px; border-radius: 3px; backdrop-filter: blur(6px); }
}
.process-bar { display: none; }
@media (min-width: 960px) { .process.pinned .process-bar { display: flex; } }

/* ==========================================================================
   Projects — horizontal track with tilt
   ========================================================================== */
.track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.pcard {
  flex: 0 0 min(82vw, 440px); scroll-snap-align: start;
  perspective: 1000px; color: #fff;
}
.pcard-in {
  position: relative; aspect-ratio: 4/5; border-radius: var(--radius-m); overflow: hidden;
  transform-style: preserve-3d; transition: transform .5s var(--ease), box-shadow .5s;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}
.pcard-in img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1s var(--ease); }
.pcard:hover .pcard-in img { transform: scale(1.12); }
.pcard-in::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6,17,29,.92), rgba(6,17,29,0) 55%); }
.pcard-glare { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.22), transparent 45%); opacity: 0; transition: opacity .4s; }
.pcard:hover .pcard-glare { opacity: 1; }
.pcard-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 26px; transform: translateZ(40px); }
.pcard-tag { display: inline-block; font-size: var(--fs-xs); font-weight: 600; padding: 5px 10px; border-radius: 3px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); margin-bottom: 14px; }
.pcard h3 { font-stretch: 112%; font-size: 1.5rem; }
.pcard p { margin: 8px 0 0; color: var(--concrete-2); font-size: var(--fs-sm); }
@media (min-width: 960px) {
  .projects-h.pin .track { overflow: visible; scroll-snap-type: none; width: max-content; will-change: transform; }
  .pcard { flex-basis: 30vw; max-width: 460px; }
}
.track-end { flex: 0 0 min(70vw, 360px); display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 24px; }

/* ==========================================================================
   Feature split (promo / condominium)
   ========================================================================== */
.split { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.1fr .9fr; } .split.rev > :first-child { order: 2; } }
.frame3d { perspective: 1200px; }
.frame3d-in { position: relative; border-radius: var(--radius-m); overflow: hidden; transform-style: preserve-3d; transition: transform .6s var(--ease); box-shadow: 0 50px 90px -40px rgba(10,26,43,.65); }
.frame3d-in img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.frame3d-badge {
  position: absolute; right: clamp(12px, 3vw, 28px); bottom: clamp(12px, 3vw, 28px); z-index: 2;
  background: var(--white); color: var(--navy); padding: 16px 20px; border-radius: var(--radius-s);
  transform: translateZ(60px); box-shadow: 0 20px 40px -18px rgba(0,0,0,.5);
}
.frame3d-badge small { display: block; font-size: var(--fs-xs); color: var(--steel); }
.frame3d-badge strong { font-stretch: 112%; font-size: 1.25rem; }
.price { font-stretch: 125%; font-weight: 800; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); letter-spacing: -.02em; line-height: 1; color: var(--navy); }
.price small { display: block; font-stretch: 100%; font-size: var(--fs-sm); font-weight: 600; color: var(--steel); letter-spacing: 0; margin-top: 10px; }
.sec-dark .price { color: #fff; }
.checks { display: grid; gap: 14px; margin: 26px 0 32px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.checks li svg { width: 22px; height: 22px; color: var(--red); margin-top: 2px; }
.checks strong { display: block; }
.checks span { color: var(--text-soft); font-size: var(--fs-sm); }
.sec-dark .checks span { color: var(--steel-light); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--concrete-2); border: 1px solid var(--concrete-2); border-radius: var(--radius-s); overflow: hidden; margin: 26px 0; }
.facts div { background: var(--paper); padding: 16px 18px; }
.facts dt { font-size: var(--fs-xs); color: var(--steel); }
.facts dd { margin: 4px 0 0; font-weight: 700; }
.sec-concrete .facts div { background: var(--concrete); }
.sec-dark .facts { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.12); }
.sec-dark .facts div { background: var(--navy); }
.sec-dark .facts dd { color: #fff; }

/* ==========================================================================
   Site gallery (real works) — masonry + lightbox
   ========================================================================== */
.masonry { columns: 2 220px; column-gap: clamp(10px, 1.4vw, 18px); }
.masonry a { display: block; break-inside: avoid; margin-bottom: clamp(10px, 1.4vw, 18px); border-radius: var(--radius-s); overflow: hidden; position: relative; }
.masonry img { width: 100%; transition: transform .8s var(--ease), filter .5s; }
.masonry a:hover img { transform: scale(1.05); }
.masonry a::after { content: ""; position: absolute; inset: 0; background: rgba(10,26,43,0); transition: background .4s; }
.masonry a:hover::after { background: rgba(10,26,43,.2); }
@media (min-width: 900px) { .masonry { columns: 4; } .masonry.m3 { columns: 3; } }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filters button {
  min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--concrete-2); background: transparent;
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-soft); transition: all .3s var(--ease);
}
.filters button:hover { border-color: var(--navy); color: var(--navy); }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.masonry a.hide { display: none; }
.masonry figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 30px 14px 12px; color: #fff; font-size: var(--fs-xs); font-weight: 600; background: linear-gradient(0deg, rgba(6,17,29,.8), transparent); opacity: 0; transform: translateY(8px); transition: all .4s var(--ease); }
.masonry a:hover figcaption, .masonry a:focus-visible figcaption { opacity: 1; transform: none; }
@media (hover: none) { .masonry figcaption { opacity: 1; transform: none; } }

.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(6,17,29,.96); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; padding: 64px 16px;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .35s; }
.lightbox img { max-height: 82vh; max-width: min(1400px, 100%); width: auto; border-radius: var(--radius-s); transform: scale(.96); transition: transform .5s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox p { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; color: var(--concrete-2); font-size: var(--fs-sm); margin: 0 auto; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; transition: background .3s; }
.lb-btn:hover { background: var(--red); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Interiors — hover swap list
   ========================================================================== */
.swap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .swap { grid-template-columns: .9fr 1.1fr; gap: 80px; } }
.swap-list li { border-top: 1px solid rgba(255,255,255,.12); }
.swap-list li:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.swap-list a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; transition: padding .4s var(--ease), color .3s; color: var(--concrete-2); }
.swap-list a h3 { font-stretch: 112%; font-size: var(--fs-lg); color: inherit; }
.swap-list a span { font-size: var(--fs-sm); color: var(--steel-light); }
.swap-list li.on a, .swap-list a:hover, .swap-list a:focus-visible { color: #fff; padding-left: 14px; }
.swap-list li.on a h3 { color: #fff; }
.swap-media { position: relative; aspect-ratio: 4/3.2; border-radius: var(--radius-m); overflow: hidden; }
.swap-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.swap-media img.on { opacity: 1; transform: none; }

/* ==========================================================================
   Testimonials, FAQ
   ========================================================================== */
.quotes { display: grid; gap: 20px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { background: var(--white); padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-s); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; border-top: 3px solid var(--red); }
.quote blockquote { margin: 0; font-size: var(--fs-md); line-height: 1.5; }
.quote footer { display: flex; gap: 14px; align-items: center; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .95rem; flex: none; }
.quote cite { font-style: normal; font-weight: 700; display: block; }
.quote footer span { font-size: var(--fs-sm); color: var(--steel); }

.faq { max-width: 900px; }
.faq details { border-bottom: 1px solid var(--concrete-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; cursor: pointer; font-weight: 700; font-size: var(--fs-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--concrete-2); position: relative; flex: none; transition: transform .4s var(--ease), background .3s, border-color .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.faq details[open] summary i { background: var(--red); border-color: var(--red); color: #fff; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq .ans { padding: 0 0 24px; color: var(--text-soft); }

/* ==========================================================================
   Contact / quote
   ========================================================================== */
.contact-grid { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: .85fr 1.15fr; } }
.form { display: grid; gap: 16px; background: var(--white); padding: clamp(22px, 3.5vw, 44px); border-radius: var(--radius-m); color: var(--text); box-shadow: 0 40px 80px -50px rgba(10,26,43,.5); }
.form .row2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.field { position: relative; }
.field label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--text);
  background: var(--paper); border: 1.5px solid var(--concrete-2); border-radius: var(--radius-s);
  transition: border-color .25s, background .25s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); background: #fff; }
.form-note { font-size: var(--fs-xs); color: var(--steel); margin: 0; }
.form .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.form-msg { font-size: var(--fs-sm); font-weight: 600; color: #178a42; min-height: 1.2em; margin: 0; }

.cinfo { display: grid; gap: 22px; margin-top: 30px; }
.cinfo a, .cinfo div { display: grid; grid-template-columns: 46px 1fr; gap: 14px; align-items: center; }
.cinfo .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; transition: background .3s; }
.cinfo a:hover .ic { background: var(--red); }
.cinfo .ic svg { width: 20px; height: 20px; }
.cinfo small { display: block; color: var(--steel-light); font-size: var(--fs-xs); }
.cinfo strong { color: #fff; font-weight: 700; }
.light .cinfo .ic { background: var(--concrete); color: var(--navy); }
.light .cinfo a:hover .ic { color: #fff; }
.light .cinfo strong { color: var(--text); }
.light .cinfo small { color: var(--steel); }
.map { margin-top: 30px; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 16/10; background: var(--navy-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

/* ==========================================================================
   Detail pages
   ========================================================================== */
.detail { display: grid; gap: clamp(36px, 5vw, 72px); }
@media (min-width: 1000px) { .detail { grid-template-columns: 1fr 360px; align-items: start; } .detail aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.prose h2 { font-stretch: 112%; font-size: var(--fs-lg); margin: 1.6em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-soft); }
.prose ul { display: grid; gap: 10px; margin: 0 0 1.4em; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 12px; height: 2px; background: var(--red); }
.aside-card { background: var(--navy); color: var(--concrete); padding: 28px; border-radius: var(--radius-m); }
.aside-card h2 { font-stretch: 112%; font-size: 1.3rem; color: #fff; margin-bottom: 18px; }
.aside-card dl { margin: 0 0 24px; display: grid; gap: 0; }
.aside-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: var(--fs-sm); }
.aside-card dt { color: var(--steel-light); }
.aside-card dd { margin: 0; font-weight: 700; color: #fff; text-align: right; }
.aside-card .btn { width: 100%; justify-content: center; margin-top: 10px; }
.gallery-feature { display: grid; gap: clamp(10px, 1.4vw, 18px); grid-template-columns: repeat(2, 1fr); }
.gallery-feature a { border-radius: var(--radius-s); overflow: hidden; display: block; aspect-ratio: 1; }
.gallery-feature a:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.gallery-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-feature a:hover img { transform: scale(1.05); }
@media (min-width: 760px) { .gallery-feature { grid-template-columns: repeat(3, 1fr); } .gallery-feature a:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; } }

/* Cards grid (services page / related) */
.cards { display: grid; gap: clamp(14px, 2vw, 24px); }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cards.c3 { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-m); overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(10,26,43,.45); }
.card-img { aspect-ratio: 16/10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-stretch: 112%; font-size: 1.3rem; }
.card p { color: var(--text-soft); margin: 0; font-size: var(--fs-sm); }
.card .link-u { margin-top: auto; padding-top: 10px; color: var(--red); font-size: var(--fs-sm); }
.card a.stretch::after { content: ""; position: absolute; inset: 0; }

/* Values / team */
.values { display: grid; gap: 1px; background: var(--concrete-2); border: 1px solid var(--concrete-2); }
@media (min-width: 760px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .values { grid-template-columns: repeat(4, 1fr); } }
.values > div { background: var(--paper); padding: 30px 26px; }
.values h3 { font-stretch: 112%; font-size: 1.2rem; margin-bottom: 10px; }
.values p { color: var(--text-soft); font-size: var(--fs-sm); margin: 0; }
.values svg { width: 30px; height: 30px; color: var(--red); margin-bottom: 18px; }
.team { display: grid; gap: 20px; }
@media (min-width: 760px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member { background: var(--white); border-radius: var(--radius-m); padding: 28px; }
.member .avatar { width: 64px; height: 64px; font-size: 1.2rem; margin-bottom: 18px; background: var(--navy); }
.member:nth-child(2) .avatar { background: var(--red); }
.member:nth-child(3) .avatar { background: var(--timber); }
.member h3 { font-size: 1.2rem; }
.member small { display: block; color: var(--red); font-weight: 600; margin: 4px 0 12px; }
.member p { color: var(--text-soft); font-size: var(--fs-sm); margin: 0; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--red); color: #fff; }
.cta-band .wrap { display: grid; gap: 30px; align-items: center; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(56px, 8vw, 110px); }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1fr auto; } }
.cta-band h2 { font-stretch: 125%; font-size: var(--fs-xl); max-width: 16ch; }
.cta-band p { color: rgba(255,255,255,.85); margin: 16px 0 0; }
.cta-band .btn { --bg: var(--navy); }
.cta-band .btn::after { background: #000; }
.cta-band .btn-ghost { --bg: transparent; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band::before { content: "BRG"; position: absolute; right: -2vw; bottom: -6vw; font-stretch: 125%; font-weight: 900; font-size: 26vw; line-height: 1; color: rgba(255,255,255,.07); pointer-events: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: #06111D; color: var(--steel-light); padding: clamp(60px, 8vw, 100px) 0 28px; font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.footer h2 { font-size: var(--fs-sm); font-weight: 700; color: #fff; margin-bottom: 18px; }
.footer li + li { margin-top: 10px; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; margin-bottom: 18px; }
.footer p { max-width: 38ch; }
.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.06); transition: background .3s, color .3s; }
.socials a:hover { background: var(--red); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); font-size: var(--fs-xs); }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 80; width: 58px; height: 58px; border-radius: 50%;
  background: #1FAF55; color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(31,175,85,.7); transition: transform .4s var(--ease);
}
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1FAF55; animation: ping 2.6s infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }

/* Preloader */
.preloader { position: fixed; inset: 0; z-index: 500; background: var(--navy); color: #fff; display: grid; place-items: center; transition: clip-path 1s var(--ease); clip-path: inset(0 0 0 0); }
.preloader.done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.preloader .logo-mark { font-size: clamp(3rem, 10vw, 6rem); }
.preloader-bar { width: 160px; height: 2px; background: rgba(255,255,255,.12); margin: 22px auto 0; overflow: hidden; }
.preloader-bar i { display: block; height: 100%; background: var(--red); width: 0; transition: width .3s; }

/* 404 */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.nf .display { font-size: clamp(6rem, 22vw, 16rem); color: #fff; }
.nf p { margin: 10px auto 30px; }

/* Utilities */
.mt-0 { margin-top: 0; } .mt-s { margin-top: 20px; } .mt-m { margin-top: 40px; } .mt-l { margin-top: 72px; }
.center { text-align: center; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.muted { color: var(--text-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv, .rv-img, .rv-img img { opacity: 1; transform: none; clip-path: none; }
  .statement .w { color: var(--text); }
}

/* Sticky wrappers for pinned scroll sequences */
.process.pinned > .process-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.process.pinned > .process-sticky > .wrap { width: 100%; }
.projects-h { overflow-x: clip; }
.projects-h.pin > .ph-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.projects-h.pin .sec-head { margin-bottom: 40px; }
@media (min-width: 960px) { .projects-h.pin { padding: 0; } }
.sec-dark .form .h-lg, .form .h-lg { color: var(--navy); }
.sec-dark .form .form-note, .form .form-note { color: var(--steel); }
.sec-dark .form-msg { color: #178a42; }
