/* ============================================
   AF GOUVEIA ENGENHARIA — Premium Real Estate
   Design system: light + navy accent + gold
   ============================================ */

:root {
  /* === USER-SPECIFIED PALETTE === */
  --bg:           #E8E0D3;
  --card:         #E7EDF1;
  --navy:         #0B1F3A;
  --navy-2:       #112748;
  --gold:         #C9A45C;
  --gold-deep:    #A88248;
  --gold-light:   #D8B97A;
  --text:         #1E1E1E;
  --text-muted:   #5A5A5A;
  --text-light:   #888888;
  --border:       #C9D2D8;
  --border-soft:  #DDE3E7;
  --icon-blue:    #2E5A7D;
  --white:        #FFFFFF;

  /* On-dark (for navy header/footer) */
  --on-dark:      #F0EAE0;
  --on-dark-muted: rgba(232, 224, 211, 0.65);
  --line-dark:    rgba(232, 224, 211, 0.12);
  --line-dark-strong: rgba(232, 224, 211, 0.22);

  /* === LEGACY ALIASES (keep existing code working) === */
  --black:        var(--bg);
  --black-2:      var(--card);
  --ink:          var(--card);
  --smoke:        var(--card);
  --line:         var(--border);
  --line-strong:  rgba(11, 31, 58, 0.20);
  --offwhite:     var(--text);
  --bone:         var(--text-muted);
  --muted:        var(--text-muted);
  --muted-2:      var(--text-light);
  --gold-bright:  var(--gold-light);

  --ff-display:   'Italiana', 'Crimson Pro', Georgia, serif;
  --ff-serif:     'Crimson Pro', Georgia, 'Times New Roman', serif;
  --ff-body:      'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-mono:      'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --ease:         cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --dur:          0.6s;

  --max:          1440px;
  --gutter:       clamp(16px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle noise overlay */


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

/* ============================================
   TYPOGRAPHY
   ============================================ */

.gold { color: var(--gold); }
.italic { font-style: italic; font-family: var(--ff-serif); }

.eyebrow {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow__mark {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.section-label {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
  padding-left: 20px;
  position: relative;
}
.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 12px;
  height: 1px;
  background: var(--gold);
}
.section-label--gold { color: var(--gold); }
.section-label--gold::before { background: var(--gold); }
.section-label__num {
  color: var(--gold);
  font-weight: 500;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn__arrow {
  display: inline-block;
  transition: transform 0.4s var(--ease);
}
.btn:hover .btn__arrow { transform: translateX(5px); }

.btn--primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  letter-spacing: 0.18em;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--offwhite);
  background: transparent;
}
.btn--ghost:hover {
  background: var(--black);
  color: var(--on-dark);
}

/* Ghost on dark backgrounds (hero/nav) */
.btn--ghost-light {
  border-color: rgba(245, 241, 232, 0.55);
  color: var(--on-dark);
  background: rgba(11, 31, 58, 0.25);
  backdrop-filter: blur(2px);
}
.btn--ghost-light:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--navy);
  letter-spacing: 0.18em;
}

/* ============================================
   NAV
   ============================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  background: var(--navy);
  transition: all 0.4s var(--ease);
  border-bottom: 1px solid var(--line-dark);
}
.nav.is-scrolled {
  background: rgba(11, 31, 58, 0.97);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border-bottom-color: var(--line-dark-strong);
  padding: 14px var(--gutter);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.nav__logo { display: block; }

.logo-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 6px;
  border: 1px dashed var(--gold);
  background: rgba(26, 34, 56, 0.3);
  transition: all 0.3s var(--ease);
}
.logo-placeholder:hover { border-color: var(--gold-bright); }
.logo-placeholder__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--ff-display);
  font-size: 14px;
  letter-spacing: 0.05em;
}
.logo-placeholder__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-placeholder__name {
  font-family: var(--ff-display);
  font-size: 14px;
  letter-spacing: 0.15em;
  color: var(--offwhite);
}
.logo-placeholder__sub {
  font-family: var(--ff-mono);
  font-size: 7px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-top: 4px;
}

/* Real logo (PNG, transparent background) */
.site-logo {
  height: 100px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 0.3s var(--ease), height 0.3s var(--ease);
}
.site-logo--footer {
  height: 130px;
}
.site-logo:hover { opacity: 0.85; }

.nav.is-scrolled .site-logo { height: 76px; }

.nav__links {
  display: flex;
  gap: 36px;
  justify-content: center;
}
.nav__link {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark);
  padding: 10px 0;
  position: relative;
  transition: color 0.3s var(--ease);
  border-top: 1px solid transparent;
}
.nav__link::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  width: 0;
  height: 1px;
  background: var(--offwhite);
  transition: all 0.4s var(--ease);
  transform: translateX(-50%);
  opacity: 0;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover { color: var(--gold); }
.nav__link:hover::before {
  width: 16px;
  opacity: 1;
}
.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.nav__lang-btn {
  color: var(--on-dark-muted);
  padding: 4px 2px;
  transition: color 0.3s var(--ease);
}
.nav__lang-btn.is-active {
  color: var(--gold);
  font-weight: 600;
}
.nav__lang-btn:hover { color: var(--gold-light); }
.nav__lang-sep { color: var(--muted-2); }

.nav__cta { padding: 12px 22px; }

/* Nav badge (em breve) */
.nav__link--badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav__badge {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  padding: 2px 6px;
  background: var(--gold);
  color: var(--black);
  border-radius: 2px;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.2;
  transform: translateY(-1px);
}

.mobile-menu__badge {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  padding: 3px 8px;
  background: var(--gold);
  color: var(--black);
  border-radius: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-left: 8px;
  align-self: center;
  white-space: nowrap;
  line-height: 1.3;
}

.nav__burger {
  display: none;
  width: 28px;
  height: 20px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}
.nav__burger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--offwhite);
  transition: all 0.4s var(--ease);
  transform-origin: center;
}
.nav__burger.is-open span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--navy);
  padding: 100px var(--gutter) 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: all 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu__link {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--ff-display);
  font-size: clamp(32px, 8vw, 48px);
  letter-spacing: 0.02em;
  color: var(--on-dark);
  transition: color 0.3s var(--ease);
  line-height: 1;
}
.mobile-menu__link:hover { color: var(--gold); }
.mobile-menu__num {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--gold);
  min-width: 36px;
  align-self: center;
}
.mobile-menu__footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.mobile-menu__meta {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px var(--gutter) 140px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: kenburns 20s var(--ease-out) infinite alternate;
}
@keyframes kenburns {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.08) translateY(-1.5%); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.40) 0%, rgba(0, 0, 0, 0.0) 65%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  color: var(--on-dark);
}

.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 28px 0 32px;
  max-width: 900px;
  color: var(--on-dark);
}
.hero__title span {
  display: block;
}
.reveal--gold { color: var(--gold); }

.hero__lead {
  font-family: var(--ff-serif);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: rgba(240, 234, 224, 0.92);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 2;
}
.hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: var(--gold);
  animation: scroll-pulse 2s var(--ease-out) infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.4); opacity: 0.5; transform-origin: top; }
}
.hero__scroll-text {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--on-dark-muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero__caption {
  position: absolute;
  left: var(--gutter);
  bottom: 32px;
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--on-dark-muted);
  z-index: 2;
}

/* ============================================
   STATS BAR
   ============================================ */

.stats {
  background: var(--navy);
  border-top: none;
  border-bottom: none;
  padding: 48px var(--gutter);
}
.stats__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0;
  position: relative;
}
.stat__num-wrap {
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}
.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--line-dark);
}
.stat__num {
  font-family: var(--ff-display);
  font-size: clamp(56px, 6vw, 88px);
  line-height: 1;
  color: var(--gold);
  letter-spacing: 0.02em;
  display: inline-block;
}
.stat__num small {
  font-size: 0.55em;
  margin-left: 3px;
  vertical-align: top;
  position: relative;
  top: 0.15em;
}
.stat__plus {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  color: var(--gold);
  margin-left: 4px;
  display: inline-block;
}
.stat__label {
  margin-top: 10px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

/* ============================================
   ABOUT
   ============================================ */

.about {
  padding: 140px var(--gutter);
  background: var(--bg);
  position: relative;
}
.about::before {
  content: '';
  position: absolute;
  top: 80px; right: var(--gutter);
  width: 1px; height: 60px;
  background: var(--gold);
}

.about__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

.about__title {
  font-family: var(--ff-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--offwhite);
}

.about__lead {
  font-family: var(--ff-serif);
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.5;
  color: var(--offwhite);
  margin-bottom: 24px;
}
.about__body {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 48px;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}
.about__item {
  padding: 28px;
  background: var(--white);
  transition:
    background 0.45s var(--ease),
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
  position: relative;
  cursor: default;
}
.about__item:hover {
  background: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(11, 31, 58, 0.18);
  z-index: 2;
}
.about__item-num {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 16px;
  transition: color 0.45s var(--ease);
}
.about__item:hover .about__item-num {
  color: var(--navy);
}
.about__item h3 {
  font-family: var(--ff-display);
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--navy);
  margin-bottom: 8px;
  font-weight: 400;
  transition: color 0.45s var(--ease);
}
.about__item p {
  font-size: 14px;
  color: var(--bone);
  line-height: 1.5;
  transition: color 0.45s var(--ease);
}
.about__item:hover p {
  color: var(--navy);
}

/* ============================================
   SERVICES
   ============================================ */

.services {
  padding: 140px var(--gutter);
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.services__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.services__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 64px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.services__title {
  font-family: var(--ff-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  color: var(--offwhite);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-soft);
  border: 1px solid var(--border-soft);
}

.service {
  padding: 40px 32px;
  background: var(--white);
  position: relative;
  transition: all 0.5s var(--ease);
  cursor: pointer;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}
.service:hover {
  background: var(--black);
}
.service::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.service:hover::before { transform: scaleX(1); }

.service__num {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 24px;
}
.service__title {
  font-family: var(--ff-display);
  font-size: clamp(22px, 1.8vw, 28px);
  letter-spacing: 0.02em;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 16px;
  transition: color 0.4s var(--ease);
}
.service:hover .service__title { color: var(--gold); }

.service__desc {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
}
.service__arrow {
  position: absolute;
  bottom: 32px;
  right: 32px;
  font-family: var(--ff-mono);
  color: var(--gold);
  font-size: 20px;
  transition: transform 0.4s var(--ease);
  opacity: 0.5;
}
.service:hover .service__arrow {
  transform: translateX(8px);
  opacity: 1;
}

/* ============================================
   PORTFOLIO
   ============================================ */

.portfolio {
  padding: 140px var(--gutter);
  background: var(--bg);
}
.portfolio__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.portfolio__header { margin-bottom: 64px; max-width: 720px; }
.portfolio__title {
  font-family: var(--ff-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  margin-bottom: 24px;
  color: var(--offwhite);
}
.portfolio__intro {
  font-family: var(--ff-serif);
  font-size: clamp(16px, 1.3vw, 20px);
  color: var(--text-muted);
  line-height: 1.5;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project {
  grid-column: span 1;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  position: relative;
  transition: transform 0.6s var(--ease);
  border: 1px solid var(--border);
}
.project--feature {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
}
.project:hover { transform: translateY(-4px); }

.project__media {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}
.project--feature .project__media { aspect-ratio: auto; min-height: 460px; }

.project__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
  filter: brightness(0.92);
}
.project:hover .project__media img {
  transform: scale(1.06);
  filter: brightness(1);
}

.project__info {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.project--feature .project__info {
  padding: 48px;
  justify-content: center;
  background: var(--card);
  border-left: 1px solid var(--border);
}

.project__num {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 12px;
}
.project__title {
  font-family: var(--ff-display);
  font-size: clamp(20px, 1.6vw, 28px);
  letter-spacing: 0.02em;
  font-weight: 400;
  color: var(--navy);
  margin-bottom: 8px;
}
.project--feature .project__title {
  font-size: clamp(32px, 3vw, 48px);
  margin-bottom: 20px;
}
.project__meta {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.project__desc {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 400px;
}

/* ============================================
   WORKS (em execução)
   ============================================ */

.works {
  padding: 140px var(--gutter);
  background: var(--white);
  border-top: 1px solid var(--border);
}
.works__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.works__header {
  margin-bottom: 56px;
  max-width: 640px;
}
.works__title {
  font-family: var(--ff-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  margin-bottom: 20px;
  color: var(--offwhite);
}
.works__intro {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 16px;
}

.works__layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.works__main {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.works__main img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.works__caption {
  position: absolute;
  left: 24px; bottom: 24px; right: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: rgba(11, 31, 58, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 224, 211, 0.18);
  color: var(--on-dark);
}
.works__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  font-weight: 600;
}
.works__tag::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--navy);
  border-radius: 50%;
  animation: live-pulse 1.5s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.works__main-title {
  font-family: var(--ff-display);
  font-size: clamp(20px, 2vw, 28px);
  color: var(--on-dark);
  letter-spacing: 0.02em;
}
.works__main-sub {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--on-dark-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.works__side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.works__thumb {
  position: relative;
  overflow: hidden;
}
.works__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.works__thumb:hover img { transform: scale(1.06); }
.works__thumb-label {
  position: absolute;
  left: 16px; bottom: 16px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--offwhite);
  padding: 6px 12px;
  background: rgba(26, 34, 56, 0.75);
  backdrop-filter: blur(8px);
  border-left: 2px solid var(--gold);
}

/* ============================================
   COLLECTION — Netflix-style grids
   (Imóveis à Venda + Obras Entregues)
   ============================================ */

.collection {
  padding: 140px var(--gutter);
  background: var(--black);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.collection--alt {
  background: var(--black-2);
  border-top: none;
}

.collection__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.collection__grid {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(168, 146, 110, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168, 146, 110, 0.1) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 20%, transparent 75%);
}

.collection__inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.collection__header {
  margin-bottom: 56px;
}
.collection__title-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
.collection__title {
  font-family: var(--ff-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--offwhite);
}
.collection__intro {
  font-family: var(--ff-serif);
  font-size: clamp(16px, 1.25vw, 19px);
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Property card */
.property-card {
  position: relative;
  background: var(--black-2);
  border: 1px solid var(--line);
  cursor: pointer;
  overflow: hidden;
  transition: all 0.5s var(--ease);
  display: flex;
  flex-direction: column;
}
.property-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--gold);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -20px rgba(0,0,0,0.7), 0 0 0 1px rgba(168,146,110,0.15);
}
.property-card:hover::after { opacity: 1; }

.property-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.property-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.5s var(--ease);
  filter: brightness(0.92);
}
.property-card:hover .property-card__media img {
  transform: scale(1.08);
  filter: brightness(1);
}
.property-card__overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}
.property-card__badge {
  display: inline-block;
  padding: 5px 11px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--ff-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.property-card__badge--coming {
  background: rgba(168, 146, 110, 0.9);
  color: var(--offwhite);
  border: 1px solid var(--gold);
}
.property-card__badge--done {
  background: rgba(26, 34, 56, 0.85);
  color: var(--gold);
  border: 1px solid var(--gold);
  backdrop-filter: blur(8px);
}

.property-card__info {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.property-card__title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--navy);
  transition: color 0.3s var(--ease);
}
.property-card:hover .property-card__title { color: var(--gold); }

.property-card__meta {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.property-card__footer {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.property-card__price {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
}
.property-card__arrow {
  font-family: var(--ff-mono);
  color: var(--gold);
  font-size: 16px;
  transition: transform 0.4s var(--ease);
}
.property-card:hover .property-card__arrow {
  transform: translateX(6px);
}

/* ============================================
   MODAL — Netflix-style property detail
   ============================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 26, 44, 0.88);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  cursor: pointer;
}

/* Close / back button (fixed top-left) */
.modal__close {
  position: absolute;
  top: 28px;
  left: 28px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  background: rgba(26, 34, 56, 0.7);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  color: var(--offwhite);
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.modal__close:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.modal__close-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}
.modal__close-icon svg {
  width: 100%;
  height: 100%;
  transition: transform 0.3s var(--ease);
}
.modal__close:hover .modal__close-icon svg { transform: translateX(-3px); }

/* Modal main container */
.modal__container {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1240px;
  max-height: calc(100vh - 64px);
  background: var(--black-2);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  overflow: hidden;
  transform: scale(0.96) translateY(16px);
  opacity: 0;
  transition: opacity 0.5s var(--ease) 0.1s, transform 0.6s var(--ease) 0.1s;
}
.modal.is-open .modal__container {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Gallery (left side) */
.modal__gallery {
  position: relative;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal__slider {
  position: relative;
  flex: 1;
  overflow: hidden;
  min-height: 400px;
}
.modal__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
  transform: scale(1.02);
}
.modal__slide.is-active {
  opacity: 1;
  transform: scale(1);
}
.modal__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gallery nav arrows */
.modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(26, 34, 56, 0.6);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  color: var(--offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.3s var(--ease);
}
.modal__nav:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.modal__nav svg {
  width: 20px;
  height: 20px;
}
.modal__nav--prev { left: 20px; }
.modal__nav--next { right: 20px; }

/* Caption */
.modal__caption {
  position: absolute;
  left: 24px;
  bottom: 92px;
  right: 24px;
  z-index: 2;
  pointer-events: none;
}
.modal__caption-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-bottom: 6px;
}
.modal__caption-text {
  font-family: var(--ff-serif);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.4;
  color: var(--offwhite);
  text-shadow: 0 2px 20px rgba(0,0,0,0.8);
  max-width: 80%;
}

/* Thumbnails */
.modal__thumbs {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  background: rgba(20, 26, 44, 0.95);
  border-top: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) transparent;
}
.modal__thumbs::-webkit-scrollbar { height: 4px; }
.modal__thumbs::-webkit-scrollbar-track { background: transparent; }
.modal__thumbs::-webkit-scrollbar-thumb { background: var(--gold-deep); }

.modal__thumb {
  position: relative;
  flex: 0 0 72px;
  height: 48px;
  cursor: pointer;
  overflow: hidden;
  opacity: 0.5;
  transition: all 0.3s var(--ease);
  border: 1px solid transparent;
}
.modal__thumb:hover { opacity: 0.85; }
.modal__thumb.is-active {
  opacity: 1;
  border-color: var(--gold);
}
.modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Details panel (right side) */
.modal__details {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  background: var(--white);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-deep) transparent;
}
.modal__details::-webkit-scrollbar { width: 4px; }
.modal__details::-webkit-scrollbar-thumb { background: var(--gold-deep); }

.modal__eyebrow {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
}
.modal__title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 2.5vw, 40px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  font-weight: 400;
  color: var(--navy);
}
.modal__meta {
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.modal__divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}
.modal__description {
  font-family: var(--ff-serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}
.modal__specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 4px;
}
.modal__spec {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.modal__spec-label {
  font-family: var(--ff-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.modal__spec-value {
  font-family: var(--ff-display);
  font-size: 18px;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.modal__cta { margin-top: 12px; }

/* Prevent body scroll when modal open */
body.modal-open { overflow: hidden; }

/* ============================================
   SOCIAL ICONS
   ============================================ */

.footer__social {
  margin-top: 8px;
}
.footer__social-label {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer__social-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold-deep);
  color: var(--gold);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.social-icon svg {
  width: 17px;
  height: 17px;
  position: relative;
  z-index: 2;
  transition: transform 0.4s var(--ease);
}
.social-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s var(--ease);
  z-index: 1;
}
.social-icon:hover {
  border-color: var(--gold);
  color: var(--black);
}
.social-icon:hover::before { transform: scaleY(1); }
.social-icon:hover svg { transform: scale(1.1); }

/* ============================================
   YOUTUBE COMING SOON MODAL
   ============================================ */

.yt-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.yt-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.yt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 26, 44, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  cursor: pointer;
}

.yt-modal__close {
  position: absolute;
  top: 28px;
  right: 28px;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 34, 56, 0.7);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px);
  color: var(--offwhite);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.yt-modal__close:hover {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  transform: rotate(90deg);
}
.yt-modal__close svg {
  width: 20px;
  height: 20px;
}

.yt-modal__content {
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1100px;
  max-height: calc(100vh - 64px);
  transform: scale(0.94) translateY(20px);
  opacity: 0;
  transition: opacity 0.5s var(--ease) 0.1s, transform 0.7s var(--ease-out) 0.1s;
}
.yt-modal.is-open .yt-modal__content {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.yt-modal__player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}

.yt-modal__player-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(168, 146, 110, 0.08) 0%, transparent 60%),
    linear-gradient(135deg, var(--ink) 0%, var(--black) 60%, var(--smoke) 100%);
}
.yt-modal__player-bg::before,
.yt-modal__player-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
}
.yt-modal__player-bg::before {
  top: 20%;
  left: 15%;
  width: 320px;
  height: 320px;
  background: var(--gold);
}
.yt-modal__player-bg::after {
  bottom: 15%;
  right: 10%;
  width: 280px;
  height: 280px;
  background: #4a6794;
}

/* Subtle film grain over player */
.yt-modal__player::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.yt-modal__play {
  position: absolute;
  top: 38%;
  right: 8%;
  z-index: 2;
  color: var(--gold);
  width: 100px;
  height: 100px;
  pointer-events: none;
}
.yt-modal__play svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 30px rgba(168, 146, 110, 0.4));
}
.yt-modal__play-ring {
  animation: yt-pulse 2.5s var(--ease-out) infinite;
  transform-origin: center;
}
@keyframes yt-pulse {
  0% { stroke-opacity: 1; transform: scale(1); }
  100% { stroke-opacity: 0; transform: scale(1.3); }
}

.yt-modal__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 80px;
  max-width: 60%;
}

.yt-modal__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 20px;
  padding: 8px 14px;
  border: 1px solid var(--gold-deep);
  background: rgba(168, 146, 110, 0.05);
  text-transform: uppercase;
  align-self: flex-start;
}
.yt-modal__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  animation: live-pulse 1.5s ease-in-out infinite;
}

.yt-modal__title {
  font-family: var(--ff-display);
  font-size: clamp(36px, 4.5vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--offwhite);
  margin-bottom: 20px;
}

.yt-modal__lead {
  font-family: var(--ff-serif);
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--bone);
  line-height: 1.55;
  margin-bottom: 32px;
  max-width: 460px;
}

.yt-modal__cta {
  align-self: flex-start;
}

@media (max-width: 1024px) {
  .yt-modal { padding: 16px; }
  .yt-modal__close { top: 16px; right: 16px; width: 40px; height: 40px; }
  .yt-modal__overlay {
    padding: 40px 32px;
    max-width: 100%;
  }
  .yt-modal__play { display: none; }
}

@media (max-width: 640px) {
  .yt-modal__player { aspect-ratio: auto; min-height: 480px; }
  .yt-modal__overlay { padding: 32px 24px; }
  .yt-modal__title { font-size: 30px; }
  .yt-modal__lead { font-size: 14px; }
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  padding: 140px var(--gutter);
  background: var(--bg);
  position: relative;
}
.contact__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 8vw, 100px);
  align-items: start;
}

.contact__title {
  font-family: var(--ff-display);
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1.02;
  margin-bottom: 24px;
  color: var(--offwhite);
}
.contact__lead {
  font-family: var(--ff-serif);
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 56px;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact__block {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.contact__block:last-child { border-bottom: none; }

.contact__label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.contact__value {
  font-family: var(--ff-serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
}
.contact__link {
  color: var(--text);
  position: relative;
  transition: color 0.3s var(--ease);
}
.contact__link:hover { color: var(--gold); }

/* FORM */
.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
  padding: 40px;
  background: var(--white);
  border: 1px solid var(--border);
}
.form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form__field--full { grid-column: span 2; }

.form__field label {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form__field input,
.form__field select,
.form__field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  font-family: var(--ff-body);
  font-size: 15px;
  color: var(--offwhite);
  outline: none;
  transition: border-color 0.3s var(--ease);
  font-weight: 400;
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  border-bottom-color: var(--gold);
}
.form__field select { cursor: pointer; }
.form__field select option { background: var(--white); color: var(--text); }
.form__field textarea { resize: vertical; min-height: 80px; }

.form__submit {
  grid-column: span 2;
  margin-top: 8px;
  width: fit-content;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--navy);
  padding: 80px var(--gutter) 32px;
  border-top: none;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.logo-placeholder--footer {
  border-color: var(--gold-deep);
}
.footer__tag {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
  max-width: 260px;
  line-height: 1.4;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer__col h4 {
  font-family: var(--ff-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer__col a, .footer__col p {
  display: block;
  font-size: 14px;
  color: var(--on-dark-muted);
  line-height: 1.9;
  transition: color 0.3s var(--ease);
}
.footer__col a:hover { color: var(--gold); }

.footer__bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__bottom p {
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--on-dark-muted);
  text-transform: uppercase;
}
.footer__meta { color: var(--gold); }

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
  .nav__links { gap: 20px; }
  .nav__link { font-size: 10px; letter-spacing: 0.12em; }
  .nav__badge { display: none; }
}

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__lang, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__inner { grid-template-columns: auto 1fr auto; }

  .about__inner { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }

  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .project--feature { grid-column: span 2; grid-template-columns: 1fr; }
  .project--feature .project__info { border-left: none; border-top: 1px solid var(--line); padding: 32px; }

  .works__layout { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }

  .collection { padding: 100px var(--gutter); }
  .collection__title-row { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }

  /* Modal */
  .modal { padding: 20px; }
  .modal__container {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }
  .modal__slider { min-height: 300px; aspect-ratio: 4/3; }
  .modal__close { top: 16px; left: 16px; }
}

@media (max-width: 640px) {
  .hero { min-height: 90vh; padding: 100px var(--gutter) 100px; }
  .hero__scroll { display: none; }
  .hero__caption { font-size: 8px; }

  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .stat + .stat::before { display: none; }

  .about__grid { grid-template-columns: 1fr; }

  .services__grid { grid-template-columns: 1fr; }
  .services__header { flex-direction: column; align-items: flex-start; }

  .portfolio__grid { grid-template-columns: 1fr; }
  .project--feature { grid-column: span 1; }

  .contact__form {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .form__field--full { grid-column: span 1; }
  .form__submit { grid-column: span 1; }

  .footer__cols { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  .mobile-menu__link { font-size: 28px; }
  .mobile-menu__num { font-size: 10px; min-width: 30px; }

  .works__caption { padding: 12px 14px; gap: 10px; }
  .works__tag { font-size: 8px; padding: 3px 7px; gap: 4px; white-space: nowrap; }
  .works__main-title { font-size: 17px; }
  .works__main-sub { font-size: 9px; }

  /* Collection */
  .card-grid { grid-template-columns: 1fr; gap: 16px; }
  .collection { padding: 80px var(--gutter); }

  /* Modal */
  .modal { padding: 0; }
  .modal__container {
    max-height: 100vh;
    height: 100vh;
    border: none;
    border-radius: 0;
  }
  .modal__close {
    top: 12px;
    left: 12px;
    padding: 8px 12px 8px 10px;
    font-size: 9px;
    letter-spacing: 0.18em;
  }
  .modal__details { padding: 28px 24px; }
  .modal__specs { grid-template-columns: 1fr 1fr; gap: 8px; }
  .modal__nav { width: 36px; height: 36px; }
  .modal__nav--prev { left: 10px; }
  .modal__nav--next { right: 10px; }
  .modal__caption { bottom: 86px; left: 16px; right: 16px; }
  .modal__caption-text { font-size: 14px; max-width: 100%; }

  section { padding-left: 24px; padding-right: 24px; }
}
