:root {
    --paper: #ece8e0;
    --paper-2: #f6f3ed;
    --white: #fffefa;
    --ink: #151412;
    --muted: #736c64;
    --line: rgba(17,20,25,.18);
    --wine: #8b655d;
    --ice: #b9b0a4;
    --coral: #745052;
    --sans: "Manrope", Helvetica, Arial, sans-serif;
    --serif: "Inter Tight", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; overflow-x: clip; background: var(--paper-2); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
::selection { background: var(--wine); color: white; }

.top {
    min-height: 90px;
    padding: 0 max(24px,5vw);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: rgba(239,237,230,.9);
    color: var(--ink);
    backdrop-filter: blur(18px) saturate(130%);
}
.brand { display: flex; align-items: center; gap: 12px; }
.mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 50% 50% 12% 50%;
    background: var(--wine);
    color: white;
    font-family: var(--serif);
    font-weight: 500;
}
.brand b { font-size: 12px; }
.top small { margin-top: 3px; display: block; color: var(--muted); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.top-coordinate { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.back {
    justify-self: end;
    padding: 0 0 7px;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    color: var(--ink);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.back i { margin-left: 18px; color: var(--wine); font-style: normal; }

.hero {
    min-height: min(680px, calc(100svh - 90px));
    padding: clamp(70px,9vw,125px) max(24px,5vw) 62px;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(280px,.35fr);
    align-content: center;
    column-gap: 50px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(90deg, rgba(24,19,15,.9) 0, rgba(24,19,15,.58) 53%, rgba(24,19,15,.32) 100%),
        linear-gradient(0deg, rgba(24,19,15,.75), transparent 55%),
        var(--cover-image),
        var(--wine);
    background-size: cover;
    background-position: center;
    color: white;
}
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    pointer-events: none;
}
.hero::before { width: min(56vw,880px); aspect-ratio: 1; right: -17vw; top: -26vw; transform:translate3d(var(--detail-x,0),var(--detail-y,0),80px); }
.hero::after { width: min(27vw,430px); aspect-ratio: 1; right: -2vw; top: -7vw; transform:translate3d(var(--detail-x-neg,0px),var(--detail-y-neg,0px),120px); }
.hero-index {
    position: absolute;
    right: max(24px,5vw);
    top: 42px;
    color: rgba(255,255,255,.55);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .18em;
}
.hero .eyebrow {
    grid-column: 1;
    margin-bottom: 28px;
    color: var(--ice);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .15em;
}
.hero h1 {
    grid-column: 1 / -1;
    max-width: 980px;
    margin: 0;
    color: white;
    font-family: var(--serif);
    font-size: clamp(40px,5.2vw,72px);
    font-weight: 500;
    letter-spacing: -.05em;
    line-height: .94;
    text-wrap: balance;
}
.hero h1::after { content: "."; color: var(--ice); }
.hero-meta {
    grid-column: 1;
    margin-top: 56px;
    padding-top: 18px;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    border-top: 1px solid rgba(255,255,255,.32);
    color: rgba(255,255,255,.64);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.price {
    grid-column: 2;
    grid-row: 3;
    align-self: end;
    justify-self: end;
    margin: 38px 0 0;
    color: white;
    font-family: var(--serif);
    font-size: clamp(28px,3vw,46px);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: .9;
    text-align: right;
}

.gallery {
    min-height: 760px;
    padding: 18px max(24px,5vw) 110px;
    display: grid;
    grid-template-columns: 1.65fr .7fr .9fr;
    grid-template-rows: 360px 360px;
    gap: 16px;
    position: relative;
    background: var(--ink);
}
.gallery button { padding: 0; overflow: hidden; position: relative; border: 0; background: #24272d; cursor: zoom-in; }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery button:nth-child(2) { margin-top: 80px; }
.gallery button:nth-child(3) { margin-bottom: 45px; }
.gallery button:nth-child(4) { margin-bottom: 55px; }
.gallery button:nth-child(5) { margin-top: -45px; }
.gallery img { width: 100%; height: 100%; display: block; object-fit: cover; filter: saturate(.76) contrast(1.05); transition: transform .9s cubic-bezier(.2,.75,.2,1), filter .4s; }
.gallery button:hover img { transform: scale(1.04); filter: saturate(1); }
.gallery button::after { content: "↗"; position: absolute; right: 14px; top: 12px; color: white; font-size: 18px; opacity: 0; transition: opacity .25s, transform .25s; }
.gallery button:hover::after { opacity: 1; transform: translate(3px,-3px); }
.gallery-note { position: absolute; left: max(24px,5vw); bottom: 42px; color: rgba(255,255,255,.46); font-size: 8px; font-weight: 800; letter-spacing: .17em; }

.layout {
    width: min(100% - 48px,1460px);
    max-width: none;
    margin: 0 auto;
    padding: clamp(90px,10vw,160px) 0;
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(340px,420px);
    gap: clamp(45px,8vw,130px);
    align-items: start;
}
.features {
    margin: 0 0 70px;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 0;
    border-top: 1px solid var(--ink);
}
.feature {
    min-height: 130px;
    padding: 22px 18px 16px 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
}
.feature b { display: block; color: var(--wine); font-family: var(--serif); font-size: clamp(32px,3vw,48px); font-weight: 400; letter-spacing: -.04em; }
.feature span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.panel { padding: clamp(28px,4vw,58px); border: 1px solid var(--line); border-radius: 0; background: var(--white); box-shadow: none; }
.section-index { display: block; margin-bottom: 32px; color: var(--wine); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.panel h2 { max-width: 700px; margin: 0 0 34px; color: var(--ink); font-family: var(--serif); font-size: clamp(34px,4vw,58px); font-weight: 500; letter-spacing: -.045em; line-height: .95; }
.description { max-width: 850px; color: #565b65; font-size: 14px; line-height: 1.85; white-space: pre-line; }
.amenities { margin-top: 45px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.amenities span { padding: 14px 5px 14px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; color: var(--ink-2); font-size: 9px; }
.amenities span::before { content: "○"; margin-right: 9px; color: var(--wine); }
.costs { margin-top: 45px; display: grid; }
.cost { padding: 15px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.cost b { color: var(--ink); }

.contact { top: 112px; padding: 34px; position: sticky; border-color: var(--ink); background: var(--ink); color: white; }
.contact .eyebrow { color: var(--ice); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.contact h3 { margin: 25px 0 12px; color: white; font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.contact > p { color: rgba(255,255,255,.48); font-size: 11px; line-height: 1.6; }
.contact-links { margin: 27px 0 34px; display: grid; gap: 8px; }
.cta {
    min-height: 49px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 0;
    background: transparent;
    color: white;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.cta.gold { border-color: var(--wine); background: var(--wine); color: white; }
.cta i { color: var(--ice); font-style: normal; }
.cta:hover { border-color: var(--ice); background: var(--ice); color: var(--ink); }
.contact form { display: grid; gap: 0; }
.contact label { margin: 0; display: grid; gap: 4px; color: rgba(255,255,255,.42); font-size: 7px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.contact input, .contact textarea, .contact select {
    width: 100%;
    min-height: 48px;
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.22);
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: white;
    font: 11px var(--sans);
}
.contact textarea { min-height: 94px; resize: vertical; }
.contact select option { color: var(--ink); }
.contact input:focus, .contact textarea:focus, .contact select:focus { border-color: var(--ice); }
.contact .consent { margin: 14px 0 0; display: flex; align-items: flex-start; gap: 8px; color: rgba(255,255,255,.42); font-size: 8px; font-weight: 500; letter-spacing: 0; line-height: 1.45; text-transform: none; }
.contact .consent input { width: auto; min-height: 0; margin-top: 2px; }

.footer {
    min-height: 140px;
    padding: 40px max(24px,5vw);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    background: var(--paper);
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 9px;
    letter-spacing: .06em;
}
.footer::before { content: "RL / HABITAT IN MOTION"; position: absolute; top: 28px; left: max(24px,5vw); color: var(--wine); font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.lightbox { position: fixed; inset: 0; z-index: 60; padding: 30px; display: none; place-items: center; background: rgba(7,9,13,.94); }
.lightbox.active { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.lightbox button { position: absolute; right: 25px; top: 18px; border: 0; background: transparent; color: white; font-size: 38px; cursor: pointer; }

.property-reveal { opacity: 0; transform: translateY(30px); transition: opacity .75s, transform .85s cubic-bezier(.2,.75,.2,1); }
.property-reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
    .hero { grid-template-columns: 1fr; }
    .price { grid-column: 1; grid-row: auto; justify-self: start; text-align: left; }
    .gallery { min-height: 650px; grid-template-columns: 1.4fr 1fr; grid-template-rows: 390px 220px; }
    .gallery button:first-child { grid-column: 1 / 3; grid-row: auto; }
    .gallery button:nth-child(2) { margin-top: 0; }
    .gallery button:nth-child(3) { margin-bottom: 0; }
    .gallery button:nth-child(n+4) { display: none; }
    .layout { grid-template-columns: 1fr; }
    .contact { position: static; }
}

@media (max-width: 620px) {
    .top { min-height: 72px; padding: 0 16px; grid-template-columns: 1fr auto; }
    .top-coordinate { display: none; }
    .mark { width: 40px; height: 40px; }
    .brand small { display: none; }
    .back { font-size: 0; }
    .back i { margin: 0; font-size: 18px; }
    .hero { min-height: 620px; padding: 75px 18px 54px; }
    .hero-index { right: 18px; top: 23px; }
    .hero h1 { font-size: clamp(38px,11vw,56px); line-height: .94; }
    .hero-meta { margin-top: 40px; gap: 12px 18px; }
    .price { margin-top: 28px; }
    .gallery { min-height: 555px; padding: 12px 12px 80px; grid-template-columns: 1fr 1fr; grid-template-rows: 340px 160px; gap: 8px; }
    .gallery-note { left: 14px; bottom: 33px; }
    .layout { width: calc(100% - 28px); padding: 80px 0; }
    .features { grid-template-columns: 1fr 1fr; }
    .feature { min-height: 105px; }
    .panel { padding: 27px 20px; }
    .panel h2 { font-size: 38px; }
    .amenities { grid-template-columns: 1fr; }
    .contact { padding: 28px 20px; }
    .footer { min-height: 170px; padding: 50px 18px 26px; display: grid; align-content: end; }
    .footer::before { left: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .001ms !important; animation-duration: .001ms !important; }
    .property-reveal { opacity: 1; transform: none; }
}
