/* ==========================================================================
   Vigor Property — Design System
   Black = environment · White = information · Orange = action & attention
   ========================================================================== */

:root {
    --bg: #0B0B0B;
    --bg-raised: #101010;
    --card: #151515;
    --card-2: #1B1B1B;
    --border: #2A2A2A;
    --border-soft: #1F1F1F;
    --white: #FFFFFF;
    --text-2: #B8B8B8;
    --text-3: #7A7A7A;
    --accent: #FF6B00;
    --accent-hover: #FF7E22;
    --accent-soft: rgba(255, 107, 0, 0.12);
    --accent-line: rgba(255, 107, 0, 0.45);
    --accent-glow: rgba(255, 107, 0, 0.35);
    --logo-orange: #F37433;

    --font-display: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 28px;
    --container: 1280px;
    --gutter: clamp(16px, 4vw, 40px);
    --section-y: clamp(80px, 11vw, 140px);
    --nav-h: 76px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 16px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
}

h1, h2, h3, h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 6px;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -60px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--accent);
    color: var(--bg);
    font-weight: 600;
    border-radius: 8px;
    transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.text-accent { color: var(--accent); }
.muted { color: var(--text-2); }

/* ---------- Typography ---------- */
.display {
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.035em;
    text-transform: uppercase;
}

.lead {
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    line-height: 1.5;
    color: var(--white);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.section-kicker::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.section-sub {
    max-width: 420px;
    color: var(--text-2);
    font-size: 1.05rem;
}

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px -10px var(--accent-glow);
}

.btn-outline { border-color: var(--accent-line); color: var(--white); background: transparent; }
.btn-outline:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-2px); }

.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-lg { padding: 18px 30px; font-size: 16px; }
.btn-block { width: 100%; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.25s var(--ease), gap 0.25s var(--ease);
}
.link-arrow .icon { color: var(--accent); }
.link-arrow:hover { color: var(--accent); gap: 12px; }

.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.4;
}
.tag-solid { background: var(--accent-soft); border-color: transparent; }

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(11, 11, 11, 0.72);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--border-soft);
    transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.navbar.is-scrolled { background: rgba(11, 11, 11, 0.92); border-bottom-color: var(--border); }

.navbar-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--nav-h);
    transition: height 0.3s var(--ease);
}
.navbar.is-scrolled .navbar-inner { height: 64px; }

.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 38px; height: auto; flex-shrink: 0; transition: transform 0.4s var(--ease); }
.logo-img { display: block; width: auto; height: 42px; transition: transform 0.4s var(--ease); }
.logo:hover .logo-img { transform: translateY(-2px); }

.nav-links { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav-link {
    position: relative;
    padding: 8px 14px;
    color: var(--text-2);
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s var(--ease);
}
.nav-link:hover, .nav-link.is-active { color: var(--white); }
/* Only the current page or section gets the orange line; hover just brightens the text. */
.nav-link.is-active::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 18px; padding-left: 24px; border-left: 1px solid var(--border); }
.nav-login { color: var(--white); font-size: 15px; font-weight: 500; white-space: nowrap; transition: color 0.2s; }
.nav-login:hover { color: var(--accent); }

/* BM | EN language switch */
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-raised); }
.lang-option { min-width: 38px; padding: 5px 10px; border-radius: 999px; color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-align: center; transition: color 0.2s, background-color 0.2s; }
.lang-option:hover { color: var(--white); }
.lang-option.is-active { background: var(--accent); color: var(--white); }
.lang-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-switch-mobile { align-self: flex-start; margin-top: 20px; }
.lang-switch-mobile .lang-option { min-width: 52px; padding: 8px 14px; font-size: 14px; }
.agent-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(32px, 5vw, 56px); }
.agent-topbar .agent-brand { margin-bottom: 0; }

.nav-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.navbar.is-open .nav-toggle .icon-open { display: none; }
.navbar.is-open .nav-toggle .icon-close { display: block; }

.mobile-menu {
    display: none;
    overflow: hidden;
    max-height: 0;
    border-top: 1px solid transparent;
    transition: max-height 0.4s var(--ease), border-color 0.3s;
}
.navbar.is-open .mobile-menu { max-height: 560px; border-top-color: var(--border); }
.mobile-menu-inner { display: flex; flex-direction: column; padding-block: 16px 24px; }
.mobile-link {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-soft);
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    transition: color 0.2s, padding-left 0.25s var(--ease);
}
.mobile-link:hover { color: var(--accent); padding-left: 6px; }
.mobile-link.is-active { color: var(--accent); }
.mobile-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); }
.section + .section { border-top: 1px solid var(--border-soft); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: clamp(48px, 6vw, 72px);
}
.section-head-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
}
.section-head-center .section-sub { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(calc(100vh - var(--nav-h)), 900px);
    padding-block: clamp(72px, 9vw, 120px) clamp(96px, 11vw, 140px);
    overflow: hidden;
    isolation: isolate;
}
.hero-grid-bg, .cta-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--hero-image-sm) center 58% / cover no-repeat;
    animation: hero-zoom 2.4s var(--ease) both;
}
.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(11, 11, 11, 0.96) 0%, rgba(11, 11, 11, 0.86) 34%, rgba(11, 11, 11, 0.45) 68%, rgba(11, 11, 11, 0.25) 100%),
        linear-gradient(180deg, rgba(11, 11, 11, 0.55) 0%, rgba(11, 11, 11, 0) 22%, rgba(11, 11, 11, 0) 62%, var(--bg) 100%);
}
.hero-caption {
    position: absolute;
    right: var(--gutter);
    bottom: clamp(24px, 3vw, 40px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(11, 11, 11, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
}

.hero-plain::before {
    content: "";
    position: absolute;
    right: -10%;
    top: 10%;
    z-index: -1;
    width: 55%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.18), transparent 65%);
    filter: blur(20px);
}

.hero-inner { position: relative; }
.hero-copy { max-width: 700px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin-bottom: 28px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(21, 21, 21, 0.6);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
}
.eyebrow-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}
.eyebrow-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    animation: pulse 2.4s var(--ease) infinite;
}

.hero-title {
    font-size: clamp(2.6rem, 6.2vw, 5.5rem);
    font-weight: 800;
    line-height: 0.96;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}
.hero-lead {
    max-width: 480px;
    margin-top: 28px;
    color: var(--text-2);
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 48px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.hero-trust div { display: flex; flex-direction: column; gap: 2px; }
.hero-trust strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; }
.hero-trust div > span { color: var(--text-3); font-size: 13px; }

/* ---------- Introduction ---------- */
.intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: end;
    gap: 48px;
}
.intro .display { font-size: clamp(2.5rem, 6vw, 5rem); }
.intro-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }

.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 3vw, 48px);
    margin-top: clamp(64px, 8vw, 104px);
}
.pillar {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.pillar::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0.18);
    transform-origin: left;
    transition: transform 0.6s var(--ease);
}
.pillar:hover::before { transform: scaleX(1); }
.pillar-num {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: var(--accent);
}
.pillar h3 { font-size: 1.5rem; margin-bottom: 10px; }
.pillar p { color: var(--text-2); max-width: 340px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 3vw, 36px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease);
}
.service-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -30%;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.16), transparent 65%);
    opacity: 0;
    transition: opacity 0.5s var(--ease);
    pointer-events: none;
}
.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 107, 0, 0.4);
    box-shadow: 0 24px 48px -24px rgba(255, 107, 0, 0.35);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; }

.service-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin-bottom: 28px;
    border-radius: 16px;
    background: var(--accent-soft);
    color: var(--accent);
    transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
.service-card:hover .service-icon { background: var(--accent); color: var(--bg); }
.service-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.service-card p { color: var(--text-2); margin-bottom: 28px; }
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}
.service-link .icon { transition: transform 0.3s var(--ease); }
.service-card:hover .service-link { color: var(--accent); }
.service-card:hover .service-link .icon { transform: translate(2px, -2px); }

/* ---------- Projects ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(40px, 5vw, 64px) 24px;
}
.project-card { display: flex; flex-direction: column; gap: 28px; }
/* Asymmetric layout for the 4 featured listings on the homepage only */
.projects-grid .project-1, .projects-grid .project-4 { grid-column: span 7; }
.projects-grid .project-2, .projects-grid .project-3 { grid-column: span 5; }
.projects-grid .project-1 .project-media, .projects-grid .project-4 .project-media { aspect-ratio: 16 / 10; }
.projects-grid .project-2 .project-media, .projects-grid .project-3 .project-media { aspect-ratio: 8 / 7; }

/* Even 3-column grid for the all-properties page */
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 4vw, 48px) 24px; }
.listing-grid .project-media { aspect-ratio: 4 / 3; }
.listing-grid .project-card { gap: 20px; }
.listing-grid > [hidden] { display: none; }

.show-more { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: clamp(40px, 5vw, 56px); }
.show-more-status { color: var(--text-2); font-size: 14px; }

/* Filters on the all-properties page */
.listing-filters { display: flex; flex-direction: column; gap: 16px; max-width: 920px; margin-top: 32px; }
.listing-filters .directory-search { margin-top: 0; max-width: none; }
.filter-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.filter { display: flex; flex-direction: column; gap: 6px; min-width: 180px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.filter select {
    padding: 11px 40px 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23B8B8B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center;
    color: var(--white);
    font: inherit;
    font-size: 15px;
    appearance: none;
    cursor: pointer;
}
.filter select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.filter-row .directory-clear { padding-bottom: 12px; }

.project-media {
    position: relative;
    display: block;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 70% 60% at 80% 100%, rgba(255, 107, 0, 0.18), transparent 70%),
        var(--card);
    overflow: hidden;
    transition: border-color 0.4s var(--ease);
}
.project-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}
.project-card:hover .project-media { border-color: rgba(255, 107, 0, 0.4); }
.project-card:hover .property-art { transform: scale(1.04); }

.project-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.project-meta { display: flex; align-items: center; gap: 16px; color: var(--text-3); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.project-body h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.25; letter-spacing: -0.02em; }
.project-body h3 a { transition: color 0.2s; }
.project-body h3 a:hover { color: var(--accent); }
.project-body p { max-width: 520px; color: var(--text-2); }
.project-body .property-location { display: inline-flex; align-items: center; gap: 6px; margin-top: -4px; color: var(--white); font-size: 15px; font-weight: 500; }
.property-location .icon { color: var(--accent); flex-shrink: 0; }

.property-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.property-specs li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--card);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
}
.property-specs .icon { color: var(--accent); }

.property-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    width: 100%;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border-soft);
}
.property-price { font-family: var(--font-display); font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 700; letter-spacing: -0.02em; }

.media-badge-urgent { box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.3); }
.media-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 2;
    padding: 7px 14px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--bg);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}
.project-card:hover .project-photo { transform: scale(1.04); }
.media-photo-count {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(11, 11, 11, 0.7);
    color: var(--white);
    font-size: 12px;
    font-weight: 600;
}

/* ---------- Property page ---------- */
.property-page { padding-block: clamp(24px, 4vw, 48px) clamp(48px, 6vw, 80px); }
.property-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.property-back a { display: inline-flex; align-items: center; gap: 8px; }
.property-back:hover, .property-back a:hover { color: var(--accent); }
.property-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.property-main, .property-side { display: grid; gap: 20px; min-width: 0; }
.property-side { position: sticky; top: calc(var(--nav-h) + 20px); }

.property-panel { padding: clamp(20px, 2.4vw, 28px); border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.property-panel-title { margin-bottom: 16px; color: var(--text-3); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.pgallery { display: grid; gap: 12px; }
.pgallery-stage { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.pgallery-stage img { width: 100%; height: 100%; object-fit: cover; }
.pgallery-stage .property-art { position: absolute; inset: 0; }
.pgallery-nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); background: rgba(11, 11, 11, 0.65); }
.pgallery-prev { left: 16px; }
.pgallery-next { right: 16px; }
.pgallery-count { position: absolute; right: 16px; bottom: 16px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(11, 11, 11, 0.7); font-size: 13px; font-weight: 600; }
.pgallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.pgallery-thumb { flex: 0 0 96px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 12px; background: var(--card); overflow: hidden; cursor: pointer; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s; }
.pgallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pgallery-thumb:hover { opacity: 1; }
.pgallery-thumb.is-active { border-color: var(--accent); opacity: 1; }
.pgallery-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.property-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 24px; }
.property-details dt { margin-bottom: 4px; color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.property-details dd { margin: 0; font-weight: 600; }
.property-description { color: var(--text-2); line-height: 1.7; }

.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.property-summary-price { margin-top: 14px; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; }
.property-summary-title { margin-top: 8px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.35; letter-spacing: -0.01em; }
.property-summary-location { display: flex; align-items: center; gap: 6px; margin-block: 10px 16px; color: var(--text-2); font-size: 15px; }
.property-summary-location .icon { color: var(--accent); flex-shrink: 0; }

.property-agent { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.property-agent .agent-avatar { flex: 0 0 56px; width: 56px; height: 56px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.property-agent .agent-initials { font-size: 18px; letter-spacing: 0; }
.property-agent .agent-initials::after, .property-agent .agent-avatar-mark { display: none; }
.property-agent strong { display: block; font-size: 16px; }
.property-agent span { color: var(--text-3); font-size: 13px; }
.property-contact .muted { margin-bottom: 18px; }
.property-contact-actions { display: grid; gap: 10px; }
.property-agent-link { justify-self: center; margin-top: 6px; font-size: 14px; }

.property-share { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.share-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 12px; cursor: pointer; }
.share-btn > span:first-child { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: var(--white); transition: transform 0.2s var(--ease); }
.share-btn:hover > span:first-child { transform: translateY(-2px); }
.share-whatsapp > span:first-child { background: #25D366; }
.share-facebook > span:first-child { background: #1877F2; }
.share-telegram > span:first-child { background: #229ED9; }
.share-copy > span:first-child { border: 1px solid var(--border); background: var(--card-2); }
.property-related { padding-top: 0; }

@media (max-width: 1023px) {
    /* One column: photos, then price and contact, then the details. */
    .property-layout { grid-template-columns: 1fr; gap: 20px; }
    .property-main, .property-side { display: contents; }
    .property-layout .pgallery { order: 1; }
    .property-layout .property-summary { order: 2; }
    .property-layout .property-contact { order: 3; }
    .property-layout .property-panel:not(.property-summary, .property-contact) { order: 4; }
}
@media (max-width: 767px) {
    .property-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pgallery-stage { aspect-ratio: 4 / 3; border-radius: var(--radius); }
    .pgallery-thumb { flex-basis: 76px; }
}

/* Property illustrations */
.property-art {
    position: absolute;
    inset: 12% 8% 0;
    transform-origin: bottom center;
    transition: transform 0.7s var(--ease);
}
.property-art svg { width: 100%; height: 100%; overflow: visible; }
.pa-body { fill: #171717; stroke: var(--border); stroke-width: 1; }
.pa-body-2 { fill: #131313; }
.pa-crown { fill: #232323; }
.pa-accent { fill: var(--accent); }
.pa-band { fill: #1F1F1F; }
.pa-line { stroke: #232323; stroke-width: 1; }
.pa-win { fill: #222; rx: 1.5; }
.pa-win-wide { fill: #1A1A1A; }
.pa-win.is-lit { fill: var(--accent); filter: drop-shadow(0 0 4px rgba(255, 107, 0, 0.7)); }
.pa-glass { fill: rgba(255, 107, 0, 0.22); stroke: var(--accent-line); stroke-width: 1; }
.pa-glass-soft { fill: rgba(255, 107, 0, 0.1); }
.pa-tree { fill: #141414; stroke: var(--border); stroke-width: 1; }
.pa-ground { fill: #101010; }


/* ---------- Process ---------- */
.timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    counter-reset: step;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), var(--accent-line));
    transform-origin: left;
    transition: transform 1.4s var(--ease) 0.2s;
}
.js .timeline::before { transform: scaleX(0); }
.js .timeline.is-visible::before { transform: scaleX(1); }

.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-node {
    position: relative;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin-bottom: 28px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--bg);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    transition: background-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.step:hover .step-node { background: var(--accent); color: var(--bg); box-shadow: 0 0 0 8px var(--accent-soft); }
.step h3 { font-size: 1.35rem; text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 10px; }
.step p { max-width: 240px; color: var(--text-2); font-size: 15px; }

/* ---------- Social media ---------- */
.social-accounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.social-account {
    --brand: var(--accent);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.social-account:hover { transform: translateY(-4px); border-color: var(--brand); }
.social-account-facebook { --brand: #1877F2; }
.social-account-instagram { --brand: #E1306C; }
.social-account-tiktok { --brand: #25F4EE; }
.social-account-youtube { --brand: #FF0033; }
.social-account-threads { --brand: #FFFFFF; }
.social-account-icon { display: grid; flex: 0 0 52px; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); }
.social-account-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.social-account-text strong { font-size: 16px; }
.social-account-text span { overflow: hidden; color: var(--text-3); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.social-account-follow { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap; transition: color 0.2s; }
.social-account:hover .social-account-follow { color: var(--white); }
.social-posts { margin-top: clamp(32px, 4vw, 48px); }

/* ---------- CTA ---------- */
.cta-section { padding-block: 0 var(--section-y); }
.cta {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(64px, 9vw, 128px) clamp(24px, 5vw, 80px);
    border: 1px solid var(--border);
    border-radius: 32px;
    background: #0E0E0E;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.cta-glow {
    position: absolute;
    left: 50%;
    bottom: -55%;
    z-index: -1;
    width: 90%;
    aspect-ratio: 2 / 1;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(255, 107, 0, 0.55), rgba(255, 107, 0, 0.12) 45%, transparent 70%);
    filter: blur(30px);
    transform: translateX(-50%);
    animation: breathe-centered 8s ease-in-out infinite;
}
.cta-grid-bg { z-index: -1; mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 100%, #000 10%, transparent 70%); }
.cta-title {
    font-size: clamp(2.4rem, 6.5vw, 5.5rem);
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}
.cta-text { max-width: 520px; margin: 28px 0 40px; color: var(--text-2); font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(48px, 6vw, 96px); align-items: start; }
.contact-info > .muted { max-width: 420px; margin-top: 24px; }
.contact-list { margin-top: 48px; }
.contact-list li { display: flex; align-items: flex-start; gap: 18px; padding: 20px 0; border-top: 1px solid var(--border-soft); }
.contact-list li:last-child { border-bottom: 1px solid var(--border-soft); }
.contact-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--card);
    color: var(--accent);
}
.contact-label { display: block; margin-bottom: 2px; color: var(--text-3); font-size: 13px; font-weight: 500; }
.contact-list a, .contact-list span:not(.contact-icon):not(.contact-label) { font-weight: 500; }
.contact-list a { transition: color 0.2s; }
.contact-list a:hover { color: var(--accent); }

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: clamp(24px, 4vw, 44px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { color: var(--text-2); font-size: 13px; font-weight: 500; }
.field input, .field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--white);
    font: inherit;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder, .field textarea::placeholder { color: #5A5A5A; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-error input, .field.has-error textarea { border-color: var(--accent); }
.form-note { min-height: 1.4em; color: var(--text-2); font-size: 14px; text-align: center; }
.form-note.is-error { color: var(--accent); }
.form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer { padding-top: clamp(64px, 8vw, 96px); border-top: 1px solid var(--border); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 64px; }
.footer-brand p { max-width: 340px; margin: 24px 0 28px; color: var(--text-2); font-size: 15px; }
.socials { display: flex; gap: 10px; }
.social {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-2);
    transition: background-color 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.social:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); transform: translateY(-3px); }
.footer-title { margin-bottom: 20px; color: var(--white); font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col li, .footer-col a { color: var(--text-2); font-size: 15px; }
.footer-col a { transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-cta p { margin-bottom: 16px; color: var(--text-2); font-size: 15px; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 28px;
    border-top: 1px solid var(--border-soft);
    color: var(--text-3);
    font-size: 14px;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { transition: color 0.2s; }
.footer-legal a:hover { color: var(--white); }

/* ---------- Agents ---------- */
.agents-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.agent-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
    overflow: hidden;
    transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.agent-card:hover { transform: translateY(-6px); border-color: rgba(255, 107, 0, 0.4); box-shadow: 0 24px 48px -24px rgba(255, 107, 0, 0.35); }
.agent-card-media { display: block; overflow: hidden; }
.agent-card-media .agent-avatar { aspect-ratio: 4 / 4.4; border-radius: 0; transition: transform 0.7s var(--ease); }
.agent-card:hover .agent-card-media .agent-avatar { transform: scale(1.04); }
.agent-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 22px; }
.agent-ren { color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.agent-card h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.agent-card h3 a { transition: color 0.2s; }
.agent-card h3 a:hover { color: var(--accent); }
.agent-title { color: var(--text-2); font-size: 14px; }
.agent-areas { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 13px; }
.agent-areas .icon { color: var(--accent); flex-shrink: 0; }
.agent-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }

.icon-circle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent);
    transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.icon-circle:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.agent-branch-link { transition: color 0.2s; }
.agent-branch-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.filter-wide { min-width: min(100%, 320px); }
.section-more { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 48px); }

/* Homepage strips (agents, properties): endless left → right movement, pauses on hover/touch */
.marquee {
    --card-width: 290px;
    --card-gap: 20px;
    position: relative;
    overflow: hidden;
    margin-inline: calc(50% - 50vw);
    padding: 8px 0 16px;
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-right var(--marquee-duration, 90s) linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee-set { display: flex; align-items: flex-start; gap: var(--card-gap); padding-right: var(--card-gap); }
.marquee-set > * { flex: 0 0 var(--card-width); width: var(--card-width); }
.js .marquee .reveal { opacity: 1; transform: none; }
.js .marquee .agent-card.reveal:hover { transform: translateY(-4px); }

/* Property cards in the strip: same size photos, short text */
.marquee-properties { --card-width: 380px; --card-gap: 24px; }
.marquee-properties .project-card { gap: 18px; }
.marquee-properties .project-media { aspect-ratio: 4 / 3; }
.marquee-properties .project-body > p { display: none; }
.marquee-properties .project-body h3 { -webkit-line-clamp: 2; line-clamp: 2; }

@keyframes marquee-right {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

@media (max-width: 767px) {
    .marquee { --card-width: 240px; --card-gap: 12px; }
    .marquee-properties { --card-width: 290px; }
}

@media (prefers-reduced-motion: reduce) {
    /* No automatic movement: a normal row people can swipe or scroll. */
    .marquee { overflow-x: auto; mask-image: none; -webkit-mask-image: none; scroll-snap-type: x mandatory; }
    .marquee-track { animation: none; }
    .marquee-set[aria-hidden="true"] { display: none; }
    .marquee-set > * { scroll-snap-align: start; }
}

/* Agents directory page */
.page-hero { position: relative; padding-block: clamp(56px, 8vw, 96px) clamp(32px, 4vw, 48px); overflow: hidden; isolation: isolate; }
.page-hero .hero-grid-bg { z-index: -1; }
.page-hero .section-sub { margin-top: 20px; max-width: 560px; }
.directory-search {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 720px;
    margin-top: 32px;
    padding: 8px 8px 8px 20px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--card);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.directory-search > .icon { color: var(--accent); flex-shrink: 0; }
.directory-search input { flex: 1; min-width: 0; padding: 10px 0; border: 0; background: transparent; color: var(--white); font: inherit; font-size: 16px; }
.directory-search input:focus { outline: none; }
.directory-search input::placeholder { color: #5A5A5A; }
.directory-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.directory-clear { color: var(--text-2); font-size: 14px; font-weight: 500; }
.directory-clear:hover { color: var(--accent); }
.directory { padding-top: clamp(24px, 3vw, 40px); }
.directory-meta { margin-bottom: 24px; color: var(--text-2); font-size: 15px; }
.directory-meta strong { color: var(--white); }
.directory-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 64px 16px; border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; }
.directory-empty > .icon { color: var(--accent); margin-bottom: 8px; }
.site-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: clamp(40px, 5vw, 64px); }
.site-pager-current { color: var(--text-2); font-size: 15px; }
.btn.is-disabled { opacity: 0.4; pointer-events: none; }

/* Avatar: photo, or initials over the house mark */
.agent-avatar {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 50% 110%, rgba(255, 107, 0, 0.35), transparent 60%),
        linear-gradient(160deg, #1C1C1C, #111);
    overflow: hidden;
}
.agent-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.agent-avatar-mark { position: absolute; width: 58%; opacity: 0.08; bottom: -6%; right: -8%; }
.agent-initials {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--white);
}
.agent-initials::after {
    content: '';
    display: block;
    width: 40%;
    height: 3px;
    margin: 8px auto 0;
    border-radius: 2px;
    background: var(--accent);
}

/* Agent landing page */
.agent-hero { position: relative; padding-block: clamp(40px, 6vw, 80px) clamp(72px, 9vw, 120px); overflow: hidden; isolation: isolate; }
.agent-hero .hero-grid-bg { z-index: -1; }
.agent-hero-glow {
    position: absolute;
    top: 0;
    right: -10%;
    z-index: -1;
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 0, 0.22), transparent 65%);
    filter: blur(20px);
}
.agent-hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(40px, 6vw, 96px); }
.agent-brand { display: flex; width: fit-content; margin-bottom: clamp(32px, 5vw, 56px); }
.preview-note { margin-bottom: 16px; padding: 10px 14px; border: 1px dashed var(--accent); border-radius: 12px; color: var(--accent); font-size: 14px; font-weight: 500; }
.agent-name {
    font-size: clamp(2.6rem, 6vw, 5.25rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}
.agent-hero-title { margin-top: 16px; color: var(--accent); font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; letter-spacing: -0.01em; }
.agent-hero .hero-lead { margin-top: 20px; }

.agent-portrait { position: relative; max-width: 440px; width: 100%; justify-self: end; }
.agent-portrait::before {
    content: '';
    position: absolute;
    inset: 8% -6% -6% 8%;
    z-index: -1;
    border: 1px solid var(--accent-line);
    border-radius: 28px;
}
.agent-portrait-photo { border: 1px solid var(--border); border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9); }
.agent-portrait-photo .agent-initials { font-size: clamp(4rem, 9vw, 7rem); }
.agent-portrait-card {
    position: absolute;
    left: -24px;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(21, 21, 21, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.8);
}
.agent-portrait-logo { width: 30px; flex-shrink: 0; }
.agent-portrait-card strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.agent-portrait-card span { color: var(--text-3); font-size: 12px; }

.agent-profile { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); }
.agent-profile-body { display: flex; flex-direction: column; gap: 40px; }
.agent-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.agent-fact { padding-top: 20px; border-top: 1px solid var(--border); }
.agent-fact h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.agent-fact h3 .icon { color: var(--accent); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list li { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--text-2); font-size: 13px; }
.agent-contact { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.agent-contact a { color: var(--white); word-break: break-word; transition: color 0.2s; }
.agent-contact a:hover { color: var(--accent); }
.agent-contact-social { margin-top: 14px; }

.agent-cta-section { padding-top: var(--section-y); }
.cta-avatar { width: 96px; height: 96px; margin-bottom: 20px; aspect-ratio: 1; border: 2px solid var(--accent); border-radius: 50%; }
.cta-avatar .agent-initials { font-size: 2rem; }
.cta-avatar .agent-initials::after, .cta-avatar .agent-avatar-mark { display: none; }
.agent-cta-actions { justify-content: center; margin-top: 0; }

.agent-sticky-bar { display: none; }

.standalone-footer { padding-block: 32px; border-top: 1px solid var(--border-soft); }
.standalone-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.standalone-footer p { color: var(--text-3); font-size: 14px; }

@media (max-width: 1023px) {
    .agents-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .agent-hero-inner { grid-template-columns: 1fr; }
    .agent-portrait { justify-self: start; max-width: 380px; }
    .agent-profile { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .agents-grid { gap: 12px; }
    .agent-card-body { padding: 16px; }
    .agent-card h3 { font-size: 1.05rem; }
    .agent-card-actions .btn { padding-inline: 12px; font-size: 13px; }
    .agent-areas { display: none; }
    .agent-areas:has(.agent-branch-link) { display: flex; }
    .agent-facts { grid-template-columns: 1fr; }
    .agent-portrait { max-width: none; }
    .agent-portrait-card { left: 12px; bottom: 12px; }
    .agent-portrait::before { display: none; }

    body:has(.agent-sticky-bar) { padding-bottom: 76px; }
    .agent-sticky-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        display: grid;
        grid-template-columns: 1fr 1.4fr;
        gap: 10px;
        padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
        border-top: 1px solid var(--border);
        background: rgba(11, 11, 11, 0.94);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}

@media (max-width: 420px) {
    .agents-grid { grid-template-columns: 1fr; }
    .agent-areas { display: flex; }
}

/* ---------- Agent self-editing: owner bar, toast, pop-up ---------- */
body:has(.owner-bar) { padding-top: 60px; }
.owner-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 45;
    border-bottom: 1px solid rgba(255, 107, 0, 0.35);
    background: rgba(18, 12, 8, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.owner-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.owner-bar-text { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.owner-bar-text .eyebrow-dot { flex-shrink: 0; }
.owner-bar-text span:last-child { color: var(--text-3); }
.owner-bar-actions { display: flex; align-items: center; gap: 10px; }
.owner-bar-actions .btn { padding: 10px 16px; }

.toast {
    position: fixed;
    top: 76px;
    left: 50%;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 107, 0, 0.4);
    border-radius: 999px;
    background: var(--card);
    box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.9);
    font-size: 14px;
    font-weight: 500;
    transform: translateX(-50%);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.toast.is-hidden { opacity: 0; transform: translate(-50%, -12px); pointer-events: none; }
.toast-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--bg); }
.toast-icon .icon { stroke-width: 3; }

.has-modal { overflow: hidden; }
.modal {
    width: min(980px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--card);
    color: var(--white);
    box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.95);
}
.modal::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }

/* Pop-up announcement */
.popup {
    position: fixed;
    width: min(520px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: var(--card);
    color: var(--white);
    box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 107, 0, 0.12);
    overflow-y: auto;
}
.popup::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(4px); }
.popup[open] { animation: modal-in 0.35s var(--ease); }
.popup-close { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(11, 11, 11, 0.7); }
.popup-image { display: block; background: var(--bg); }
.popup-image img { display: block; width: 100%; max-height: 62dvh; object-fit: contain; }
.popup-body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px; }
.popup-body .section-kicker { margin-bottom: 0; }
.popup-title { padding-right: 36px; font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.03em; }
.popup-image + .popup-body .popup-title { padding-right: 0; }
.popup-text { color: var(--text-2); line-height: 1.65; }
.popup-button { margin-top: 8px; }
@media (prefers-reduced-motion: reduce) {
    .popup[open] { animation: none; }
}
.modal[open] { display: flex; animation: modal-in 0.35s var(--ease); }
.modal-form { display: flex; flex-direction: column; width: 100%; max-height: calc(100dvh - 48px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 28px 20px; border-bottom: 1px solid var(--border); }
.modal-head .section-kicker { margin-bottom: 8px; }
.modal-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.modal-body { display: flex; flex-direction: column; gap: 20px; padding: 24px 28px; overflow-y: auto; }
.modal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.modal-photo { position: sticky; top: 0; }
.modal-photo .image-preview { aspect-ratio: 4 / 5; }
.modal-fields { display: flex; flex-direction: column; gap: 16px; }
.modal-section { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border-soft); color: var(--text-2); font-family: var(--font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.modal-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.modal-note { color: var(--text-3); font-size: 13px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 12px; padding: 16px 28px; border-top: 1px solid var(--border); background: var(--bg-raised); border-radius: 0 0 24px 24px; }

.modal-tabs { display: flex; gap: 4px; padding: 0 28px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.modal-tab {
    position: relative;
    flex-shrink: 0;
    padding: 14px 14px 12px;
    border: 0;
    background: none;
    color: var(--text-2);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-tab::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transition: transform 0.25s var(--ease); }
.modal-tab:hover, .modal-tab.is-active { color: var(--white); }
.modal-tab.is-active::after { transform: scaleX(1); }
.modal-panel { display: none; flex-direction: column; gap: 16px; }
.modal-panel.is-active { display: flex; }
.modal-section-count { margin-left: 8px; color: var(--text-3); font-weight: 500; letter-spacing: 0.04em; text-transform: none; }

.field-with-icon label { display: inline-flex; align-items: center; gap: 8px; }
.field-with-icon label .icon { color: var(--accent); }

.video-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.video-field-thumb { width: 160px; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 28px; border: 1px solid var(--border); border-radius: 10px; }

.gallery-manage { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.gallery-manage-item { position: relative; aspect-ratio: 1; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; cursor: pointer; }
.gallery-manage-item img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s, filter 0.2s; }
.gallery-manage-item input { position: absolute; opacity: 0; }
.gallery-manage-remove {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    border-radius: 8px;
    background: rgba(11, 11, 11, 0.8);
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    transition: background-color 0.2s, color 0.2s;
}
.gallery-manage-item:hover .gallery-manage-remove { color: var(--white); }
.gallery-manage-item:has(input:checked) { border-color: var(--accent); }
.gallery-manage-item:has(input:checked) img { opacity: 0.3; filter: grayscale(1); }
.gallery-manage-item:has(input:checked) .gallery-manage-remove { background: var(--accent); color: var(--bg); }
.gallery-manage-item:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.gallery-upload { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.gallery-upload label.btn { cursor: pointer; }
.gallery-new { display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; width: 100%; }
.gallery-new:empty { display: none; }
.gallery-new img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--accent-line); border-radius: 10px; }

/* Social icons on agent pages */
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.agent-hero-social { margin-top: 24px; }
.cta-social { justify-content: center; margin-top: 28px; }

/* Video */
.video-frame { position: relative; aspect-ratio: 16 / 9; max-width: 1040px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #000; overflow: hidden; }
.video-facade {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    border: 0;
    background-color: #000;
    background-position: center;
    background-size: cover;
    cursor: pointer;
}
.video-facade::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.45)); }
.video-play {
    position: relative;
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 0 10px rgba(255, 107, 0, 0.25), 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.video-play .icon { fill: currentColor; margin-left: 4px; }
.video-facade:hover .video-play { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(255, 107, 0, 0.2), 0 20px 40px -10px rgba(0, 0, 0, 0.7); }
.video-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Several videos: wrap side by side, centred; portrait ones are narrower */
.video-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px; }
.video-grid .video-frame { flex: 0 0 auto; width: min(100%, 560px); }
.video-grid .video-frame-vertical { width: min(100%, 300px); margin-inline: 0; }
.video-grid-single .video-frame { width: 100%; max-width: 1040px; }
.video-grid-single .video-frame-vertical { width: min(100%, 380px); }

/* TikTok, Reels and Shorts are portrait videos */
.video-frame-vertical { aspect-ratio: 9 / 16; width: min(100%, 380px); max-height: 80dvh; margin-inline: auto; }
.video-frame-vertical .video-play { width: 72px; height: 72px; }

/* Platforms without a preview image get a branded play card */
.video-facade-tiktok, .video-facade-facebook, .video-facade-instagram {
    background:
        radial-gradient(circle at 50% 120%, rgba(255, 107, 0, 0.45), transparent 60%),
        linear-gradient(160deg, #1C1C1C, #0B0B0B);
}
.video-facade-tiktok::before, .video-facade-facebook::before, .video-facade-instagram::before { display: none; }
.video-platform {
    position: absolute;
    top: 20px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(11, 11, 11, 0.7);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
}
.video-platform .icon { color: var(--accent); }
.video-field-badge { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--bg); color: var(--text-2); font-size: 13px; font-weight: 600; }
.video-field-badge .icon { color: var(--accent); }

/* Gallery */
/* Photos keep their own shape (never cropped): masonry columns for 4+, centred row for 1-3. */
.gallery-grid { columns: 4 220px; column-gap: 12px; }
.gallery-item { position: relative; display: block; width: 100%; margin: 0 0 12px; padding: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--card); overflow: hidden; cursor: zoom-in; break-inside: avoid; }
.gallery-grid-few { columns: var(--count); max-width: calc(var(--count) * 420px); margin-inline: auto; }
.gallery-grid-single { columns: 1; max-width: 900px; margin-inline: auto; }
.gallery-grid-single .gallery-item { width: fit-content; max-width: 100%; margin-inline: auto; }
.gallery-grid-single .gallery-item img { width: auto; max-width: 100%; max-height: 75dvh; }
.gallery-item img { width: 100%; height: auto; max-height: 80dvh; object-fit: contain; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--accent); transition: box-shadow 0.3s var(--ease); }
.gallery-item:hover::after { box-shadow: inset 0 0 0 2px var(--accent); }

.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.92); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 84dvh; border-radius: 12px; object-fit: contain; }
.lightbox .icon-circle { position: fixed; width: 48px; height: 48px; background: rgba(21, 21, 21, 0.85); color: var(--white); }
.lightbox .icon-circle:hover { background: var(--accent); color: var(--bg); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); color: var(--text-2); font-size: 14px; }

@keyframes modal-in {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
    body:has(.owner-bar) { padding-top: 104px; }
    .owner-bar-inner { flex-direction: column; align-items: stretch; gap: 8px; padding-block: 10px; }
    .owner-bar-text span:last-child { display: none; }
    .owner-bar-actions .btn { flex: 1; }
    .toast { top: 116px; width: max-content; max-width: calc(100vw - 32px); }

    .modal-tabs { padding-inline: 10px; }
    .video-field { grid-template-columns: 1fr; }
    .video-grid { gap: 10px; }
    .video-grid:not(.video-grid-single) .video-frame-vertical { width: calc(50% - 5px); }
    .video-grid:not(.video-grid-single) .video-frame-vertical .video-play { width: 52px; height: 52px; }
    .video-field-thumb { margin-top: 0; }
    .gallery-grid { columns: 2; column-gap: 8px; }
    .gallery-item { margin-bottom: 8px; }
    .gallery-grid-single { columns: 1; }
    .video-play { width: 64px; height: 64px; }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 12px; transform: none; }
    .lightbox-count { bottom: 26px; }

    .modal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; border: 0; }
    .modal-form { max-height: 100dvh; }
    .modal-head, .modal-body, .modal-foot { padding-inline: 18px; }
    .modal-grid { grid-template-columns: 1fr; }
    .modal-photo { position: static; max-width: 260px; }
    .modal-foot { border-radius: 0; }
    .modal-foot .btn { flex: 1; }
}

/* ---------- Testimonials (agent page) ---------- */
/* Slideshow: the active card sits in front; its neighbours peek out either side, smaller, faded and blurred. */
.testimonials-section { overflow-x: clip; }
.testimonial-deck {
    display: grid;
    justify-items: center;
    align-items: center;
    padding-block: 8px 16px;
}

.testimonial-slide {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: min(400px, 82vw);
    padding: 40px 32px 34px;
    border-radius: 24px;
    background: #FFFFFF;
    color: #1A1A1A;
    text-align: center;
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75);
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none;
    transition: transform 0.6s var(--ease), opacity 0.6s var(--ease), filter 0.6s var(--ease);
}
.testimonial-slide[data-offset="0"] { z-index: 3; opacity: 1; transform: none; pointer-events: auto; }
.testimonial-slide[data-offset="1"],
.testimonial-slide[data-offset="-1"] { z-index: 2; opacity: 0.3; filter: blur(3px); pointer-events: auto; cursor: pointer; }
.testimonial-slide[data-offset="1"] { transform: translateX(80%) scale(0.86); }
.testimonial-slide[data-offset="-1"] { transform: translateX(-80%) scale(0.86); }
.testimonial-slide[data-offset="1"]:hover,
.testimonial-slide[data-offset="-1"]:hover { opacity: 0.45; }

.testimonial-avatar {
    display: grid;
    place-items: center;
    width: 128px;
    height: 128px;
    margin-bottom: 14px;
    border: 4px solid #FFFFFF;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(160deg, #1C1C1C, #0B0B0B);
    box-shadow: 0 0 0 3px var(--accent), 0 18px 30px -12px rgba(0, 0, 0, 0.5);
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-avatar span { color: var(--accent); font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; }

.testimonial-name { color: #0B0B0B; font-size: 1.35rem; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; text-transform: uppercase; overflow-wrap: anywhere; }
.testimonial-role { color: #6B6B6B; font-size: 13px; }
.testimonial-quote { margin: 12px 0 0; color: #2E2E2E; font-size: 16px; line-height: 1.65; overflow-wrap: anywhere; }
.testimonial-stars { display: flex; gap: 3px; margin-top: 10px; color: #DADADA; }
.testimonial-stars .icon { fill: currentColor; }
.testimonial-stars .icon.is-on { color: var(--accent); }

.testimonial-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 36px;
}
.testimonial-dots { display: flex; align-items: center; gap: 8px; }
.testimonial-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: var(--border);
    cursor: pointer;
    transition: width 0.3s var(--ease), background-color 0.3s;
}
.testimonial-dots button:hover { background: var(--text-3); }
.testimonial-dots button[aria-current="true"] { width: 24px; background: var(--accent); }

@media (max-width: 767px) {
    .testimonial-slide { padding: 32px 22px 28px; }
    .testimonial-slide[data-offset="1"] { transform: translateX(74%) scale(0.82); }
    .testimonial-slide[data-offset="-1"] { transform: translateX(-74%) scale(0.82); }
    .testimonial-avatar { width: 108px; height: 108px; }
}

/* Testimonial editor rows (edit pop-up) */
.testimonial-list { display: flex; flex-direction: column; gap: 12px; }
.testimonial-rows { display: flex; flex-direction: column; gap: 14px; }
.testimonial-row { display: flex; flex-direction: column; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-raised); }
.testimonial-row-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.testimonial-row-grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px; align-items: start; }
.testimonial-row .image-preview { aspect-ratio: 4 / 5; }
.testimonial-row .image-empty { font-size: 12px; }

@media (max-width: 767px) {
    .testimonial-row-grid { grid-template-columns: 1fr; }
    .testimonial-row .image-input { max-width: 220px; }
}

/* ---------- Reveal animation ---------- */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes pulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}
@keyframes hero-zoom {
    from { transform: scale(1.06); opacity: 0.6; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes breathe-centered {
    0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) {
    .hero-bg { background-image: var(--hero-image); }
}

@media (max-width: 1320px) {
    .nav-links { gap: 0; }
    .nav-link { padding-inline: 10px; }
    .nav-link::after { left: 10px; right: 10px; }
}

/* Seven menu links plus the language switch no longer fit beside the logo and buttons below 1320px. */
@media (max-width: 1319px) {
    .nav-links, .nav-actions { display: none; }
    .nav-toggle { display: inline-flex; }
    .mobile-menu { display: block; }
}

@media (max-width: 1023px) {


    .intro-grid { grid-template-columns: 1fr; gap: 32px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }

    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .project-card { grid-column: span 1 !important; }
    .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-card .project-media { aspect-ratio: 4 / 3.4 !important; }

    .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
    .timeline::before { display: none; }

    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
    .hero { min-height: 0; }
    .hero-bg { background-position: 50% 62%; }
    .hero-bg::after { background: linear-gradient(180deg, rgba(11, 11, 11, 0.72) 0%, rgba(11, 11, 11, 0.8) 55%, var(--bg) 100%); }
    .hero-caption { right: auto; left: var(--gutter); font-size: 12px; }

    :root { --nav-h: 64px; }
    .navbar.is-scrolled .navbar-inner { height: var(--nav-h); }

    .section-head { flex-direction: column; align-items: flex-start; }
    .section-head-center { align-items: center; }

    .hero-actions .btn { flex: 1 1 auto; }
    .hero-trust { gap: 16px 28px; }
    .hero-trust strong { font-size: 1.3rem; }

    .pillars, .services-grid, .projects-grid { grid-template-columns: 1fr; }
    .pillar { flex-direction: row; gap: 20px; }
    .pillar-num { min-width: 80px; font-size: 3rem; }

    .project-card .project-media { aspect-ratio: 4 / 3 !important; }
    .listing-grid { grid-template-columns: 1fr; }
    .filter { flex: 1 1 140px; min-width: 0; }
    .filter select { width: 100%; }
    .property-art { inset: 10% 5% 0; }

    .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 0; }
    .timeline::before {
        display: block;
        top: 32px;
        bottom: 32px;
        left: 31px;
        right: auto;
        width: 1px;
        height: auto;
        background: linear-gradient(180deg, var(--accent), var(--accent-line));
        transform-origin: top;
    }
    .js .timeline::before { transform: scaleY(0); }
    .js .timeline.is-visible::before { transform: scaleY(1); }
    .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 20px; align-items: start; text-align: left; padding-bottom: 36px; }
    .step:last-child { padding-bottom: 0; }
    .step-node { grid-row: span 2; margin-bottom: 0; }
    .step h3 { margin-top: 8px; }
    .step p { max-width: none; }

    .cta { border-radius: 24px; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Phones: a calmer, corporate look ----------
   Sentence-case headings, tighter spacing, smaller radii, no glows or grid
   patterns, and swipeable rows instead of moving strips. Desktop is unchanged. */
@media (max-width: 767px) {
    :root { --section-y: 56px; --radius: 12px; --radius-lg: 14px; --radius-sm: 10px; }

    /* Type */
    h1, h2, h3, h4 { letter-spacing: -0.01em; }
    .display, .intro .display, .hero-title, .cta-title, .agent-name {
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: -0.015em;
        text-transform: none;
    }
    .display, .intro .display, .cta-title { font-size: 1.75rem; }
    .hero-title { font-size: 2.15rem; line-height: 1.1; }
    .agent-name { font-size: 2rem; }
    .lead { font-size: 1.05rem; }
    .section-kicker { margin-bottom: 12px; font-size: 11px; letter-spacing: 0.12em; }
    .section-kicker::before { width: 16px; }
    .section-sub { font-size: 15px; }
    .section-head { gap: 16px; margin-bottom: 28px; }
    .section-head-center { align-items: flex-start; text-align: left; }
    .section-head-center .section-sub { margin-top: 12px; }

    /* Buttons: squarer and quieter */
    .btn { border-radius: 10px; }
    .btn-lg { padding: 15px 20px; font-size: 15px; }
    .btn-primary:hover, .btn-outline:hover { transform: none; box-shadow: none; }

    /* Decoration off */
    .hero-grid-bg, .cta-grid-bg, .cta-glow, .agent-hero-glow, .hero-plain::before, .hero-caption,
    .project-media::before, .service-card::after { display: none; }
    .eyebrow { padding: 0; margin-bottom: 16px; border: 0; background: none; font-size: 13px; }
    .eyebrow-dot::after { display: none; }
    .js .reveal { transform: none; }

    /* Hero: two buttons side by side, figures in a tidy 2 × 2 panel */
    .hero { padding-block: 40px 32px; }
    .hero-lead { margin-top: 16px; font-size: 16px; }
    .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
    .hero-actions .btn { padding-inline: 12px; }
    .hero-trust {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1px;
        margin-top: 32px;
        padding-top: 0;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        background: var(--border);
        overflow: hidden;
    }
    .hero-trust div { padding: 14px 16px; background: var(--bg-raised); }
    .hero-trust strong { font-size: 1.25rem; }

    /* About: small numbers instead of giant ones */
    .pillars { gap: 0; margin-top: 32px; }
    .pillar { gap: 16px; padding-block: 18px; }
    .pillar::before { display: none; }
    .pillar-num { min-width: 28px; font-size: 1rem; font-weight: 700; letter-spacing: 0; line-height: 1.6; }
    .pillar h3 { margin-bottom: 4px; font-size: 1.1rem; }
    .pillar p { font-size: 15px; }

    /* Services: a compact list */
    .services-grid { gap: 10px; }
    .service-card { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
    .service-icon { grid-row: span 2; width: 40px; height: 40px; margin: 0; border-radius: 10px; }
    .service-icon .icon { width: 20px; height: 20px; }
    .service-card h3 { margin-bottom: 4px; font-size: 1.05rem; }
    .service-card p { margin-bottom: 0; font-size: 14px; line-height: 1.5; }
    .service-link { display: none; }

    /* Homepage strips: a still row people swipe, lined up with the page edge */
    .marquee {
        margin-inline: calc(-1 * var(--gutter));
        padding: 0 0 4px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--gutter);
        scrollbar-width: none;
        mask-image: none;
        -webkit-mask-image: none;
    }
    .marquee::-webkit-scrollbar { display: none; }
    .marquee-track { padding-inline: var(--gutter); animation: none; }
    .marquee-set[aria-hidden="true"] { display: none; }
    .marquee-set { padding-right: 0; }
    .marquee-set > * { scroll-snap-align: start; }
    .marquee { --card-width: 220px; }
    .marquee-properties { --card-width: 280px; }

    /* Property cards */
    .project-card, .listing-grid .project-card, .marquee-properties .project-card { gap: 14px; }
    .listing-grid { gap: 32px; }
    .project-media { border-radius: var(--radius); background: var(--card); }
    .media-badge { top: 12px; left: 12px; padding: 5px 10px; border-radius: 6px; font-size: 11px; }
    .media-badge-urgent { box-shadow: none; }
    .media-photo-count { right: 12px; bottom: 12px; border-radius: 6px; }
    .project-body { gap: 8px; }
    .project-meta { gap: 10px; font-size: 12px; letter-spacing: 0.04em; }
    .project-body h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.4; letter-spacing: 0; }
    .tag { border-radius: 6px; letter-spacing: 0.06em; }
    .property-specs li { padding: 5px 10px; border-radius: 8px; font-size: 12px; }
    .property-footer { margin-top: 4px; padding-top: 14px; }
    .property-price { font-size: 1.15rem; }

    /* Agent directory: one row per agent, photo on the left */
    .agents-grid { grid-template-columns: 1fr; gap: 10px; }
    .agents-grid .agent-card { flex-direction: row; }
    .agents-grid .agent-card-media { flex: 0 0 108px; }
    .agents-grid .agent-card-media .agent-avatar { height: 100%; min-height: 140px; aspect-ratio: auto; }
    .agents-grid .agent-initials { font-size: 1.75rem; }
    .agents-grid .agent-initials::after, .agents-grid .agent-avatar-mark { display: none; }
    .agents-grid .agent-card-body { gap: 4px; min-width: 0; padding: 14px; }
    .agents-grid .agent-card-actions { padding-top: 10px; }
    .agent-card:hover, .service-card:hover { transform: none; box-shadow: none; }
    .agent-card h3 { font-size: 1rem; }
    .agent-avatar { background: linear-gradient(160deg, #1C1C1C, #111); }

    /* Social links */
    .social-accounts { gap: 8px; }
    .social-account { gap: 12px; padding: 12px 14px; }
    .social-account-icon { flex-basis: 40px; width: 40px; height: 40px; border-radius: 10px; }
    .social-account-text strong { font-size: 15px; }

    /* Process */
    .timeline::before { top: 22px; bottom: 22px; left: 21px; }
    .step { grid-template-columns: 44px 1fr; column-gap: 16px; padding-bottom: 24px; }
    .step-node { width: 44px; height: 44px; font-size: 0.9rem; }
    .step h3 { margin-top: 10px; margin-bottom: 4px; font-size: 1.05rem; letter-spacing: 0; text-transform: none; }

    /* Closing call to action */
    .cta { align-items: flex-start; padding: 32px 20px; border-radius: var(--radius-lg); background: var(--card); text-align: left; }
    .cta-text { margin: 12px 0 24px; font-size: 15px; }

    /* Contact */
    .contact-info > .muted { margin-top: 12px; }
    .contact-list { margin-top: 24px; }
    .contact-list li { gap: 14px; padding: 14px 0; }
    .contact-icon { width: 40px; height: 40px; border-radius: 10px; }
    .contact-form { gap: 16px; padding: 20px; }

    /* Footer: menu and contact side by side */
    .footer { padding-top: 48px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-bottom: 40px; }
    .footer-brand, .footer-cta { grid-column: 1 / -1; }
    .footer-brand p { margin: 16px 0 20px; }
    .footer-title { margin-bottom: 14px; }
    .footer-col ul { gap: 10px; }

    /* Directory and listing pages */
    .page-hero { padding-block: 32px 16px; }
    .page-hero .section-sub { margin-top: 12px; }
    .directory-search { margin-top: 20px; padding: 6px 6px 6px 14px; border-radius: 12px; }
    .directory-search .btn { padding: 11px 16px; }

    /* Agent landing page */
    .agent-hero { padding-block: 24px 48px; }
    .agent-portrait-photo { border-radius: var(--radius-lg); box-shadow: none; }
    .agent-portrait-photo:not(:has(img)) { aspect-ratio: 16 / 9; }
    .agent-portrait:not(:has(.agent-portrait-photo img)) .agent-portrait-card { display: none; }
    .agent-portrait-card { border-radius: 10px; }

    /* Property page */
    .property-panel { border-radius: var(--radius); }
    .property-summary-price { font-size: 1.6rem; letter-spacing: -0.02em; }
    .property-summary-title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1.45; }

    /* Pop-ups */
    .popup { border-radius: var(--radius-lg); }
}

@media (max-width: 380px) {
    .logo-mark { width: 32px; }
    .logo-img { height: 36px; }
    .mobile-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
    .js .reveal { opacity: 1; transform: none; }
}
