/* --- CSS VARIABLES & TOKENS --- */
:root {
    /* Day Theme Colors */
    --color-bg-day: #eeece4;
    --color-bg-day-rgb: 238, 236, 228;
    --color-text-day: #1a1f24;
    --color-sky-day: linear-gradient(180deg, #5479ad 0%, #7f9fc9 24%, #adc2da 48%, #d6dde2 68%, #eeece4 86%);
    --color-surface-day: #eeece4;
    --color-border-day: #d6d4cc;
    
    /* Night Theme Colors */
    --color-bg-night: #080c14;
    --color-bg-night-rgb: 8, 12, 20;
    --color-text-night: #e0e6ed;
    --color-sky-night: linear-gradient(180deg, #03060a 0%, #070d1c 50%, #0b1328 80%, #080c14 100%);
    --color-surface-night: #111826;
    --color-border-night: #1f2937;

    /* Active Theme Variables (Default Day) */
    --bg-color: var(--color-bg-day);
    --bg-color-rgb: var(--color-bg-day-rgb);
    --text-color: var(--color-text-day);
    --surface-color: var(--color-surface-day);
    --border-color: var(--color-border-day);
    
    /* Brand accent */
    --accent: #F17943;
    --accent-soft: rgba(241, 121, 67, 0.1);
    --shadow-rgb: 26, 31, 36;

    /* Typography */
    --font-display: 'Cormorant Garamond', serif;
    --font-ui: 'Inter', sans-serif;
    
    /* System Configs */
    --cloud-speed: 70s;
    --foreground-cloud-speed: 40s;
    --transition-speed: 0.8s;
    --parallax-distance: 400px;
}

body.night-mode {
    --bg-color: var(--color-bg-night);
    --bg-color-rgb: var(--color-bg-night-rgb);
    --text-color: var(--color-text-night);
    --surface-color: var(--color-surface-night);
    --border-color: var(--color-border-night);
    --shadow-rgb: 0, 0, 0;
}

/* --- RESET & BASE --- */
[hidden] {
    display: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Proportional scaling: every rem on the site follows the screen's width AND
   height, so a section that fits a 1440x900 screen also fits 1280x720 and
   fills a 2560x1440 monitor instead of floating in empty space.
   1366x768 -> ~15px, 1440x900 -> 16px, 1920x1080 -> ~18.7px, 2560x1440 -> ~23px */
html {
    scroll-behavior: smooth;
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Standard-height numbers everywhere: Cormorant's old-style "0" reads like "o" */
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
}

@media (min-width: 1025px) {
    html {
        font-size: clamp(0.875rem, calc(0.366rem + 0.356vw + 0.558vh), 1.5rem);
    }
}

@media (max-width: 380px) {
    html {
        font-size: 93.75%;
    }
}

body {
    font-family: var(--font-ui);
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .display-title, .hero-title, .brand-word {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

img {
    max-width: 100%;
    display: block;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: clamp(4rem, 13vh, 7.5rem) 0;
}

/* --- NAVBAR: see "NAVBAR" section at the end of this file --- */

/* --- HERO SECTION --- */
.hero-stage {
    position: relative;
    background-color: #000;
}

.hero-viewport {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 32rem;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sky-bg {
    position: absolute;
    inset: 0;
    background: var(--color-sky-day);
    transition: background var(--transition-speed) ease;
    z-index: 0;
}

body.night-mode .sky-bg {
    background: var(--color-sky-night);
}

/* Stars */
.stars-container {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    transition: opacity var(--transition-speed) ease;
    pointer-events: none;
}

body.night-mode .stars-container {
    opacity: 1;
}

.star {
    position: absolute;
    background-color: #fff;
    border-radius: 50%;
    animation: twinkle 4s infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.3; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1.2); }
}

/* --- Procedural Clouds (rendered by js/clouds.js) --- */
.sky-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 45% 40% at 78% 18%, rgba(255, 246, 225, 0.55), transparent 70%),
        radial-gradient(ellipse 80% 50% at 50% 100%, rgba(255, 255, 255, 0.35), transparent 70%);
    transition: opacity var(--transition-speed) ease;
}

body.night-mode .sky-glow {
    background:
        radial-gradient(ellipse 30% 26% at 80% 16%, rgba(170, 190, 235, 0.16), transparent 70%),
        radial-gradient(ellipse 80% 40% at 50% 100%, rgba(60, 80, 130, 0.18), transparent 70%);
}

.sky-clouds {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    will-change: transform;
}

.cloud-layer {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.cloud-layer.is-ready {
    opacity: 1;
}

.cloud-layer--high { top: -6%; height: 44%; }
.cloud-layer--mid  { top: 4%;  height: 70%; }
.cloud-layer--far  { top: 36%; height: 30%; }

.cloud-strip {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat-x;
    background-size: 50% 100%;
    animation: cloudDrift var(--drift, 240s) linear infinite;
    transition: opacity var(--transition-speed) ease;
    will-change: transform;
}

.cloud-layer--high .cloud-strip { --drift: 150s; }
.cloud-layer--mid  .cloud-strip { --drift: 260s; }
.cloud-layer--far  .cloud-strip { --drift: 420s; }
.cloud-layer--bank .cloud-strip { --drift: 340s; animation-direction: reverse; }

.cloud-strip--night { opacity: 0; }
body.night-mode .cloud-strip--day { opacity: 0; }
body.night-mode .cloud-strip--night { opacity: 1; }

@keyframes cloudDrift {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

/* Foreground cloud bank — in front of the buildings, melts into the page */
.foreground-clouds {
    position: absolute;
    inset: 0;
    z-index: 15; /* Covers buildings (10) but behind text (20) */
    pointer-events: none;
    will-change: transform;
}

.cloud-bank {
    position: absolute;
    left: 0;
    right: 0;
    top: 54%;
    height: 400vh;
    animation: bankSettle 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes bankSettle {
    from { transform: translate3d(0, -14vh, 0); }
    to   { transform: translate3d(0, 0, 0); }
}

.cloud-layer--bank {
    top: 0;
    height: 72vh;
    transition: opacity 0.6s ease;
}

/* Soft gradient that is visible immediately (before textures are ready) */
.cloud-bank-fallback {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 72vh;
    background: linear-gradient(
        to bottom,
        rgba(var(--bg-color-rgb), 0) 0%,
        rgba(var(--bg-color-rgb), 0.35) 40%,
        rgba(var(--bg-color-rgb), 0.85) 72%,
        rgba(var(--bg-color-rgb), 1) 100%
    );
    transition: opacity 0.8s ease;
}

.cloud-bank:has(.is-ready) .cloud-bank-fallback {
    opacity: 0.55;
}

.hero-fade-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 34vh;
    z-index: 16;
    pointer-events: none;
    /* Eased scrim: no visible start or end line */
    background: linear-gradient(
        to bottom,
        rgba(var(--bg-color-rgb), 0) 0%,
        rgba(var(--bg-color-rgb), 0.04) 12%,
        rgba(var(--bg-color-rgb), 0.14) 26%,
        rgba(var(--bg-color-rgb), 0.32) 40%,
        rgba(var(--bg-color-rgb), 0.55) 55%,
        rgba(var(--bg-color-rgb), 0.78) 70%,
        rgba(var(--bg-color-rgb), 0.93) 84%,
        rgba(var(--bg-color-rgb), 1) 96%
    );
}

.cloud-bank-base {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(72vh - 2px);
    bottom: 0;
    background-color: var(--bg-color);
    transition: background-color var(--transition-speed) ease;
}

/* Buildings */
.hero-buildings {
    position: absolute;
    bottom: 1.25rem;
    right: 5%;
    height: 95vh;
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 10;
    pointer-events: none;
}

.hero-buildings img {
    position: absolute;
    height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom right;
    bottom: 0;
    right: 0;
    transition: opacity var(--transition-speed) ease;
}

.day-building { 
    opacity: 1;
    transform-origin: bottom right;
}
.night-building { 
    opacity: 0;
    transform-origin: bottom right;
}

body.night-mode .day-building { opacity: 0; }
body.night-mode .night-building { 
    opacity: 1;
}

/* Hero Content */
.hero-content {
    position: absolute;
    z-index: 20;
    text-align: left;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.875rem;
    width: 50%;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    padding: 0;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 0;
}

.hero-content {
    gap: 1.375rem;
    transform: translateY(calc(-50% - var(--hero-lift, 0px)));
    will-change: transform, opacity;
}

.hero-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-eyebrow::before {
    content: '';
    width: 1.75rem;
    height: 1px;
    background: var(--accent);
}

.hero-sub {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.6vw, 1.45rem);
    line-height: 1.45;
    max-width: 30em;
    opacity: 0.92;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.625rem;
    margin-top: 0.375rem;
}

.hero-link {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.hero-link:hover { opacity: 1; }

.hero-trust {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem 1.625rem;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    margin-top: 0.5rem;
    opacity: 0.85;
}

.hero-trust li {
    display: inline-flex;
    align-items: center;
    white-space: pre;
}

.hero-trust li::before {
    content: '';
    margin-right: 0.5625rem;
    width: 0.3125rem;
    height: 0.3125rem;
    border-radius: 50%;
    background: var(--accent);
}

.hero-trust strong {
    font-weight: 500;
}

/* Buttons */
.btn-premium {
    background: transparent;
    border: 1px solid currentColor;
    color: currentColor;
    padding: 0.875rem 2rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.btn-premium:hover {
    background: #fff;
    color: #000;
}

.btn-solid {
    display: inline-block;
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
    box-shadow: 0 10px 30px rgba(var(--shadow-rgb), 0.18);
}

.btn-solid:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(var(--shadow-rgb), 0.25);
}


.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: var(--text-color);
    color: var(--bg-color);
}

.nav-links .btn-outline {
    border-color: currentColor;
    padding: 0.625rem 1.5rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 5%;
    z-index: 20;
    color: var(--text-color);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.9375rem;
}

.scroll-text {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    font-family: var(--font-ui);
    opacity: 0.8;
}

.scroll-arrow {
    animation: scrollBounce 2s infinite ease-in-out;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* --- OTHER SECTIONS --- */
.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 3.75rem;
    text-align: center;
}

.lead-text {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-family: var(--font-display);
    margin-bottom: 1.875rem;
    line-height: 1.4;
}

.intro-content {
    max-width: 50rem;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Layouts */
.grid-layout {
    display: grid;
    gap: 2.5rem;
}

.asymmetric-grid {
    grid-template-columns: 3fr 2fr;
    align-items: center;
}

.mt-4 { margin-top: 2.5rem; }
.mb-8 { margin-bottom: 5rem; }
.text-center { text-align: center; }

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2.5rem;
}

.residence-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    transform: translateY(var(--parallax-y, 0px));
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.residence-card:hover {
    transform: translateY(calc(var(--parallax-y, 0px) - 10px));
}

.parallax-item {
    transform: translateY(var(--parallax-y, 0px));
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform;
}

.residence-card img {
    width: 100%;
    height: 17.5rem;
    object-fit: cover;
}

.card-content {
    padding: 1.875rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.625rem;
}

.meta {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-bottom: 1.25rem;
}

.btn-link {
    background: none;
    border: none;
    color: inherit;
    font-family: var(--font-ui);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.25rem;
    margin-top: 1.25rem;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-link:hover {
    opacity: 0.7;
}

/* Amenities Grid */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15.625rem, 1fr));
    gap: 1.875rem;
}

.amenity-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.amenity-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.amenity-item:hover img {
    transform: scale(1.05);
}

.amenity-item h4 {
    position: absolute;
    bottom: 1.875rem;
    left: 1.875rem;
    color: #fff;
    z-index: 2;
}

.amenity-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    pointer-events: none;
}

/* Lifestyle Parallax */
.lifestyle-section {
    padding: 0;
    height: 80vh;
    height: 80svh;
    min-height: 26rem;
    position: relative;
    overflow: hidden;
}

.lifestyle-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Simple CSS Parallax */
    display: flex;
    align-items: center;
    justify-content: center;
}

.lifestyle-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
}

.lifestyle-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
}

/* Location Grid */
.location-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.75rem;
    align-items: center;
}

.connectivity-list {
    list-style: none;
    margin-top: 1.875rem;
}

.connectivity-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.9375rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.connectivity-list .time {
    font-family: var(--font-display);
    opacity: 0.7;
}

.map-placeholder {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    height: 25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    letter-spacing: 0.1em;
    opacity: 0.6;
}

/* Gallery */
.masonry-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.masonry-gallery img {
    width: 100%;
    height: 25rem;
    object-fit: cover;
}

.masonry-gallery .span-2 {
    grid-column: span 2;
    height: 37.5rem;
}

/* Curtain Section */
.curtain-section {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.curtain-images {
    display: flex;
    width: 100%;
    height: 100%;
}

.curtain-images img {
    width: 50%;
    height: 100%;
    object-fit: cover;
}

.post-curtain {
    position: relative;
    z-index: 2;
    background-color: var(--bg-color);
    transition: background-color var(--transition-speed) ease;
}

/* Partners Section (Scroll-driven) */
.partners-section {
    position: relative;
    height: 250vh; /* scroll distance */
    background-color: var(--bg-color);
    transition: background-color var(--transition-speed) ease;
}

.partners-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1200px;
}

.partners-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partners-center {
    position: absolute;
    text-align: center;
    z-index: 1; /* behind cards */
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.1s ease, transform 0.1s ease;
    pointer-events: none;
}

.partners-eyebrow {
    font-family: var(--font-ui);
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    opacity: 0.7;
    display: block;
    margin-bottom: 1.25rem;
}

.partners-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.25rem;
    font-weight: 500;
}

.partners-desc {
    font-family: var(--font-ui);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    opacity: 0.8;
}

.partner-card {
    position: absolute;
    width: clamp(8.5rem, 11vw, 13.5rem);
    aspect-ratio: 1 / 1.18;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(0.75rem, 1.1vw, 1.25rem);
    z-index: 2;
    transform-origin: center center;
    will-change: transform;
    opacity: 0; /* JS handles reveal */
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

body.night-mode .partner-card {
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.partner-logo-box {
    width: 100%;
    height: clamp(2.4rem, 4vw, 3.8rem);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 6px 12px;
    margin-bottom: clamp(0.45rem, 0.8vw, 0.85rem);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

body.night-mode .partner-logo-box {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

.partner-logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.partner-type {
    font-family: var(--font-display);
    font-size: clamp(0.85rem, 1.15vw, 1.35rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: 0.04em;
    opacity: 0.95;
    text-transform: uppercase;
}

.cta-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

/* Footer */
.footer {
    background-color: var(--surface-color);
    border-top: 1px solid var(--border-color);
    padding: 6.25rem 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3.75rem;
    margin-bottom: 5rem;
}

.footer h3, .footer h4 {
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.footer-brand p {
    opacity: 0.7;
    max-width: 18.75rem;
}

.footer-brand .footer-rera {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: rgba(var(--bg-color-rgb), 0.5);
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.3s, border-color 0.3s;
}

.footer-brand .footer-rera:hover {
    opacity: 1;
    border-color: var(--accent);
}

.footer-brand .footer-rera svg {
    color: var(--accent);
    flex-shrink: 0;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-contact p {
    opacity: 0.7;
    margin-bottom: 0.625rem;
}

.footer-contact a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.3s, color 0.3s;
}

.footer-contact a:hover {
    opacity: 1;
    color: var(--accent);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-links a {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.footer-bottom p {
    opacity: 0.65;
}

.footer-sep {
    margin: 0 0.5rem;
    opacity: 0.6;
}

.footer-bottom-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s, opacity 0.3s;
}

.footer-bottom-link:hover {
    color: var(--accent);
    opacity: 1;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .asymmetric-grid {
        grid-template-columns: 1fr;
    }
    .specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-buildings {
        height: 60vh;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 3.75rem 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-buildings {
        height: 55vh;
        width: 100%;
        right: 0;
        justify-content: center;
    }
    .hero-buildings img {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        object-position: bottom center;
    }
    .hero-buildings .night-building {
        transform: translateX(-50%) scale(0.97) translate(-4px, -4px);
    }
    .hero-content {
        width: 100%;
        left: 0;
        padding: 0 5%;
        text-align: center;
        align-items: center;
        top: 25%;
    }
    .cloud-strip {
        width: 400%;
        background-size: 50% 100%;
    }
    .cloud-layer--high {
        top: -4%;
        height: 38%;
    }
    .cloud-layer--mid {
        top: 6%;
        height: 50%;
    }
    .cloud-layer--far {
        top: 34%;
        height: 24%;
    }
    .cloud-bank {
        top: 60%;
    }
    .cloud-layer--bank,
    .cloud-bank-fallback {
        height: 60vh;
    }
    .cloud-bank-base {
        top: calc(60vh - 2px);
    }
    .cards-grid, .amenities-grid {
        grid-template-columns: minmax(100%, 1fr);
    }
    .location-grid {
        grid-template-columns: 1fr;
    }
    .masonry-gallery {
        grid-template-columns: 1fr;
    }
    .masonry-gallery .span-2 {
        grid-column: span 1;
        height: 18.75rem;
    }
    .specs-grid {
        grid-template-columns: 1fr;
    }
    .details-box {
        padding: 2.5rem 1.25rem;
    }
    .footer {
        padding: 3.75rem 0 1.875rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .cta-actions {
        flex-direction: column;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .cloud-strip, .cloud-bank {
        animation: none !important;
    }
}

/* =====================================================================
   CONVERSION SECTIONS (homepage)
   ===================================================================== */

.section-eyebrow {
    display: block;
    text-align: center;
    font-family: var(--font-ui);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.125rem;
}

.section-sub {
    max-width: 40rem;
    margin: -1.875rem auto 3.125rem;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.45;
    opacity: 0.85;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}


/* Intro */
.intro-section {
    padding-top: 2.5rem;
}

.intro-content {
    max-width: 75rem;
}

.intro-lead {
    max-width: 53.75rem;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: clamp(1.2rem, 1.7vw, 1.45rem);
}

.usp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr));
    gap: 1.25rem;
    text-align: left;
}

.usp-card {
    background: transparent;
    border: 1px solid rgba(128, 128, 128, 0.2);
    padding: 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.usp-card.is-visible:hover,
.usp-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(241, 121, 67, 0.15);
    transform: translateY(-3px);
}

.usp-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.usp-card p {
    font-family: var(--font-display);
    font-size: 1.12rem;
    line-height: 1.45;
    opacity: 0.9;
}

/* Savings calculator */
.savings-section {
    position: relative;
}

.savings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.savings-copy .section-eyebrow {
    text-align: left;
}

.savings-title {
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    line-height: 1.02;
    margin-bottom: 1.75rem;
}

.savings-copy p {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.5;
    opacity: 0.88;
    max-width: 30em;
    margin-bottom: 1rem;
}

.savings-copy strong {
    color: var(--accent);
    font-weight: 600;
}

.savings-card {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2.75rem;
    box-shadow: 0 30px 80px rgba(var(--shadow-rgb), 0.1);
}

body.day-mode .savings-card {
    background: #f7f6f1;
}

.savings-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.7;
}

.savings-budget {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 4vw, 3.4rem);
    font-weight: 500;
    line-height: 1.2;
    margin: 0.375rem 0 1.125rem;
}

#budget-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 0.25rem;
    border-radius: 2px;
    background: linear-gradient(to right, var(--accent) 0%, var(--accent) var(--fill, 17%), var(--border-color) var(--fill, 17%));
    outline: none;
    cursor: pointer;
}

#budget-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--surface-color);
    border: 2px solid var(--accent);
    box-shadow: 0 4px 12px rgba(241, 121, 67, 0.35);
    transition: transform 0.2s ease;
}

#budget-range::-moz-range-thumb {
    width: 1.375rem;
    height: 1.375rem;
    border-radius: 50%;
    background: var(--surface-color);
    border: 2px solid var(--accent);
}

#budget-range:active::-webkit-slider-thumb { transform: scale(1.15); }
#budget-range:focus-visible { box-shadow: 0 0 0 4px var(--accent-soft); }

.range-scale {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    opacity: 0.55;
    margin-top: 0.625rem;
}

.savings-rows {
    margin: 1.875rem 0 0;
}

.savings-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.savings-row dd {
    font-family: var(--font-display);
    font-size: 1.3rem;
    white-space: nowrap;
}

.savings-row:first-child dd {
    text-decoration: line-through;
    text-decoration-color: rgba(241, 121, 67, 0.7);
    opacity: 0.75;
}

.savings-row--ours dd {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.6rem;
}

.savings-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 1.625rem 0 1.875rem;
}

.savings-total span {
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.savings-total strong {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.4vw, 2.9rem);
    font-weight: 600;
    color: var(--accent);
    line-height: 1;
}

.savings-cta {
    width: 100%;
    text-align: center;
}

/* Process */
.process-section {
    background: var(--surface-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-speed) ease;
}

body.day-mode .process-section {
    background: #e6e3d9;
}

.process-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 1.75rem;
    left: 4%;
    right: 4%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent) 15%, var(--accent) 85%, transparent);
    opacity: 0.5;
}

.process-step {
    position: relative;
}

.process-step:nth-child(2) { transition-delay: 0.1s; }
.process-step:nth-child(3) { transition-delay: 0.2s; }
.process-step:nth-child(4) { transition-delay: 0.3s; }

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 1px solid var(--accent);
    background: var(--bg-color);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1.3rem;
    margin-bottom: 1.625rem;
    position: relative;
    transition: background-color var(--transition-speed) ease;
}

.process-step h3 {
    font-size: 1.45rem;
    margin-bottom: 0.625rem;
    text-transform: none;
    letter-spacing: 0.01em;
}

.process-step p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.process-footnote {
    text-align: center;
    margin-top: 3.75rem;
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.process-footnote strong {
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 0.05em;
}

/* Residences: link-style CTA */
a.btn-link {
    display: inline-block;
}

a.btn-link:hover {
    color: var(--accent);
    opacity: 1;
}

/* Lifestyle CTA */
.lifestyle-cta {
    display: inline-block;
    margin-top: 2.125rem;
    color: #fff;
}

/* Areas */
.area-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 60rem;
    margin: 0 auto;
}

.area-chip {
    padding: 0.75rem 1.375rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.92rem;
    letter-spacing: 0.03em;
    background: var(--surface-color);
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

body.day-mode .area-chip {
    background: #f6f5f0;
}

.area-chip:hover,
.area-chip:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.area-chip:last-child {
    border-style: dashed;
}

/* FAQ */
.faq-container {
    max-width: 56.25rem;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.625rem 3.125rem 1.625rem 0;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
    position: relative;
    transition: color 0.25s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0.375rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-ui);
    font-weight: 300;
    font-size: 1.6rem;
    color: var(--accent);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-item summary:hover {
    color: var(--accent);
}

.faq-item p {
    padding: 0 3.125rem 1.75rem 0;
    opacity: 0.82;
    max-width: 46em;
}

/* Lead form */
.cta-section {
    padding-top: 5rem;
}

.lead-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.lead-copy .section-eyebrow {
    text-align: left;
}

.lead-copy .display-title {
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
}

.lead-copy > p {
    font-family: var(--font-display);
    font-size: 1.25rem;
    line-height: 1.5;
    opacity: 0.88;
    max-width: 28em;
}

.lead-assurances {
    list-style: none;
    margin: 1.875rem 0;
    display: grid;
    gap: 0.875rem;
}

.lead-assurances li {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.95rem;
}

.lead-assurances li::before {
    content: '\2713';
    flex: none;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background: var(--accent-soft);
    color: var(--accent);
}

.lead-direct {
    display: flex;
    align-items: center;
    gap: 1.375rem;
    font-size: 0.9rem;
}

.lead-direct span { opacity: 0.65; }

.lead-direct-link {
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}

.lead-direct-link:hover { color: var(--accent); }

.lead-form {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 2.75rem;
    box-shadow: 0 30px 80px rgba(var(--shadow-rgb), 0.1);
    transition: background-color var(--transition-speed) ease;
}

body.day-mode .lead-form {
    background: #f7f6f1;
}

.lead-form-body {
    display: grid;
    gap: 1.25rem;
}

.lead-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.lead-field label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    opacity: 0.75;
}

.lead-field input,
.lead-field select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--text-color);
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.lead-field select {
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2.25rem;
}

.lead-field input:focus,
.lead-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.lead-field input[aria-invalid="true"] {
    border-color: #d9534f;
}

.phone-input {
    display: flex;
}

.phone-input span {
    display: inline-flex;
    align-items: center;
    padding: 0 0.875rem;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: 3px 0 0 3px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.phone-input input {
    border-radius: 0 3px 3px 0;
}

.lead-area-note {
    font-size: 0.88rem;
    color: var(--accent);
}

.lead-error {
    font-size: 0.88rem;
    color: #d9534f;
}

.lead-submit {
    width: 100%;
    padding: 1.125rem 2rem;
    margin-top: 0.375rem;
}

.lead-submit[disabled] {
    opacity: 0.6;
    cursor: wait;
}

.lead-micro {
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.6;
}

.lead-success {
    text-align: center;
    padding: 1.875rem 0;
}

.lead-success-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
}

.lead-success h3 {
    font-size: 2rem;
    margin-bottom: 0.625rem;
    text-transform: none;
}

.lead-success p {
    opacity: 0.8;
}

.form-flash {
    animation: formFlash 1.2s ease;
}

@keyframes formFlash {
    0%, 100% { box-shadow: 0 30px 80px rgba(var(--shadow-rgb), 0.1); }
    35% { box-shadow: 0 0 0 4px rgba(241, 121, 67, 0.45), 0 30px 80px rgba(var(--shadow-rgb), 0.1); }
}

/* Floating CTA (desktop) */
.float-cta {
    position: fixed;
    right: 1.75rem;
    bottom: 1.75rem;
    z-index: 40;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9375rem 1.5rem;
    border-radius: 999px;
    background: var(--text-color);
    color: var(--bg-color);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    box-shadow: 0 16px 40px rgba(var(--shadow-rgb), 0.25);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease, background-color 0.3s ease, color 0.3s ease;
}

.float-cta.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.float-cta:hover {
    background: var(--accent);
    color: #fff;
}

.float-cta-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #3ecf8e;
    box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.6);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(62, 207, 142, 0); }
    100% { box-shadow: 0 0 0 0 rgba(62, 207, 142, 0); }
}

/* Mobile sticky bar */
.mobile-cta-bar {
    display: none;
}

@media (max-width: 900px) {
    .savings-grid,
    .lead-grid {
        grid-template-columns: 1fr;
        gap: 3.125rem;
    }
}

@media (max-width: 1024px) {
    .savings-grid,
    .lead-grid {
        gap: 2.5rem;
    }
    .savings-card,
    .lead-form {
        padding: 2rem;
    }
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 3.125rem;
    }
    .process-steps::before { display: none; }
}

@media (max-width: 768px) {
    .hero-content {
        top: 6.5rem;
        transform: translateY(calc(-1 * var(--hero-lift, 0px)));
        gap: 1rem;
    }
    .hero-eyebrow {
        font-size: 0.62rem;
        letter-spacing: 0.2em;
    }
    .hero-eyebrow::before { display: none; }
    .hero-title {
        font-size: 2.3rem;
    }
    .hero-sub {
        font-size: 1.08rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    .hero-trust {
        justify-content: center;
        font-size: 0.72rem;
        gap: 0.375rem 1rem;
    }
    .hero-buildings {
        height: 46vh;
    }
    .scroll-indicator {
        display: none;
    }
    .savings-card,
    .lead-form {
        padding: 1.75rem 1.375rem;
    }
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }
    .usp-card h3 {
        white-space: normal;
    }
    .lead-row {
        grid-template-columns: 1fr;
    }
    .section-sub {
        margin-top: -1.25rem;
    }
    .faq-item summary {
        padding-right: 2.25rem;
    }
    .faq-item p {
        padding-right: 0;
    }
    .float-cta {
        display: none;
    }
    .mobile-cta-bar {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        gap: 0.5rem;
        padding: 0.625rem 0.75rem calc(0.625rem + env(safe-area-inset-bottom));
        background: rgba(var(--bg-color-rgb), 0.92);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border-color);
        transform: translateY(110%);
        transition: transform 0.4s ease;
    }
    .mobile-cta-bar.is-visible {
        transform: none;
    }
    .mcta {
        flex: 1;
        text-align: center;
        padding: 0.8125rem 0.625rem;
        font-size: 0.82rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        border-radius: 3px;
    }
    .mcta--ghost {
        border: 1px solid var(--border-color);
    }
    .mcta--solid {
        flex: 1.6;
        background: var(--accent);
        color: #fff;
    }
    .footer {
        padding-bottom: 6.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
    .float-cta-dot { animation: none; }
}

/* Lining figures for prices and numbers set in Cormorant */
.savings-budget,
.savings-row dd,
.savings-total strong,
.step-num,
.hero-trust,
.process-footnote strong {
    font-variant-numeric: lining-nums tabular-nums;
    font-feature-settings: "lnum" 1;
}


/* =====================================================================
   RESPONSIVE SYSTEM
   Sizes key off the smaller of width and height (min(vw, vh)) so each
   composition keeps its proportions on any aspect ratio.
   ===================================================================== */

/* Hero */
.hero-content {
    top: calc(50% + 1.5rem);
    gap: clamp(0.75rem, 2.4vh, 1.4rem);
    max-width: 48rem;
}

.hero-title {
    font-size: clamp(2.2rem, min(5.4vw, 9vh), 4.75rem);
}

.hero-sub {
    font-size: clamp(1.05rem, min(1.6vw, 2.7vh), 1.45rem);
}

/* Partners: card size follows the screen */
.partner-card {
    width: clamp(5.5rem, min(12vw, 20vh), 13.75rem);
    padding: clamp(0.6rem, 1.4vw, 1.25rem);
}

.partner-type {
    font-size: clamp(0.78rem, min(1.5vw, 2.4vh), 1.8rem);
}

.partners-title {
    font-size: clamp(1.35rem, min(3vw, 5vh), 2.5rem) !important;
}

/* Desktop-only niceties that are expensive or broken on touch devices */
@media (hover: none), (pointer: coarse), (max-width: 1024px) {
    .lifestyle-bg {
        background-attachment: scroll;
    }
}

.stars-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Pause decorative animation when it can't be seen */
.hero-offscreen .cloud-strip,
.hero-offscreen .star,
body:not(.night-mode) .star {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .hero-content {
        top: calc(4.6rem + 1.5vh);
        gap: clamp(0.55rem, 1.8vh, 1rem);
    }
    .hero-title {
        font-size: clamp(1.85rem, min(10.5vw, 6vh), 2.9rem);
    }
    .hero-sub {
        font-size: clamp(0.95rem, min(4.3vw, 2.3vh), 1.1rem);
    }
    .hero-buildings {
        height: clamp(13rem, 40svh, 30rem);
        bottom: 0.75rem;
    }
    .partner-card {
        width: clamp(5.25rem, min(25vw, 13vh), 7.8rem);
        border-radius: 0.75rem;
        padding: 0.45rem 0.5rem;
    }
    .partner-logo-box {
        height: clamp(1.8rem, 6vw, 2.4rem);
        padding: 3px 6px;
        margin-bottom: 0.3rem;
        border-radius: 6px;
    }
    .partner-type {
        font-size: clamp(0.58rem, 2.5vw, 0.78rem);
        letter-spacing: 0.02em;
    }
    .section-title {
        margin-bottom: 2.5rem;
    }
}

/* Short phones (iPhone SE, small Androids): keep the hero to essentials */
@media (max-width: 768px) and (max-height: 700px) {
    .hero-link,
    .hero-trust li:nth-child(3) {
        display: none;
    }
    .hero-buildings {
        height: 30svh;
    }
}

/* Phones in landscape and other very short screens */
@media (max-height: 520px) and (orientation: landscape) {
    .hero-viewport {
        min-height: 20rem;
    }
    .hero-content {
        top: 50%;
        left: 4%;
        width: 56%;
        padding: 0;
        text-align: left;
        align-items: flex-start;
        gap: 0.6rem;
        transform: translateY(calc(-40% - var(--hero-lift, 0px)));
    }
    .hero-eyebrow,
    .hero-trust,
    .hero-link,
    .scroll-indicator {
        display: none;
    }
    .hero-title {
        font-size: clamp(1.5rem, 9.5vh, 2.4rem);
    }
    .hero-sub {
        font-size: 0.9rem;
        max-width: 26em;
    }
    .hero-actions {
        flex-direction: row;
    }
    .hero-actions .btn-premium {
        padding: 0.7rem 1.4rem;
    }
    .hero-buildings {
        height: 84vh;
        width: 42%;
        left: auto;
        right: 3%;
        bottom: 0.5rem;
        justify-content: flex-end;
    }
    .hero-buildings img,
    .hero-buildings .night-building {
        left: auto;
        right: 0;
        transform: none;
        object-position: bottom right;
    }
    .cloud-bank {
        top: 58%;
    }
    .mobile-cta-bar {
        padding-top: 6px;
        padding-bottom: calc(6px + env(safe-area-inset-bottom));
    }
    .mcta {
        padding: 9px 10px;
    }
    .partner-card {
        width: clamp(4.2rem, 18vh, 6.5rem);
        padding: 0.35rem;
    }
    .partner-logo-box {
        height: clamp(1.5rem, 6vh, 2rem);
        padding: 2px 4px;
        margin-bottom: 0.2rem;
    }
    .partner-type {
        font-size: clamp(0.55rem, 3vh, 0.72rem);
    }
}

/* Very large screens: keep line lengths readable */
@media (min-width: 1900px) {
    .hero-sub {
        max-width: 32em;
    }
}

/* =====================================================================
   LIVE LISTINGS (properties page + homepage)
   ===================================================================== */

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

/* Filters */
.filter-section {
    padding: 2rem 0;
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
}

.property-filters {
    display: grid;
    grid-template-columns: minmax(14rem, 2.4fr) repeat(3, minmax(8rem, 1fr)) auto;
    gap: 0.9rem;
    align-items: stretch;
}

.filter-field input,
.filter-field select {
    width: 100%;
    height: 100%;
    min-height: 3.2rem;
    padding: 0 1.1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-color);
    color: inherit;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    -webkit-appearance: none;
    appearance: none;
}

.filter-field select {
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
    padding-right: 2.2rem;
}

.filter-field input:focus,
.filter-field select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.filter-submit {
    padding: 0 2.2rem;
    min-height: 3.2rem;
}

/* Grid */
.listings-heading {
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    margin-bottom: 0.75rem;
}

.listings-count {
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.6;
    min-height: 1.2em;
    margin-bottom: 2.5rem;
}

.listings-grid,
.cards-grid--listings {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
    gap: 2rem;
}

.listings-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    font-family: var(--font-display);
    font-size: 1.3rem;
    display: grid;
    justify-items: center;
    gap: 1.5rem;
}

.listings-empty a:not(.btn-premium) { color: var(--accent); border-bottom: 1px solid currentColor; }

.listing-skeleton {
    aspect-ratio: 4 / 4.4;
    border-radius: 6px;
    background: linear-gradient(100deg, var(--surface-color) 30%, rgba(var(--bg-color-rgb), 0.6) 50%, var(--surface-color) 70%);
    background-size: 300% 100%;
    animation: skeleton 1.4s ease-in-out infinite;
    border: 1px solid var(--border-color);
}

@keyframes skeleton {
    from { background-position: 100% 0; }
    to { background-position: 0 0; }
}

/* Card */
.listing-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}

body.day-mode .listing-card { background: #f7f6f1; }

.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(var(--shadow-rgb), 0.14);
}

.listing-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--border-color);
}

.listing-media img,
.listing-noimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
}

.listing-noimg {
    background: linear-gradient(135deg, #cfd6df, #eeece4);
}

.listing-card:hover .listing-media img { transform: scale(1.05); }

.listing-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
}

.listing-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.9);
    color: #1a1f24;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.listing-badge--new {
    background: var(--accent);
    color: #fff;
}

.listing-body {
    padding: 1.6rem 1.6rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.listing-meta {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.65;
    margin-bottom: 0.6rem;
}

.listing-title {
    font-size: 1.55rem;
    line-height: 1.15;
    margin-bottom: 0.4rem;
}

.listing-location {
    opacity: 0.8;
    font-size: 0.95rem;
}

.listing-carpet {
    font-size: 0.78rem;
    opacity: 0.76;
    margin-top: 0.45rem;
    line-height: 1.45;
}

.listing-rera {
    font-size: 0.72rem;
    opacity: 0.55;
    margin-top: 0.35rem;
    letter-spacing: 0.04em;
}

.listing-foot {
    margin-top: auto;
    padding-top: 1.3rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.listing-foot--stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
}

.listing-price {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    font-variant-numeric: lining-nums;
    font-feature-settings: "lnum" 1;
    line-height: 1.1;
}

.listing-price--multi {
    font-family: var(--font-ui);
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.45;
}

.listing-price--hidden {
    display: grid;
    gap: 0.15rem;
}

.price-blur {
    filter: blur(5px);
    user-select: none;
    opacity: 0.8;
}

.listing-price--hidden small {
    font-family: var(--font-ui);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

.listing-cta {
    margin-top: 0;
    white-space: nowrap;
    font-size: 0.78rem;
}

/* Closed: desaturated photo + rubber stamp that "thumps" on when seen */
.listing-card.is-closed .listing-media img {
    filter: grayscale(0.7) brightness(0.92) contrast(0.95);
}

.listing-card.is-closed:hover .listing-media img {
    filter: grayscale(0.2);
}

.closed-stamp {
    --stamp: #d8432a;
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    justify-items: center;
    padding: 0.55rem 1.5rem 0.5rem;
    color: var(--stamp);
    border: 4px solid var(--stamp);
    border-radius: 6px;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0), inset 0 0 0 5px rgba(216, 67, 42, 0.9);
    background: rgba(255, 255, 255, 0.82);
    font-family: var(--font-display);
    text-transform: uppercase;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-14deg) scale(1);
    /* Uneven ink: an SVG noise texture punched out of the stamp */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.2 2.65'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='3' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -3.2 2.65'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.closed-stamp-main {
    font-size: clamp(1.7rem, 2.6vw, 2.3rem);
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1;
    padding-left: 0.22em;
}

.closed-stamp-sub {
    font-family: var(--font-ui);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    margin-top: 0.35rem;
    padding-top: 0.25rem;
    border-top: 1px solid currentColor;
}

/* Thump animation (only once the card is scrolled into view) */
.listing-card.is-closed:not(.stamped) .closed-stamp {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-8deg) scale(1.9);
}

.listing-card.is-closed.stamped .closed-stamp {
    animation: stampThump 0.55s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

@keyframes stampThump {
    0% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1.9); }
    60% { opacity: 1; transform: translate(-50%, -50%) rotate(-15deg) scale(0.94); }
    100% { opacity: 1; transform: translate(-50%, -50%) rotate(-14deg) scale(1); }
}

body.night-mode .closed-stamp {
    --stamp: #ff7a5c;
    background: rgba(8, 12, 20, 0.7);
    box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0), inset 0 0 0 5px rgba(255, 122, 92, 0.9);
}

.residences-more {
    text-align: center;
    margin-top: 3rem;
}

@media (max-width: 900px) {
    .property-filters {
        grid-template-columns: 1fr 1fr;
    }
    .filter-field--search,
    .filter-submit {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .listing-body { padding: 1.3rem; }
    .listing-foot { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    .listing-card.is-closed .closed-stamp { animation: none; opacity: 1; transform: translate(-50%, -50%) rotate(-14deg); }
    .listing-skeleton { animation: none; }
}


/* =====================================================================
   NIGHT AURA
   ===================================================================== */

.aurora {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 78%;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 1.6s ease;
    will-change: transform;
    /* Light only the left ~60% of the sky, feathered out so there's no edge */
    -webkit-mask-image: linear-gradient(to right, #000 0%, #000 40%, rgba(0, 0, 0, 0.35) 53%, transparent 62%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0%, #000 40%, rgba(0, 0, 0, 0.35) 53%, transparent 62%, transparent 100%);
}

body.night-mode .aurora {
    opacity: 1;
}

.aurora-layer {
    position: absolute;
    left: 0;
    width: 100%;
    overflow: hidden;
    opacity: 0;
    transition: opacity 2.4s ease;
    transform-origin: 50% 100%;
}

.aurora-layer--a { top: 0; height: 100%; }
.aurora-layer--b { top: 6%; height: 78%; }

.aurora-layer.is-ready {
    opacity: 1;
    animation: auroraBreath 11s ease-in-out infinite alternate;
}

.aurora-layer--b.is-ready {
    animation-duration: 15s;
    animation-delay: -6s;
}

.aurora-strip {
    position: absolute;
    inset: 0 auto 0 0;
    width: 200%;
    background-repeat: repeat-x;
    background-size: 50% 100%;
    animation: cloudDrift 200s linear infinite;
    will-change: transform;
}

.aurora-layer--b .aurora-strip {
    animation-duration: 290s;
    animation-direction: reverse;
}

/* Live WebGL aurora: the shader fades itself out on the right, so no mask */
.aurora.aurora--gl {
    -webkit-mask-image: none;
    mask-image: none;
}

.aurora--gl .aurora-layer {
    display: none;
}

.aurora-gl {
    position: absolute;
    left: 0;
    top: 0;
    width: 64%;
    height: 100%;
    display: block;
}

@media (max-width: 768px) {
    .aurora-gl { width: 80%; }
}

/* The curtains slowly brighten, stretch and settle, like the real thing */
@keyframes auroraBreath {
    0%   { opacity: 0.55; transform: scaleY(0.9) skewX(-2deg); }
    50%  { opacity: 1;    transform: scaleY(1.04) skewX(1deg); }
    100% { opacity: 0.75; transform: scaleY(0.96) skewX(3deg); }
}

/* Day mode never pays for the aurora animation */
body:not(.night-mode) .aurora-layer,
body:not(.night-mode) .aurora-strip,
.hero-offscreen .aurora-layer,
.hero-offscreen .aurora-strip {
    animation-play-state: paused;
}

/* Warm uplight behind the lit towers */
.tower-halo {
    position: absolute;
    right: 3%;
    bottom: 8%;
    width: 52%;
    height: 80%;
    z-index: 9;
    pointer-events: none;
    background:
        radial-gradient(ellipse 30% 22% at 30% 22%, rgba(255, 214, 150, 0.16), transparent 70%),
        radial-gradient(ellipse 30% 22% at 72% 20%, rgba(255, 214, 150, 0.16), transparent 70%),
        radial-gradient(ellipse 55% 26% at 50% 88%, rgba(255, 176, 90, 0.20), transparent 75%);
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 1.6s ease;
}

body.night-mode .tower-halo {
    opacity: 1;
    animation: haloPulse 7s ease-in-out infinite alternate;
}

@keyframes haloPulse {
    from { opacity: 0.75; }
    to   { opacity: 1; }
}

@media (max-width: 768px) {
    .tower-halo {
        right: 0;
        width: 100%;
        height: 50%;
        bottom: 2%;
    }
    .aurora {
        height: 62%;
        -webkit-mask-image: linear-gradient(to right, #000 0%, #000 38%, rgba(0, 0, 0, 0.4) 52%, transparent 66%);
        mask-image: linear-gradient(to right, #000 0%, #000 38%, rgba(0, 0, 0, 0.4) 52%, transparent 66%);
    }
}

/* Aura glow on the key surfaces in night mode */
body.night-mode .savings-card,
body.night-mode .lead-form {
    border-color: rgba(120, 230, 210, 0.16);
    box-shadow:
        0 0 0 1px rgba(120, 230, 210, 0.05),
        0 40px 90px -30px rgba(70, 215, 200, 0.28),
        0 0 140px -30px rgba(150, 100, 255, 0.30);
}

body.night-mode .savings-section,
body.night-mode .cta-section {
    position: relative;
    isolation: isolate;
}

body.night-mode .savings-section::before,
body.night-mode .cta-section::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 10% 0 10% 40%;
    background:
        radial-gradient(ellipse 50% 45% at 55% 45%, rgba(70, 215, 200, 0.10), transparent 70%),
        radial-gradient(ellipse 45% 40% at 75% 65%, rgba(150, 100, 255, 0.10), transparent 70%);
    pointer-events: none;
}

body.night-mode .listing-card:hover {
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 80px -20px rgba(70, 215, 200, 0.25);
}

@media (prefers-reduced-motion: reduce) {
    .aurora-layer.is-ready, .aurora-strip, body.night-mode .tower-halo { animation: none; }
}


/* =====================================================================
   NAVBAR
   Transparent over the hero; once you scroll it becomes a floating glass
   capsule. No transform / backdrop-filter on .navbar itself, because either
   would trap the fixed full-screen mobile menu inside the bar.
   ===================================================================== */

.navbar {
    --nav-top: 0px;
    position: fixed;
    top: calc(var(--nav-top) + var(--nav-offset, 0px));
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.6rem 5%;
    color: var(--text-color);
    border-radius: 0;
    transition: top 0.45s cubic-bezier(0.22, 1, 0.36, 1), left 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        right 0.45s cubic-bezier(0.22, 1, 0.36, 1), padding 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        border-radius 0.45s ease, color 0.3s ease;
}

.navbar.navbar-light { color: #fff; }

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    opacity: 0;
    background: rgba(var(--bg-color-rgb), 0.78);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    border: 1px solid rgba(var(--shadow-rgb), 0.07);
    box-shadow: 0 12px 40px -12px rgba(var(--shadow-rgb), 0.22);
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.navbar.is-scrolled {
    --nav-top: 0.75rem;
    left: clamp(0.75rem, 3vw, 2.5rem);
    right: clamp(0.75rem, 3vw, 2.5rem);
    padding: 0.5rem 0.55rem 0.5rem 1.1rem;
    border-radius: 999px;
}

.navbar.is-scrolled::before { opacity: 1; }

.navbar.is-scrolled.navbar-light::before {
    background: rgba(10, 14, 24, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode .navbar.is-scrolled::before {
    border-color: rgba(120, 230, 210, 0.14);
    box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6), 0 0 50px -20px rgba(70, 215, 200, 0.35);
}

/* Brand */
.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex: none;
    position: relative;
    z-index: 102;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    transition: width 0.45s ease, height 0.45s ease;
}

.brand-mark img {
    width: 76%;
    height: auto;
}

.brand-word {
    font-size: 1.55rem;
    letter-spacing: 0.1em;
    line-height: 1;
    transition: font-size 0.45s ease;
}

.navbar.is-scrolled .brand-mark { width: 2.25rem; height: 2.25rem; }
.navbar.is-scrolled .brand-word { font-size: 1.3rem; }

/* Links */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: background-color 0.25s ease, opacity 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0.3rem;
    width: 0.3rem;
    height: 0.3rem;
    border-radius: 50%;
    background: var(--accent);
    transform: translateX(-50%) scale(0);
    transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.nav-link:hover { background: rgba(var(--shadow-rgb), 0.06); }
.navbar-light .nav-link:hover,
body.night-mode .nav-link:hover { background: rgba(255, 255, 255, 0.1); }
.nav-link[aria-current="page"]::after { transform: translateX(-50%) scale(1); }

.nav-num { display: none; }
.nav-mobile-extra { display: none; }

/* Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex: none;
    position: relative;
    z-index: 102;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.75rem 1.3rem;
    border-radius: 999px;
    background: var(--text-color);
    color: var(--bg-color);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.nav-cta span { transition: transform 0.3s ease; }
.nav-cta:hover { background: var(--accent); color: #fff; box-shadow: 0 4px 10px rgba(var(--shadow-rgb), 0.15); }
.nav-cta:hover span { transform: translateX(3px); }

.navbar-light .nav-cta { background: #fff; color: #1a1f24; }
.navbar-light .nav-cta:hover { background: var(--accent); color: #fff; }

/* Hamburger */
.menu-toggle {
    display: none;
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.menu-toggle span {
    position: absolute;
    left: 25%;
    width: 50%;
    height: 1.5px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), top 0.4s ease;
}

.menu-toggle span:first-child { top: calc(50% - 4px); }
.menu-toggle span:last-child { top: calc(50% + 3px); }
.menu-toggle.active span:first-child { top: calc(50% - 0.75px); transform: rotate(45deg); }
.menu-toggle.active span:last-child { top: calc(50% - 0.75px); transform: rotate(-45deg); }

/* Medium screens: drop the numbering of less important links first */
@media (max-width: 1200px) and (min-width: 1025px) {
    .nav-link { padding: 0.55rem 0.65rem; letter-spacing: 0.08em; }
}

@media (max-width: 1024px) {
    .navbar { padding: 1rem 4%; gap: 0.75rem; }
    .navbar.is-scrolled { padding: 0.4rem 0.4rem 0.4rem 0.9rem; }
    .brand-word { font-size: clamp(1.05rem, 4.6vw, 1.45rem); }
    .brand-mark { width: 2.3rem; height: 2.3rem; }
    .menu-toggle { display: block; }
    .nav-actions { margin-left: auto; gap: 0.4rem; }
    .nav-cta { display: none; }

    /* Full-screen menu */
    .nav-links {
        position: fixed;
        inset: 0;
        z-index: 101;
        margin: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 0;
        padding: 6rem 8% 3rem;
        background: var(--bg-color);
        color: var(--text-color);
        opacity: 0;
        visibility: hidden;
        clip-path: circle(0% at calc(100% - 3rem) 2.5rem);
        transition: clip-path 0.6s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s ease, visibility 0s linear 0.6s;
    }

    body.night-mode .nav-links {
        background:
            radial-gradient(ellipse 70% 40% at 80% 10%, rgba(70, 215, 200, 0.12), transparent 70%),
            radial-gradient(ellipse 60% 40% at 10% 90%, rgba(150, 100, 255, 0.12), transparent 70%),
            var(--bg-color);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        clip-path: circle(150% at calc(100% - 3rem) 2.5rem);
        transition: clip-path 0.7s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.2s ease, visibility 0s;
    }

    .nav-links > li {
        opacity: 0;
        transform: translateY(1.2rem);
        transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .nav-links.active > li {
        opacity: 1;
        transform: none;
        transition-delay: calc(0.18s + var(--i, 0) * 0.06s);
    }

    .nav-link {
        width: 100%;
        padding: 0.9rem 0;
        border-radius: 0;
        border-bottom: 1px solid var(--border-color);
        font-family: var(--font-display);
        font-size: clamp(1.7rem, 7.5vw, 2.4rem);
        font-weight: 500;
        letter-spacing: 0.04em;
        text-transform: none;
        gap: 1rem;
    }

    .nav-link:hover,
    body.night-mode .nav-link:hover,
    .navbar-light .nav-link:hover { background: none; color: var(--accent); }

    .nav-link::after { left: auto; right: 0.25rem; bottom: 50%; transform: translateY(50%) scale(0); }
    .nav-link[aria-current="page"]::after { transform: translateY(50%) scale(1.6); }

    .nav-num {
        display: inline;
        font-family: var(--font-ui);
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        color: var(--accent);
        min-width: 1.6rem;
    }

    .nav-mobile-extra {
        display: block;
        margin-top: 2rem;
    }

    .nav-mobile-cta {
        display: block;
        text-align: center;
        padding: 1.05rem;
        border-radius: 999px;
        background: var(--accent);
        color: #fff;
        font-size: 0.85rem;
        font-weight: 500;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .nav-mobile-note {
        text-align: center;
        margin-top: 1rem;
        font-size: 0.75rem;
        letter-spacing: 0.06em;
        opacity: 0.6;
    }

    /* While the menu is open the bar sits on the menu's background */
    body.menu-open .navbar { color: var(--text-color); }
    body.menu-open .navbar::before { opacity: 0; }
}

@media (max-height: 520px) and (orientation: landscape) {
    .navbar { padding-top: 0.5rem; padding-bottom: 0.5rem; }
    .nav-links { justify-content: flex-start; padding-top: 4.5rem; overflow-y: auto; }
    .nav-link { font-size: 1.4rem; padding: 0.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    .nav-links, .nav-links > li { transition: none !important; }
}

/* Keep hero copy crisp over the aurora */
body.night-mode .hero-title,
body.night-mode .hero-sub,
body.night-mode .hero-eyebrow {
    text-shadow: 0 2px 30px rgba(4, 7, 15, 0.75), 0 0 2px rgba(4, 7, 15, 0.4);
}

/* ---------------------------------------------------------------------
   Theme toggle: a quiet icon at the end of the navbar. It inherits the
   navbar colour, so it matches day, night and dark-hero states.
   --------------------------------------------------------------------- */
.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border: 1px solid currentColor;
    border-color: color-mix(in srgb, currentColor 22%, transparent);
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    opacity: 1;
    border-color: currentColor;
}

.theme-toggle svg,
.nav-theme-row svg {
    grid-area: 1 / 1;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

/* Show the mode you can switch TO: moon by day, sun at night */
.icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }
body.night-mode .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }
body.night-mode .icon-sun { opacity: 1; transform: none; }

.nav-cta svg {
    flex: none;
}

/* Mobile: the toggle moves into the menu, so the bar only has logo + menu */
.nav-theme-row {
    display: none;
}

@media (max-width: 1024px) {
    .nav-actions .theme-toggle {
        display: none;
    }
    .nav-theme-row {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        width: 100%;
        margin-top: 1.4rem;
        padding: 0.8rem;
        border: 1px solid var(--border-color);
        border-radius: 999px;
        background: transparent;
        color: inherit;
        font-family: var(--font-ui);
        font-size: 0.85rem;
        letter-spacing: 0.04em;
        cursor: pointer;
    }
    .nav-theme-row svg {
        display: block;
    }
    .nav-theme-row .icon-sun,
    .nav-theme-row .icon-moon {
        position: relative;
    }
    body:not(.night-mode) .nav-theme-row .icon-sun,
    body.night-mode .nav-theme-row .icon-moon {
        display: none;
    }
    .nav-mobile-cta {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 0.6rem;
        font-size: 0.95rem !important;
    }
}
