﻿/* ===============================================================
   TEIXEIRA DE FREITAS - V6 DARK CINEMATIC
   Dark base + Light alternating sections
   Dramatic typography + Creative animations
   =============================================================== */

:root {
  --bg:       #0C0B09;
  --bg-alt:   #131210;
  --bg-light: #F0EBE3;
  --bg-light2:#E8E2D8;
  --text:     #F0EBE3;
  --text-d:   #1C1B19;
  --text-mid: #8A8279;
  --text-lt:  #5C564E;
  --accent:   #C4A882;
  --accent-d: #A68E72;
  --white:    #FFFFFF;
  --border:   rgba(240,235,227,.1);
  --border-l: rgba(240,235,227,.06);
  --border-dk:rgba(28,27,25,.08);

  --ff-d: 'Cormorant Garamond', Georgia, serif;
  --ff-b: 'Manrope', system-ui, sans-serif;
  --ease:  cubic-bezier(.16, 1, .3, 1);
  --ease2: cubic-bezier(.76, 0, .24, 1);
  --ease3: cubic-bezier(.22, 1, .36, 1);
  --pad:   clamp(1.25rem, 4vw, 4rem);
  --max:   1480px;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-size: 16px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--ff-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; cursor: none; }
button { border: none; background: none; font: inherit; cursor: none; color: inherit; }
input, textarea, select { font: inherit; cursor: none; }
img { max-width: 100%; display: block; width: 100%; height: 100%; object-fit: cover; }
img[loading] { opacity: 0; transition: opacity .8s var(--ease); }
img.loaded, img:not([loading]) { opacity: 1; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
a:focus:not(:focus-visible), button:focus:not(:focus-visible) { outline: none; }

@media (hover: none) {
  body, a, button, input, textarea, select { cursor: auto; }
  .cursor { display: none !important; }
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.container-wide { max-width: 1780px; margin: 0 auto; padding: 0 var(--pad); }

/* ================================================================
   TYPOGRAPHY - Dramatic scale
   ================================================================ */
h1, h2, h3 { font-family: var(--ff-d); font-weight: 300; line-height: 1.05; }
h1 i, h2 i, h3 i { font-style: italic; }

.line { display: block; overflow: hidden; }
.line__i {
  display: block;
  transform: translateY(115%);
  will-change: transform;
}

.section-title .line__i {
  font-size: clamp(2.6rem, 6vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.section-title--center { text-align: center; }
.section-title i { color: var(--accent); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-b);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.tag::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.tag--light { color: rgba(196,168,130,.7); }
.tag--light::before { background: rgba(196,168,130,.4); }

/* ================================================================
   CURSOR - Inverted blend
   ================================================================ */
.cursor {
  position: fixed; top: 0; left: 0;
  z-index: 99999;
  pointer-events: none;
  mix-blend-mode: difference;
}
.cursor__dot {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: -3px; left: -3px;
}
.cursor__ring {
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  position: absolute;
  top: -24px; left: -24px;
  transition: width .5s var(--ease), height .5s var(--ease), top .5s var(--ease), left .5s var(--ease), background .5s var(--ease), border-color .5s var(--ease);
}
.cursor.active .cursor__ring {
  width: 80px; height: 80px;
  top: -40px; left: -40px;
  background: rgba(196,168,130,.08);
  border-color: rgba(255,255,255,.5);
}
.cursor.active .cursor__dot { opacity: 0; }

/* ================================================================
   LOADER - Cinematic dark
   ================================================================ */
.loader {
  position: fixed; inset: 0;
  z-index: 100000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.loader__inner { text-align: center; }
.loader__logo {
  font-family: var(--ff-d);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 300;
  color: rgba(240,235,227,.2);
  display: block;
  margin-bottom: 2.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.loader__bar {
  width: clamp(120px, 16vw, 180px);
  height: 1px;
  background: rgba(240,235,227,.06);
  margin: 0 auto 1.5rem;
  overflow: hidden;
}
.loader__fill {
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width .1s linear;
}
.loader__pct {
  font-family: var(--ff-d);
  font-size: clamp(5rem, 14vw, 12rem);
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.06em;
  opacity: .12;
}

/* ================================================================
   NAV - Dark glassmorphism
   ================================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.6rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .6s var(--ease);
}
.nav.scrolled {
  background: rgba(12,11,9,.82);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  padding: 1rem var(--pad);
  border-bottom: 1px solid var(--border);
}
.nav.hide { transform: translateY(-120%); }

.nav__logo { display: flex; align-items: center; gap: .6rem; }
.nav__logo-main {
  font-family: var(--ff-d);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text);
  border: 1px solid var(--accent);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: all .4s var(--ease);
  letter-spacing: 0.06em;
}
.nav__logo:hover .nav__logo-main { background: var(--accent); color: var(--bg); }

.nav__links { display: flex; gap: 2.8rem; }
.nav__link {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-mid);
  position: relative;
  transition: color .4s;
  padding: .3rem 0;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .6s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: .7rem 1.6rem;
  border-radius: 80px;
  transition: all .4s var(--ease);
}
.nav__cta:hover { background: var(--text); }
.nav__cta svg { width: 11px; height: 11px; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1001;
}
.nav__burger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--text);
  transition: all .4s var(--ease);
  transform-origin: center;
}
.nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* Mobile Menu */
.mmenu {
  position: fixed; inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  clip-path: circle(0% at calc(100% - 2.5rem) 2.2rem);
  transition: clip-path .9s var(--ease2);
}
.mmenu.open { clip-path: circle(150% at calc(100% - 2.5rem) 2.2rem); }
.mmenu__links { display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.mmenu__link {
  font-family: var(--ff-d);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 300;
  color: var(--text);
  transition: color .3s;
  letter-spacing: -0.02em;
}
.mmenu__link:hover { color: var(--accent); }
.mmenu__bottom { text-align: center; font-size: .7rem; color: var(--text-lt); display: flex; flex-direction: column; gap: .4rem; }
.mmenu__wa { color: var(--accent); font-weight: 600; }

/* ================================================================
   HERO - Full cinematic dark
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bg);
}
.hero__bg {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero__bg-img {
  position: absolute; inset: -10%;
  width: 120%; height: 120%;
  object-fit: cover;
  transform: scale(1.15);
  filter: brightness(.5) contrast(1.1) saturate(.75);
}
.hero__bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(12,11,9,.45) 0%,
    rgba(12,11,9,.1) 30%,
    rgba(12,11,9,.5) 65%,
    rgba(12,11,9,.92) 100%
  );
  z-index: 1;
}
.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  mix-blend-mode: overlay;
  opacity: .45;
}
.hero__content {
  position: relative;
  z-index: 3;
  padding-bottom: clamp(4rem, 9vw, 8rem);
  width: 100%;
}
.hero__top { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.hero__title .line__i {
  font-size: clamp(3.2rem, 8.5vw, 8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--text);
}
.hero__title i {
  color: var(--accent);
  -webkit-text-stroke: 0;
}
/* Outline stroke effect on second line */
.hero__title .line:nth-child(2) .line__i {
  -webkit-text-stroke: 1.2px var(--text);
  color: transparent;
}
.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 3rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}
.hero__desc {
  max-width: 480px;
  font-size: clamp(.78rem, .9vw, .88rem);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(240,235,227,.4);
}
.hero__actions { display: flex; gap: .8rem; flex-shrink: 0; }
.hero__scroll-hint {
  position: absolute;
  bottom: 2rem; right: var(--pad);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}
.hero__scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2.8s ease-in-out infinite;
}
.hero__scroll-hint span {
  font-size: .45rem;
  font-weight: 700;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: rgba(240,235,227,.2);
  writing-mode: vertical-rl;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .15; transform: scaleY(.4); transform-origin: top; }
  50%      { opacity: .8; transform: scaleY(1); }
}
@media (max-width: 768px) {
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .hero__scroll-hint { display: none; }
  .hero__actions { flex-direction: column; width: 100%; }
  .hero__title .line:nth-child(2) .line__i { -webkit-text-stroke-width: .6px; }
}

/* ================================================================
   BUTTONS - Fill from bottom
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--ff-b);
  font-size: .56rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 1rem 2.2rem;
  border: 1px solid var(--border);
  border-radius: 80px;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: color .5s var(--ease), border-color .5s var(--ease);
  white-space: nowrap;
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--accent);
  border-radius: inherit;
  transform: translateY(105%);
  transition: transform .6s var(--ease2);
}
.btn:hover { color: var(--bg); border-color: var(--accent); }
.btn:hover::before { transform: translateY(0); }

.btn--white { border-color: rgba(240,235,227,.2); color: var(--text); }
.btn--white::before { background: var(--text); }
.btn--white:hover { color: var(--bg); border-color: var(--text); }

.btn--outline-w { border-color: rgba(240,235,227,.12); color: rgba(240,235,227,.5); }
.btn--outline-w::before { background: rgba(240,235,227,.08); }
.btn--outline-w:hover { color: var(--text); border-color: rgba(240,235,227,.25); }

.btn--accent { border-color: var(--accent); color: var(--bg); background: var(--accent); }
.btn--accent::before { background: var(--text); }
.btn--accent:hover { color: var(--bg); }

.btn--accent-dk { border-color: var(--accent-d); color: var(--bg-light); background: var(--accent-d); }
.btn--accent-dk::before { background: var(--text-d); }
.btn--accent-dk:hover { color: var(--bg-light); }

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

.btn--dark { border-color: rgba(28,27,25,.15); color: var(--text-d); }
.btn--dark::before { background: var(--accent); }
.btn--dark:hover { color: var(--bg); }

/* ================================================================
   INTRO - Light section (contrast with dark)
   ================================================================ */
.intro {
  background: var(--bg-light);
  color: var(--text-d);
  padding: clamp(8rem, 16vw, 16rem) 0 clamp(6rem, 12vw, 12rem);
  position: relative;
}
.intro__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(4rem, 8vw, 10rem);
  align-items: center;
}
.intro__text { max-width: 520px; }
.intro .section-title .line__i { color: var(--text-d); }
.intro .section-title i { color: var(--accent-d); }
.intro .tag { color: var(--accent-d); }
.intro .tag::before { background: var(--accent-d); }
.intro__body {
  font-size: clamp(.82rem, .9vw, .9rem);
  font-weight: 300;
  line-height: 1.95;
  color: rgba(28,27,25,.5);
  margin-top: 1rem;
}
.intro__visual { position: relative; }
.intro__img { overflow: hidden; border-radius: 2px; }
.intro__img img {
  transform: scale(1.2);
  transition: transform 2s var(--ease);
}
.intro__img.visible img { transform: scale(1); }
.intro__img--main { aspect-ratio: 3/4; width: 82%; }
.intro__img--accent {
  position: absolute;
  bottom: -4rem; right: -1rem;
  width: 52%;
  aspect-ratio: 4/3;
  box-shadow: 0 30px 80px rgba(28,27,25,.2);
  border: 6px solid var(--bg-light);
}
@media (max-width: 768px) {
  .intro__grid { grid-template-columns: 1fr; }
  .intro__img--accent { position: relative; bottom: auto; right: auto; margin-top: 1rem; width: 65%; margin-left: auto; }
}

/* ================================================================
   STATS - Dark dramatic counters
   ================================================================ */
.stats {
  background: var(--bg);
  padding: clamp(5rem, 9vw, 8rem) 0;
  overflow: hidden;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  text-align: center;
  padding: clamp(2rem, 3vw, 3rem);
  position: relative;
}
.stat::after {
  content: '';
  position: absolute;
  right: 0; top: 20%;
  width: 1px; height: 60%;
  background: var(--border);
}
.stat:last-child::after { display: none; }
.stat__num {
  font-family: var(--ff-d);
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: .9;
  color: var(--text);
  letter-spacing: -0.05em;
  display: inline;
}
.stat__suf {
  font-family: var(--ff-d);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--accent);
  vertical-align: super;
}
.stat__label {
  display: block;
  margin-top: 1rem;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-lt);
  line-height: 1.6;
  letter-spacing: 0.04em;
}
@media (max-width: 600px) {
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2)::after { display: none; }
}

/* ================================================================
   MARQUEE - Kinetic typography band
   ================================================================ */
.marquee {
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.marquee--light {
  background: var(--bg-light);
  border-color: rgba(28,27,25,.08);
}
.marquee--reverse { border-top: none; }
.marquee__track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  white-space: nowrap;
  animation: marqueeScroll 40s linear infinite;
  width: max-content;
}
.marquee--reverse .marquee__track {
  animation-direction: reverse;
  animation-duration: 45s;
}
.marquee__item {
  font-family: var(--ff-d);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text);
  letter-spacing: -0.03em;
  opacity: .2;
  transition: opacity .5s;
}
.marquee--light .marquee__item { color: var(--text-d); opacity: .12; }
.marquee__sep {
  font-size: clamp(.5rem, .8vw, .7rem);
  color: var(--accent);
  opacity: .35;
}
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================================================================
   CASES — Portfolio Grid + Swiper Carousels
   ================================================================ */
.cases {
  background: var(--bg-light);
  color: var(--text-d);
  padding: clamp(6rem, 12vw, 10rem) 0 clamp(4rem, 8vw, 6rem);
  position: relative;
}
.cases__header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.cases .section-title .line__i { color: var(--text-d); }
.cases .section-title i { color: var(--accent-d); }
.cases .tag { color: var(--accent-d); }
.cases .tag::before { background: var(--accent-d); }
.cases__grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2.5vw;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(12px, 1.5vw, 20px);
}
.cases__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.cases__item .swiper {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.cases__item .swiper-slide {
  aspect-ratio: 1080 / 1350;
  overflow: hidden;
  cursor: grab;
}
.cases__item .swiper-slide:active { cursor: grabbing; }
.cases__item .swiper-slide img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.cases__item .swiper-slide:hover img {
  transform: scale(1.03);
}
.cases__item .swiper-pagination {
  top: clamp(12px, 1.5vw, 20px) !important;
  bottom: auto !important;
  display: flex;
  justify-content: center;
  gap: 4px;
}
.cases__item .swiper-pagination-bullet {
  width: clamp(30px, 5vw, 60px);
  height: 3px;
  background: #fff;
  border-radius: 3px;
  opacity: .3;
  transition: opacity .5s;
}
.cases__item .swiper-pagination-bullet-active { opacity: 1; }

/* Glassmorphism navigation arrows */
.cases__arrows {
  z-index: 10;
  position: absolute;
  bottom: clamp(12px, 1.5vw, 20px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  column-gap: clamp(8px, 1vw, 14px);
}
.cases__arrow {
  width: clamp(40px, 5vw, 60px);
  height: clamp(40px, 5vw, 60px);
  background: rgba(0, 0, 0, .22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  cursor: pointer;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.cases__arrow:hover { background: rgba(0, 0, 0, .45); transform: scale(1.08); }
.cases__arrow svg { width: 35%; height: auto; }
.cases__arrow--prev svg { transform: rotate(180deg); }

/* Title + Link below card */
.cases__title {
  font-family: var(--ff-d);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 300;
  color: var(--text-d);
  margin-top: clamp(.6rem, 1vw, .8rem);
  letter-spacing: -0.02em;
  user-select: none;
}
.cases__title em { color: var(--accent-d); font-style: italic; }
.cases__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: clamp(.35rem, .6vw, .5rem);
  font-family: var(--ff-d);
  font-size: clamp(.72rem, .85vw, .82rem);
  color: rgba(28,27,25,.45);
  transition: color .4s;
}
.cases__link:hover { color: var(--text-d); }
.cases__link-arrow {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(28,27,25,.15);
  transition: border-color .4s, background .4s;
}
.cases__link:hover .cases__link-arrow {
  border-color: var(--accent-d);
  background: rgba(166,142,114,.08);
}
@media (max-width: 640px) {
  .cases__grid { grid-template-columns: 1fr; }
}

/* ================================================================
   PROJECT SECTIONS - Cinematic immersive
   ================================================================ */
.project { position: relative; }
.project--alt { background: var(--bg-light); color: var(--text-d); }

/* Project Hero */
.project__hero {
  position: relative;
  height: 85vh;
  overflow: hidden;
}
.project__hero-bg {
  position: absolute; inset: -5%;
  width: 110%; height: 110%;
}
.project__hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.45) saturate(.8);
  transform: scale(1.1);
  transition: transform 2s var(--ease);
}
.project__hero-bg.visible img { transform: scale(1); }
.project__hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(12,11,9,.2) 0%,
    rgba(12,11,9,.05) 40%,
    rgba(12,11,9,.85) 100%
  );
  z-index: 1;
}
.project__hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(3rem, 7vw, 6rem);
}
.project__title .line__i {
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}
.project__title i { color: var(--accent); }
.project__hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: 1.8rem;
}
.badge {
  font-size: .48rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .45rem 1.1rem;
  border-radius: 80px;
  border: 1px solid rgba(240,235,227,.12);
  color: rgba(240,235,227,.5);
  backdrop-filter: blur(8px);
}
.badge--light { border-color: rgba(240,235,227,.12); color: rgba(240,235,227,.5); }

/* Project Overview */
.project__overview {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(4rem, 8vw, 8rem);
  align-items: start;
  padding: clamp(6rem, 12vw, 10rem) 0;
}
.project__overview-left { position: sticky; top: 8rem; }
.project__subtitle .line { display: block; overflow: hidden; }
.project__subtitle .line__i {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.project--alt .project__subtitle .line__i { color: var(--text-d); }
.project--alt .section-title .line__i { color: var(--text-d); }
.project--alt .tag { color: var(--accent-d); }
.project--alt .tag::before { background: var(--accent-d); }

.project__overview-right p {
  font-size: clamp(.82rem, .9vw, .9rem);
  font-weight: 300;
  line-height: 2;
  color: var(--text-mid);
  margin-bottom: 1.3rem;
}
.project--alt .project__overview-right p { color: rgba(28,27,25,.45); }
.project__overview-right strong { color: var(--text); font-weight: 600; }
.project--alt .project__overview-right strong { color: var(--text-d); }
@media (max-width: 768px) {
  .project__overview { grid-template-columns: 1fr; }
  .project__overview-left { position: static; }
}

/* Image Grid */
.project__gallery { padding-bottom: clamp(4rem, 8vw, 7rem); }
.pgrid { display: grid; gap: clamp(.5rem, 1vw, .8rem); }
.pgrid--3 { grid-template-columns: 1.5fr .5fr; grid-template-rows: auto auto; }
.pgrid--4 { grid-template-columns: 1.5fr 1fr; grid-template-rows: auto auto; }
.pgrid__item {
  position: relative;
  overflow: hidden;
  cursor: none;
  border-radius: 2px;
}
.pgrid__item img {
  transform: scale(1.2);
  transition: transform 1.8s var(--ease);
  will-change: transform;
  filter: brightness(.82) saturate(.85);
}
.pgrid__item.visible img { transform: scale(1.02); filter: brightness(.92) saturate(.9); }
.pgrid__item:hover img { transform: scale(1); filter: brightness(1) saturate(1); }
.pgrid__item--wide { grid-column: 1; grid-row: 1 / 3; }
.pgrid__item--hero { grid-column: 1; grid-row: 1 / 3; }
.pgrid__item--wide,
.pgrid__item--hero { min-height: clamp(320px, 55vw, 600px); }
.pgrid__item:not(.pgrid__item--wide):not(.pgrid__item--hero) { aspect-ratio: 4/3; }
.pgrid__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem;
  font-size: .6rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: rgba(240,235,227,.7);
  background: linear-gradient(transparent, rgba(12,11,9,.7));
  opacity: 0;
  transform: translateY(100%);
  transition: all .6s var(--ease);
}
.pgrid__item:hover .pgrid__caption { opacity: 1; transform: translateY(0); }
@media (max-width: 640px) {
  .pgrid--3, .pgrid--4 { grid-template-columns: 1fr; }
  .pgrid__item--wide, .pgrid__item--hero { grid-column: auto; grid-row: auto; min-height: 260px; }
}

/* Feature Cards - Minimal dark */
.project__features { padding: clamp(5rem, 10vw, 8rem) 0; }
.project__features-head { max-width: 550px; margin-bottom: clamp(3rem, 6vw, 5rem); }
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(.6rem, 1vw, .8rem); }
.fcard {
  padding: clamp(2rem, 3vw, 2.8rem);
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: all .6s var(--ease);
  position: relative;
  overflow: hidden;
  background: rgba(240,235,227,.015);
}
.project--alt .fcard { border-color: rgba(28,27,25,.08); background: rgba(255,255,255,.5); }
.fcard::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease);
}
.fcard:hover { border-color: var(--accent); }
.fcard:hover::after { transform: scaleX(1); }
.fcard__icon { width: 28px; height: 28px; color: var(--accent); margin-bottom: 1.2rem; opacity: .7; }
.fcard__icon svg { width: 100%; height: 100%; }
.fcard__title {
  font-family: var(--ff-b);
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: .4rem;
}
.project--alt .fcard__title { color: var(--text-d); }
.fcard__desc {
  font-size: .7rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-mid);
}
.project--alt .fcard__desc { color: rgba(28,27,25,.45); }
@media (max-width: 900px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .fgrid { grid-template-columns: 1fr; } }

/* Location */
.project__location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
  padding: clamp(5rem, 10vw, 8rem) 0;
  border-top: 1px solid var(--border);
}
.project--alt .project__location { border-color: rgba(28,27,25,.06); }
.project__location-left p {
  font-size: clamp(.82rem, .9vw, .9rem);
  font-weight: 300;
  line-height: 2;
  color: var(--text-mid);
  margin-top: 1rem;
}
.project--alt .project__location-left p { color: rgba(28,27,25,.45); }
.project__reg {
  display: block;
  margin-top: 1rem;
  font-size: .6rem;
  color: var(--text-lt);
  font-style: italic;
}
.prox-list { display: flex; flex-direction: column; gap: .3rem; }
.prox {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  transition: all .4s var(--ease);
}
.project--alt .prox { border-color: rgba(28,27,25,.06); }
.prox:hover { border-color: var(--accent); background: rgba(196,168,130,.04); }
.project--alt .prox:hover { border-color: var(--accent-d); background: rgba(166,142,114,.04); }
.prox__icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.prox__icon svg { width: 100%; height: 100%; }
.prox strong { display: block; font-size: .72rem; font-weight: 600; }
.project--alt .prox strong { color: var(--text-d); }
.prox span { font-size: .6rem; color: var(--text-lt); }
.project--alt .prox span { color: rgba(28,27,25,.35); }
@media (max-width: 768px) { .project__location { grid-template-columns: 1fr; } }

/* Full-width Image */
.project__fullimg { padding: 0 var(--pad); }
.project__fullimg-wrap {
  overflow: hidden;
  height: clamp(300px, 50vw, 560px);
  width: 100%;
  border-radius: 2px;
}
.project__fullimg-wrap img {
  transform: scale(1.15);
  filter: brightness(.75) saturate(.8);
  transition: transform 2s var(--ease), filter 2s var(--ease);
}
.project__fullimg-wrap.visible img { transform: scale(1); filter: brightness(.92) saturate(.9); }

/* Project CTA */
.project__cta { padding: clamp(4rem, 8vw, 6rem) 0; }
.project__cta-inner {
  text-align: center;
  padding: clamp(3.5rem, 6vw, 6rem);
  background: rgba(240,235,227,.03);
  border: 1px solid var(--border);
  border-radius: 3px;
}
.project--alt .project__cta-inner { background: var(--white); border-color: rgba(28,27,25,.06); }
.project__cta-inner h3 {
  font-family: var(--ff-d);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 300;
  margin-bottom: .8rem;
  letter-spacing: -0.02em;
}
.project--alt .project__cta-inner h3 { color: var(--text-d); }
.project__cta-inner p {
  font-size: .78rem;
  font-weight: 300;
  color: var(--text-mid);
  max-width: 460px;
  margin: 0 auto 2.2rem;
  line-height: 1.75;
}
.project--alt .project__cta-inner p { color: rgba(28,27,25,.45); }

/* Typologies */
.project__types { padding: clamp(5rem, 10vw, 8rem) 0; border-top: 1px solid var(--border); }
.project--alt .project__types { border-color: rgba(28,27,25,.06); }
.project__types-head { max-width: 560px; margin-bottom: clamp(3rem, 6vw, 4rem); }
.project__types-head p { font-size: clamp(.82rem, .9vw, .9rem); font-weight: 300; line-height: 2; color: var(--text-mid); margin-top: 1rem; }
.project--alt .project__types-head p { color: rgba(28,27,25,.45); }
.types-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.6rem, 1vw, .8rem); }
.type {
  padding: clamp(1.8rem, 2.5vw, 2.5rem);
  border: 1px solid rgba(28,27,25,.08);
  border-radius: 3px;
  transition: all .5s var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--white);
}
.type:hover { border-color: var(--accent-d); transform: translateY(-6px); box-shadow: 0 20px 60px rgba(28,27,25,.08); }
.type--featured { border-color: var(--accent-d); background: linear-gradient(135deg, rgba(196,168,130,.06), var(--white)); }
.type__badge {
  position: absolute;
  top: .8rem; right: .8rem;
  font-size: .42rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--accent-d);
  color: var(--white);
  padding: .25rem .6rem;
  border-radius: 80px;
}
.type__top { margin-bottom: 1.2rem; }
.type__area {
  font-family: var(--ff-d);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--accent-d);
  line-height: .9;
  letter-spacing: -0.03em;
}
.type__area small { font-size: .35em; color: rgba(28,27,25,.3); }
.type__unit { font-size: .7rem; font-weight: 300; color: rgba(28,27,25,.35); margin-left: .15rem; }
.type__details { flex: 1; margin-bottom: 1.5rem; }
.type__row {
  display: flex; justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid rgba(28,27,25,.05);
  font-size: .66rem;
}
.type__row span:first-child { color: rgba(28,27,25,.4); }
.type__row span:last-child { font-weight: 600; color: var(--text-d); }
.type__cta {
  display: block; font-size: .56rem; font-weight: 700; letter-spacing: .1em;
  color: var(--accent-d); text-transform: uppercase;
  transition: all .3s;
}
.type__cta:hover { letter-spacing: .14em; }
@media (max-width: 900px) { .types-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .types-grid { grid-template-columns: 1fr; } }

/* Divider */
.divider { padding: 0; background: var(--bg); }
.divider__line { height: 1px; background: var(--border); }

/* ================================================================
   ABOUT - Dark section
   ================================================================ */
.about {
  padding: clamp(8rem, 16vw, 14rem) 0;
  background: var(--bg);
}
.about__header { text-align: center; margin-bottom: clamp(4rem, 8vw, 7rem); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 7rem);
  align-items: start;
}
.about__img {
  overflow: hidden;
  aspect-ratio: 3/4;
  position: sticky;
  top: 6rem;
  border-radius: 2px;
}
.about__img img {
  transform: scale(1.15);
  filter: brightness(.65) saturate(.75);
  transition: all 2s var(--ease);
}
.about__img.visible img { transform: scale(1); filter: brightness(.85) saturate(.85); }
.about__content { display: flex; flex-direction: column; gap: 3rem; padding-top: 2rem; }
.about__block h4 {
  font-family: var(--ff-d);
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: .6rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.about__block p {
  font-size: clamp(.8rem, .88vw, .88rem);
  font-weight: 300;
  line-height: 2;
  color: var(--text-mid);
}
@media (max-width: 768px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__img { position: static; aspect-ratio: 16/10; }
}

/* ================================================================
   REASONS - Subtle dark alt
   ================================================================ */
.reasons {
  padding: clamp(6rem, 12vw, 10rem) 0;
  background: var(--bg-alt);
}
.reasons__header { margin-bottom: clamp(3rem, 6vw, 5rem); }
.reasons__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.reason {
  padding: clamp(2.2rem, 3.5vw, 3.5rem);
  border: 1px solid var(--border);
  margin-right: -1px;
  margin-bottom: -1px;
  transition: all .5s var(--ease);
  position: relative;
}
.reason::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 0;
  background: rgba(196,168,130,.03);
  transition: height .6s var(--ease);
}
.reason:hover::before { height: 100%; }
.reason:hover { border-color: var(--accent); z-index: 1; }
.reason__num {
  font-family: var(--ff-d);
  font-size: 3.5rem;
  font-weight: 300;
  -webkit-text-stroke: 1px rgba(196,168,130,.25);
  color: transparent;
  display: block;
  margin-bottom: .6rem;
  line-height: .9;
}
.reason__title {
  font-family: var(--ff-b);
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--text);
  position: relative;
}
.reason p {
  font-size: .7rem;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-mid);
  position: relative;
}
@media (max-width: 768px) { .reasons__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .reasons__grid { grid-template-columns: 1fr; } }

/* ================================================================
   FINAL CTA - Cinematic parallax
   ================================================================ */
.final-cta {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.final-cta__bg { position: absolute; inset: -10%; width: 120%; height: 120%; }
.final-cta__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.3) saturate(.65);
}
.final-cta__overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(12,11,9,.25), rgba(12,11,9,.7));
}
.final-cta__content {
  position: relative;
  z-index: 1;
  padding: clamp(4rem, 8vw, 7rem) var(--pad);
}
.final-cta__title .line__i {
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text);
}
.final-cta__title i { color: var(--accent); }
.final-cta__content > p {
  font-size: clamp(.78rem, .88vw, .88rem);
  font-weight: 300;
  color: rgba(240,235,227,.3);
  max-width: 520px;
  margin: 2rem auto 0;
  line-height: 1.9;
}
.final-cta__actions {
  display: flex;
  gap: .8rem;
  justify-content: center;
  margin-top: 3rem;
}
@media (max-width: 600px) { .final-cta__actions { flex-direction: column; align-items: center; } }

/* ================================================================
   CONTACT - Light section
   ================================================================ */
.contact {
  padding: clamp(7rem, 12vw, 10rem) 0;
  background: var(--bg-light);
  color: var(--text-d);
}
.contact__header { text-align: center; margin-bottom: clamp(3rem, 6vw, 5rem); }
.contact .section-title .line__i { color: var(--text-d); }
.contact .section-title i { color: var(--accent-d); }
.contact .tag { color: var(--accent-d); }
.contact .tag::before { background: var(--accent-d); }
.contact__sub {
  font-size: clamp(.8rem, .9vw, .88rem);
  font-weight: 300;
  color: rgba(28,27,25,.45);
  max-width: 500px;
  margin: 1.2rem auto 0;
  line-height: 1.8;
}
.contact__grid {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(3rem, 7vw, 8rem);
  align-items: start;
}
.contact__info { display: flex; flex-direction: column; gap: 1.6rem; }
.cinfo__label {
  display: block;
  font-size: .48rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-d);
  margin-bottom: .3rem;
}
.cinfo p, .cinfo a {
  font-size: .78rem;
  font-weight: 300;
  color: rgba(28,27,25,.5);
  line-height: 1.75;
  transition: color .3s;
}
.cinfo a:hover { color: var(--text-d); }
@media (max-width: 768px) { .contact__grid { grid-template-columns: 1fr; } }

/* Form */
.contact__form form { display: flex; flex-direction: column; gap: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .field-row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: .48rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(28,27,25,.3);
  margin-bottom: .5rem;
  transition: color .4s;
}
.field label small { font-weight: 400; text-transform: none; letter-spacing: 0; }
.field:focus-within label { color: var(--accent-d); }
.field input, .field select, .field textarea {
  width: 100%;
  background: transparent;
  border: none; outline: none;
  font-size: .82rem;
  font-weight: 300;
  color: var(--text-d);
  padding: .5rem 0;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(28,27,25,.2); }
.field textarea { resize: none; min-height: 60px; }
.field select { -webkit-appearance: none; appearance: none; }
.field select option { background: var(--bg-light); color: var(--text-d); }
.field__line {
  height: 1px;
  background: rgba(28,27,25,.1);
  position: relative;
  overflow: hidden;
}
.field__line::after {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 0; height: 100%;
  background: var(--accent-d);
  transition: width .6s var(--ease);
}
.field:focus-within .field__line::after { width: 100%; }

/* ================================================================
   FOOTER - Dark minimal
   ================================================================ */
.footer {
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.footer__logo { font-family: var(--ff-d); font-size: 1.2rem; font-weight: 300; color: var(--text); letter-spacing: .1em; }
.footer__tagline { display: block; font-size: .52rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-top: .15rem; }
.footer__about { font-size: .72rem; font-weight: 300; color: var(--text-lt); line-height: 1.8; margin-top: 1rem; max-width: 340px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer__col { display: flex; flex-direction: column; gap: .4rem; }
.footer__col-title { font-size: .45rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: .5rem; }
.footer__col a, .footer__addr { font-size: .72rem; font-weight: 300; color: var(--text-lt); transition: color .3s; line-height: 1.6; }
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem; font-size: .52rem; color: var(--text-lt);
}
.footer__bottom a { color: var(--accent); transition: opacity .3s; }
.footer__bottom a:hover { opacity: .6; }
@media (max-width: 768px) {
  .footer__top { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

/* WhatsApp FAB */
.wafab {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 998;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,.3);
  transition: transform .5s var(--ease), box-shadow .4s;
}
.wafab:hover { transform: scale(1.12); box-shadow: 0 8px 32px rgba(37,211,102,.4); }

/* ================================================================
   ANIMATIONS - Dramatic reveals
   ================================================================ */
.anim-fade {
  opacity: 0;
  transform: translateY(50px);
  will-change: opacity, transform;
}
.anim-fade.visible {
  opacity: 1; transform: translateY(0);
  transition: opacity 1.1s var(--ease3), transform 1.1s var(--ease3);
}
.anim-text {
  opacity: 0; transform: translateY(15px);
  will-change: opacity, transform;
}
.anim-text.visible {
  opacity: 1; transform: translateY(0);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.anim-reveal {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.6s var(--ease2);
}
.anim-reveal.visible { clip-path: inset(0 0 0 0); }
.anim-reveal.visible img { transform: scale(1) !important; }
.anim-reveal-full {
  clip-path: inset(20% 5% 20% 5%);
  transition: clip-path 1.8s var(--ease2);
}
.anim-reveal-full.visible { clip-path: inset(0 0 0 0); }
.anim-reveal-full.visible img { transform: scale(1) !important; }

/* Grain texture overlay */
body::after {
  content: '';
  position: fixed; inset: 0;
  z-index: 99998;
  pointer-events: none;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}
