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

:root {
    --ivory: #f5f0e8;
    --ivory-deep: #ede6d6;
    --stone: #c4b99a;
    --stone-dark: #7c7059;
    --charcoal: #2a2720;
    --charcoal-light: #4a4540;
    --warm-white: #faf8f4;
    --gold-fine: #8c733f;
    --text-primary: #1e1c18;
    --text-secondary: #4e483f;
    --text-tertiary: #42372b;
}

html {
    scroll-behavior: smooth;
    font-size: 14px;
}

body {
    background: var(--warm-white);
    color: var(--text-primary);
    font-family: "Raleway", sans-serif;
    font-weight: 400;
    overflow-x: hidden;
    cursor: none;
}

/* ─── Custom Cursor ─── */
.cursor {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    font-family: "Cormorant Garamond", serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--ivory);
    mix-blend-mode: difference;
    line-height: 1;
    user-select: none;
    letter-spacing: 0;
}

.cursor-ring {
    position: fixed;
    width: 34px;
    height: 34px;
    border: 1px solid var(--ivory);
    mix-blend-mode: difference;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transition:
        width 0.3s ease,
        height 0.3s ease,
        opacity 0.3s ease,
        border-color 0.3s ease;
    transform: translate(-50%, -50%);
}

.cursor-ring.expand {
    width: 58px;
    height: 58px;
    opacity: 0.8;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border-bottom: 1px solid rgba(196, 185, 154, 0.15);
}

nav.scrolled {
    background: rgba(250, 248, 244, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

/* ─── Nav Top Bar ─── */
.nav-top-bar {
    padding: 12px 64px;
    display: flex;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(196, 185, 154, 0.15);
    transition: all 0.5s ease;
}

nav.scrolled .nav-top-bar {
    padding: 0;
    height: 0;
    overflow: hidden;
    border-bottom: none;
}

/* ─── Nav Main Bar ─── */
.nav-main-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 24px 64px;
    /* Slightly reduced for a sleeker look */
    transition: all 0.5s ease;
}

nav.scrolled .nav-main-bar {
    padding: 20px 64px;
}

.nav-logo-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-logo {
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    font-size: 24px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--charcoal);
    text-decoration: none;
    line-height: 1;
}

.nav-logo-sub {
    font-size: 8px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-fine);
    font-weight: 400;
}

nav.scrolled .nav-logo-sub {
    opacity: 0;
    height: 0;
    margin: 0;
    overflow: hidden;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 48px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
}

.nav-links a:hover {
    color: var(--charcoal);
}

.nav-right-area {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 32px;
}

.nav-login-btn {
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 400;
    opacity: 0;
    animation: fadeUp 1.2s ease 1.1s forwards;
}

.nav-login-btn:hover {
    color: var(--charcoal);
}

/* ─── Language Selector ─── */
.lang-selector {
    position: relative;
    z-index: 100;
    opacity: 0;
    animation: fadeUp 1.2s ease 0.9s forwards;
}

.lang-btn {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-family: "Raleway", sans-serif;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.lang-btn::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    background: var(--charcoal);
    border-radius: 50%;
}

nav.scrolled .lang-selector {
    display: none;
}

.lang-btn:hover {
    color: var(--charcoal);
}

.lang-arrow {
    display: flex;
    align-items: center;
    font-size: 7px;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.lang-selector.open .lang-arrow {
    transform: rotate(180deg);
}

.nav-inquire-btn {
    display: inline-block;
    padding: 14px 32px;
    border: 1px solid var(--stone);
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-fine);
    text-decoration: none;
    transition: all 0.5s ease;

    opacity: 0;
    animation: fadeUp 1.2s ease 1s forwards;
}

nav.scrolled .nav-inquire-btn {
    padding: 10px 24px;
    font-size: 9px;
}

.nav-inquire-btn:hover {
    background-color: var(--text-tertiary);
    border-color: var(--gold-fine);
    color: white;
}

.mobile-only {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 14px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--charcoal);
    transition: all 0.3s ease;
}

.nav-inquire-btn-mobile {
    display: inline-block;
    padding: 14px 32px;
    border: 1px solid var(--stone);
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-fine);
    text-decoration: none;
    transition: all 0.5s ease;
}

.nav-login-btn-mobile {
    font-size: 14px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #faf8f4;
    border: 1px solid rgba(196, 185, 154, 0.4);
    min-width: 200px;
    padding: 8px 0;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition:
        opacity 0.28s ease,
        transform 0.28s ease;
}

.lang-selector.open .lang-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.lang-menu button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    font-family: "Raleway", sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    padding: 11px 20px;
    text-align: left;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.lang-menu button:hover {
    color: var(--charcoal);
    background: var(--ivory);
}

.lang-menu button.active {
    color: var(--charcoal);
}

[dir="rtl"] .lang-menu {
    right: auto;
    left: 0;
    text-align: right;
}

[dir="rtl"] .lang-menu button {
    text-align: right;
}

/* ─── Hero / Threshold ─── */
#threshold {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--warm-white);
    padding-top: 220px;
    padding-bottom: 80px;
}

.threshold-texture {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 20% 50%,
            rgba(196, 185, 154, 0.12) 0%,
            transparent 60%),
        radial-gradient(ellipse at 80% 20%,
            rgba(184, 168, 130, 0.08) 0%,
            transparent 50%),
        radial-gradient(ellipse at 60% 80%,
            rgba(196, 185, 154, 0.06) 0%,
            transparent 40%);
}

/* Lines: capped so they never reach the content zone */
.threshold-line-top {
    position: absolute;
    top: 110px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 0;
    background: linear-gradient(to bottom, transparent, var(--stone));
    animation: lineGrowTop 2.5s ease 0.4s forwards;
    opacity: 0.6;
    z-index: 1;
}

.threshold-line-bottom {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 0;
    background: linear-gradient(to top, transparent, var(--stone));
    animation: lineGrow 1.8s ease 0.2s forwards;
    opacity: 0.6;
    z-index: 1;
}

@keyframes lineGrowTop {
    to {
        height: 80px;
    }
}

@keyframes lineGrow {
    to {
        height: 100px;
    }
}

.threshold-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 32px;
}

.threshold-eyebrow {
    font-size: 12px;
    letter-spacing: 0.6em;
    text-transform: uppercase;
    color: var(--stone-dark);
    margin-bottom: 24px;
    opacity: 0;
    padding-top: 0;
    animation: fadeUp 1.2s ease 0.8s forwards;
}

.threshold-title {
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    font-size: clamp(48px, 8vw, 96px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--charcoal);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 1.4s ease 1s forwards;
}

.threshold-title em {
    font-style: italic;
    color: var(--stone-dark);
}

.threshold-tagline {
    font-size: 14px;
    letter-spacing: 0.18em;
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 420px;
    line-height: 2.1;
    margin: 0 auto 40px;
    opacity: 0;
    animation: fadeUp 1.2s ease 1.3s forwards;
}

.threshold-scroll {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeUp 1s ease 1.8s forwards;
    cursor: pointer;
}

.scroll-label {
    font-size: 8px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--stone), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ─── Shared Section Styles ─── */
section {
    padding: 148px 0;
    position: relative;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 64px;
}

.section-number {
    font-size: 16px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 24px;
    display: block;
    margin-right: -0.4em;
    /* Compensate for letter-spacing offset */
}

.hr-gold {
    width: 40px;
    height: 1px;
    background: var(--gold-fine);
    margin-bottom: 32px;
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.9s ease,
        transform 0.9s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Stagger Reveal Animation ─── */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, opacity;
}

.reveal-stagger.visible>* {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.visible>*:nth-child(1) {
    transition-delay: 0.1s;
}

.reveal-stagger.visible>*:nth-child(2) {
    transition-delay: 0.22s;
}

.reveal-stagger.visible>*:nth-child(3) {
    transition-delay: 0.34s;
}

.reveal-stagger.visible>*:nth-child(4) {
    transition-delay: 0.46s;
}

.reveal-stagger.visible>*:nth-child(5) {
    transition-delay: 0.58s;
}

.reveal-stagger.visible>*:nth-child(6) {
    transition-delay: 0.7s;
}

.reveal-stagger.visible>*:nth-child(7) {
    transition-delay: 0.82s;
}

.reveal-stagger.visible>*:nth-child(8) {
    transition-delay: 0.94s;
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.22s;
}

.reveal-delay-3 {
    transition-delay: 0.34s;
}

/* ─── Philosophy ─── */
#philosophy {
    background: var(--ivory);
    overflow: hidden;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: center;
}

.philosophy-headline {
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    font-size: clamp(32px, 3.5vw, 52px);
    line-height: 1.12;
    color: var(--charcoal);
    margin-bottom: 48px;
}

.philosophy-headline em {
    font-style: italic;
    color: var(--stone-dark);
}

.philosophy-body {
    font-size: 16px;
    line-height: 2;
    color: var(--text-secondary);
    text-align: justify;
}

.philosophy-body p+p {
    margin-top: 24px;
}

.philosophy-right {
    position: relative;
}

.philosophy-image-frame {
    width: 100%;
    aspect-ratio: 3/4;
    position: relative;
    overflow: hidden;
}

.philosophy-image-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(196, 185, 154, 0.3) 0%, transparent 50%),
        linear-gradient(225deg, rgba(184, 168, 130, 0.15) 0%, transparent 60%);
}

.philosophy-image-frame::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--ivory), transparent);
}

.philosophy-ornament {
    position: absolute;
    top: -24px;
    right: -24px;
    width: 80px;
    height: 80px;
    border-top: 1px solid var(--stone);
    border-right: 1px solid var(--stone);
    z-index: 2;
}

.philosophy-ornament-bottom {
    position: absolute;
    bottom: -24px;
    left: -24px;
    width: 80px;
    height: 80px;
    border-bottom: 1px solid var(--stone);
    border-left: 1px solid var(--stone);
    z-index: 2;
}

.philosophy-stat {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--stone);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.stat-number {
    font-family: "Cormorant Garamond", serif;
    font-size: 38px;
    font-weight: 300;
    color: var(--charcoal);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;

    color: var(--text-tertiary);
    line-height: 1.7;
}

/* ─── Access ─── */
#access {
    background: var(--warm-white);
}

.access-intro {
    max-width: 640px;
    margin-bottom: 100px;
}

.access-headline {
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    font-size: clamp(32px, 3.5vw, 48px);
    line-height: 1.18;
    color: var(--charcoal);
    margin-bottom: 32px;
}

.access-headline em {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    color: var(--stone-dark);
}

.access-subline {
    font-size: 17px;
    line-height: 2.1;
    color: var(--text-secondary);
}

/* 5-column grid */
.access-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 3px;
}

.access-card {
    position: relative;
    height: 240px;
    overflow: hidden;
    cursor: pointer;
    background: var(--ivory-deep);
}

.access-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.access-card:hover .access-card-bg {
    transform: scale(1.06);
}

/* Per-card editorial images */
.access-card-img-1 {
    background-image: url("real_estate.png");
}

.access-card-img-2 {
    background-image: url("yacht.png");
}

.access-card-img-3 {
    background-image: url("aviation.png");
}

.access-card-img-4 {
    background-image: url("concierge.png");
}

.access-card-img-5 {
    background-image: url("and_beyond.png");
}

/* Muted editorial overlay */
.access-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg,
            rgba(20, 16, 12, 0.18) 0%,
            rgba(10, 8, 6, 0.32) 100%);
}

.access-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 28px;
    background: linear-gradient(to top,
            rgba(20, 18, 14, 0.88) 0%,
            transparent 100%);
    color: var(--ivory);
    transform: translateY(8px);
    transition: transform 0.5s ease;
}

.access-card:hover .access-card-content {
    transform: translateY(0);
}

.access-card-rule {
    width: 24px;
    height: 1px;
    background: var(--gold-fine);
    margin-bottom: 18px;
    transition: width 0.4s ease;
}

.access-card:hover .access-card-rule {
    width: 40px;
}

.access-card-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.access-card-desc {
    font-size: 12px;
    color: rgba(245, 240, 232, 0.85);
    line-height: 1.8;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.4s ease 0.08s,
        transform 0.4s ease 0.08s;
}

.access-card:hover .access-card-desc {
    opacity: 1;
    transform: translateY(0);
}

.access-footnote {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--ivory-deep);
}

.access-footnote-text {
    font-size: 16px;
    line-height: 2.1;
    color: var(--text-tertiary);
    max-width: 640px;
}

/* ─── Circle / Membership ─── */
#circle {
    background: var(--charcoal);
    color: var(--ivory);
}

#circle .section-number {
    color: var(--stone-dark);
}

.circle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    align-items: start;
}

.circle-headline {
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    font-size: clamp(32px, 3.5vw, 50px);
    line-height: 1.12;
    color: var(--ivory);
    margin-bottom: 40px;
}

.circle-headline em {
    font-style: italic;
    color: var(--stone);
}

.circle-body {
    font-size: 14px;
    line-height: 2;
    color: rgba(245, 240, 232, 0.9);
    margin-bottom: 48px;
}

.circle-profiles {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.circle-profile {
    padding: 26px 0;
    border-bottom: 1px solid rgba(196, 185, 154, 0.12);
    display: flex;
    align-items: center;
    gap: 24px;
    transition: padding-left 0.4s ease;
    cursor: default;
}

.circle-profile:hover {
    padding-left: 12px;
}

.profile-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--stone-dark);
    flex-shrink: 0;
}

.profile-text {
    font-size: 13px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 232);
    transition: color 0.3s ease;
}

.circle-profile:hover .profile-text {
    color: rgba(245, 240, 232, 0.98);
}

.circle-right {
    padding-top: 80px;
}

.circle-process {
    display: flex;
    flex-direction: column;
}

.process-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 32px;
    padding: 36px 0;
    border-bottom: 1px solid rgba(196, 185, 154, 0.08);
    position: relative;
}

.process-step::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(196, 185, 154, 0.08);
}

.process-step:first-child::before {
    top: 50%;
}

.process-step:last-child::before {
    bottom: 50%;
}

.step-number {
    font-family: "Cormorant Garamond", serif;
    font-size: 13px;
    font-weight: 300;
    color: var(--stone-dark);
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
    padding-top: 2px;
}

.step-title {
    font-size: 14px;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--ivory);
    margin-bottom: 10px;
    
}

.step-desc {
    font-size: 13px;
    line-height: 2;
    color: rgba(245, 240, 232, 0.7);
}

/* ─── Door / Inquiry ─── */
#door {
    background: var(--ivory-deep);
    position: relative;
    overflow: hidden;
}

.door-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%,
            rgba(196, 185, 154, 0.2) 0%,
            transparent 60%);
}

.door-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
}

.door-headline {
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    font-size: clamp(36px, 4.5vw, 60px);
    line-height: 1.08;
    color: var(--charcoal);
    margin-bottom: 24px;
}

.door-headline em {
    font-style: italic;
    color: var(--stone-dark);
}

.door-sub {
    font-size: 15px;
    line-height: 2.1;
    color: var(--text-secondary);
    margin-bottom: 72px;
    letter-spacing: 0.05em;
}

.door-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 48px;
}

.form-field {
    position: relative;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    background: rgba(245, 240, 232);
    border: 1px solid rgba(196, 185, 154, 0.15);
    padding: 20px;
    font-family: "Raleway", sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--charcoal);
    outline: none;
    transition: all 0.4s ease;
    -webkit-appearance: none;
    border-radius: 2px;
}

/* Remove browser blue shade/outline */
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none !important;
    border-color: var(--stone-dark);
    box-shadow: none !important;
    background: rgba(245, 240, 232, 0.7);
}

.form-field input.input-error,
.form-field select.input-error,
.form-field textarea.input-error {
    border-color: #d9534f;
    background: rgba(217, 83, 79, 0.05);
}

.form-error {
    color: #d9534f;
    font-size: 11px;
    letter-spacing: 0.1em;
    margin-top: 8px;
    margin-bottom: -16px;
    text-align: center;
    min-height: 16px;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-error.visible {
    opacity: 1;
}

/* Handle Autofill blue background */
.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover,
.form-field input:-webkit-autofill:focus,
.form-field input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #f5f0e8 inset !important;
    -webkit-text-fill-color: var(--charcoal) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--text-tertiary);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.form-field select {
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    cursor: pointer;
}

.form-field select option {
    color: var(--charcoal);
}

.form-field textarea {
    resize: none;
    height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.door-submit {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    background: var(--charcoal);
    color: var(--ivory);
    padding: 26px 48px;
    font-family: "Raleway", sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    width: 100%;
    justify-content: center;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.door-submit:hover {
    background: #2a2824;
    gap: 40px;
    letter-spacing: 0.5em;
}

.submit-arrow {
    width: 20px;
    height: 1px;
    background: var(--stone);
    position: relative;
    transition: width 0.3s ease;
    flex-shrink: 0;
}

.submit-arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: -3px;
    width: 6px;
    height: 6px;
    border-right: 1px solid var(--stone);
    border-top: 1px solid var(--stone);
    transform: rotate(45deg);
}

.door-submit:hover .submit-arrow {
    width: 32px;
}

.door-note {
    font-size: 9px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-top: 40px;
}

/* ─── Form Checkboxes ─── */
.form-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 8px;
}

.form-checkbox-row {
    display: flex;

    gap: 12px;
    cursor: pointer;
    position: relative;
}

.form-checkbox-row input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Outer ring */
.checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    border: 1.5px solid rgb(107, 92, 51);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
}

/* Inner dot — hidden by default */
.checkbox-custom::after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--charcoal);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

/* When checked: show inner dot */
.form-checkbox-row input[type="checkbox"]:checked+.checkbox-custom {
    border-color: var(--charcoal);
}

.form-checkbox-row input[type="checkbox"]:checked+.checkbox-custom::after {
    opacity: 1;
    transform: scale(1);
}

/* Error state */
.checkbox-custom.checkbox-error {
    border-color: #d9534f;
}

.checkbox-label {
    font-size: 12px;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 400;
    text-align: left;
}

.checkbox-label a {
    color: var(--stone-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.checkbox-label a:hover {
    color: var(--charcoal);
}

/* ─── Modal ─── */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(18, 17, 16, 0.7);
    /* Reduced opacity for better blur visibility */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal.visible {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #faf8f4;
    padding: 60px 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: translateY(30px) scale(0.98);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid rgba(196, 185, 154, 0.25);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.modal.visible .modal-content {
    transform: translateY(0) scale(1);
}

.modal-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 24px;
    font-weight: 300;
    color: var(--charcoal);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.modal-text {
    font-size: 12px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 40px;
    padding: 0 20px;
}

.modal-close-btn {
    background: var(--charcoal);
    color: var(--ivory);
    padding: 18px 48px;
    font-family: "Raleway", sans-serif;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.modal-close-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ─── Footer ─── */
footer {
    background: var(--charcoal);
    padding: 64px 80px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    border-top: 1px solid rgba(196, 185, 154, 0.08);
}

.footer-logo {
    font-family: "Cormorant Garamond", serif;
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ivory);
    font-weight: 300;
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

.footer-middle {
    text-align: center;
}

.footer-tagline {
    font-size: 12px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--stone-dark);
    opacity: 0.85;
}

.footer-links {
    display: flex;
    gap: 48px;
    list-style: none;
    justify-content: flex-end;
}

.footer-links a {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--ivory);
}

/* ─── RTL Overrides ─── */
[dir="rtl"] nav {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .philosophy-grid {
    direction: rtl;
}

[dir="rtl"] .philosophy-ornament {
    right: auto;
    left: -24px;
    border-right: none;
    border-left: 1px solid var(--stone);
}

[dir="rtl"] .philosophy-ornament-bottom {
    left: auto;
    right: -24px;
    border-left: none;
    border-right: 1px solid var(--stone);
}

[dir="rtl"] .circle-profile {
    flex-direction: row-reverse;
}

[dir="rtl"] .circle-profile:hover {
    padding-left: 0;
    padding-right: 12px;
}

[dir="rtl"] .process-step {
    direction: rtl;
}

[dir="rtl"] .submit-arrow {
    transform: scaleX(-1);
}

[dir="rtl"] footer {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-links {
    flex-direction: row-reverse;
}

/* ─── Grain overlay ─── */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.35;
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
    .access-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .access-card:nth-child(1),
    .access-card:nth-child(2),
    .access-card:nth-child(3) {
        grid-column: span 2;
    }

    .access-card:nth-child(4) {
        grid-column: 2 / span 2;
    }

    .access-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

@media (max-width: 1024px) {

    .nav-top-bar,
    nav.scrolled .nav-top-bar {
        padding: 12px 32px;
        position: relative;
        z-index: 1001;
        height: auto;
        overflow: visible;
    }

    nav.scrolled .lang-selector {
        display: block;
    }

    nav.scrolled .nav-logo-sub {
        opacity: 1;
        height: auto;
        margin: 0;
        /* Or whatever original margin it had */
        overflow: visible;
    }

    .nav-logo-area {
        position: relative;
        z-index: 1001;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(250, 248, 244, 0.98);
        flex-direction: column !important;
        justify-content: center;
        align-items: center;
        gap: 32px;
        transform: translateY(-100%);
        transition: transform 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 16px;
    }

    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .nav-main-bar,
    nav.scrolled .nav-main-bar {
        padding: 20px 32px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .section-inner {
        padding: 0 32px;
    }

    section {
        padding: 100px 0;
    }

    .philosophy-grid,
    .circle-grid {
        grid-template-columns: 1.2fr 0.8fr;
        /* Keep 2 columns but adjust ratio for smaller screens */
        gap: 48px;
    }

    .philosophy-right {
        display: block;
    }

    .access-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .access-card:nth-child(1),
    .access-card:nth-child(2) {
        grid-column: span 2;
    }

    .access-card:nth-child(3),
    .access-card:nth-child(4) {
        grid-column: span 2;
    }

    .access-card:nth-child(5) {
        grid-column: 2 / span 2;
    }

    footer {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
        padding: 64px 32px;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 48px 24px;
        gap: 24px;
    }

    .footer-links {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }

    .footer-tagline {
        letter-spacing: 0.2em;
        font-size: 9px;
    }
}

@media (max-width: 768px) {

    .philosophy-grid,
    .circle-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .philosophy-right {
        display: none;
        /* Hide image on mobile for cleaner look, or stack if preferred */
    }
}

@media (max-width: 480px) {
    .access-grid {
        grid-template-columns: 1fr 1fr;
    }

    .access-card {
        grid-column: span 1 !important;
        aspect-ratio: 3/4;
    }
}

/* ─── Floating Language Pill ─── */
.floating-lang {
    position: fixed;
    bottom: 5px;
    right: 30px;
    left: auto;
    z-index: 999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    pointer-events: none;

    transition:
        opacity 0.4s ease,
        transform 0.4s ease,
        visibility 0.4s ease;
}

.floating-lang.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

.floating-lang-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #faf8f4;
    border: 1px solid #e3d9c6;
    border-radius: 100px;
    padding: 10px 24px;
    cursor: pointer;
    font-family: "Raleway", sans-serif;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #333;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    outline: none;
}

.floating-lang-btn:hover {
    background: #fff;
    border-color: #d1c3a7;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.floating-lang-globe {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.floating-lang-globe svg {
    width: 100%;
    height: 100%;
    stroke-width: 1.2;
}

.floating-lang-code {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.floating-lang-arrow {
    display: flex;
    align-items: center;
    width: 10px;
    height: 10px;
    opacity: 0.5;
    transition: transform 0.3s ease;
}

.floating-lang-arrow svg {
    width: 100%;
    height: 100%;
    stroke-width: 2;
}

.floating-lang.open .floating-lang-arrow {
    transform: rotate(180deg);
}

.floating-lang-menu {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    left: auto;
    background: rgba(250, 248, 244, 0.98);
    border: 1px solid rgba(196, 185, 154, 0.4);
    border-radius: 16px;
    min-width: 200px;
    padding: 8px 0;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.floating-lang.open .floating-lang-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.floating-lang-menu button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    font-family: "Raleway", sans-serif;
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.18em;
    color: var(--text-secondary);
    padding: 10px 20px;
    text-align: left;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background 0.2s ease;
}

.floating-lang-menu button:hover {
    color: var(--charcoal);
    background: var(--ivory);
}

.floating-lang-menu button.active {
    color: var(--charcoal);
}