/* =====================================================================
   EGE PRİMA — V3 EDITORIAL DESIGN SYSTEM (sections below hero)
   ===================================================================== */

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
html:not(.lenis) { scroll-behavior: smooth; }

:root {
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
    --line: rgba(13, 43, 62, 0.1);
    --line-strong: rgba(13, 43, 62, 0.18);
    --surface: #ffffff;
    --muted: rgba(13, 43, 62, 0.58);
}
.dark {
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --surface: #0a1218;
    --muted: rgba(255, 255, 255, 0.52);
}

/* Scroll progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    z-index: 1100;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    pointer-events: none;
}
[dir="rtl"] #scroll-progress { transform-origin: 100% 50%; }

/* ---------- Typography primitives ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.6em;
    font-size: 10px;
    font-weight: 700;
}
.eyebrow::before {
    content: '';
    width: 3rem;
    height: 1px;
    background: currentColor;
}
.eyebrow-sm {
    display: block;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 10px;
    font-weight: 700;
}
.mono-label {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--muted);
}
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(2.75rem, 6.2vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
    color: var(--petrol);
}
.dark .section-title { color: #fff; }
.display-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(3.25rem, 10vw, 10rem);
    line-height: 0.88;
    letter-spacing: -0.035em;
    color: var(--petrol);
}
.dark .display-title { color: #fff; }
.lead-text {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--muted);
}

/* Grain overlay */
.grain {
    position: absolute;
    inset: -50%;
    pointer-events: none;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain-shift 1.2s steps(6) infinite;
}
@keyframes grain-shift {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-3%, 2%); }
    50% { transform: translate(2%, -3%); }
    75% { transform: translate(-2%, -1%); }
    100% { transform: translate(0, 0); }
}

/* ---------- Marquee ---------- */
.marquee {
    overflow: hidden;
    padding: 1.6rem 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-inline-end: 2.5rem;
    flex-shrink: 0;
}
.mq-item {
    font-family: 'Cormorant Garamond', serif;
    font-variant-numeric: lining-nums;
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.1;
    color: var(--petrol);
}
.dark .mq-item { color: #fff; }
.mq-outline {
    font-style: italic;
    font-weight: 500;
    color: transparent !important;
    -webkit-text-stroke: 1px var(--gold);
}
.mq-star { color: var(--gold); font-size: 1.5rem; }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
@keyframes marquee-rtl {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

/* ---------- Spotlight (mouse-follow glow + border) ---------- */
.spotlight { position: relative; isolation: isolate; }
.spotlight::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(184, 138, 68, 0.16), transparent 60%);
}
.spotlight::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.5s ease;
    background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(214, 184, 117, 0.95), transparent 60%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
}
.spotlight:hover::after,
.spotlight:hover::before { opacity: 1; }

/* ---------- Bento (stats) ---------- */
.bento-card {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    padding: 2rem;
    background: var(--ivory);
    border: 1px solid var(--line);
    transition: transform 0.7s var(--ease-out-expo), box-shadow 0.7s var(--ease-out-expo);
}
@media (min-width: 768px) { .bento-card { padding: 2.5rem; } }
.dark .bento-card { background: rgba(255, 255, 255, 0.03); }
.bento-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 40px 80px -30px rgba(13, 43, 62, 0.25);
}
.bento-dark { background: var(--petrol) !important; border-color: transparent; color: #fff; }
.dark .bento-dark { background: #0b1c27 !important; }
.bento-gold {
    background: linear-gradient(140deg, var(--gold-light) -20%, var(--gold) 45%, var(--gold-dark) 120%) !important;
    border-color: transparent;
}
.bento-gold.spotlight::after {
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.22), transparent 60%);
}
.bento-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.38;
    transform: scale(1.08);
    transition: transform 1.6s var(--ease-out-expo), opacity 1s ease;
}
.bento-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--petrol) 12%, rgba(13, 43, 62, 0.25) 65%, rgba(13, 43, 62, 0.55));
}
.dark .bento-bg::after {
    background: linear-gradient(to top, #0b1c27 12%, rgba(11, 28, 39, 0.25) 65%, rgba(11, 28, 39, 0.55));
}
.bento-dark:hover .bento-bg { transform: scale(1); opacity: 0.55; }
.bento-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    background: rgba(184, 138, 68, 0.1);
    border: 1px solid rgba(184, 138, 68, 0.25);
}
.stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--petrol);
    font-variant-numeric: lining-nums tabular-nums;
    padding-bottom: 0.08em;
}
.dark .stat-num { color: #fff; }
.stat-desc {
    margin-top: 0.75rem;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--muted);
}
.bento-waves {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200%;
    height: 60px;
    animation: wave-slide 8s linear infinite;
    pointer-events: none;
}
.bento-waves path { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0.4; }
.bento-waves path + path { opacity: 0.2; }
@keyframes wave-slide { to { transform: translateX(-25%); } }

/* Route viz */
.route-viz { width: 100%; }
.route-ends {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1rem;
}
.route-line {
    position: relative;
    height: 2px;
    background: var(--line-strong);
    border-radius: 2px;
}
.route-line::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform-origin: 0 50%;
    animation: route-fill 4.5s var(--ease-in-out-quart) infinite;
}
.route-dot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 6px rgba(184, 138, 68, 0.18), 0 0 24px rgba(184, 138, 68, 0.8);
    animation: route-dot 4.5s var(--ease-in-out-quart) infinite;
}
.route-ticks { display: flex; justify-content: space-between; margin-top: 0.75rem; }
.route-ticks i { width: 1px; height: 6px; background: var(--line-strong); }
@keyframes route-fill { 0% { transform: scaleX(0); } 70%, 100% { transform: scaleX(1); } }
@keyframes route-dot { 0% { left: 0; } 70%, 100% { left: 100%; } }
[dir="rtl"] .route-viz { direction: ltr; }

/* ---------- Vision ---------- */
.light-meter {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--line);
}
.light-ring { width: 88px; height: 88px; transform: rotate(-90deg); flex-shrink: 0; }
.light-ring circle { fill: none; stroke-width: 2; }
.light-ring .ring-bg { stroke: var(--line-strong); }
.light-ring .ring-fg {
    stroke: var(--gold);
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 2.4s var(--ease-out-expo);
}
.light-meter.is-in .ring-fg { stroke-dashoffset: 0; }

.reveal-clip { will-change: clip-path; }
[data-parallax] { will-change: transform; transform: scale(1.15); }

.principles { border-top: 1px solid var(--line); }
.principle {
    position: relative;
    display: grid;
    grid-template-columns: 3rem 1fr auto;
    gap: 1.25rem;
    align-items: start;
    padding: 2.25rem 0;
    border-bottom: 1px solid var(--line);
}
.principle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 1px;
    width: 100%;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.9s var(--ease-out-expo);
}
[dir="rtl"] .principle::after { transform-origin: 100% 50%; }
.principle:hover::after { transform: scaleX(1); }
.principle-no { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--gold); padding-top: 0.7rem; }
.principle-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--petrol);
    transition: transform 0.7s var(--ease-out-expo), color 0.4s ease;
}
.dark .principle-title { color: #fff; }
.principle:hover .principle-title { transform: translateX(10px); color: var(--gold); }
[dir="rtl"] .principle:hover .principle-title { transform: translateX(-10px); }
.principle-desc { margin-top: 0.6rem; font-weight: 300; line-height: 1.7; color: var(--muted); max-width: 32rem; }
.principle-icon {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.7rem;
    color: var(--gold);
    opacity: 0.4;
    transition: opacity 0.4s ease, transform 0.7s var(--ease-out-expo);
}
.principle:hover .principle-icon { opacity: 1; transform: rotate(-20deg) scale(1.15); }

/* ---------- Location ---------- */
.loc-glow {
    position: absolute;
    width: 900px;
    height: 900px;
    right: -300px;
    top: -200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 138, 68, 0.18), transparent 60%);
    filter: blur(20px);
    pointer-events: none;
}
.map-card {
    position: relative;
    height: 100%;
    min-height: 380px;
    border-radius: 2.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
}
@media (min-width: 1024px) { .map-card { min-height: 560px; } }
.map-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: transform 4s var(--ease-out-expo), opacity 1s ease;
}
.map-card:hover .map-img { transform: scale(1.04); opacity: 1; }
.map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
            mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%);
}
.map-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
}
.map-core {
    position: absolute;
    width: 14px;
    height: 14px;
    margin: -7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(184, 138, 68, 0.25), 0 0 40px 6px rgba(184, 138, 68, 0.7);
}
.map-ring {
    position: absolute;
    width: 260px;
    height: 260px;
    margin: -130px;
    border-radius: 50%;
    border: 1px solid rgba(214, 184, 117, 0.6);
    animation: map-ring 3.6s var(--ease-out-expo) infinite;
}
.map-ring-2 { animation-delay: 1.2s; }
.map-ring-3 { animation-delay: 2.4s; }
@keyframes map-ring {
    0% { transform: scale(0.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0; }
}
.map-hud {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(5, 12, 18, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.map-hud-tl { top: 1.5rem; left: 1.5rem; }
.map-hud-br { bottom: 1.5rem; right: 1.5rem; }

.journey {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 0.5rem;
}
.journey-track {
    position: absolute;
    top: 3rem;
    bottom: 3rem;
    inset-inline-start: calc(1.75rem - 0.5px);
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}
.journey-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--gold-light), var(--gold));
    transform-origin: 50% 0;
    transform: scaleY(0);
    box-shadow: 0 0 12px rgba(184, 138, 68, 0.8);
}
.journey-stop {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 1.4rem 0;
}
.journey-node {
    position: relative;
    z-index: 1;
    width: 3.5rem;
    height: 3.5rem;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    background: var(--petrol);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.6s var(--ease-out-expo);
}
.dark .journey-node { background: #03080c; }
.journey-stop.is-reached .journey-node {
    color: #fff;
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 0 6px rgba(184, 138, 68, 0.15);
}
.journey-label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.5rem;
}
.journey-val {
    font-family: 'Cormorant Garamond', serif;
    font-variant-numeric: lining-nums;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
    line-height: 1;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.6s ease;
}
.journey-stop.is-reached .journey-val { color: #fff; }

/* ---------- Collection: expanding villa panels ---------- */
.count-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.3rem;
    border-radius: 999px;
    border: 1px solid rgba(184, 138, 68, 0.4);
    color: var(--gold);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}
.villa-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.villa-panel {
    position: relative;
    overflow: hidden;
    border-radius: 2rem;
    min-height: 640px;
    background: var(--petrol);
    color: #fff;
    outline: none;
    isolation: isolate;
}
.villa-panel:focus-visible { box-shadow: 0 0 0 2px var(--gold); }
.villa-panel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.12);
    transition: transform 1.6s var(--ease-out-expo), filter 1s ease;
    z-index: -2;
}
.villa-panel-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to top, rgba(5, 12, 18, 0.96) 0%, rgba(5, 12, 18, 0.7) 42%, rgba(5, 12, 18, 0.1) 78%),
        linear-gradient(to right, rgba(5, 12, 18, 0.35), transparent 60%);
}
.villa-letter {
    position: absolute;
    top: -0.1em;
    inset-inline-end: 0.06em;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(11rem, 22vw, 24rem);
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(214, 184, 117, 0.6);
    pointer-events: none;
    transition: transform 1.2s var(--ease-out-expo), opacity 0.8s ease;
}
.villa-panel-rail { display: none; }
.villa-panel-body {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 1.75rem;
}
@media (min-width: 768px) { .villa-panel-body { padding: 3rem; } }
.villa-chip {
    display: inline-flex;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(184, 138, 68, 0.18);
    border: 1px solid rgba(184, 138, 68, 0.45);
    color: var(--gold-light);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.villa-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.villa-desc {
    max-width: 30rem;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 1.75rem;
}
.villa-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 34rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.villa-specs > div { padding: 1rem 0.75rem 1rem 0; }
.villa-specs > div + div { border-inline-start: 1px solid rgba(255, 255, 255, 0.14); padding-inline-start: 1rem; }
.villa-specs dt {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.4rem;
}
.villa-specs dd {
    font-family: 'Cormorant Garamond', serif;
    font-variant-numeric: lining-nums;
    font-size: clamp(1.3rem, 2vw, 1.85rem);
    font-weight: 600;
    white-space: nowrap;
}
.villa-feat {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.villa-feat svg { color: var(--gold-light); }
.villa-soon {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    max-width: 34rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 1.25rem;
    border: 1px dashed rgba(214, 184, 117, 0.45);
    background: rgba(184, 138, 68, 0.08);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

@media (min-width: 1024px) {
    .villa-accordion {
        flex-direction: row;
        height: min(80vh, 760px);
        min-height: 640px;
    }
    .villa-panel {
        flex: 0.55 1 0;
        min-width: 0;
        min-height: 0;
        cursor: pointer;
        transition: flex-grow 1s var(--ease-in-out-quart);
    }
    .villa-panel.is-active { flex-grow: 4; cursor: default; }
    .villa-panel:not(.is-active) .villa-panel-img { filter: grayscale(0.6) brightness(0.6); }
    .villa-panel:not(.is-active):hover .villa-panel-img { filter: grayscale(0.15) brightness(0.8); }
    .villa-panel.is-active .villa-panel-img { transform: scale(1); }
    .villa-panel:not(.is-active) .villa-letter { opacity: 0; transform: translateY(30px); }
    .villa-panel-rail {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 2.25rem 0;
        transition: opacity 0.5s ease 0.3s;
    }
    .villa-rail-name {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-family: 'Cormorant Garamond', serif;
        font-size: 2.25rem;
        font-weight: 600;
        white-space: nowrap;
    }
    .villa-panel.is-active .villa-panel-rail { opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
    .villa-panel-body {
        width: min(100%, 46rem);
        min-width: 36rem;
        opacity: 0;
        transform: translateY(24px);
        pointer-events: none;
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
    }
    .villa-panel.is-active .villa-panel-body {
        opacity: 1;
        transform: none;
        pointer-events: auto;
        visibility: visible;
        transition: opacity 0.8s ease 0.5s, transform 1s var(--ease-out-expo) 0.5s, visibility 0s;
    }
}

/* Buttons */
.btn-gold, .btn-ghost-light {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.05rem 1.8rem;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 20px 40px -12px rgba(184, 138, 68, 0.55); }
.btn-gold:hover { background: #fff; color: var(--petrol); }
.btn-gold svg { transition: transform 0.4s var(--ease-out-expo); }
.btn-gold:hover svg { transform: translateX(4px); }
[dir="rtl"] .btn-gold svg { transform: scaleX(-1); }
.btn-ghost-light { border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; }
.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold-light); }

/* ---------- Gallery ---------- */
.gallery-swiper { overflow: visible !important; }
.gallery-swiper .swiper-slide {
    width: 84vw;
    transition: opacity 0.8s ease;
}
@media (min-width: 768px) { .gallery-swiper .swiper-slide { width: 64vw; } }
@media (min-width: 1280px) { .gallery-swiper .swiper-slide { width: 56vw; } }
#gallery { cursor: auto; }
.gallery-slide {
    position: relative;
    aspect-ratio: 16 / 10;
    border-radius: 2rem;
    overflow: hidden;
    transform: scale(0.86);
    transition: transform 1s var(--ease-out-expo);
}
.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.18);
    transition: transform 1.4s var(--ease-out-expo);
    pointer-events: none;
}
.gallery-swiper .swiper-slide:not(.swiper-slide-active) { opacity: 0.35; }
.gallery-swiper .swiper-slide-active .gallery-slide { transform: scale(1); }
.gallery-swiper .swiper-slide-active .gallery-slide img { transform: scale(1); }
.gallery-nav {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    transition: all 0.4s var(--ease-out-expo);
}
.gallery-nav:hover { background: var(--gold); border-color: var(--gold); transform: scale(1.06); }
[dir="rtl"] .gallery-nav svg { transform: scaleX(-1); }
.gallery-progress {
    position: relative;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}
.gallery-progress span {
    position: absolute;
    inset: 0;
    background: var(--gold);
    transform-origin: 0 50%;
    transform: scaleX(0.125);
    transition: transform 0.9s var(--ease-out-expo);
}
#drag-cursor {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 60;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: 0;
    scale: 0.3;
    transition: opacity 0.3s ease, scale 0.4s var(--ease-out-expo);
}
#drag-cursor.is-visible { opacity: 1; scale: 1; }
#drag-cursor.is-down { scale: 0.8; }
@media (hover: none) { #drag-cursor { display: none; } }

/* ---------- Experience ---------- */
.interior-main {
    position: relative;
    width: 76%;
    aspect-ratio: 3 / 4;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 40px 80px -30px rgba(13, 43, 62, 0.4);
}
.interior-main img, .interior-sub img { width: 100%; height: 100%; object-fit: cover; }
.interior-sub {
    position: absolute;
    right: 0;
    bottom: -3rem;
    width: 46%;
    aspect-ratio: 3 / 4;
    border-radius: 2rem;
    overflow: hidden;
    border: 8px solid #fff;
    box-shadow: 0 40px 80px -20px rgba(13, 43, 62, 0.45);
}
.dark .interior-sub { border-color: #000; }
[dir="rtl"] .interior-sub { right: auto; left: 0; }
.rotating-badge {
    position: absolute;
    top: 6%;
    right: 8%;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--petrol);
    color: var(--gold);
    box-shadow: 0 20px 50px -10px rgba(13, 43, 62, 0.5);
}
[dir="rtl"] .rotating-badge { right: auto; left: 8%; }
.dark .rotating-badge { background: var(--gold); color: #000; }
.rotating-badge svg { position: absolute; inset: 0; animation: spin-slow 22s linear infinite; }
.rotating-badge text {
    fill: rgba(255, 255, 255, 0.85);
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 3.6px;
}
.dark .rotating-badge text { fill: #000; }
@media (max-width: 640px) { .rotating-badge { width: 104px; height: 104px; } }
.feature-tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    border-radius: 1.5rem;
    border: 1px solid var(--line);
    background: var(--ivory);
    transition: transform 0.6s var(--ease-out-expo);
}
.dark .feature-tile { background: rgba(255, 255, 255, 0.03); }
.feature-tile:hover { transform: translateY(-4px); }
.feature-tile > * { position: relative; z-index: 2; }
.feature-icon {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    background: rgba(184, 138, 68, 0.12);
    transition: all 0.5s var(--ease-out-expo);
}
.feature-tile:hover .feature-icon { background: var(--gold); color: #fff; transform: rotate(-8deg); }
.feature-label {
    flex: 1;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--petrol);
}
.dark .feature-label { color: #fff; }

/* ---------- Privileges ---------- */
.priv-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 3.5rem;
    min-height: 340px;
    padding: 2.25rem;
    border-radius: 2rem;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform 0.7s var(--ease-out-expo), box-shadow 0.7s var(--ease-out-expo);
}
@media (min-width: 768px) { .priv-card { padding: 2.75rem; } }
.priv-card:hover { transform: translateY(-6px); box-shadow: 0 40px 80px -30px rgba(13, 43, 62, 0.3); }
.priv-card > * { position: relative; z-index: 2; }
.priv-card-dark { background: var(--petrol); border-color: transparent; }
.dark .priv-card-dark { background: #0d1d28; }
.priv-card-image { border-color: transparent; background: var(--petrol); }
.priv-card > .priv-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.5);
    transform: scale(1.06);
    transition: transform 1.6s var(--ease-out-expo), filter 1s ease;
}
.priv-card-image:hover .priv-bg-img { transform: scale(1); filter: brightness(0.6); }
.priv-head { display: flex; align-items: center; justify-content: space-between; }
.priv-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    background: rgba(184, 138, 68, 0.12);
    border: 1px solid rgba(184, 138, 68, 0.25);
    transition: all 0.6s var(--ease-out-expo);
}
.priv-card:hover .priv-icon { background: var(--gold); color: #fff; transform: rotate(-10deg) scale(1.05); }
.priv-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.9rem, 2.6vw, 2.6rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--petrol);
    margin-bottom: 0.9rem;
}
.dark .priv-title { color: #fff; }
.priv-desc { font-weight: 300; line-height: 1.7; color: var(--muted); }
.priv-card > .priv-rays {
    position: absolute;
    width: 420px;
    height: 420px;
    right: -110px;
    top: -110px;
    z-index: 0;
    opacity: 0.4;
    animation: spin-slow 60s linear infinite;
}
.priv-rays line { stroke: var(--gold); stroke-width: 0.4; }
.priv-rays circle { fill: rgba(184, 138, 68, 0.15); stroke: var(--gold); stroke-width: 0.5; }

/* ---------- Contact ---------- */
.contact-orb {
    position: absolute;
    width: 720px;
    height: 720px;
    left: -240px;
    bottom: -320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 138, 68, 0.3), transparent 60%);
    filter: blur(30px);
    animation: orb-float 14s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes orb-float { to { transform: translate(120px, -80px) scale(1.1); } }
.contact-row {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    transition: all 0.5s var(--ease-out-expo);
}
.contact-row:hover { border-color: rgba(184, 138, 68, 0.5); background: rgba(184, 138, 68, 0.08); transform: translateX(6px); }
[dir="rtl"] .contact-row:hover { transform: translateX(-6px); }
.contact-row-icon {
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(184, 138, 68, 0.15);
    color: var(--gold-light);
}
.contact-row-label { display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.35em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-bottom: 0.2rem; }
.contact-row-val { display: block; font-size: 0.95rem; letter-spacing: 0.04em; }
.contact-row-arrow { color: rgba(255, 255, 255, 0.35); transition: all 0.4s var(--ease-out-expo); }
.contact-row:hover .contact-row-arrow { color: var(--gold-light); transform: translate(3px, -3px); }
.contact-panel { box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.6) !important; }
.field-label { display: flex; align-items: center; gap: 0.75rem; font-size: 10px; text-transform: uppercase; letter-spacing: 0.35em; font-weight: 700; }
.field-no { font-family: 'JetBrains Mono', monospace; letter-spacing: 0; color: rgba(13, 43, 62, 0.35); font-weight: 500; }
.field { position: relative; }
.field::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 1px;
    width: 100%;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.7s var(--ease-out-expo);
}
.field:focus-within::after { transform: scaleX(1); }
.submit-btn:hover:not(:disabled) { background: var(--petrol); letter-spacing: 0.5em; }

/* ---------- Footer ---------- */
.footer-head { color: var(--gold); letter-spacing: 0.3em; text-transform: uppercase; font-size: 10px; font-weight: 700; margin-bottom: 2rem; }
.footer-link {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
    transition: color 0.3s ease;
}
.footer-link:hover { color: var(--gold); }
.footer-wordmark {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(3.5rem, 15vw, 15rem);
    line-height: 0.85;
    letter-spacing: -0.02em;
    text-align: center;
    white-space: nowrap;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
    background-size: 200% 100%;
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    opacity: 0.25;
    user-select: none;
    animation: wordmark-shine 10s linear infinite;
}
.dark .footer-wordmark { opacity: 0.32; }
@keyframes wordmark-shine { to { background-position: -200% 0; } }
.back-top {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    color: inherit;
    transition: all 0.4s var(--ease-out-expo);
}
.back-top:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: translateY(-3px); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .marquee-track, .grain, .bento-waves, .route-line::before, .route-dot,
    .map-ring, .rotating-badge svg, .priv-rays, .contact-orb, .footer-wordmark { animation: none !important; }
    [data-parallax] { transform: none; }
}

.priv-card > .priv-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to top, rgba(5, 12, 18, 0.9) 0%, rgba(5, 12, 18, 0.35) 55%, rgba(5, 12, 18, 0.15) 100%);
    pointer-events: none;
}
.priv-card > .priv-bg-img { filter: none; }

@media (max-width: 1023px) {
    .villa-panel { min-height: 0; }
    .villa-panel-body { position: relative; padding-top: 16rem; }
}

/* ---------- Vision pillars ---------- */
.pillars {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 900px) { .pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pillar {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 2.25rem;
    min-height: 460px;
    border-radius: 2rem;
    background: var(--ivory);
    border: 1px solid var(--line);
    transition: transform 0.8s var(--ease-out-expo), box-shadow 0.8s var(--ease-out-expo), background 0.6s ease;
}
@media (min-width: 768px) { .pillar { padding: 2.75rem; } }
.dark .pillar { background: rgba(255, 255, 255, 0.03); }
.pillar > * { position: relative; z-index: 2; }
.pillar:hover { transform: translateY(-8px); box-shadow: 0 50px 90px -40px rgba(13, 43, 62, 0.35); }
.pillar:nth-child(2) { background: var(--petrol); border-color: transparent; color: #fff; }
.dark .pillar:nth-child(2) { background: #0b1c27; }
.pillar-art { height: 150px; margin: -0.5rem -0.5rem 2rem; }
.pillar-art svg { width: 100%; height: 100%; overflow: visible; }
.art-ground { stroke: var(--line-strong); stroke-width: 1; }
.art-dash { fill: none; stroke: var(--gold); stroke-width: 1; stroke-dasharray: 3 6; opacity: 0.7; }
.art-rays line { stroke: var(--gold); stroke-width: 0.8; opacity: 0.25; }
.art-sun { fill: var(--gold); filter: drop-shadow(0 0 10px rgba(184, 138, 68, 0.9)); }
.art-wind {
    fill: none;
    stroke: var(--gold-light);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-dasharray: 60 260;
    animation: wind-flow 3.6s linear infinite;
}
.art-wind-2 { animation-delay: -1.2s; opacity: 0.6; }
.art-wind-3 { animation-delay: -2.4s; opacity: 0.35; }
@keyframes wind-flow { from { stroke-dashoffset: 320; } to { stroke-dashoffset: 0; } }
.pillar:nth-child(2) .art-wind { stroke-dasharray: 60 260; }
.art-contour { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0.85; }
.art-contour.c2 { opacity: 0.6; }
.art-contour.c3 { opacity: 0.4; }
.art-contour.c4 { opacity: 0.22; }
.art-houses rect { fill: var(--petrol); opacity: 0.85; transition: transform 0.8s var(--ease-out-expo); }
.dark .art-houses rect { fill: #fff; opacity: 0.6; }
.pillar:hover .art-houses rect { transform: translateY(-4px); }
.pillar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.pillar-no {
    font-family: 'Cormorant Garamond', serif;
    font-variant-numeric: lining-nums;
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 1px var(--gold);
}
.pillar-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    border: 1px solid rgba(184, 138, 68, 0.35);
    transition: all 0.6s var(--ease-out-expo);
}
.pillar:hover .pillar-icon { background: var(--gold); color: #fff; transform: rotate(-15deg); }
.pillar-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 2.8vw, 2.75rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--petrol);
    margin-bottom: 1rem;
}
.dark .pillar-title, .pillar:nth-child(2) .pillar-title { color: #fff; }
.pillar-desc { font-weight: 300; line-height: 1.75; color: var(--muted); }
.pillar:nth-child(2) .pillar-desc { color: rgba(255, 255, 255, 0.6); }
.pillar-bar {
    margin-top: auto;
    padding-top: 2rem;
    display: block;
    height: 1px;
    background: linear-gradient(var(--gold), var(--gold)) no-repeat 0 100% / 0% 1px, linear-gradient(var(--line-strong), var(--line-strong)) no-repeat 0 100% / 100% 1px;
    transition: background-size 1s var(--ease-out-expo);
}
.pillar:hover .pillar-bar { background-size: 100% 1px, 100% 1px; }

/* ---------- Master plan ---------- */
.mp-legend { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 2rem; }
.mp-legend li {
    display: grid;
    grid-template-columns: 2.25rem 1fr auto;
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.55rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
}
.mp-key {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    background: var(--c);
}
.mp-name { font-size: 10px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--petrol); }
.dark .mp-name { color: #fff; }
.mp-count { font-family: 'Cormorant Garamond', serif; font-variant-numeric: lining-nums; font-size: 1.9rem; font-weight: 600; line-height: 1; color: var(--petrol); }
.dark .mp-count { color: #fff; }
.mp-bar { grid-column: 2 / 4; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.mp-bar i { display: block; height: 100%; width: 0; background: var(--c); border-radius: 3px; transition: width 1.6s var(--ease-out-expo); }
.mp-legend.is-in .mp-bar i { width: calc(var(--share) / 0.42); }
.mp-legend.is-in li:nth-child(2) .mp-bar i { transition-delay: 0.1s; }
.mp-legend.is-in li:nth-child(3) .mp-bar i { transition-delay: 0.2s; }
.mp-legend.is-in li:nth-child(4) .mp-bar i { transition-delay: 0.3s; }
.mp-total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.mp-total > span { font-size: 10px; font-weight: 700; letter-spacing: 0.35em; text-transform: uppercase; color: var(--gold); }
.mp-total strong { font-family: 'Cormorant Garamond', serif; font-variant-numeric: lining-nums; font-size: 3.5rem; line-height: 1; color: var(--petrol); }
.dark .mp-total strong { color: #fff; }
.mp-total em { font-size: 1.4rem; color: var(--gold); }
.mp-figure {
    position: relative;
    display: block;
    width: 100%;
    border-radius: 2.25rem;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 50px 100px -40px rgba(13, 43, 62, 0.45);
    cursor: zoom-in;
}
.mp-figure img { width: 100%; height: auto; display: block; transition: transform 1.6s var(--ease-out-expo); }
.mp-figure:hover img { transform: scale(1.03); }
.mp-zoom {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    border-radius: 999px;
    background: rgba(5, 12, 18, 0.7);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.4s ease;
}
.mp-figure:hover .mp-zoom { background: var(--gold); }

/* ---------- Floor plan viewer ---------- */
.plan-modal { position: fixed; inset: 0; z-index: 2100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.plan-modal[hidden] { display: none; }
.plan-backdrop { position: absolute; inset: 0; background: rgba(3, 8, 12, 0.88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); opacity: 0; transition: opacity 0.4s ease; }
.plan-dialog {
    position: relative;
    width: min(1200px, 100%);
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    border-radius: 2rem;
    overflow: hidden;
    background: #fff;
    color: var(--petrol);
    transform: translateY(30px) scale(0.97);
    opacity: 0;
    transition: transform 0.6s var(--ease-out-expo), opacity 0.4s ease;
}
.plan-modal.is-open .plan-backdrop { opacity: 1; }
.plan-modal.is-open .plan-dialog { transform: none; opacity: 1; }
.plan-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(13, 43, 62, 0.08); }
.plan-title { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.plan-tabs { display: inline-flex; padding: 0.3rem; border-radius: 999px; background: var(--ivory); margin-inline-start: auto; }
.plan-tabs[hidden] { display: none; }
.plan-tab { padding: 0.7rem 1.3rem; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: rgba(13, 43, 62, 0.55); transition: all 0.4s var(--ease-out-expo); }
.plan-tab.is-active { background: var(--petrol); color: #fff; }
.plan-close { width: 2.75rem; height: 2.75rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(13, 43, 62, 0.12); transition: all 0.4s ease; }
.plan-close:hover { background: var(--petrol); color: #fff; }
.plan-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 1.5rem; background: #fff; cursor: zoom-in; }
.plan-stage img { max-width: 100%; max-height: calc(100vh - 13rem); object-fit: contain; transition: transform 0.6s var(--ease-out-expo), opacity 0.3s ease; user-select: none; }
.plan-stage.is-zoomed { cursor: zoom-out; }
.plan-stage.is-zoomed img { transform: scale(2.2); }
.plan-stage img.is-swapping { opacity: 0; }
.plan-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.5rem; border-top: 1px solid rgba(13, 43, 62, 0.08); }
.plan-footer .mono-label { color: rgba(13, 43, 62, 0.55); }
.plan-cta:hover { background: var(--petrol) !important; color: #fff !important; }

/* ---------- Collection: facade → plan sheets ---------- */
.vx { position: relative; padding-top: 7rem; }
@media (min-width: 768px) { .vx { padding-top: 10rem; } }
.vx-intro {
    display: grid;
    gap: 2rem;
    align-items: end;
    margin-bottom: 3.5rem;
}
@media (min-width: 1024px) { .vx-intro { grid-template-columns: 1fr 22rem; margin-bottom: 4.5rem; } }
.vx-lead { font-weight: 300; line-height: 1.75; color: var(--muted); }

/* Mobile / tablet: stacked sheets */
.vx-track { padding: 0 1.5rem 7rem; }
.vx-stage { display: flex; flex-direction: column; gap: 3.5rem; }
.vx-item { position: relative; }
.vx-photo {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 1.75rem;
    overflow: hidden;
    background: var(--petrol);
}
.vx-photo img { width: 100%; height: 100%; object-fit: cover; }
.vx-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 22, 32, 0.92) 0%, rgba(8, 22, 32, 0.55) 45%, rgba(8, 22, 32, 0) 75%);
}
.vx-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.75rem;
    color: #fff;
    z-index: 2;
}
.vx-letter {
    position: absolute;
    right: 1.25rem;
    bottom: 100%;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: 9rem;
    line-height: 0.8;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(214, 184, 117, 0.75);
    pointer-events: none;
}
.vx-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    font-size: clamp(3rem, 6.5vw, 6.5rem);
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin: 1.1rem 0 1rem;
}
.vx-desc { max-width: 30rem; font-weight: 300; line-height: 1.7; color: rgba(255, 255, 255, 0.78); margin-bottom: 1.5rem; }
.vx-note {
    max-width: 30rem;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.5rem;
    border-radius: 1rem;
    border: 1px dashed rgba(214, 184, 117, 0.5);
    font-size: 13px;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}
.vx-sheet {
    position: relative;
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 1rem 1rem 0;
    border-radius: 1.25rem;
    background: #fbfaf6;
    box-shadow: 0 30px 60px -30px rgba(13, 43, 62, 0.45);
    cursor: zoom-in;
    text-align: left;
}
.vx-sheet img { width: 100%; height: auto; max-height: 52vh; object-fit: contain; display: block; margin: 0 auto; }
.vx-titleblock {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    margin: 1rem -1rem 0;
    border-top: 1px solid rgba(13, 43, 62, 0.14);
    color: var(--petrol);
}
.vx-titleblock > span { padding: 0.85rem 1rem; }
.vx-titleblock > span + span { border-left: 1px solid rgba(13, 43, 62, 0.14); }
.vx-tb-type { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--gold); }
.vx-tb-floor { font-size: 10px; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; }
.vx-tb-area { font-family: 'Cormorant Garamond', serif; font-variant-numeric: lining-nums; font-size: 1.25rem; font-weight: 600; }
.vx-rail { display: none; }
.vx .villa-specs { border-color: rgba(255, 255, 255, 0.18); }

/* Desktop: pinned stage, scroll-linked */
@media (min-width: 1024px) {
    .vx-track { height: 340svh; padding: 0; }
    .vx-stage {
        position: sticky;
        top: 0;
        height: 100svh;
        display: block;
        overflow: hidden;
    }
    .vx-item { position: absolute; inset: 0; }
    .vx-photo {
        position: absolute;
        inset: 0;
        aspect-ratio: auto;
        border-radius: 0;
        will-change: clip-path;
    }
    .vx-photo img { will-change: transform; transform-origin: 50% 60%; }
    .vx-photo::after {
        background:
            linear-gradient(90deg, rgba(8, 22, 32, 0.88) 0%, rgba(8, 22, 32, 0.6) 34%, rgba(8, 22, 32, 0.05) 62%),
            linear-gradient(to top, rgba(8, 22, 32, 0.55), transparent 40%);
    }
    .vx-copy {
        top: 0;
        right: auto;
        width: min(46vw, 40rem);
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 6rem 0 6rem clamp(3rem, 6vw, 7rem);
        will-change: transform, opacity;
    }
    .vx-letter {
        position: absolute;
        left: clamp(1rem, 3vw, 3rem);
        top: 50%;
        right: auto;
        bottom: auto;
        transform: translateY(-62%);
        font-size: clamp(18rem, 34vw, 34rem);
        -webkit-text-stroke: 1px rgba(214, 184, 117, 0.28);
        z-index: -1;
    }
    .vx-copy > *:not(.vx-letter) { position: relative; }
    .vx-sheet {
        position: absolute;
        right: clamp(2.5rem, 5vw, 6rem);
        top: 50%;
        width: min(36vw, 34rem);
        margin: 0;
        translate: 0 -50%;
        will-change: transform, opacity;
        box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.75), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
        transition: box-shadow 0.5s ease;
    }
    .vx-sheet:hover { box-shadow: 0 70px 130px -40px rgba(0, 0, 0, 0.85), 0 0 0 2px var(--gold); }
    .vx-sheet img { max-height: 54svh; }
    .vx-rail {
        position: absolute;
        left: 50%;
        bottom: 2.25rem;
        z-index: 20;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        translate: -50% 0;
        padding: 0.45rem;
        border-radius: 999px;
        background: rgba(8, 22, 32, 0.55);
        border: 1px solid rgba(255, 255, 255, 0.12);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }
    .vx-rail-btn {
        width: 2.6rem;
        height: 2.6rem;
        border-radius: 50%;
        font-family: 'Cormorant Garamond', serif;
        font-weight: 700;
        font-size: 1.3rem;
        color: rgba(255, 255, 255, 0.6);
        transition: background 0.4s ease, color 0.4s ease;
    }
    .vx-rail-btn:hover { color: #fff; }
    .vx-rail-btn.is-active { background: var(--gold); color: #fff; }
    .vx-rail-line { position: relative; width: 4.5rem; height: 1px; background: rgba(255, 255, 255, 0.2); }
    .vx-rail-line i { position: absolute; inset: 0; background: var(--gold-light); transform-origin: 0 50%; transform: scaleX(0); }
}
[dir="rtl"] .vx-rail-line i { transform-origin: 100% 50%; }

@media (max-width: 1023px) {
    .vx-item { display: grid; grid-template-columns: 100%; }
    .vx-photo, .vx-copy { grid-area: 1 / 1; }
    .vx-photo { aspect-ratio: auto; min-height: 560px; }
    .vx-copy { position: relative; align-self: end; padding-top: 12rem; }
    .vx-letter { bottom: auto; top: 1.5rem; }
    .vx-sheet { grid-area: 2 / 1; }
}

@media (min-width: 1024px) {
    /* stacked items must not swallow clicks meant for the active villa */
    .vx-item { pointer-events: none; }
    .vx-copy { pointer-events: auto; }
    .vx-copy .villa-chip { align-self: flex-start; }
}
