/* =====================================================================
   brabusm3m - site styles
   Mobile-first, no framework. Everything here is render-critical, so it
   stays in one file and loads before paint.
   ===================================================================== */

:root {
    color-scheme: light;

    --bg:          #ffffff;
    --bg-alt:      #f7f5f1;   /* warm off-white for alternating sections */
    --bg-card:     #ffffff;
    --ink:         #16161a;
    --ink-muted:   #5d584f;
    --ink-faint:   #7a7469;

    /* Two golds on purpose: the bright one is for fills, the dark one for
       text and borders. Bright gold on white is only ~2.5:1 and fails
       contrast as soon as it is used for type. */
    --gold:        #8a6a0f;
    --gold-bright: #c9a227;
    --gold-soft:   #e0c45b;
    --gold-dim:    rgba(201, 162, 39, 0.14);
    --on-gold:     #1a1405;   /* type sitting on a bright-gold fill */

    --line:        rgba(22, 22, 26, 0.10);
    --line-strong: rgba(22, 22, 26, 0.20);
    --danger:      #b4432f;
    --success:     #2f7d4f;

    /* The hero keeps a dark scrim so light type stays legible over the
       photograph; these are the only dark surfaces left on the site. */
    --scrim:       #0b0b0c;
    --on-scrim:    #f5f2ec;

    --font-sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;

    --wrap:   1180px;
    --narrow: 760px;
    --radius: 2px;

    /* Generous by default; individual sections vary it below so the page
       has a pulse instead of one uniform gap. */
    --space-section: clamp(4.5rem, 10vw, 9rem);

    /* Motion: one slow, decelerating curve used everywhere. */
    --ease:        cubic-bezier(.22, .61, .36, 1);
    --reveal-dur:  .85s;

    /* On a light page a 1px border alone reads flat; a hairline shadow
       gives the few raised surfaces just enough lift without looking like
       a UI kit. Most components use hairline borders instead. */
    --shadow-sm: 0 1px 2px rgba(22, 22, 26, .04), 0 1px 3px rgba(22, 22, 26, .05);
    --shadow-md: 0 2px 6px rgba(22, 22, 26, .06), 0 8px 20px rgba(22, 22, 26, .05);
}

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 1rem/1.75 var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

/* Display type: Cormorant is only loaded in 400 and 600. Large sizes use
   400 (light, confident); small headings use 600 so they do not thin out. */
h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.012em;
    margin: 0 0 1rem;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.06; letter-spacing: -0.018em; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -0.016em; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.005em; }

p { margin: 0 0 1.25rem; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.visually-hidden, .hp {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute; top: -100%; left: 0; z-index: 200;
    padding: .75rem 1.25rem;
    background: var(--gold-bright); color: var(--on-gold);
    font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---------------------------------------------------------------- layout */
.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 1.25rem;
}
@media (min-width: 900px) { .wrap { padding-inline: 2rem; } }

.wrap.narrow, .narrow-block { max-width: var(--narrow); margin-inline: auto; }

.section { padding-block: var(--space-section); }
.section-alt { background: var(--bg-alt); }

/* Vary the vertical rhythm so the page breathes unevenly, like an editorial
   spread: a long opening, tighter working sections, a calm close. */
#intro      { padding-bottom: calc(var(--space-section) * 1.15); }
#residences { padding-top: calc(var(--space-section) * 1.1); }
#highlights { padding-block: calc(var(--space-section) * 1.2); }
#gallery    { padding-bottom: calc(var(--space-section) * .9); }
#location   { padding-block: calc(var(--space-section) * 1.15); }
#insights   { padding-block: calc(var(--space-section) * .9); }

.eyebrow {
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 1rem;
}
.eyebrow a { text-decoration: none; }

.section-title { margin-bottom: 1.25rem; }
.section-intro { color: var(--ink-muted); max-width: 62ch; margin-bottom: 2.5rem; }
.section-cta { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.section-cta--center { text-align: center; }

.lead {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    line-height: 1.45;
    color: var(--ink);
    max-width: 52ch;
    margin-bottom: 1.75rem;
}

.prose p, .split-body p, .post-excerpt { max-width: 66ch; }
.split-body > p:not(.eyebrow):not(.lead) { color: var(--ink-muted); }

.link-arrow {
    display: inline-block;
    padding-block: .5rem .35rem;
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid var(--gold);
    transition: color .3s var(--ease), border-color .3s var(--ease);
}
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { border-bottom-color: var(--ink); }

/* Section heading block: eyebrow, title, hairline, intro. */
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head .section-title { margin-bottom: 0; }
.section-head .section-intro { margin-bottom: 0; }
.section-head--center { text-align: center; }
.section-head--center .section-intro { margin-inline: auto; max-width: 56ch; }

.rule {
    display: block;
    width: 48px;
    height: 1px;
    margin: 1.5rem 0 1.75rem;
    background: var(--gold-bright);
    border: 0;
}
.rule--center { margin-inline: auto; }

/* ---------------------------------------------------------------- buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 52px;
    padding: .95rem 2rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font: 600 .78rem/1.2 var(--font-sans);
    letter-spacing: .16em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

.btn-primary { background: var(--gold-bright); color: var(--on-gold); border-color: var(--gold-bright); }
.btn-primary:hover { background: #b8941f; border-color: #b8941f; color: var(--on-gold); }

.btn-outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(22, 22, 26, .03); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------------------------------------------------------------- header */
/* Translucent over the page at the top, solid with a hairline once the
   visitor has scrolled (JS toggles .is-scrolled). */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .72);
    -webkit-backdrop-filter: blur(14px) saturate(1.1);
    backdrop-filter: blur(14px) saturate(1.1);
    border-bottom: 1px solid transparent;
    transition: background-color .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.site-header.is-scrolled {
    background: rgba(255, 255, 255, .96);
    border-bottom-color: var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
    transition: min-height .5s var(--ease);
}
.is-scrolled .header-inner { min-height: 64px; }

.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.brand-mark {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: .26em;
}
.brand-sub {
    font-size: .62rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px; height: 44px;
    padding: 0 10px;
    background: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
}
.nav-toggle span {
    display: block; height: 1px;
    background: var(--ink);
    transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    display: none;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
}
.site-nav.is-open { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li + li { border-top: 1px solid var(--line); }
.site-nav a {
    position: relative;
    display: block;
    padding: .95rem .25rem;
    color: var(--ink);
    font-size: .95rem;
    text-decoration: none;
    transition: color .3s var(--ease);
}
.site-nav a:hover { color: var(--gold); }
.site-nav a[aria-current="page"] { color: var(--gold); }

/* Current section: gold text plus a small dot (mobile) or a fine underline
   (desktop). No pill, no heavy state. */
.site-nav ul a::after {
    content: "";
    position: absolute;
    right: .35rem; top: 50%;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--gold-bright);
    transform: translateY(-50%) scale(0);
    transition: transform .4s var(--ease);
}
.site-nav a.is-active { color: var(--gold); }
.site-nav a.is-active::after { transform: translateY(-50%) scale(1); }

.nav-phone,
.site-nav .nav-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 1rem;
    padding: .7rem 1.4rem;
    background: var(--gold-bright);
    color: var(--on-gold) !important;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background-color .35s var(--ease);
}
.nav-phone:hover, .site-nav .nav-phone:hover { background: #b8941f; }

@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .site-nav {
        position: static;
        display: flex;
        align-items: center;
        gap: 2.25rem;
        padding: 0;
        background: none;
        border: 0;
    }
    .site-nav ul { display: flex; gap: 2rem; }
    .site-nav li + li { border: 0; }
    .site-nav a { padding: .6rem 0; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
    .site-nav ul a::after {
        left: 0; right: 0; top: auto; bottom: .2rem;
        width: auto; height: 1px;
        border-radius: 0;
        background: var(--gold);
        transform: scaleX(0);
        transform-origin: left center;
    }
    .site-nav a.is-active::after { transform: scaleX(1); }
    .nav-phone, .site-nav .nav-phone { margin: 0; padding: .65rem 1.25rem; }
}

/* ---------------------------------------------------------------- hero */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(88vh, 820px);
    padding-block: clamp(4rem, 10vw, 6rem) clamp(5.5rem, 11vw, 7.5rem);
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .85;
    z-index: 0;
}

/* Scrim, not a blackout: heavy behind the copy at the bottom, almost clear
   at the top so the architecture is actually visible. Keep the lower stops
   dark - the headline and stats sit on them. */
.hero::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(
        to top,
        var(--scrim) 0%,
        rgba(11, 11, 12, .92) 32%,
        rgba(11, 11, 12, .62) 62%,
        rgba(11, 11, 12, .28) 100%
    );
    z-index: 1;
}

.hero-inner { position: relative; z-index: 2; }
.hero h1 {
    max-width: 20ch;
    font-size: clamp(2.4rem, 7vw, 4.75rem);
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}
.hero-sub { max-width: 56ch; color: var(--ink-muted); font-size: clamp(1rem, 2.2vw, 1.2rem); line-height: 1.7; }

/* Specification strip: no tiles, just a hairline above and a little air. */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1rem;
    margin: 2.75rem 0 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.stat { padding: 0; background: none; }
.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.85rem);
    line-height: 1.2;
    color: var(--gold);
}
.stat-label {
    display: block;
    font-size: .66rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-top: .35rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note {
    margin-top: 1.75rem;
    font-size: .74rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

@media (min-width: 720px) {
    .hero-stats { grid-template-columns: repeat(4, 1fr); gap: 1rem 2rem; }
}

/* The hero is the one dark surface on a light site, so it needs its own
   light-on-dark colours rather than the page tokens it would otherwise
   inherit. Everything below the hero is light. */
.hero { color: var(--on-scrim); }
.hero h1 { color: #ffffff; }
.hero .eyebrow { color: var(--gold-soft); }
.hero-sub { color: rgba(245, 242, 236, .84); }
.hero-stats { border-top-color: rgba(245, 242, 236, .24); }
.stat-value { color: var(--gold-soft); }
.stat-label { color: rgba(245, 242, 236, .66); }
.hero-note { color: rgba(245, 242, 236, .62); }

.hero .btn-ghost { color: #ffffff; border-color: rgba(255, 255, 255, .45); }
.hero .btn-ghost:hover { border-color: #ffffff; background: rgba(255, 255, 255, .08); }

/* Scroll cue: a hairline with a short light segment sliding down it. */
.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: .75rem;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 44px;
    height: 60px;
    transform: translateX(-50%);
    text-decoration: none;
}
.hero-scroll span {
    position: relative;
    display: block;
    width: 1px;
    height: 44px;
    overflow: hidden;
    background: rgba(245, 242, 236, .26);
}
.hero-scroll span::after {
    content: "";
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 45%;
    background: var(--on-scrim);
    animation: scroll-cue 2.6s cubic-bezier(.65, 0, .35, 1) infinite;
}
@keyframes scroll-cue {
    0%   { transform: translateY(-100%); }
    65%, 100% { transform: translateY(230%); }
}
@media (max-height: 640px) { .hero-scroll { display: none; } }

/* ---------------------------------------------------------------- page head */
.page-head {
    padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2rem, 5vw, 3rem);
    border-bottom: 1px solid var(--line);
}
.page-head h1, .post-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-sub { color: var(--ink-muted); max-width: 62ch; margin: 0; }
.page-address { color: var(--ink-faint); font-size: .9rem; margin-top: .75rem; }

.price-range {
    margin-top: 1.25rem;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.3rem);
    color: var(--gold);
}
.price-range span {
    display: block;
    font-family: var(--font-sans);
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* ---------------------------------------------------------------- breadcrumbs */
.breadcrumbs { padding-block: .9rem; border-bottom: 1px solid var(--line); font-size: .8rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--ink-faint); }
.breadcrumbs a { color: var(--ink-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs [aria-current] { color: var(--ink-faint); }

/* ---------------------------------------------------------------- prose */
.prose { color: var(--ink); }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 3rem; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.prose h3 { margin-top: 2.25rem; }
.prose ul, .prose ol { margin: 0 0 1.4rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .55rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
    margin: 2.25rem 0;
    padding: 1rem 1.5rem;
    border-left: 2px solid var(--gold);
    color: var(--ink-muted);
    font-style: italic;
}
.prose img { margin-block: 2rem; border-radius: var(--radius); }
.prose figure { margin: 2rem 0; }
.prose figcaption { font-size: .85rem; color: var(--ink-faint); margin-top: .5rem; }
.prose table { width: 100%; }

/* ---------------------------------------------------------------- split layout */
/* The core image/text pairing. Stacks on phones; side by side from 900px. */
.split {
    display: grid;
    gap: clamp(2rem, 5vw, 3rem);
    align-items: center;
}
.split-body { min-width: 0; }
.split-body > :last-child { margin-bottom: 0; }

.split-media {
    position: relative;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--bg-alt);
}
.split-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.6s var(--ease);
}
/* One refined treatment: a keyline inset inside the photograph, like a
   mount on a framed print. */
.split-media::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, .55);
    pointer-events: none;
}
.split-media--tall { aspect-ratio: 4 / 5; }

/* On a phone the picture leads each feature; text follows. */
.split--feature .split-media { order: -1; }

@media (min-width: 900px) {
    .split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(3rem, 7vw, 7rem);
    }
    .split-media { aspect-ratio: 5 / 4; }
    .split-media--tall { aspect-ratio: 4 / 5; }
    .split-media::after { inset: 16px; }

    .split--reverse .split-media { order: -1; }
    .split--feature .split-media { order: 0; }
    .split--feature.split--reverse .split-media { order: -1; }

    .split--location { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
}

/* Highlight rows: tighter columns, clear air between the three rows. */
.split--feature { gap: 1.75rem; }
.split--feature .split-media { aspect-ratio: 4 / 3; }
.split--feature + .split--feature { margin-top: clamp(3.5rem, 9vw, 7.5rem); }
@media (min-width: 900px) {
    .split--feature { gap: clamp(2.5rem, 5vw, 5rem); }
    .split--feature .split-media { aspect-ratio: 3 / 2; }
}

@media (hover: hover) {
    .split-media:hover img { transform: scale(1.035); }
}

/* ---------------------------------------------------------------- metrics band */
/* Full-bleed photograph with a dark scrim and four large figures. */
.band {
    position: relative;
    overflow: hidden;
    padding-block: clamp(5rem, 12vw, 9.5rem);
    background: var(--scrim);
    color: var(--on-scrim);
}
.band-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}
.band::after {
    content: "";
    position: absolute; inset: 0;
    background: rgba(11, 11, 12, .76);
    background: color-mix(in srgb, var(--scrim) 76%, transparent);
    z-index: 1;
}
.band-inner { position: relative; z-index: 2; }

.metric-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1.25rem;
    text-align: center;
}
.metric {
    padding: 2rem .5rem 2.25rem;
    border-top: 1px solid rgba(245, 242, 236, .2);
}
.metric-num {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--on-scrim);
}
.metric-sup {
    position: relative;
    top: -.55em;
    margin-left: .08em;
    font-size: .45em;
    letter-spacing: 0;
    color: var(--gold-soft);
}
.metric-cap {
    display: block;
    margin-top: 1rem;
    font-size: .68rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: rgba(245, 242, 236, .8);
}

@media (min-width: 760px) {
    .metric-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
    .metric { padding: .5rem 1rem; border-top: 0; }
    .metric + .metric { border-left: 1px solid rgba(245, 242, 236, .2); }
}

/* ---------------------------------------------------------------- grids */
.metric-grid, .amenity-grid, .unit-grid, .post-grid, .cluster-grid, .time-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .metric-grid, .amenity-grid, .post-grid, .cluster-grid, .time-grid { grid-template-columns: repeat(2, 1fr); }
    .unit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
    .metric-grid, .time-grid { grid-template-columns: repeat(4, 1fr); }
    .amenity-grid, .unit-grid, .post-grid, .cluster-grid { grid-template-columns: repeat(3, 1fr); }
    .post-grid-wide { grid-template-columns: repeat(2, 1fr); }
    .amenity-grid, .post-grid, .unit-grid { gap: 1.75rem; }
}

.metric-card, .amenity-card, .time-card {
    padding: 1.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .5s var(--ease);
}
.metric-card p, .amenity-card p, .time-card p { color: var(--ink-muted); font-size: .92rem; margin: 0; }
.metric-card h3, .amenity-card h3, .time-card h3 { margin-bottom: .5rem; }

.metric-value, .time-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--gold);
    margin-bottom: .5rem;
}
.time-value small { font-size: .9rem; color: var(--ink-faint); }

/* ---------------------------------------------------------------- amenity cards */
.amenity-card { overflow: hidden; }
@media (hover: hover) {
    .amenity-card:hover { border-color: var(--line-strong); }
}

/* The image bleeds to the card edge: negative margins cancel the padding
   that the shared card rule (and the image-less amenities page) relies on. */
.amenity-media {
    margin: -1.75rem -1.5rem 1.4rem;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-alt);
}
.amenity-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.4s var(--ease);
}
@media (hover: hover) {
    .amenity-card:hover .amenity-media img { transform: scale(1.05); }
}
.amenity-body { padding: 0; }
.amenity-body h3 { margin-bottom: .6rem; }

/* No photograph: a quiet typographic card with a gold top rule, sized to
   sit comfortably beside the image cards. */
.amenity-card--plain {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 11rem;
    padding: 2rem 1.75rem;
    background: var(--bg-alt);
    border-color: transparent;
    border-top: 1px solid var(--gold);
}

/* ---------------------------------------------------------------- unit cards */
/* A specification sheet: hairline rows, the price as the anchor. */
.unit-card {
    display: flex;
    flex-direction: column;
    padding: clamp(1.75rem, 3vw, 2.5rem);
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color .5s var(--ease);
}
@media (hover: hover) {
    .unit-card:hover { border-color: var(--line-strong); }
}
.unit-eyebrow {
    font-size: .66rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: .75rem;
}
.unit-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .6rem; }
.unit-area {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line-strong);
    color: var(--ink);
    font-size: 1rem;
    letter-spacing: .02em;
}
.unit-area span { color: var(--ink-faint); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin-left: .35rem; }

.unit-features { list-style: none; margin: 0 0 1.75rem; padding: 0; font-size: .9rem; }
.unit-features li {
    position: relative;
    padding: .7rem 0 .7rem 1.4rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink-muted);
    line-height: 1.5;
}
.unit-features li:last-child { border-bottom: 0; }
.unit-features li::before { content: "\2014"; position: absolute; left: 0; color: var(--gold); }

.unit-price {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-strong);
    margin-bottom: 1.5rem;
}
.unit-price-label {
    display: block;
    font-size: .66rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: .35rem;
}
.unit-price strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.4vw, 2.6rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--gold);
}

/* ---------------------------------------------------------------- tables */
.table-scroll { overflow-x: auto; margin-bottom: 2rem; -webkit-overflow-scrolling: touch; }

.data-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    font-size: .92rem;
}
.data-table caption {
    text-align: left;
    padding-bottom: .9rem;
    color: var(--ink-faint);
    font-size: .82rem;
}
.data-table th, .data-table td {
    padding: 1rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.data-table thead th {
    background: var(--bg-card);
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 600;
    border-bottom-color: var(--line-strong);
}
.data-table tbody th { font-weight: 600; color: var(--ink); }
.data-table tbody tr:hover { background: rgba(22, 22, 26, .025); }
.cell-sub { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-faint); }
.price-table tbody td strong { color: var(--gold); }
.table-note { font-size: .82rem; color: var(--ink-faint); max-width: 70ch; }
.table-note--center { margin-inline: auto; margin-top: 1.75rem; max-width: 60ch; text-align: center; }

/* Denser variant for the narrow column beside the location photograph. */
.data-table--compact { min-width: 0; font-size: .88rem; }
.data-table--compact th, .data-table--compact td { padding: .7rem .6rem; line-height: 1.45; }
.data-table--compact th:first-child, .data-table--compact td:first-child { padding-left: 0; }
.data-table--compact th:last-child, .data-table--compact td:last-child { padding-right: 0; text-align: right; }
.data-table--compact thead th { font-size: .62rem; letter-spacing: .14em; }

.group-title { margin-top: 3rem; margin-bottom: 1.1rem; font-size: 1.25rem; }

/* ---------------------------------------------------------------- floor plans */
.plan-row {
    display: grid;
    gap: 1.75rem;
    padding-block: 2.5rem;
    border-bottom: 1px solid var(--line);
}
.plan-media img { border: 1px solid var(--line); background: #fff; border-radius: var(--radius); }
.plan-placeholder {
    display: grid;
    place-items: center;
    gap: 1rem;
    aspect-ratio: 4 / 3;
    padding: 2rem;
    text-align: center;
    background: var(--bg-card);
    border: 1px dashed var(--line-strong);
}
.plan-placeholder p { color: var(--ink-faint); margin: 0; }

.plan-specs { margin: 0 0 1.5rem; }
.plan-specs div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--line);
}
.plan-specs dt { color: var(--ink-faint); font-size: .85rem; }
.plan-specs dd { margin: 0; font-weight: 600; }

@media (min-width: 880px) {
    .plan-row { grid-template-columns: 1.15fr 1fr; align-items: center; gap: 3rem; }
}

/* ---------------------------------------------------------------- gallery */
.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-btn {
    min-height: 44px;
    padding: .5rem 1.1rem;
    background: transparent;
    color: var(--ink-muted);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font: 600 .78rem/1 var(--font-sans);
    letter-spacing: .08em;
    cursor: pointer;
    transition: border-color .3s var(--ease), color .3s var(--ease);
}
.filter-btn:hover { border-color: var(--line-strong); color: var(--ink); }
.filter-btn.is-active { background: var(--gold-bright); color: var(--on-gold); border-color: var(--gold-bright); }

.gallery-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.gallery-item {
    margin: 0;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .5s var(--ease);
}
.gallery-item img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    transition: transform 1.4s var(--ease);
}
@media (hover: hover) {
    .gallery-item:hover { border-color: var(--line-strong); }
    .gallery-item:hover img { transform: scale(1.04); }
}
.gallery-placeholder { display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #efece6, #e2ded5); }
.gallery-item figcaption {
    padding: 1rem 1.1rem;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-muted);
}
.gallery-item figcaption strong { display: block; }
.gallery-item figcaption span, .gallery-item figcaption time {
    display: block; color: var(--ink-faint); font-size: .8rem; font-weight: 400; letter-spacing: .02em; text-transform: none; margin-top: .25rem;
}
.gallery-item[hidden] { display: none; }

/* Editorial arrangement for the homepage: the lead image is large, the
   rest fill around it. Single column on phones. */
.gallery-grid--feature .gallery-item--wide img { aspect-ratio: 16 / 10; }

@media (min-width: 640px) {
    .gallery-grid--feature .gallery-item--wide { grid-column: 1 / -1; }
}
@media (min-width: 980px) {
    .gallery-grid--feature .gallery-item--wide {
        grid-column: span 2;
        grid-row: span 2;
        display: flex;
        flex-direction: column;
    }
    /* height:0 + flex-grow stops the photo's intrinsic size from setting the
       row height; the smaller neighbours decide it, the lead image fills it. */
    .gallery-grid--feature .gallery-item--wide img {
        flex: 1 1 0;
        height: 0;
        min-height: 0;
        aspect-ratio: auto;
    }
    /* With seven items one is left alone on the last row; give it the full
       width as a panoramic strip instead of an orphan. */
    .gallery-grid--feature .gallery-item:nth-child(7):last-child { grid-column: 1 / -1; }
    .gallery-grid--feature .gallery-item:nth-child(7):last-child img { aspect-ratio: 21 / 8; }
}

/* ---------------------------------------------------------------- posts */
.post-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .5s var(--ease);
}
.post-card:hover { border-color: var(--line-strong); }
.post-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.post-card-media { overflow: hidden; }
.post-card-media img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform 1.4s var(--ease); }
@media (hover: hover) {
    .post-card:hover .post-card-media img { transform: scale(1.04); }
}
.post-card-placeholder { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #efece6, #e2ded5); }
.post-card-body { padding: 1.5rem 1.4rem 1.6rem; }
.post-card-cat {
    display: inline-block;
    font-size: .64rem;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .75rem;
}
.post-card h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.post-card p { color: var(--ink-muted); font-size: .9rem; margin-bottom: 1rem; }
.post-card-meta { font-size: .76rem; letter-spacing: .04em; color: var(--ink-faint); }

.cluster-card {
    display: block;
    padding: 1.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: inherit;
    text-decoration: none;
    transition: border-color .5s var(--ease);
}
.cluster-card:hover { border-color: var(--gold); color: inherit; }
.cluster-label {
    display: block;
    font-size: .64rem;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .6rem;
}
.cluster-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.cluster-card p { color: var(--ink-muted); font-size: .88rem; margin-bottom: .75rem; }
.cluster-count { font-size: .78rem; color: var(--ink-faint); }

/* single post */
.post-head { padding-block: clamp(3rem, 8vw, 5rem) 1.75rem; }
.post-excerpt { color: var(--ink-muted); font-size: clamp(1.05rem, 2.2vw, 1.2rem); max-width: 62ch; }
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    font-size: .82rem;
    color: var(--ink-faint);
    padding-top: .5rem;
}
.post-author { color: var(--ink); font-weight: 600; }
.post-updated { color: var(--gold); }

.post-hero { margin: 0 0 clamp(2rem, 5vw, 3.5rem); }
.post-hero img { width: 100%; max-height: 62vh; object-fit: cover; }

.post-body { font-size: 1.06rem; line-height: 1.85; }
.post-body h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); }

.author-box {
    margin-top: 3.5rem;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-left: 2px solid var(--gold);
    border-radius: var(--radius);
}
.author-box h2 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; font-family: var(--font-sans); font-weight: 600; color: var(--ink-faint); }
.author-name { font-weight: 600; margin-bottom: .5rem; }
.author-box p { font-size: .92rem; color: var(--ink-muted); }
.author-rera { font-size: .82rem !important; color: var(--ink-faint) !important; margin: 0 !important; }

/* ---------------------------------------------------------------- pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    margin-top: 3rem;
}
.pagination ul { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.page-link {
    display: inline-grid;
    place-items: center;
    min-width: 44px; min-height: 44px;
    padding: 0 .75rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink-muted);
    font-size: .88rem;
    text-decoration: none;
    transition: border-color .3s var(--ease), color .3s var(--ease);
}
.page-link:hover { border-color: var(--gold); color: var(--gold); }
.page-link.is-current { background: var(--gold-bright); color: var(--on-gold); border-color: var(--gold-bright); }
.page-gap { display: grid; place-items: center; min-width: 32px; color: var(--ink-faint); }

/* ---------------------------------------------------------------- forms */
.enquiry { padding-block: calc(var(--space-section) * .5) var(--space-section); }
.enquiry-card {
    max-width: 640px;
    margin-inline: auto;
    padding: clamp(1.75rem, 5vw, 3.5rem);
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-top: 1px solid var(--gold);
    border-radius: var(--radius);
}
.enquiry-card h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.enquiry-blurb { color: var(--ink-muted); font-size: .95rem; margin-bottom: 2rem; }

.field { margin-bottom: 1.25rem; }
.field label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-bottom: .5rem;
}
.field input, .field select, .field textarea {
    width: 100%;
    min-height: 50px;
    padding: .8rem .95rem;
    background: #fcfbf9;
    color: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    font: 400 1rem/1.5 var(--font-sans);
    transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.field textarea { min-height: 104px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--gold);
    background: #fff;
    outline: none;
}
.field input[aria-invalid="true"] { border-color: var(--danger); }

.field-consent label {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .82rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink-muted);
    cursor: pointer;
}
.field-consent input {
    width: 20px; height: 20px; min-height: 0;
    margin-top: 2px;
    flex: 0 0 auto;
    accent-color: var(--gold);
}

.form-error {
    padding: .8rem 1rem;
    margin-bottom: 1.25rem;
    background: rgba(180, 67, 47, .08);
    border-left: 2px solid var(--danger);
    color: #8c2f1f;
    font-size: .88rem;
}
.form-note { font-size: .76rem; color: var(--ink-faint); margin: 1rem 0 0; text-align: center; }

.search-form { display: flex; gap: .5rem; margin-top: 1.5rem; }
.search-form input {
    flex: 1;
    min-height: 50px;
    padding: .75rem 1rem;
    background: #fcfbf9;
    color: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    font-size: 1rem;
}

/* ---------------------------------------------------------------- faq */
/* Centred column to match the section heads above it; the question list
   itself stays left-aligned for readability. */
.faq-section { padding-bottom: calc(var(--space-section) * .6); }
.faq-section > .wrap { max-width: calc(var(--narrow) + 2.5rem); }
.faq-section .eyebrow, .faq-section .section-title { text-align: center; }
.faq-section .section-title::after {
    content: "";
    display: block;
    width: 48px;
    height: 1px;
    margin: 1.5rem auto 0;
    background: var(--gold-bright);
}
.faq-section .faq-list { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

.faq-list { max-width: var(--narrow); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    min-height: 44px;
    padding: 1.5rem 0;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.2vw, 1.4rem);
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    list-style: none;
    transition: color .3s var(--ease);
}
.faq-item summary:hover { color: var(--gold); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    flex: 0 0 auto;
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--gold);
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-answer { padding-bottom: 1.75rem; color: var(--ink-muted); font-size: .98rem; max-width: 62ch; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- misc blocks */
.notice {
    padding: 1.1rem 1.3rem;
    margin-bottom: 2rem;
    background: var(--gold-dim);
    border-left: 2px solid var(--gold);
    font-size: .92rem;
}

.inline-cta {
    padding: clamp(2rem, 5vw, 3rem);
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.inline-cta p { color: var(--ink-muted); margin-bottom: 1.5rem; }
.inline-cta .btn { margin: .25rem; }

.empty-state { color: var(--ink-faint); text-align: center; padding-block: 2.5rem; }

.plain-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.plain-list li { padding: .7rem 0; border-bottom: 1px solid var(--line); }

.error-page { text-align: center; }
.error-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-bottom: 3rem; }

.thankyou .section-title { margin-top: 3rem; text-align: left; }

/* The one place a little typographic drama is welcome. */
.pullquote {
    margin: 0;
    padding-block: clamp(1rem, 3vw, 2rem);
    text-align: center;
}
.pullquote::before {
    content: "\201C";
    display: block;
    height: .5em;
    margin-bottom: .75rem;
    font-family: var(--font-display);
    font-size: clamp(4rem, 9vw, 6.5rem);
    line-height: 1;
    color: var(--gold-bright);
}
.pullquote p {
    max-width: 30em;
    margin: 0 auto;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3.8vw, 2.7rem);
    font-weight: 400;
    line-height: 1.28;
    letter-spacing: -0.012em;
    color: var(--ink);
}
.pullquote footer {
    max-width: 52ch;
    margin: clamp(2rem, 4vw, 3rem) auto 0;
    padding-top: 2rem;
    font-size: .86rem;
    line-height: 1.75;
    color: var(--ink-muted);
    position: relative;
}
.pullquote footer::before {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 48px; height: 1px;
    margin-left: -24px;
    background: var(--gold-bright);
}

/* ---------------------------------------------------------------- contact */
.contact-layout { display: grid; gap: 2.5rem; }
.contact-row {
    display: grid;
    grid-template-columns: 7rem 1fr;
    gap: 1rem;
    padding: .9rem 0;
    border-bottom: 1px solid var(--line);
    margin: 0;
}
.contact-row > span:first-child {
    font-size: .72rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--ink-faint);
}
@media (min-width: 900px) {
    .contact-layout { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
    .contact-form .enquiry { padding-block: 0; }
}

/* ---------------------------------------------------------------- footer */
.site-footer {
    padding-top: clamp(4.5rem, 9vw, 7.5rem);
    background: var(--bg-alt);
    border-top: 1px solid var(--line);
    font-size: .9rem;
}
.footer-grid { display: grid; gap: 3rem; padding-bottom: clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 760px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 4rem; } }

.footer-brand .brand-mark { display: block; font-size: 1.7rem; letter-spacing: .3em; color: var(--ink); }
.footer-brand p { color: var(--ink-muted); max-width: 34ch; margin-top: 1rem; }
.footer-brand address { color: var(--ink-faint); font-style: normal; margin-top: 1rem; line-height: 1.7; }
.footer-contact {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-top: .25rem;
    text-decoration: none;
}

.footer-col h2 {
    font-family: var(--font-sans);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 1.1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0; }
.footer-col a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink-muted);
    text-decoration: none;
    transition: color .3s var(--ease);
}
.footer-col a:hover { color: var(--gold); }
.footer-compliance li { color: var(--ink-muted); padding-block: .4rem; line-height: 1.6; }
.footer-compliance strong { color: var(--ink); }

.disclaimer {
    padding-block: 2.25rem;
    border-top: 1px solid var(--line);
}
.disclaimer p { font-size: .78rem; line-height: 1.8; color: var(--ink-faint); margin: 0; max-width: none; }
.disclaimer strong { color: var(--ink-muted); }

.footer-base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem 1.75rem;
    justify-content: space-between;
    padding-block: 1.25rem;
    border-top: 1px solid var(--line);
    font-size: .76rem;
    letter-spacing: .02em;
    color: var(--ink-faint);
}
.footer-base p { margin: 0; }
.footer-base nav { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.footer-base a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink-faint);
    text-decoration: none;
}
.footer-base a:hover { color: var(--gold); }

/* ---------------------------------------------------------------- sticky cta */
.sticky-cta {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-strong);
    border-top: 1px solid var(--line-strong);
    box-shadow: 0 -2px 12px rgba(22, 22, 26, .08);
    transform: translateY(100%);
    transition: transform .45s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); }

.sticky-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 56px;
    padding: .5rem;
    background: var(--bg-card);
    color: var(--ink);
    font: 600 .8rem/1.2 var(--font-sans);
    letter-spacing: .06em;
    text-decoration: none;
    text-align: center;
}
.sticky-enquire { background: var(--gold-bright); color: var(--on-gold); }
.sticky-wa { background: #1f7a4d; color: #fff; }

@media (min-width: 900px) {
    .sticky-cta { display: none; }
}

/* leave room for the bar on mobile so it never covers the footer */
@media (max-width: 899px) {
    body { padding-bottom: 56px; }
}

/* ---------------------------------------------------------------- scroll reveal */
/* JS adds .will-reveal only when it can also add .is-revealed, so with
   scripting off nothing is ever hidden. Movement is deliberately small. */
.will-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--reveal-dur) var(--ease), transform var(--reveal-dur) var(--ease);
}
.will-reveal.is-revealed {
    opacity: 1;
    transform: none;
}

/* Light stagger for siblings that arrive together. */
.metric-strip > .will-reveal:nth-child(2),
.unit-grid > .will-reveal:nth-child(3n+2),
.amenity-grid > .will-reveal:nth-child(3n+2),
.gallery-grid > .will-reveal:nth-child(3n+2) { transition-delay: .1s; }
.metric-strip > .will-reveal:nth-child(3),
.unit-grid > .will-reveal:nth-child(3n),
.amenity-grid > .will-reveal:nth-child(3n),
.gallery-grid > .will-reveal:nth-child(3n) { transition-delay: .2s; }
.metric-strip > .will-reveal:nth-child(4) { transition-delay: .3s; }

/* Reduced motion, part two: these overrides must come after the rules they
   cancel, so they live at the end of the file. Nothing may stay hidden or
   keep looping when motion is off. */
@media (prefers-reduced-motion: reduce) {
    .will-reveal { opacity: 1; transform: none; transition-delay: 0s; }
    .hero-scroll span::after { animation: none; transform: translateY(0); }
    .split-media img, .amenity-media img, .gallery-item img, .post-card-media img { transition: none; }
    .split-media:hover img, .amenity-card:hover .amenity-media img,
    .gallery-item:hover img, .post-card:hover .post-card-media img { transform: none; }
}

/* A section CTA may carry more than one link; keep them on one line with
   a clear gap rather than running together. */
.section-cta--center .link-arrow + .link-arrow { margin-left: 2rem; }
@media (max-width: 599px) {
    .section-cta--center .link-arrow { display: block; }
    .section-cta--center .link-arrow + .link-arrow { margin-left: 0; margin-top: .75rem; }
}

/* ---------------------------------------------------------------- lead popup */
.lead-popup {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding: 1rem;
}
.lead-popup[hidden] { display: none; }

.lead-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 11, 12, .55);
    backdrop-filter: blur(3px);
    animation: popup-fade .25s ease both;
}

.lead-popup-panel {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    padding: 2rem 1.5rem 1.5rem;
    background: var(--bg-card);
    border-top: 2px solid var(--gold-bright);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(22, 22, 26, .28);
    animation: popup-rise .3s cubic-bezier(.22, .68, .35, 1) both;
}

/* The form partial brings its own card chrome; inside the modal the panel
   already provides it, so strip the duplicate frame. */
.lead-popup-panel .enquiry { padding-block: 0; }
.lead-popup-panel .enquiry-card {
    max-width: none;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
}

.lead-popup-close {
    position: absolute;
    top: .6rem;
    right: .6rem;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    border-radius: 50%;
    color: var(--ink-faint);
    cursor: pointer;
}
.lead-popup-close:hover { color: var(--ink); background: var(--bg-alt); }

body.has-popup { overflow: hidden; }

@keyframes popup-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes popup-rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lead-popup-backdrop,
    .lead-popup-panel { animation: none; }
}

/* ---------------------------------------------------------------- phone field */
.field-phone { display: flex; align-items: stretch; }
.field-phone .field-prefix {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 .85rem;
    background: var(--bg-alt);
    border: 1px solid var(--line-strong);
    border-right: 0;
    border-radius: var(--radius) 0 0 var(--radius);
    font-size: .88rem;
    color: var(--ink-muted);
    white-space: nowrap;
}
.field-phone input { border-radius: 0 var(--radius) var(--radius) 0; }

/* ---------------------------------------------------------------- popup form */
.lead-popup-rule {
    display: block;
    width: 40px;
    height: 2px;
    margin-bottom: 1.25rem;
    background: var(--gold-bright);
}
.lead-popup-panel .enquiry-card h2 { margin-bottom: .4rem; }
.lead-popup-panel .enquiry-blurb { margin-bottom: 1.5rem; }
.lead-popup-panel .field { margin-bottom: .85rem; }
.lead-popup-panel .field-consent { margin-block: 1rem; }
.lead-popup-panel .form-note { margin-top: .75rem; }

.btn-call { margin-top: .6rem; }

/* ---------------------------------------------------------------- popup: fit without scrolling
   The panel is a fixed-height box on short laptop viewports, so everything
   inside has to be budgeted. These overrides tighten the form enough that the
   Call now button stays above the fold at ~560px of viewport height. */
.lead-popup-panel {
    padding: 1.5rem 1.4rem 1.25rem;
}
.lead-popup-panel .enquiry-card h2 {
    font-size: clamp(1.25rem, 3.4vw, 1.6rem);
    margin-bottom: .35rem;
}
.lead-popup-panel .enquiry-blurb {
    font-size: .86rem;
    line-height: 1.5;
    margin-bottom: 1.1rem;
}
.lead-popup-panel .field { margin-bottom: .7rem; }
.lead-popup-panel .field > label {
    font-size: .7rem;
    letter-spacing: .1em;
    margin-bottom: .25rem;
}
.lead-popup-panel .field input,
.lead-popup-panel .field select {
    min-height: 44px;
    padding-block: .5rem;
}
.lead-popup-panel .field-consent {
    margin-block: .8rem .9rem;
}
.lead-popup-panel .field-consent label { font-size: .76rem; line-height: 1.45; }
.lead-popup-panel .btn { min-height: 46px; padding-block: .6rem; }
.lead-popup-panel .btn-call { margin-top: .5rem; }
.lead-popup-panel .form-note { margin-top: .6rem; font-size: .72rem; }
.lead-popup-rule { margin-bottom: .9rem; }

/* Shorter viewports: drop the supporting copy rather than let the primary
   actions fall below the fold. */
@media (max-height: 760px) {
    .lead-popup { padding: .5rem; }
    .lead-popup-panel { padding: 1.1rem 1.25rem 1rem; }
    .lead-popup-panel .enquiry-blurb,
    .lead-popup-panel .form-note { display: none; }
    .lead-popup-rule { margin-bottom: .6rem; }
    .lead-popup-panel .enquiry-card h2 { font-size: 1.2rem; margin-bottom: .6rem; }
    .lead-popup-panel .field { margin-bottom: .55rem; }
    .lead-popup-panel .field input { min-height: 40px; }
    .lead-popup-panel .field-consent { margin-block: .65rem .7rem; }
    .lead-popup-panel .btn { min-height: 42px; }
}

@media (max-height: 620px) {
    .lead-popup-panel .field > label { font-size: .66rem; }
    .lead-popup-panel .field input { min-height: 38px; }
    .lead-popup-panel .field-consent label { font-size: .72rem; }
    .lead-popup-panel .btn { min-height: 40px; font-size: .82rem; }
}
