/* BM Projects — From plan to reality */
:root {
  --black: #0E0E0E;
  --black-2: #141414;
  --black-3: #1A1A1A;
  --gold: #C8B279;
  --gold-soft: rgba(200, 178, 121, .35);
  --gold-line: rgba(200, 178, 121, .22);
  --white: #F4F2EE;
  --grey: #A7A39B;
  --grey-2: #6E6B66;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* subtle film grain */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
svg { width: 1em; height: 1em; }
::selection { background: var(--gold); color: var(--black); }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -.005em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h3 { font-size: 1.65rem; }
em { font-style: normal; color: var(--gold); }

.eyebrow {
  display: block;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.rule {
  display: block; width: 48px; height: 1px;
  background: var(--gold);
  margin-top: 22px;
  transform-origin: left;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 15px 26px;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid var(--gold);
  overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--gold);
  transform: scaleX(0); transform-origin: right;
  transition: transform .55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover, .btn:focus-visible { color: var(--black); }
.btn svg { width: 18px; height: 18px; transition: transform .45s var(--ease-out); }
.btn:hover svg { transform: translateX(5px); }
.btn--gold { color: var(--white); }
.btn--outline { color: var(--white); }
.btn--light { border-color: rgba(244, 242, 238, .55); }
.btn--light::before { background: var(--white); }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .5s var(--ease), backdrop-filter .5s, border-color .5s;
  border-bottom: 1px solid transparent;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 104px; transition: height .5s var(--ease); }
.nav.is-scrolled { background: rgba(14, 14, 14, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--gold-line); }
.nav.is-scrolled .nav__inner { height: 78px; }
.nav__logo img { width: 120px; height: auto; transition: width .5s var(--ease); }
.nav.is-scrolled .nav__logo img { width: 96px; }
.nav__links { display: flex; gap: 46px; }
.nav__links a {
  position: relative;
  font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  padding: 8px 0;
  transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; margin: auto;
  width: 0; height: 1px; background: var(--gold);
  transition: width .45s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--gold); }
.nav__links a:hover::after, .nav__links a.is-active::after { width: 32px; }
.nav__cta { padding: 12px 22px; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--white); transition: transform .4s var(--ease), top .4s var(--ease); }
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 26px; }
.nav.is-open .nav__toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:last-child { top: 22px; transform: rotate(-45deg); }
.mobile-menu { display: none; }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero__media { position: absolute; inset: -6% 0 0 0; will-change: transform; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 70% center;
  animation: heroZoom 2.8s var(--ease-out) both, heroBreath 22s ease-in-out 2.8s infinite alternate;
}
@keyframes heroZoom { from { transform: scale(1.14); opacity: 0; filter: brightness(.4); } to { transform: scale(1.04); opacity: 1; filter: brightness(1); } }
@keyframes heroBreath { from { transform: scale(1.04); } to { transform: scale(1.1) translateX(-1.5%); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,14,14,.94) 0%, rgba(14,14,14,.72) 34%, rgba(14,14,14,.1) 64%, rgba(14,14,14,0) 100%),
    linear-gradient(0deg, var(--black) 0%, rgba(14,14,14,0) 26%),
    linear-gradient(180deg, rgba(14,14,14,.7) 0%, rgba(14,14,14,0) 20%);
}
.hero__glow {
  position: absolute; width: 60vw; height: 60vw; left: -20vw; top: 10%;
  background: radial-gradient(circle, rgba(200,178,121,.10) 0%, rgba(200,178,121,0) 60%);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift { to { transform: translate(8vw, -6vh); } }
.hero__content { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 120px; }
.hero__title {
  font-size: clamp(3rem, 8.2vw, 6.6rem);
  line-height: .98;
  text-transform: uppercase;
  letter-spacing: .005em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .04em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.3s var(--ease-out) forwards; }
.hero__title .line:nth-child(1) > span { animation-delay: .5s; }
.hero__title .line:nth-child(2) > span { animation-delay: .68s; }
.hero__title em {
  background: linear-gradient(100deg, #A8925A 0%, #E3D3A6 45%, #C8B279 60%, #9C8650 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s ease-in-out 2s infinite alternate;
}
@keyframes lineUp { to { transform: translateY(0); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.hero__rule { margin: 34px 0 30px; width: 64px; transform: scaleX(0); animation: grow 1s var(--ease-out) 1.25s forwards; }
@keyframes grow { to { transform: scaleX(1); } }
.hero__lead { max-width: 420px; font-size: 1.08rem; font-weight: 300; color: #DCD8D0; margin: 0 0 40px; opacity: 0; animation: fadeUp 1s var(--ease-out) 1.4s forwards; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 18px; opacity: 0; animation: fadeUp 1s var(--ease-out) 1.6s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__scroll {
  position: absolute; left: 50%; bottom: 34px; z-index: 2;
  width: 1px; height: 64px; background: rgba(200,178,121,.2); overflow: hidden;
  opacity: 0; animation: fadeUp 1s var(--ease) 2.2s forwards;
}
.hero__scroll span { position: absolute; inset: 0; background: var(--gold); animation: scrollLine 2.4s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* STRIP */
.strip { position: relative; z-index: 3; }
.strip__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--gold-soft); border-bottom: 1px solid var(--gold-soft);
}
.strip__item {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: 34px 12px;
  font-size: .74rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  position: relative;
}
.strip__item + .strip__item::before { content: ""; position: absolute; left: 0; top: 30%; bottom: 30%; width: 1px; background: var(--gold-soft); }
.strip__item svg { width: 40px; height: 40px; color: var(--gold); flex: none; transition: transform .6s var(--ease-out); }
.strip__item:hover svg { transform: translateY(-4px) rotate(-4deg); }

/* SECTIONS */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--tight { padding-top: 0; }
.heading { margin-bottom: clamp(40px, 5vw, 64px); }
.heading--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.heading__aside { max-width: 380px; color: var(--grey); font-size: .95rem; margin: 0; }

/* CARDS */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  position: relative;
  padding: 44px 38px 46px;
  background: linear-gradient(160deg, var(--black-3), var(--black-2));
  border: 1px solid rgba(255,255,255,.07);
  transition: border-color .6s var(--ease), transform .6s var(--ease-out), box-shadow .6s var(--ease);
  transform-style: preserve-3d;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(200,178,121,.13), transparent 45%);
  opacity: 0; transition: opacity .5s;
  pointer-events: none;
}
.card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease-out);
}
.card:hover { border-color: var(--gold-line); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); }
.card:hover::before { opacity: 1; }
.card:hover::after { transform: scaleX(1); }
.card__icon { width: 46px; height: 46px; color: var(--gold); margin-bottom: 28px; transition: transform .7s var(--ease-out); }
.card:hover .card__icon { transform: translateY(-4px); }
.card h3 { margin-bottom: 12px; }
.card p { margin: 0; color: var(--grey); font-size: .95rem; }

/* PROJECTS */
.projects { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.project { position: relative; display: block; border: 1px solid rgba(255,255,255,.07); background: var(--black-2); overflow: hidden; }
.project__img { aspect-ratio: 4 / 3.4; overflow: hidden; }
.project__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease-out), filter 1s var(--ease); filter: saturate(.85) brightness(.9); }
.project:hover .project__img img { transform: scale(1.09); filter: saturate(1) brightness(1); }
.project__label {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 22px 22px;
  font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,.06);
  position: relative;
}
.project__label::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out); }
.project:hover .project__label::before { transform: scaleX(1); }
.project__label svg { width: 18px; height: 18px; color: var(--gold); flex: none; transition: transform .5s var(--ease-out); }
.project:hover .project__label svg { transform: translateX(6px); }

/* PARTNER */
.partner {
  display: grid; grid-template-columns: 1.05fr 1fr;
  border-top: 1px solid var(--gold-line); border-bottom: 1px solid var(--gold-line);
  background: var(--black-2);
  overflow: hidden;
}
.partner__text {
  padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(56px, 7vw, 96px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  border-left: 0;
  position: relative;
}
.partner__text::before { content: ""; position: absolute; left: max(calc(var(--gutter) - 22px), calc((100vw - var(--max)) / 2 + var(--gutter) - 22px)); top: clamp(56px, 7vw, 96px); bottom: clamp(56px, 7vw, 96px); width: 1px; background: linear-gradient(var(--gold), transparent); }
.partner__text h2 { max-width: 560px; margin-bottom: 22px; }
.partner__text p { color: var(--grey); max-width: 520px; margin: 0; }
.partner__media { position: relative; min-height: 420px; overflow: hidden; }
.partner__media img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; }
.partner__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--black-2) 0%, rgba(20,20,20,0) 35%); }
.stats { display: flex; gap: clamp(24px, 3vw, 44px); margin-top: 44px; flex-wrap: wrap; }
.stats strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.6rem; line-height: 1; color: var(--gold); margin-bottom: 8px; }
.stats span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }

/* PROCESS */
.steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.step { display: flex; align-items: center; gap: 18px; flex: none; }
.step svg { width: 46px; height: 46px; color: var(--gold); flex: none; }
.step div { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
.step b { font-weight: 400; color: var(--gold); margin-right: 6px; }
.step small { display: block; font-family: var(--sans); font-size: .78rem; color: var(--grey); margin-top: 6px; letter-spacing: .02em; }
.step__line { flex: 1; height: 1px; background: rgba(200,178,121,.15); position: relative; min-width: 30px; }
.step__line span { position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out); }
.steps.is-visible .step__line span { transform: scaleX(1); }
.steps.is-visible .step__line:nth-child(2) span { transition-delay: .35s; }
.steps.is-visible .step__line:nth-child(4) span { transition-delay: .75s; }
.steps.is-visible .step__line:nth-child(6) span { transition-delay: 1.15s; }

/* CTA */
.cta { position: relative; overflow: hidden; border-top: 1px solid var(--gold-line); }
.cta__media { position: absolute; inset: -12% 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: 80% center; }
.cta__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,14,14,.96) 0%, rgba(14,14,14,.78) 42%, rgba(14,14,14,.15) 75%, rgba(14,14,14,0) 100%); }
.cta__content { position: relative; z-index: 2; padding-top: clamp(90px, 11vw, 150px); padding-bottom: clamp(90px, 11vw, 150px); }
.cta h2 { max-width: 640px; margin-bottom: 18px; }
.cta p { max-width: 460px; color: #CFCBC3; margin: 0 0 36px; }
.cta__contact { list-style: none; padding: 0; margin: 44px 0 0; display: flex; flex-wrap: wrap; gap: 14px 36px; font-size: .92rem; }
.cta__contact li { display: flex; align-items: center; gap: 12px; }
.cta__contact svg { width: 18px; height: 18px; color: var(--gold); }
.cta__contact a { transition: color .3s; }
.cta__contact a:hover { color: var(--gold); }

/* FOOTER */
.footer { border-top: 1px solid var(--gold); background: var(--black); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 34px; padding-bottom: 34px; flex-wrap: wrap; }
.footer__logo img { width: 110px; height: auto; }
.footer__nav, .footer__contact { display: flex; gap: 26px; align-items: center; padding-left: 28px; border-left: 1px solid var(--gold-soft); }
.footer__nav a { font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; transition: color .3s; }
.footer__contact a { display: flex; align-items: center; gap: 10px; font-size: .82rem; transition: color .3s; }
.footer__contact svg { width: 18px; height: 18px; color: var(--gold); }
.footer a:hover { color: var(--gold); }
.footer__tag { font-size: .74rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); white-space: nowrap; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.06); font-size: .75rem; color: var(--grey-2); }
.footer__social { display: flex; gap: 12px; }
.footer__social a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--gold-soft); color: var(--gold); transition: background .3s, color .3s; }
.footer__social a:hover { background: var(--gold); color: var(--black); }
.footer__social svg { width: 16px; height: 16px; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
.heading .rule { transform: scaleX(0); transition: transform 1s var(--ease-out) .35s; }
.heading.is-visible .rule { transform: scaleX(1); }

/* RESPONSIVE */
@media (max-width: 1080px) {
  .nav__links { gap: 30px; }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .strip__item:nth-child(3)::before { display: none; }
  .strip__item:nth-child(-n+2) { border-bottom: 1px solid var(--gold-line); }
  .steps { flex-wrap: wrap; justify-content: flex-start; gap: 32px 40px; }
  .step__line { display: none; }
  .step { width: calc(50% - 20px); }
}
@media (max-width: 860px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav__inner { height: 84px; }
  .nav__logo img { width: 98px; }
  .mobile-menu {
    display: flex; flex-direction: column; gap: 6px;
    padding: 0 var(--gutter);
    max-height: 0; overflow: hidden;
    background: rgba(14,14,14,.97);
    transition: max-height .6s var(--ease-out), padding .6s var(--ease-out);
  }
  .mobile-menu a:not(.btn) { font-family: var(--serif); font-size: 1.9rem; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
  .mobile-menu .btn { margin-top: 18px; align-self: flex-start; }
  .nav.is-open { background: rgba(14,14,14,.97); }
  .nav.is-open .mobile-menu { max-height: 480px; padding-bottom: 32px; }
  .cards { grid-template-columns: 1fr; }
  .heading--row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .partner { grid-template-columns: 1fr; }
  .partner__media { min-height: 300px; order: -1; }
  .partner__media::after { background: linear-gradient(0deg, var(--black-2) 0%, rgba(20,20,20,0) 45%); }
  .partner__text::before { display: none; }
  .hero__shade { background: linear-gradient(0deg, var(--black) 0%, rgba(14,14,14,.7) 45%, rgba(14,14,14,.45) 100%); }
  .hero__media img { object-position: 62% center; }
  .cta__shade { background: rgba(14,14,14,.82); }
  .footer__nav, .footer__contact { border-left: 0; padding-left: 0; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .projects { grid-template-columns: 1fr; }
  .strip__item { flex-direction: column; gap: 12px; padding: 26px 8px; font-size: .64rem; text-align: center; }
  .strip__item svg { width: 34px; height: 34px; }
  .step { width: 100%; }
  .footer__nav { flex-wrap: wrap; gap: 18px 24px; }
  .footer__contact { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__bottom { flex-direction: column; gap: 16px; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero__title .line > span { transform: none; }
}

/* keep tilt responsive after reveal */
.card.reveal.is-visible { transition: opacity 1.1s var(--ease-out), transform .5s var(--ease-out), border-color .6s var(--ease), box-shadow .6s var(--ease); transition-delay: 0s; }

/* WhatsApp */
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--black); color: var(--gold);
  border: 1px solid var(--gold);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.8);
  opacity: 0; transform: translateY(16px) scale(.9);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out), background .35s, color .35s;
  pointer-events: none;
}
.wa-float.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.wa-float::before {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid var(--gold); opacity: 0;
  animation: waPulse 3.2s var(--ease) 3s infinite;
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .6; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
.wa-float:hover { background: var(--gold); color: var(--black); }
.wa-float svg { width: 26px; height: 26px; }
@media (max-width: 560px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .cta__actions .btn { width: 100%; justify-content: center; }
}
.footer__bottom { padding-right: calc(var(--gutter) + 72px); }
@media (max-width: 560px) { .footer__bottom { padding-right: var(--gutter); } }
