:root {
  --bg: #f7f7f9;
  --ink: #141416;
  --ink-2: #2b2b30;
  --muted: #6c6c74;
  --line: #e4e4ea;
  --card: #ffffff;
  --pill: #ececf0;
  --radius-xl: clamp(20px, 2vw, 32px);
  --radius-lg: clamp(18px, 1.6vw, 28px);
  --pad: clamp(20px, 2.7vw, 54px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --fallback: linear-gradient(135deg, #3a4556 0%, #1f2632 55%, #6b5a45 100%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }

.container { padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- shared ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: var(--pill);
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
}
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-glass { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

.h2 {
  font-size: clamp(36px, 3.4vw, 64px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.035em;
}
.lead {
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.6;
  color: var(--muted);
}

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 30px;
  border-radius: 999px;
  font-size: 17px; font-weight: 500;
  transition: transform .4s var(--ease), background .3s;
  white-space: nowrap;
}
.btn-light { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; height: 64px; padding: 0 34px; font-size: 19px; }
.btn:active { transform: scale(.97); }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* text roll on hover */
.roll-inner { position: relative; display: inline-block; overflow: hidden; height: 1.25em; line-height: 1.25em; }
.roll-inner > span { display: block; transition: transform .55s var(--ease); }
.roll-inner > span + span { position: absolute; left: 0; top: 100%; }
.roll:hover .roll-inner > span { transform: translateY(-100%); }

/* image surfaces: real image with gradient fallback */
[style*="--img"] {
  background-image: var(--img), var(--fallback);
  background-size: cover;
  background-position: center;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  margin: 10px;
  height: calc(100vh - 20px);
  min-height: 680px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: -6% 0 -6% 0;
  z-index: -2;
  transform: scale(1.12);
  animation: heroZoom 2.2s var(--ease) forwards;
  will-change: transform;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(18,24,38,.55) 0%, rgba(18,24,38,.15) 55%, rgba(18,24,38,0) 100%),
    linear-gradient(0deg, rgba(10,14,22,.45) 0%, rgba(10,14,22,0) 35%),
    linear-gradient(180deg, rgba(30,40,60,.35) 0%, rgba(30,40,60,0) 30%);
}

.nav {
  position: absolute; top: 18px; left: 50%;
  transform: translate(-50%, -20px);
  opacity: 0;
  animation: dropIn 1s var(--ease) .1s forwards;
  display: flex; align-items: center; gap: 48px;
  padding: 7px 7px 7px 28px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(255,255,255,.08);
  z-index: 5;
}
@keyframes dropIn { to { transform: translate(-50%, 0); opacity: 1; } }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 32px; font-size: 17px; font-weight: 500; }
.nav-links a { position: relative; opacity: .92; transition: opacity .3s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 16px; height: 1.6px; background: var(--ink); }

.hero-content {
  position: absolute; left: var(--pad); right: var(--pad);
  top: 50%; transform: translateY(-46%);
  max-width: 820px;
}
.hero-title {
  font-size: clamp(44px, 4.9vw, 98px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.04em;
  margin-left: calc(var(--pad) * .6);
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span {
  display: inline-block; transform: translateY(105%);
  animation: lineUp 1.1s var(--ease) forwards;
}
.hero-title .line:nth-child(1) > span { animation-delay: .2s; }
.hero-title .line:nth-child(2) > span { animation-delay: .32s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero-sub {
  margin: 26px 0 0 calc(var(--pad) * .6);
  max-width: 540px;
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 1.6;
  color: rgba(255,255,255,.78);
}
.play { margin: 36px 0 0 calc(var(--pad) * .6); display: inline-flex; align-items: center; gap: 18px; font-size: clamp(16px, 1.3vw, 21px); font-weight: 500; }
.play-btn {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .5s var(--ease), background .3s;
}
.play:hover .play-btn { transform: scale(1.1); background: rgba(255,255,255,.26); }

.fade-in { opacity: 0; transform: translateY(24px); animation: fadeUp 1s var(--ease) var(--d, 0s) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

.hero-bottom {
  position: absolute; left: var(--pad); right: calc(var(--pad) * 1.6); bottom: calc(var(--pad) * 1.6);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.hero-stats { display: flex; gap: clamp(28px, 3.5vw, 70px); margin-left: calc(var(--pad) * .6); }
.stat strong { display: block; font-size: clamp(34px, 3vw, 58px); font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.stat span { display: block; margin-top: 14px; font-size: clamp(14px, 1.15vw, 19px); color: rgba(255,255,255,.8); }

.hero-card {
  display: flex; gap: 22px; align-items: stretch;
  width: min(500px, 40vw);
  padding: 6px 24px 6px 6px;
  border-radius: 22px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,.08);
  transition: background .3s;
}
.hero-card:hover { background: rgba(255,255,255,.2); }
.hero-card-img { flex: 0 0 37%; aspect-ratio: 1.07; border-radius: 17px; transition: transform .7s var(--ease); }
.hero-card:hover .hero-card-img { transform: scale(.97); }
.hero-card-text { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 10px 0; }
.hero-card-text p { font-size: clamp(13px, 1vw, 17px); line-height: 1.6; color: rgba(255,255,255,.85); }
.link { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(14px, 1.05vw, 18px); font-weight: 500; }
.link svg { transition: transform .5s var(--ease); }
.hero-card:hover .link svg { transform: translateX(4px); }

/* ---------- ABOUT ---------- */
.about {
  display: grid; grid-template-columns: 33.5% 1fr;
  padding-top: clamp(100px, 13vw, 260px);
  padding-bottom: clamp(60px, 6vw, 120px);
}
.reveal-text {
  font-size: clamp(30px, 3.4vw, 66px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-indent: 12%;
}
.reveal-text .ch { color: var(--ink); opacity: .14; transition: opacity .25s linear; }

/* ---------- PINNED GALLERY ---------- */
.gallery-wrap { position: relative; height: 260vh; }
.gallery-sticky { position: sticky; top: 0; height: 100vh; overflow: visible; }
.gallery-row { display: grid; grid-template-columns: 33.5% 1fr; padding-top: clamp(40px, 6vw, 110px); }
.gallery { position: relative; }
.g-card {
  position: absolute; top: 0; left: 0;
  border-radius: var(--radius-lg);
  will-change: transform;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}

/* ---------- PROPERTIES ---------- */
.properties { padding-top: clamp(60px, 8vw, 160px); padding-bottom: clamp(80px, 10vw, 200px); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin: 34px 0 54px; }
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 1.65vw, 32px); }
.prop-media { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1.335; cursor: none; }
.prop-img { position: absolute; inset: 0; transition: transform 1.1s var(--ease); }
.prop-media:hover .prop-img { transform: scale(1.06); }
.tag {
  position: absolute; top: 18px; left: 18px;
  padding: 8px 20px;
  border-radius: 999px;
  font-size: 16px; color: rgba(255,255,255,.92);
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.prop-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.prop-row h3, .price { font-size: clamp(20px, 1.65vw, 32px); font-weight: 500; letter-spacing: -.02em; }
.prop-row.meta { margin-top: 16px; font-size: clamp(14px, 1.15vw, 20px); }
.loc { display: inline-flex; align-items: center; gap: 8px; }
.specs { display: inline-flex; align-items: center; gap: 14px; color: var(--muted); }
.specs i { width: 1px; height: 22px; background: var(--muted); opacity: .6; }

/* ---------- FEATURES ---------- */
.features { padding-bottom: clamp(100px, 12vw, 240px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.split-right .lead { margin-top: 26px; max-width: 720px; }
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.65vw, 32px); margin-top: clamp(40px, 3.5vw, 64px); }
.feat {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 2.2vw, 44px);
  box-shadow: 0 20px 50px -30px rgba(20,20,40,.18), 0 2px 6px rgba(20,20,40,.03);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.feat:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(20,20,40,.25); }
.feat-icon { width: 76px; height: 76px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; }
.feat h3 { margin-top: 48px; font-size: clamp(22px, 1.7vw, 32px); font-weight: 500; letter-spacing: -.02em; }
.feat p { margin-top: 14px; color: var(--muted); line-height: 1.6; font-size: clamp(15px, 1.15vw, 20px); max-width: 340px; }
.counter {
  margin-top: 44px;
  display: flex; align-items: flex-start;
  font-size: clamp(40px, 3.1vw, 60px);
  font-weight: 500; line-height: 1;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.counter .digit { display: inline-block; height: 1em; overflow: hidden; }
.counter .digit > span { display: flex; flex-direction: column; transition: transform 1.8s cubic-bezier(.65, 0, .2, 1); }
.counter .digit > span > span { height: 1em; line-height: 1; }
.counter .suffix { margin-left: .12em; }
.feat-label { display: block; margin-top: 22px; font-size: clamp(15px, 1.15vw, 20px); color: var(--ink-2); }

/* ---------- SERVICES ---------- */
.services { display: grid; grid-template-columns: 44% 1fr; gap: clamp(30px, 6.5vw, 128px); padding-bottom: clamp(100px, 12vw, 240px); }
.svc-media { position: sticky; top: 40px; height: calc(100vh - 80px); min-height: 520px; border-radius: var(--radius-xl); overflow: hidden; }
.svc-img { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity .9s var(--ease), transform 1.6s var(--ease); }
.svc-img.is-active { opacity: 1; transform: scale(1); }
.svc-body { padding-top: 0; padding-bottom: 30vh; }
.svc-body .h2 { margin-top: 34px; }
.svc-body .lead { margin-top: 26px; max-width: 560px; }
.svc-list { position: relative; margin-top: 60px; display: flex; flex-direction: column; gap: 56px; padding-right: 110px; }
.svc-item { position: relative; padding-left: 42px; padding-block: 4px; }
.svc-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); transition: background .5s; }
.svc-item.is-active::before { background: var(--ink); }
.svc-item h3 { font-size: clamp(22px, 1.65vw, 32px); font-weight: 500; letter-spacing: -.02em; color: var(--ink); opacity: .45; transition: opacity .5s; }
.svc-item p { margin-top: 18px; font-size: clamp(16px, 1.25vw, 21px); line-height: 1.65; color: var(--muted); opacity: .6; transition: opacity .5s; }
.svc-item.is-active h3, .svc-item.is-active p { opacity: 1; }
.svc-arrow {
  position: absolute; right: 0; top: 0;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  transition: transform .8s var(--ease), background .3s;
}
.svc-arrow svg { transition: transform .5s var(--ease); }
.svc-arrow:hover svg { transform: rotate(-45deg); }

/* ---------- CTA ---------- */
.cta { position: relative; margin: 0 10px; min-height: 80vh; border-radius: var(--radius-xl); overflow: hidden; color: #fff; display: grid; place-items: center; text-align: center; isolation: isolate; }
.cta-bg { position: absolute; inset: -10% 0; z-index: -2; will-change: transform; }
.cta-shade { position: absolute; inset: 0; z-index: -1; background: rgba(14,18,28,.5); }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 80px 20px; }
.cta-title { font-size: clamp(40px, 5vw, 96px); font-weight: 500; letter-spacing: -.04em; line-height: 1.03; }

/* ---------- FOOTER ---------- */
.footer { padding-top: 90px; padding-bottom: 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.logo-dark { color: var(--ink); }
.footer-cols { display: flex; gap: clamp(40px, 7vw, 140px); flex-wrap: wrap; }
.footer-cols h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 500; margin-bottom: 18px; }
.footer-cols a { display: block; margin-bottom: 10px; font-size: 17px; transition: opacity .3s; }
.footer-cols a:hover { opacity: .6; }
.footer-bottom { margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- custom cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; width: 70px; height: 70px; margin: -35px 0 0 -35px; pointer-events: none; z-index: 100; opacity: 0; transform: scale(.5); transition: opacity .3s, transform .4s var(--ease); color: #fff; }
.cursor.show { opacity: 1; transform: scale(1); }
.cursor i { position: absolute; width: 14px; height: 14px; border: 0 solid currentColor; }
.cursor i:nth-child(1) { top: 0; left: 0; border-top-width: 1.5px; border-left-width: 1.5px; }
.cursor i:nth-child(2) { top: 0; right: 0; border-top-width: 1.5px; border-right-width: 1.5px; }
.cursor i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.cursor i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.cursor b { position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; }
.cursor b::before, .cursor b::after { content: ""; position: absolute; background: currentColor; }
.cursor b::before { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.cursor b::after { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(10,12,18,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 20px; animation: fadeIn .4s ease; }
.modal[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.modal-box { position: relative; width: min(1100px, 100%); }
.modal-video { aspect-ratio: 16/9; border-radius: var(--radius-xl); display: grid; place-items: center; color: #fff; font-size: 20px; }
.modal-close { position: absolute; top: -54px; right: 0; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); font-size: 26px; line-height: 1; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { gap: 28px; }
  .nav-links { gap: 22px; font-size: 15px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { width: calc(100% - 24px); justify-content: space-between; padding-left: 20px; gap: 12px; }
  .nav-links, .nav > .btn { display: none; }
  .burger { display: flex; }
  .hero { min-height: 640px; }
  .hero-title, .hero-sub, .play, .hero-stats { margin-left: 0; }
  .hero-content { transform: translateY(-62%); }
  .hero-bottom { flex-direction: column; align-items: flex-start; right: var(--pad); bottom: var(--pad); }
  .hero-card { width: 100%; }
  .about, .gallery-row, .split, .services { grid-template-columns: 1fr; }
  .about { gap: 28px; }
  .reveal-text { text-indent: 0; }
  .gallery-wrap { height: auto; }
  .gallery-sticky { position: static; height: auto; }
  .gallery-row { padding-top: 0; }
  .gallery-row .col-left { display: none; }
  .gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: auto !important; }
  .g-card { position: static; aspect-ratio: .72; transform: none !important; width: auto !important; height: auto !important; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .prop-grid { grid-template-columns: 1fr; gap: 44px; }
  .svc-media { position: relative; top: 0; height: 70vw; min-height: 0; }
  .svc-body { padding-bottom: 0; }
  .svc-list { padding-right: 0; }
  .svc-arrow { display: none; }
  .btn-dark { height: 56px; font-size: 17px; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
  .prop-row h3, .price { font-size: 22px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* fixes */
.reveal-text .w { display: inline-block; white-space: nowrap; margin-right: .26em; text-indent: 0; }
.prop-row.meta { flex-wrap: wrap; row-gap: 8px; }
.loc, .specs { white-space: nowrap; }

/* mobile hero: stack content and stats instead of overlapping absolutes */
@media (max-width: 860px) {
  .hero { height: auto; min-height: calc(100svh - 20px); display: flex; flex-direction: column; justify-content: flex-end; gap: 32px; padding: 120px var(--pad) var(--pad); }
  .hero-content, .hero-bottom { position: static; transform: none; }
  .play { margin-top: 26px; }
}
