:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --ink-2: #555555;
  --ink-3: #8a8a8a;
  --line: #e7e7e7;
  --soft: #f4f4f4;
  --radius: 18px;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 15px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
h1, h2, h3 { font-weight: 500; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: clamp(24px, 2.8vw, 32px); }
h3 { font-size: 17px; margin-bottom: 4px; }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.small { font-size: 12px; margin-top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: clamp(64px, 8vw, 110px); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 28px; border-radius: 999px; font: 500 14px/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.btn:active { transform: scale(.98); }
.btn--wide { width: 100%; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: #fff; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav__inner { display: flex; align-items: center; height: 64px; }
.brand { font: 500 19px "Comfortaa", var(--sans); text-decoration: none; letter-spacing: -.01em; margin-right: auto; }
.nav__links { display: flex; gap: 40px; }
.nav__links a { text-decoration: none; font-size: 13px; color: var(--ink); opacity: .85; }
.nav__links a:hover { opacity: 1; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; margin-right: -10px; }
.nav__toggle span { display: block; height: 1.5px; background: var(--ink); margin: 6px 0; transition: transform .25s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Hero with notched CTA */
.hero { padding-top: 8px; }
.hero__card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1040 / 515; min-height: 420px; background: #222; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,0) 75%), linear-gradient(0deg, rgba(0,0,0,.4), rgba(0,0,0,0) 55%); }
.hero__copy { position: absolute; left: clamp(20px, 3vw, 32px); bottom: calc(clamp(60px, 7vw, 76px) + 24px); color: #fff; max-width: 560px; padding-right: 16px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); color: #fff; margin-bottom: 12px; }
.hero__copy p { font-size: clamp(13px, 1.2vw, 15px); max-width: 44ch; margin: 0; opacity: .92; }
.hero__notch { position: absolute; left: 0; bottom: 0; width: 40%; background: var(--bg); padding: 12px 12px 0 0; border-top-right-radius: var(--radius); }
.hero__notch::before, .hero__notch::after { content: ""; position: absolute; width: var(--radius); height: var(--radius); background: radial-gradient(circle at 100% 0, transparent calc(var(--radius) - .5px), var(--bg) var(--radius)); }
.hero__notch::before { left: 0; top: calc(var(--radius) * -1); }
.hero__notch::after { right: calc(var(--radius) * -1); bottom: 0; }
.hero__notch .btn { min-height: clamp(48px, 5vw, 60px); }

/* About */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 8vw, 120px); align-items: start; }
.about__text p { max-width: 54ch; color: var(--ink-2); font-size: 14px; }
.places { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.places span { font: 600 15px var(--sans); color: var(--ink-3); letter-spacing: -.01em; filter: grayscale(1); }
.places span:nth-child(1) { font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .02em; }
.places span:nth-child(2) { font-weight: 400; font-size: 16px; }
.places span:nth-child(3) { font-weight: 500; text-transform: uppercase; font-size: 11px; letter-spacing: .12em; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 20px; margin: 0; text-align: center; }
.stats dt { font: 500 clamp(30px, 3.4vw, 38px)/1 var(--sans); letter-spacing: -.02em; }
.stats dd { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }

/* Services rail */
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section__head h2 { margin: 0; }
.section__head p { margin: 8px 0 0; }
.arrows { display: flex; gap: 10px; flex-shrink: 0; }
.arrow { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink); background: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.arrow svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.arrow--dark { background: var(--ink); }
.arrow--dark svg { stroke: #fff; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.svc { scroll-snap-align: start; text-decoration: none; }
.svc__media { position: relative; aspect-ratio: 1 / .9; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; background: var(--soft); }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.svc:hover img { transform: scale(1.05); }
.svc__media span { position: absolute; top: 12px; left: 14px; z-index: 1; color: #fff; font-weight: 600; font-size: 14px; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.svc p { font-size: 12.5px; color: var(--ink-2); max-width: 28ch; }

/* Mosaic */
.mosaic { display: grid; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 150px 160px 200px 56px; gap: 14px; }
.mosaic__intro { grid-column: 1; grid-row: 1 / span 2; padding-top: 4px; }
.mosaic__intro p { font-size: 13.5px; color: var(--ink-2); max-width: 34ch; }
.tile { position: relative; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; background: var(--soft); cursor: pointer; display: block; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tile:hover img { transform: scale(1.05); }
.tile span { position: absolute; right: 16px; bottom: 12px; color: #fff; font: 500 13px var(--sans); text-decoration: underline; text-underline-offset: 3px; text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.tile--a { grid-column: 1; grid-row: 3 / span 2; }
.tile--a img { object-position: 0 0; transform-origin: 0 0; }
.tile--a span { left: 16px; right: auto; }
.tile--b { grid-column: 2; grid-row: 1 / span 2; }
.tile--c { grid-column: 2; grid-row: 3 / span 2; }
.tile--d { grid-column: 3; grid-row: 1 / span 3; }
.tile--e { grid-column: 3; grid-row: 4; min-height: 56px; }

/* Land */
.land__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
.plan { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.plan img { width: 100%; height: auto; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; }
.pin::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; animation: ping 2.4s infinite; }
.pin.is-active::after { inset: 3px; animation: none; box-shadow: 0 0 0 3px #fff, 0 0 0 7px rgba(0,0,0,.55); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.75); } 80%, 100% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.plot-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pill { min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-size: 13px; cursor: pointer; }
.pill.is-active { background: var(--ink); color: #fff; }
.panel h3 { font-size: 22px; margin-bottom: 8px; }
.facts { list-style: none; padding: 0; margin: 0 0 20px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.facts span { color: var(--ink-3); }
.facts b { font-weight: 500; text-align: right; }

/* Villa */
.villa { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.villa__shots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.villa__shots .tile { aspect-ratio: 1; }

/* Process */
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.steps li { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 34px; }
.steps p { font-size: 12.5px; color: var(--ink-2); margin: 0; }

/* Contact */
.contact { background: var(--ink); color: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.contact h2 { color: #fff; }
.contact p { opacity: .85; }
.contact__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 12px; color: rgba(255,255,255,.7); }
.form input, .form select, .form textarea { font: 16px var(--sans); color: var(--ink); background: #fff; border: 0; border-radius: 12px; padding: 13px 14px; width: 100%; }
.form textarea { resize: vertical; }

/* Footer */
.footer { padding: 40px 0; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); font-size: 13px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer a { text-decoration: none; }
.footer .brand { margin: 0; }

.mobile-bar { display: none; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 90vh; }
.lightbox::backdrop { background: rgba(0,0,0,.88); }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 12px; }
.lightbox__close { position: fixed; top: 14px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 26px; cursor: pointer; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pin::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* Tablet */
@media (max-width: 960px) {
  .about, .land__grid, .villa, .contact { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 42%; }
  .steps { grid-template-columns: 1fr 1fr; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .mosaic__intro { grid-column: 1 / -1; grid-row: auto; }
  .tile--a, .tile--b, .tile--c, .tile--d { grid-column: auto; grid-row: auto; aspect-ratio: 1; }
  .tile--e { grid-column: 1 / -1; grid-row: auto; }
}

/* Phone */
@media (max-width: 720px) {
  body { padding-bottom: 80px; }
  .nav__toggle { display: block; }
  .nav__links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 4px var(--gutter) 18px; opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .2s; }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { font-size: 17px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .hero__card { aspect-ratio: auto; min-height: 500px; }
  .hero__img { object-position: 35% 30%; }
  .hero__notch { width: 100%; border-top-right-radius: 0; }
  .hero__notch::after { display: none; }
  .hero__copy { bottom: 92px; }
  .places { gap: 24px; margin-top: 24px; }
  .rail { grid-auto-columns: 74%; }
  .steps { grid-template-columns: 1fr; }
  .steps span { margin-bottom: 14px; }
  .mosaic { gap: 10px; }
  .villa__shots { gap: 10px; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
}
