/* ==========================================================================
   Cavara Central — landing page
   Identity from the project brief: warm taupe, sand and paper tones,
   Cormorant Garamond (light, widely tracked capitals) over a neutral grotesk.
   ========================================================================== */
@font-face { font-family: "Cormorant"; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/cormorant-garamond-400.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 400; font-style: italic; font-display: swap; src: url(../fonts/cormorant-garamond-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/cormorant-garamond-500.woff2) format("woff2"); }
@font-face { font-family: "Haas Text"; font-weight: 400; font-display: swap; src: url(../fonts/neue-haas-text-400.woff2) format("woff2"); }
@font-face { font-family: "Haas Text"; font-weight: 500; font-display: swap; src: url(../fonts/neue-haas-text-500.woff2) format("woff2"); }
@font-face { font-family: "Haas Display"; font-weight: 300; font-display: swap; src: url(../fonts/neue-haas-display-300.woff2) format("woff2"); }
@font-face { font-family: "Haas Display"; font-weight: 400; font-display: swap; src: url(../fonts/neue-haas-display-400.woff2) format("woff2"); }
@font-face { font-family: "Haas Display"; font-weight: 500; font-display: swap; src: url(../fonts/neue-haas-display-500.woff2) format("woff2"); }

:root {
  --paper: #F3EFE8;
  --sand: #ECE4D5;
  --stone: #DCD2C0;
  --taupe: #816E54;
  --taupe-2: #9C8768;
  --ink: #2B2621;
  --ink-2: #57504A;
  --ink-3: #8A8279;
  --deep: #221E1A;
  --ivory: #F3EEE6;
  --line: rgba(43, 38, 33, .14);
  --line-dark: rgba(243, 238, 230, .16);
  --serif: "Cormorant", "Cormorant Garamond", Georgia, serif;
  --sans: "Haas Text", "Haas Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --num: "Haas Display", "Haas Text", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --max: 1320px;
  --fs-title: clamp(1.9rem, 1.2rem + 2.6vw, 3.6rem);
  --fs-lead: clamp(1.02rem, .95rem + .3vw, 1.18rem);
  --fs-small: .9rem;
  --track: .28em;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
}
@media (max-width: 860px) { :root { --header-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
figure { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--ivory); padding: .6rem 1rem; }
.skip:focus { top: 12px; }
:focus-visible { outline: 1px solid var(--taupe); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) + var(--gutter-r)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* ---------- Type ---------- */
.eyebrow { margin: 0 0 1.1rem; font: 500 .74rem/1 var(--serif); letter-spacing: var(--track); text-transform: uppercase; color: var(--taupe); }
.eyebrow--light, .section--deep .eyebrow { color: var(--taupe-2); }
.title { margin: 0; font: 400 var(--fs-title)/1.08 var(--serif); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); max-width: 18ch; }
.section--deep .title { color: var(--ivory); }
.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--ink-2); margin: 0; max-width: 56ch; }
.section--deep .lead { color: rgba(243, 238, 230, .78); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 48px; padding: .85rem 1.6rem; border: 1px solid currentColor; font: 500 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer; background: transparent; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease); white-space: nowrap; }
.btn .arrow { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn--light { color: var(--ink); background: var(--ivory); border-color: var(--ivory); }
.btn--light:hover { background: var(--taupe); border-color: var(--taupe); color: var(--ivory); }
.btn--solid { color: var(--ivory); background: var(--ink); border-color: var(--ink); }
.btn--solid:hover { background: var(--taupe); border-color: var(--taupe); }
.btn--wide { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); color: var(--ivory); transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease); }
.site-header.is-solid { background: rgba(243, 239, 232, .96); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.2) blur(8px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { position: relative; display: block; width: 150px; flex: none; }
.brand img { width: 100%; height: auto; transition: opacity .4s var(--ease); }
.brand .brand-ink { position: absolute; inset: 0; opacity: 0; }
.site-header.is-solid .brand-ink { opacity: 1; }
.site-header.is-solid .brand-ivory { opacity: 0; }
.nav { display: flex; gap: 2.2rem; margin-left: auto; }
.nav a { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; opacity: .88; position: relative; padding: .4rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .35s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { right: 0; }
.header-cta { min-height: 42px; padding: .7rem 1.2rem; }
.site-header.is-solid .header-cta { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.site-header.is-solid .header-cta:hover { background: var(--taupe); border-color: var(--taupe); }
.menu-btn { display: none; width: 44px; height: 44px; margin-left: auto; background: none; border: 0; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1px; background: currentColor; transition: transform .35s var(--ease), top .35s var(--ease); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }
.drawer { position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--paper); padding: 2rem var(--gutter-r) 2rem var(--gutter); display: flex; flex-direction: column; gap: 2rem; }
.drawer[hidden] { display: none; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav a { font: 400 1.6rem/1 var(--serif); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: block; }
  .brand { width: 124px; }
  body.menu-open .site-header { background: var(--paper); color: var(--ink); }
  body.menu-open .brand-ink { opacity: 1; } body.menu-open .brand-ivory { opacity: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; color: var(--ivory); overflow: hidden; background: var(--deep); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 45%; transform: scale(1.06); animation: heroIn 2.4s var(--ease) forwards; }
@keyframes heroIn { to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(34,30,26,.55) 0%, rgba(34,30,26,.12) 32%, rgba(34,30,26,.18) 55%, rgba(34,30,26,.78) 100%); }
.hero-content { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.6rem; padding-top: calc(var(--header-h) + 2rem); padding-bottom: 2rem; }
.hero-logo { width: min(560px, 74vw); filter: drop-shadow(0 2px 24px rgba(0,0,0,.25)); opacity: 0; animation: fadeUp 1.4s .3s var(--ease) forwards; }
.hero-tag { margin: 0; font: italic 400 clamp(1.3rem, 1rem + 1.2vw, 2rem)/1.2 var(--serif); letter-spacing: .04em; opacity: 0; animation: fadeUp 1.4s .7s var(--ease) forwards; text-shadow: 0 1px 18px rgba(0,0,0,.35); }
.hero-content .btn { opacity: 0; animation: fadeUp 1.2s 1.05s var(--ease) forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-bar { position: relative; border-top: 1px solid var(--line-dark); background: rgba(34,30,26,.55); backdrop-filter: blur(6px); }
.facts { list-style: none; margin-block: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { padding: 1.2rem 1.4rem; border-left: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: .35rem; }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts span { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(243,238,230,.62); }
.facts strong { font: 400 1.05rem/1.25 var(--num); }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li { padding: .9rem 1rem; }
  .facts li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line-dark); }
  .facts strong { font-size: .95rem; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 9vw, 8.5rem); position: relative; }
.section--paper { background: var(--paper); }
.section--sand { background: var(--sand); }
.section--deep { background: var(--deep); color: var(--ivory); }
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
@media (max-width: 860px) { .head { grid-template-columns: 1fr; } }

/* ---------- Intro ---------- */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.intro-copy .title { margin-bottom: 1.8rem; }
.intro-copy p:not(.eyebrow):not(.lead) { color: var(--ink-2); max-width: 54ch; margin: 1.2rem 0 0; }
.intro-media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 2.4rem 0 0; border-top: 1px solid var(--line); }
.specs div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.specs div:nth-child(odd) { padding-right: 1rem; }
.specs div:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
.specs dt { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.specs dd { margin: .35rem 0 0; font: 400 1.3rem/1.2 var(--num); }
.specs small { font-size: .7rem; color: var(--ink-3); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } .intro-media { order: -1; } }

/* ---------- Location ---------- */
.loc { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.map { position: relative; overflow: hidden; background: #EFECE6; }
.map img { width: 100%; height: auto; }
.map-layer { position: absolute; inset: 0; pointer-events: none; }
.map-layer svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.map-route { fill: none; stroke: var(--taupe); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.map.is-on .map-route { animation: draw 1.1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.map-home, .map-ring { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; }
.map-home { background: var(--taupe); box-shadow: 0 0 0 3px rgba(243,238,230,.9); }
.map-home::before, .map-home::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 1.5px solid var(--taupe); animation: pulse 2.8s var(--ease) infinite; }
.map-home::after { animation-delay: 1.4s; }
@keyframes pulse { from { transform: scale(.8); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.map-ring { width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 1.5px solid var(--taupe); background: rgba(243,238,230,.7); opacity: 0; transform: scale(.4); transition: opacity .3s ease .8s, transform .5s var(--ease) .8s; }
.map.is-on .map-ring { opacity: 1; transform: none; }
.map-chip { position: absolute; transform: translate(-50%, calc(-100% - 18px)); background: var(--ink); color: var(--ivory); padding: .5rem .8rem; font-size: .78rem; white-space: nowrap; display: flex; gap: .7rem; opacity: 0; transition: opacity .35s ease .9s; }
.map-chip b { font-weight: 500; }
.map-chip span { color: var(--taupe-2); font-family: var(--num); }
.map-chip.below { transform: translate(-50%, 18px); }
.map.is-on .map-chip { opacity: 1; }
.dist-title { margin: 0; font: 400 1.5rem/1.2 var(--serif); letter-spacing: .02em; }
.hint { margin: .35rem 0 1rem; font-size: .84rem; color: rgba(243,238,230,.55); }
.dist-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.dist-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem .2rem .7rem .8rem; border-bottom: 1px solid var(--line-dark); font-size: .92rem; cursor: pointer; position: relative; color: rgba(243,238,230,.82); transition: color .25s ease, background .25s ease; }
.dist-list li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--taupe-2); transform: scaleY(0); transition: transform .3s var(--ease); }
.dist-list li:hover, .dist-list li.is-active { color: var(--ivory); background: rgba(243,238,230,.04); }
.dist-list li.is-active::before { transform: none; }
.dist-list b { font: 400 .92rem/1.4 var(--num); color: var(--taupe-2); white-space: nowrap; }
.why { list-style: none; margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.why li { padding: 1.6rem 1.4rem 0 0; }
.why li + li { padding-left: 1.4rem; border-left: 1px solid var(--line-dark); }
.why span { font: 400 .8rem/1 var(--num); color: var(--taupe-2); }
.why h4 { margin: .8rem 0 .5rem; font: 500 .82rem/1.2 var(--serif); letter-spacing: var(--track); text-transform: uppercase; }
.why p { margin: 0; font-size: .88rem; color: rgba(243,238,230,.65); }
@media (max-width: 1000px) { .loc { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .why { grid-template-columns: 1fr 1fr; }
  .why li, .why li + li { padding: 1.4rem 1rem 1.4rem 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .why li:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line-dark); }
}
@media (max-width: 700px) {
  .dist-list { columns: 1; }
  .map-chip { font-size: .72rem; padding: .4rem .6rem; }
}

/* ---------- Amenities ---------- */
.feature { position: relative; color: var(--ivory); margin-bottom: clamp(1rem, 2vw, 1.5rem); }
.feature button { display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: none; }
.feature img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; object-position: 50% 60%; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(34,30,26,.72) 0%, rgba(34,30,26,.25) 45%, rgba(34,30,26,0) 70%); pointer-events: none; }
.feature figcaption { position: absolute; z-index: 1; left: clamp(1.2rem, 4vw, 3.5rem); bottom: clamp(1.2rem, 4vw, 3.2rem); max-width: 30rem; pointer-events: none; }
.feature h3 { margin: 0 0 1.2rem; font: 400 clamp(1.4rem, 1.1rem + 1.2vw, 2.2rem)/1.2 var(--serif); }
.feature ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.feature li { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: .45rem .7rem; border: 1px solid rgba(243,238,230,.5); }
@media (max-width: 700px) {
  .feature img { aspect-ratio: 4 / 4.4; object-position: 62% 50%; }
  .feature::after { background: linear-gradient(0deg, rgba(34,30,26,.85) 0%, rgba(34,30,26,.3) 55%, rgba(34,30,26,0) 80%); }
}
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.8rem, 1.5vw, 1.5rem); }
.pillars button, .rail button, .apt-media button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; }
.pillars img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .9s var(--ease); }
.pillars button:hover img, .rail button:hover img, .apt-media button:hover img { transform: scale(1.04); }
.pillars figcaption { padding-top: 1rem; }
.pillars figcaption span { display: block; font: 500 .7rem/1 var(--serif); letter-spacing: var(--track); text-transform: uppercase; color: var(--taupe); }
.pillars figcaption b { display: block; margin-top: .55rem; font: 400 1.25rem/1.2 var(--serif); }
.pillars figcaption p { margin: .4rem 0 0; font-size: .88rem; color: var(--ink-2); }
.more { margin-top: clamp(3rem, 6vw, 5rem); }
.more-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.rail-ctrl { display: flex; gap: .5rem; }
.rail-ctrl button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: background .3s ease, color .3s ease; }
.rail-ctrl button:hover { background: var(--ink); color: var(--ivory); }
.rail-ctrl svg { width: 14px; height: 14px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 1rem) / 3.2); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { scroll-snap-align: start; }
.rail img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .9s var(--ease); }
.rail figcaption { padding-top: .7rem; font-size: .88rem; color: var(--ink-2); }
@media (max-width: 1000px) { .pillars { grid-template-columns: 1fr 1fr; } .rail { grid-auto-columns: calc((100% - 1rem) / 2.2); } }
@media (max-width: 700px) {
  .pillars.rail-m { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .pillars.rail-m::-webkit-scrollbar { display: none; }
  .pillars.rail-m figure { scroll-snap-align: start; }
  .rail { grid-auto-columns: 80%; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .rail-ctrl { display: none; }
}

/* ---------- Apartments ---------- */
.apt { padding-top: clamp(2.5rem, 5vw, 4.5rem); }
.apt + .apt { border-top: 1px solid var(--line); margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.apt-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "media copy" "plan plan"; gap: clamp(1.6rem, 4vw, 4rem) clamp(2rem, 5vw, 5rem); align-items: center; }
.apt--flip .apt-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-areas: "copy media" "plan plan"; }
.apt-media { grid-area: media; }
.apt-media img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; transition: transform .9s var(--ease); }
.apt-copy { grid-area: copy; }
.apt-no { margin: 0 0 .9rem; font: 400 .9rem/1 var(--num); color: var(--taupe); letter-spacing: .08em; }
.apt-no span { color: var(--ink-3); }
.apt-copy h3 { margin: 0 0 1.2rem; font: 400 clamp(1.8rem, 1.3rem + 1.8vw, 2.9rem)/1.05 var(--serif); letter-spacing: .12em; text-transform: uppercase; }
.apt-copy > p { margin: 0; color: var(--ink-2); max-width: 46ch; }
.apt-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 1.8rem 0 2rem; border-top: 1px solid var(--line); }
.apt-stats div { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.apt-stats div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
.apt-stats dt { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.apt-stats dd { margin: .35rem 0 0; font: 400 1.15rem/1.2 var(--num); }
.apt-stats small { font-size: .7rem; color: var(--ink-3); }
.plan { grid-area: plan; display: grid; grid-template-columns: minmax(0, 1fr) 15rem; gap: 0; background: #fff; border: 1px solid var(--line); }
.plan button { position: relative; display: block; padding: clamp(1rem, 3vw, 2.5rem); border: 0; background: none; cursor: zoom-in; }
.plan img { width: 100%; max-height: 520px; object-fit: contain; margin: 0 auto; }
.plan .zoom { position: absolute; right: 1rem; bottom: .8rem; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.plan figcaption { padding: clamp(1.2rem, 2.5vw, 2rem); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: .2rem; background: var(--paper); }
.plan figcaption b { font: 400 1.5rem/1.1 var(--serif); letter-spacing: .1em; text-transform: uppercase; }
.plan figcaption > span { font-size: .8rem; color: var(--ink-3); }
.plan dl { margin: 1.2rem 0 0; }
.plan dl div { display: flex; justify-content: space-between; gap: .6rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.plan dl div:last-child { border-bottom: 0; font-weight: 500; }
.plan dt { color: var(--ink-2); }
.plan dd { margin: 0; font-family: var(--num); }
.plan dd small { color: var(--ink-3); font-size: .72rem; }
.plan--wide img { max-height: none; }
@media (max-width: 960px) {
  .apt-grid, .apt--flip .apt-grid { grid-template-columns: 1fr; grid-template-areas: "media" "copy" "plan"; }
  .plan { grid-template-columns: 1fr; }
  .plan figcaption { border-left: 0; border-top: 1px solid var(--line); }
  .plan dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
  .plan dl div { flex-direction: column; border-bottom: 0; padding: .4rem 0; gap: .15rem; }
  .plan dl div:last-child { font-weight: 400; }
  .plan dd { font-size: 1rem; }
}
@media (max-width: 700px) {
  .apt-media img { aspect-ratio: 4 / 3.4; }
  .apt-copy .btn { width: 100%; }
  .plan .zoom { position: static; display: block; text-align: center; margin-top: .8rem; }
}

/* ---------- Enquire ---------- */
.enquire { overflow: hidden; }
.enquire-bg { position: absolute; inset: 0; }
.enquire-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .2; }
.enquire-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.enquire-copy .title { margin-bottom: 1.6rem; }
.contact { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.contact a { text-decoration: none; display: inline-flex; gap: .8rem; align-items: baseline; font-size: 1.05rem; }
.contact span { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--taupe-2); min-width: 4.5rem; }
.form { background: var(--paper); color: var(--ink); padding: clamp(1.4rem, 3.5vw, 2.8rem); display: flex; flex-direction: column; gap: 1.1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; min-width: 0; }
.field label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.field label.req::after { content: " *"; color: #9a3b2e; }
.field input, .field select, .phone select, .phone input { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1px solid var(--stone); background: #fff; font: 400 1rem/1.3 var(--sans); color: var(--ink); border-radius: 0; -webkit-appearance: none; appearance: none; }
.field select, .phone select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2357504A'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .7rem center; background-size: 14px; padding-right: 2.2rem; }
.field input:focus, .field select:focus { outline: none; border-color: var(--taupe); box-shadow: 0 0 0 1px var(--taupe); }
.phone { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .5rem; }
.field.is-invalid input, .field.is-invalid select { border-color: #9a3b2e; }
.err { font-size: .78rem; color: #9a3b2e; min-height: 0; }
.err:empty { display: none; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .8rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: .1rem; accent-color: var(--ink); }
.form-status { margin: 0; font-size: .85rem; color: var(--ink-2); }
.form-status:empty { display: none; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 960px) { .enquire-inner { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .form .row { grid-template-columns: 1fr; } .phone { grid-template-columns: 7.2rem minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.site-footer { background: #171411; color: rgba(243,238,230,.72); padding-block: clamp(3.5rem, 6vw, 5.5rem) calc(2rem + env(safe-area-inset-bottom, 0px)); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .8fr); gap: 2.5rem; padding-bottom: 2.6rem; border-bottom: 1px solid var(--line-dark); }
.foot-brand img { width: 220px; }
.foot-brand p { margin: 1rem 0 0; font-size: .86rem; }
.site-footer h4 { margin: 0 0 1rem; font: 500 .72rem/1 var(--serif); letter-spacing: var(--track); text-transform: uppercase; color: var(--taupe-2); }
.dev-logo { width: 170px; height: auto; color: var(--ivory); display: block; margin-bottom: 1.2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; font-size: .9rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ivory); }
.foot-legal { padding-top: 1.8rem; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 2rem; font-size: .74rem; line-height: 1.7; color: rgba(243,238,230,.5); }
.foot-legal p { margin: 0; }
.foot-legal .right { text-align: right; }
.foot-legal [data-permit]:not(:empty)::after { content: " · "; }
@media (max-width: 860px) {
  .foot-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-brand img { width: 180px; }
  .foot-legal { grid-template-columns: 1fr; gap: .8rem; }
  .foot-legal .right { text-align: left; }
  .site-footer { padding-bottom: calc(5.6rem + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .6rem var(--gutter-r) calc(.6rem + env(safe-area-inset-bottom, 0px)) var(--gutter); background: rgba(243,239,232,.96); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .4s var(--ease); }
.action-bar .btn { width: 100%; }
.action-bar.is-on { transform: none; }
@media (max-width: 860px) { .action-bar { display: block; } }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 90; background: rgba(23,20,17,.94); display: flex; align-items: center; justify-content: center; padding: 3.5rem 4.5rem; }
.lb[hidden] { display: none; }
.lb figure { max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: .9rem; }
.lb img { max-width: 100%; max-height: calc(100vh - 9rem); object-fit: contain; }
.lb.is-plan img { background: #fff; padding: 1rem; }
.lb figcaption { color: rgba(243,238,230,.8); font-size: .86rem; text-align: center; }
.lb button { position: absolute; width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 1px solid rgba(243,238,230,.3); color: var(--ivory); cursor: pointer; }
.lb button svg { width: 16px; height: 16px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; margin-top: -24px; }
.lb-next { right: 1rem; top: 50%; margin-top: -24px; }
@media (max-width: 700px) { .lb { padding: 4.5rem .8rem 5rem; } .lb-prev, .lb-next { top: auto; bottom: 1rem; margin: 0; } .lb-prev { left: calc(50% - 56px); } .lb-next { right: calc(50% - 56px); } }

/* ---------- Reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* ---------- Thank-you page ---------- */
.ty { min-height: 100svh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--ivory); background: var(--deep); overflow: hidden; }
.ty-bg { position: absolute; inset: 0; }
.ty-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.ty::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(34,30,26,.5), rgba(34,30,26,.75)); }
.ty-inner { position: relative; z-index: 2; padding: 6rem var(--gutter-r) 4rem var(--gutter); max-width: 44rem; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.ty-inner .logo { width: min(320px, 64vw); margin-bottom: 1.2rem; }
.ty-inner .title { color: var(--ivory); max-width: none; }
.ty-inner .lead { color: rgba(243,238,230,.82); }
.ty-inner .actions { display: flex; gap: .8rem; flex-wrap: wrap; justify-content: center; margin-top: .6rem; }
.ty-inner .btn--ghost { color: var(--ivory); border-color: rgba(243,238,230,.5); }
.ty-inner .btn--ghost:hover { background: var(--ivory); color: var(--ink); }
.ty-steps { list-style: none; margin: 1.4rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; text-align: left; width: 100%; }
.ty-steps span { font: 400 .8rem/1 var(--num); color: var(--taupe-2); }
.ty-steps p { margin: .5rem 0 0; font-size: .86rem; color: rgba(243,238,230,.72); }
@media (max-width: 640px) { .ty-steps { grid-template-columns: 1fr; text-align: center; } }

/* ---------- Refinements ---------- */
.hero-shade { background:
  radial-gradient(ellipse 55% 42% at 50% 46%, rgba(34,30,26,.5) 0%, rgba(34,30,26,.18) 70%, rgba(34,30,26,0) 100%),
  linear-gradient(180deg, rgba(34,30,26,.55) 0%, rgba(34,30,26,.15) 30%, rgba(34,30,26,.2) 60%, rgba(34,30,26,.8) 100%); }
#amenities .title, #apartments .title { max-width: 24ch; }
/* Location: map full width, distances in columns underneath */
.loc { grid-template-columns: 1fr; gap: 2rem; }
.dist-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 2.4rem; border-top: 0; }
.dist-list li { border-top: 0; }
.dist-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: .6rem; }
.dist-head .hint { margin: 0; }
@media (max-width: 1000px) { .dist-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .dist-list { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .feature { background: var(--deep); }
  .feature::after { display: none; }
  .feature img { aspect-ratio: 4 / 3; object-position: 60% 50%; }
  .feature figcaption { position: static; max-width: none; padding: 1.4rem 1.2rem 1.5rem; }
  .feature h3 { font-size: 1.35rem; margin-bottom: 1rem; }
  .feature li { font-size: .64rem; padding: .4rem .55rem; }
}

/* Footer: developer block only */
.foot-top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.foot-nav { justify-self: end; }
.foot-nav ul { display: grid; grid-template-columns: repeat(2, max-content); gap: .55rem 2.5rem; }
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr; gap: 2rem; } .foot-nav { justify-self: stretch; } .foot-nav ul { grid-template-columns: 1fr 1fr; } }

/* Mobile: driving distances as a compact two-column grid of tappable tiles */
@media (max-width: 640px) {
  .loc { gap: 1.2rem; }
  .dist-head { margin-bottom: .8rem; }
  .dist-head .hint { font-size: .78rem; }
  .dist-list { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .dist-list li { flex-direction: column; justify-content: flex-start; gap: .2rem; padding: .65rem .7rem; border: 1px solid var(--line-dark); font-size: .8rem; line-height: 1.3; min-height: 0; }
  .dist-list li::before { width: 100%; height: 2px; top: auto; bottom: -1px; transform: scaleX(0); transform-origin: left; }
  .dist-list li.is-active { border-color: rgba(156,135,104,.7); }
  .dist-list li.is-active::before { transform: none; }
  .dist-list b { font-size: .78rem; }
  .why { margin-top: 2.2rem; }
}
/* Mobile: two-row swipe strip so the map stays in view */
@media (max-width: 640px) {
  .dist-list { grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); padding-bottom: 2px; }
  .dist-list::-webkit-scrollbar { display: none; }
  .dist-list li { scroll-snap-align: start; }
  .dist-head .hint::after { content: " Swipe for more."; }
}
.loc > *, .dist { min-width: 0; }
