/* ===== FONTS =====
   Self-hosted from R2 rather than fetched from Google. Three reasons, in order
   of how much they cost: a third-party font host is a second DNS lookup, a
   second TLS handshake and a dependency whose downtime is invisible to us; the
   files are served with max-age=31536000, immutable, which Google caps far
   lower; and nothing about a visitor is announced to a third party.

   These are the same subsetted WOFF2 files Google serves - same unicode-range
   splits, so a page still downloads only the latin range it needs - copied to
   c21-branding/fonts/ and served from our own domain. Regenerate them with the
   manifest rather than editing by hand: the file names encode style, weight
   and subset, and a mismatch here fails silently as a fallback face.
   ================= */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(https://library.c21masters.com/c21-branding/fonts/playfair-display/playfair-display-italic-400-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url(https://library.c21masters.com/c21-branding/fonts/playfair-display/playfair-display-italic-400-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(https://library.c21masters.com/c21-branding/fonts/playfair-display/playfair-display-normal-400-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(https://library.c21masters.com/c21-branding/fonts/playfair-display/playfair-display-normal-400-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(https://library.c21masters.com/c21-branding/fonts/inter/inter-normal-300-700-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(https://library.c21masters.com/c21-branding/fonts/inter/inter-normal-300-700-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ====================================================================
    APEX Estates — shared stylesheet (Mobile-First)
    Mobile-first approach with min-width media queries
    Modern CSS: dvh, dvw, clamp(), container queries, fluid sizing
    ==================================================================== */

/* ---------- Reset & design tokens ---------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --gold: #C9A962;
    --gold-light: #D4BC7E;
    --black: #0A0A0A;
    --dark: #1A1A1A;
    --white: #FFFFFF;
    --gray: #888888;
    --light-gray: #F5F5F5;
    
    /* Layout tokens */
    --max-w: 1400px;
    --pad-x: clamp(20px, 5vw, 80px);
    --gutter: calc(var(--pad-x) + max(0px, (100vw - var(--max-w)) / 2));
    --section-y: clamp(64px, 9vw, 110px);
    --starter-nav-h: 72px;

    /* Fluid spacing tokens */
    --space-xs: clamp(0.5rem, 1vw, 0.75rem);
    --space-sm: clamp(0.75rem, 1.5vw, 1rem);
    --space-md: clamp(1rem, 2vw, 1.5rem);
    --space-lg: clamp(1.5rem, 3vw, 2.5rem);
    --space-xl: clamp(2rem, 4vw, 4rem);
    --space-2xl: clamp(3rem, 6vw, 6rem);
    --space-3xl: clamp(4rem, 8vw, 8rem);
    
    /* Fluid typography */
    --text-xs: clamp(0.7rem, 0.8vw, 0.75rem);
    --text-sm: clamp(0.8rem, 1.2vw, 0.9rem);
    --text-base: clamp(0.9rem, 1vw, 1rem);
    --text-lg: clamp(1rem, 1.25vw, 1.1rem);
    --text-xl: clamp(1.25rem, 2vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 3vw, 2rem);
    --text-3xl: clamp(2rem, 4vw, 3rem);
    --text-4xl: clamp(2.5rem, 5vw, 4rem);
    --text-5xl: clamp(3rem, 6vw, 5rem);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    font-size: 100%;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    line-height: 1.1;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- Navigation (Mobile First) ---------- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) var(--space-md);
    transition: all 0.4s ease;
}

.starter-nav-inner {
    max-width: var(--max-w);
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

nav.scrolled {
    background: oklch(100% 0 0);
    padding: var(--space-xs) var(--space-md);
}

.starter-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    z-index: 1002;
}

.starter-logo img {
    display: block;
    height: clamp(2rem, 5vw, 2.5rem);
    width: auto;
    transition: filter 0.4s ease;
}

nav.scrolled .starter-logo img { filter: invert(1); }

/* Half the window from 442px up, the whole window at 441 and below. This was
   min(70vw, 320px), a number picked for this design alone, so the same menu
   came out a different width on every template.

   It also slid by animating `right` from -100%. That is a layout property, so
   every frame cost a reflow of the whole page; transform is composited and
   leaves the document alone. visibility carries a delay so the drawer keeps
   its links out of the tab order while closed without cutting the slide off
   on the first frame. */
.starter-nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    width: 50%;
    height: 100dvh;
    overflow-y: auto;
    background: var(--white);
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s ease, opacity 0.4s ease, visibility 0s linear 0.4s;
    z-index: 1001;
    list-style: none;
    margin: 0;
    padding: 0;
}

.starter-nav-links li { list-style: none; }

.starter-nav-links.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

/* Phones take the whole window: half of 400px is a column of menu beside a
   column of page nobody can read. */
@media (max-width: 441px) {
    .starter-nav-links { width: 100%; }
}

.starter-nav-links a {
    text-decoration: none;
    color: var(--black);
    font-size: var(--text-lg);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    position: relative;
}

.starter-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.starter-nav-links a:hover::after { width: 100%; }
.starter-nav-links a:hover { color: var(--gold); }
.starter-nav-links a.active { color: var(--gold); }

/* Market Trends Dropdown */
.starter-nav-dropdown { position: relative; }

.starter-nav-dropdown > a {
    display: flex;
    align-items: center;
    gap: 4px;
}

.starter-nav-dropdown > a svg {
    transition: transform 0.3s ease;
}

.starter-nav-dropdown:hover > a svg { transform: rotate(180deg); }

.starter-nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    min-width: 180px;
    padding: var(--space-sm) 0;
    box-shadow: 0 10px 40px oklch(0% 0 0 / 0.15);
    border-top: 2px solid var(--gold);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    margin-top: 10px;
}

.starter-nav-dropdown:hover .starter-nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 0;
}

.starter-nav-dropdown-menu li { width: 100%; }

.starter-nav-dropdown-menu a {
    display: block;
    padding: var(--space-xs) var(--space-md);
    color: var(--black);
    font-size: var(--text-sm);
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.2s ease;
}

.starter-nav-dropdown-menu a:hover {
    background: var(--light-gray);
    color: var(--gold);
}

.starter-nav-dropdown-menu a.active {
    color: var(--gold);
    font-weight: 600;
}

/* Social icons hidden by default (desktop nav), shown only in mobile sidebar */
.starter-nav-social { display: none; }

/* Mobile-first: dropdown and social styles (base for mobile) */
.starter-nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: var(--space-md);
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    background: transparent;
}

.starter-nav-dropdown:hover .starter-nav-dropdown-menu {
    max-height: 500px;
    margin-top: var(--space-xs);
}

/* Social icons in mobile sidebar */
.starter-nav-social {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    margin-top: var(--space-lg);
    width: 100%;
}

.starter-nav-social a {
    color: var(--black);
    transition: color 0.3s ease;
}

.starter-nav-social a:hover {
    color: var(--gold);
}

/* CTA button padding for Home */
.starter-cta .starter-btn {
    padding: var(--space-md) clamp(1.5rem, 3vw, 3rem);
}

/* About CTA button */
.starter-agent-hero .starter-btn {
    padding: var(--space-md) clamp(1.5rem, 3vw, 3rem);
}

.starter-menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1002;
    padding: 10px 8px;
}

.starter-menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

nav.scrolled .starter-menu-toggle span { background: var(--black); }

.starter-nav-links.active ~ .starter-menu-toggle span { background: var(--black) !important; }

.starter-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.starter-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.starter-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Buttons ---------- */
.starter-btn {
    display: inline-block;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 3vw, 3rem);
    background: var(--gold);
    color: var(--black);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 2px solid var(--gold);
    transition: all 0.3s ease;
    cursor: pointer;
}

.starter-btn:hover {
    background: transparent;
    color: var(--gold);
}

.starter-btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.starter-btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

/* ---------- Section base ---------- */
.starter-section {
    padding: var(--section-y) var(--pad-x);
    overflow: hidden;
}

.starter-section-inner {
    max-width: var(--max-w);
    margin-inline: auto;
}

.starter-section-header {
    text-align: center;
    margin-bottom: max(3rem, 5dvh);
}

.starter-section-tag {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: var(--text-sm);
    margin-bottom: var(--space-xs);
}

.starter-section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-sm);
}

.starter-section-subtitle {
    color: var(--gray);
    max-width: min(600px, 90vw);
    margin: 0 auto;
}

/* ---------- CTA band ---------- */
.starter-cta {
    position: relative;
    padding: var(--space-3xl) var(--pad-x);
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.starter-cta-inner {
    max-width: var(--max-w);
    margin-inline: auto;
}

.starter-cta-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.starter-cta-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.starter-cta-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(oklch(0% 0 0 / 0.7), oklch(0% 0 0 / 0.7));
    pointer-events: none;
}

.starter-cta-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.starter-cta-text {
    font-size: var(--text-lg);
    color: oklch(100% 0 0 / 0.8);
    max-width: min(600px, 90vw);
    margin: 0 auto var(--space-lg);
}

/* ---------- Footer (Mobile First) ---------- */
footer {
    background: var(--black);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    width: 100%;
    padding: var(--space-xl) var(--pad-x);
    padding-bottom: var(--space-sm);
}

footer > * {
    max-width: var(--max-w);
    margin-inline: auto;
}

/* Officers row: stacked on mobile, 3-col on tablet+ */
.starter-footer-officers {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
    text-align: center;
    align-items: center;
    margin-bottom: var(--space-xl);
}

@media (min-width: 640px) {
    .starter-footer-officers {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }
}

.starter-footer-officers img {
    display: block;
    height: clamp(32px, 5vw, 44px);
    width: auto;
    margin: 0 auto;
}

.starter-footer-officers p {
    color: oklch(100% 0 0 / 0.8);
    font-size: var(--text-sm);
    line-height: 1.6;
}

/* Body: company info, disclaimer, logo bar, terms */
.starter-footer-body {
    text-align: center;
}

.starter-footer-body p {
    color: oklch(100% 0 0 / 0.8);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.starter-footer-disclaimer {
    font-size: 75%;
    opacity: 0.7;
}

p.starter-footer-links {
    font-size: clamp(0.7rem, 0.6vw, 0.75rem);
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-top: var(--space-md);
}

.starter-footer-links a {
    color: oklch(100% 0 0 / 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.starter-footer-links a:hover { color: var(--gold); }

/* MLS logo bar */
.starter-logo-bar { padding: var(--space-lg) 0; }

.starter-logo-bar__label {
    font-size: var(--text-xs);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray);
    text-align: center;
    margin-bottom: var(--space-md);
}

.starter-logo-bar__divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #CBBF9F, transparent);
    margin-bottom: var(--space-lg);
}

.starter-logo-bar__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 4vw, 2.5rem);
}

.starter-logo-bar__item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.starter-logo-bar__item:hover { opacity: 1; }

.starter-logo-bar__item img {
    height: clamp(20px, 3.5vw, 30px);
    width: auto;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.starter-logo-bar__divider--bottom {
    height: 1px;
    background: linear-gradient(90deg, transparent, #CBBF9F, transparent);
    margin-top: var(--space-lg);
}

/* Copyright + social row */
.starter-footer-bottom {
    border-top: 1px solid oklch(100% 0 0 / 0.1);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    color: var(--gray);
    font-size: var(--text-sm);
    text-align: center;
}

@media (min-width: 640px) {
    .starter-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* ---------- Credentials ---------- */
.starter-credentials { background: var(--light-gray); }

.starter-credentials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: var(--space-md);
}

.starter-credential-card {
    background: var(--white);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.starter-credential-card:hover {
    border-bottom-color: var(--gold);
    transform: translateY(-5px);
}

.starter-credential-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto var(--space-md);
    stroke: var(--gold);
}

.starter-credential-title {
    font-size: var(--text-xl);
    margin-bottom: 0.75rem;
    color: var(--black);
}

.starter-credential-desc {
    color: var(--gray);
    font-size: var(--text-sm);
}

/* ---------- FAQ ---------- */
.starter-faq-section { background: var(--white); }

.starter-faq-list {
    max-width: min(800px, 100%);
    margin: 0 auto;
}

.starter-faq-item {
    border-bottom: 1px solid var(--light-gray);
}

.starter-faq-item:last-child { border-bottom: none; }

.starter-faq-question {
    width: 100%;
    background: transparent;
    border: none;
    padding: var(--space-md) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--black);
    text-align: left;
    transition: color 0.3s ease;
}

.starter-faq-question:hover { color: var(--gold); }

.starter-faq-toggle {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.starter-faq-item.open .starter-faq-toggle { transform: rotate(45deg); }

.starter-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--gray);
    font-size: var(--text-sm);
    line-height: 1.7;
    padding-left: 0;
    padding-right: 0;
}

.starter-faq-item.open .starter-faq-answer {
    max-height: 300px;
    padding-bottom: var(--space-md);
    padding-left: 0;
    padding-right: 0;
}

/* ---------- Agent Card ---------- */
.starter-agent-card { margin-bottom: var(--space-lg); }

.starter-agent-card-photo {
    width: min(220px, 60vw);
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border: 2px solid var(--gold);
    margin-bottom: var(--space-md);
    display: block;
}

.starter-agent-card h2 { margin-bottom: var(--space-xs); }

.starter-agent-card-title {
    color: oklch(100% 0 0 / 0.75);
    font-size: var(--text-sm);
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

.starter-agent-card-dre {
    font-size: var(--text-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}

/* ---------- Social Links ---------- */
.starter-social-links {
    display: flex;
    gap: var(--space-md);
}

.starter-social-links a {
    color: var(--white);
    transition: color 0.3s ease;
}

.starter-social-links a:hover { color: var(--gold); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50%      { transform: scaleY(0.7); opacity: 0.5; }
}



/* ====================================================================
    Home (index.html)
    ==================================================================== */

.starter-hero {
    height: 100dvh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.starter-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.starter-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: brightness(0.5);
}

.starter-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: calc(var(--starter-nav-h) + var(--space-md)) var(--space-md) var(--space-lg);
    padding-left: max(1rem, 3vw);
    padding-right: max(1rem, 3vw);
    max-width: min(900px, 90vw);
}

.starter-hero-subtitle {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold-light);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 1s ease 0.3s forwards;
}

.starter-hero-title {
    font-size: var(--text-5xl);
    line-height: 1.1;
    margin-bottom: var(--space-md);
    font-weight: 500;
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}

.starter-hero-text {
    font-size: var(--text-lg);
    color: oklch(100% 0 0 / 0.8);
    margin-bottom: var(--space-lg);
    font-weight: 300;
    max-width: min(600px, 100%);
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeUp 1s ease 0.7s forwards;
}

.starter-hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    opacity: 0;
    animation: fadeUp 1s ease 0.9s forwards;
}

.starter-scroll-indicator {
    position: absolute;
    bottom: max(var(--space-md), env(safe-area-inset-bottom, 1rem));
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--white);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
    cursor: pointer;
}

.starter-scroll-line {
    width: 1px;
    height: clamp(40px, 8dvh, 60px);
    background: linear-gradient(to bottom, var(--gold), transparent);
    margin-top: var(--space-xs);
    animation: scrollPulse 2s ease infinite;
}

/* ── Ylopo widget skeleton loader ─────────────────────────────────────── */
@keyframes shimmer {
    0%   { background-position: -800px 0; }
    100% { background-position:  800px 0; }
}

.ylopo-easy-widget {
    min-height: 420px;
    position: relative;
}

.ylopo-easy-widget.ylopo-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 4px;
    background: linear-gradient(90deg,
        oklch(95% 0 0) 25%,
        oklch(90% 0 0) 50%,
        oklch(95% 0 0) 75%
    );
    background-size: 800px 100%;
    animation: shimmer 1.4s ease infinite;
}

.ylopo-easy-widget.ylopo-ready::before { display: none; }

.starter-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
    gap: var(--space-md);
}

.starter-property-card {
    background: var(--white);
    overflow: hidden;
    box-shadow: 0 10px 40px oklch(0% 0 0 / 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

@media (hover: hover) and (pointer: fine) {
    .starter-property-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 60px oklch(0% 0 0 / 0.15);
    }

    .starter-property-card:hover .starter-property-image img {
        transform: scale(1.1);
    }
}

.starter-property-image {
    position: relative;
    height: clamp(200px, 30dvh, 300px);
    overflow: hidden;
}

.starter-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.starter-property-badge {
    position: absolute;
    top: var(--space-xs);
    left: var(--space-xs);
    background: var(--gold);
    color: var(--black);
    padding: 0.5rem 1rem;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.starter-property-info { padding: var(--space-md); }

.starter-property-price {
    font-family: 'Playfair Display', serif;
    font-size: var(--text-2xl);
    color: var(--black);
    margin-bottom: var(--space-xs);
}

.starter-property-address {
    color: var(--gray);
    margin-bottom: var(--space-sm);
    font-size: var(--text-sm);
}

.starter-property-features {
    display: flex;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--light-gray);
    flex-wrap: wrap;
}

.starter-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: var(--gray);
}

.starter-feature svg {
    width: 20px;
    height: 20px;
    stroke: var(--gold);
    flex-shrink: 0;
}

.starter-services { background: var(--light-gray); }

.starter-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: var(--space-md);
}

.starter-service-card {
    background: var(--white);
    padding: var(--space-xl) var(--space-md);
    text-align: center;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.starter-service-card:hover {
    border-bottom-color: var(--gold);
    transform: translateY(-5px);
}

.starter-service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    stroke: var(--gold);
}

.starter-service-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.starter-service-desc {
    color: var(--gray);
    font-size: var(--text-sm);
}

/* ====================================================================
    About (about.html)
    ==================================================================== */

.starter-agent-hero {
    height: 100svh;
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--black);
}

.starter-agent-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.starter-agent-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.starter-agent-hero-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, oklch(0% 0 0 / 0.85) 0%, oklch(0% 0 0 / 0.55) 60%, oklch(0% 0 0 / 0.3) 100%);
    pointer-events: none;
}

.starter-agent-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: min(1400px, 95vw);
    margin: 0 auto;
    padding: calc(var(--starter-nav-h) + var(--space-md)) var(--space-md) var(--space-lg);
    padding-left: max(1rem, 3vw);
    padding-right: max(1rem, 3vw);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.starter-agent-hero-text { color: var(--white); }

.starter-agent-hero-tag {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold-light);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 1s ease 0.3s forwards;
}

.starter-agent-hero-name {
    font-size: var(--text-4xl);
    line-height: 1.05;
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}

.starter-agent-hero-title {
    font-family: 'Inter', sans-serif;
    font-size: var(--text-base);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: oklch(100% 0 0 / 0.75);
    margin-bottom: var(--space-md);
    font-weight: 400;
    opacity: 0;
    animation: fadeUp 1s ease 0.7s forwards;
}

.starter-agent-hero-bio {
    font-size: var(--text-base);
    color: oklch(100% 0 0 / 0.85);
    max-width: min(540px, 100%);
    margin-bottom: var(--space-lg);
    font-weight: 300;
    opacity: 0;
    animation: fadeUp 1s ease 0.9s forwards;
}

.starter-agent-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    opacity: 0;
    animation: fadeUp 1s ease 1.1s forwards;
}

.starter-agent-portrait-wrap {
    position: relative;
    opacity: 0;
    animation: fadeUp 1.2s ease 0.5s forwards;
    display: none;
}

.starter-agent-portrait {
    width: 100%;
    max-width: min(480px, 80vw);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    margin-left: auto;
    display: block;
    box-shadow: 0 30px 80px oklch(0% 0 0 / 0.5);
}

.starter-agent-portrait-frame {
    position: absolute;
    top: var(--space-md);
    right: calc(-1 * var(--space-sm));
    width: 100%;
    max-width: min(480px, 80vw);
    aspect-ratio: 4 / 5;
    border: 2px solid var(--gold);
    z-index: -1;
    margin-left: auto;
}

.starter-bio-section {
    max-width: var(--max-w);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
    overflow: hidden;
}

.starter-bio-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.starter-bio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.starter-bio-content .starter-section-tag { text-align: left; }

.starter-bio-content h2 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
    line-height: 1.15;
}

.starter-bio-content p {
    color: var(--gray);
    margin-bottom: var(--space-sm);
    font-size: var(--text-base);
    line-height: 1.8;
}

.starter-bio-signature {
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
    border-top: 1px solid var(--light-gray);
}

.starter-bio-signature-name {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: var(--text-2xl);
    color: var(--black);
    margin-bottom: 0.25rem;
}

.starter-bio-signature-title {
    font-size: var(--text-sm);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}

.starter-contact-card-section {
    padding-bottom: max(var(--space-2xl), 10dvh);
    background: var(--white);
    overflow: hidden;
}

.starter-contact-card {
    max-width: var(--max-w);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--black);
    color: var(--white);
    overflow: hidden;
}

.starter-contact-card-info { padding: var(--space-xl) var(--space-xl); }

.starter-contact-card-section .starter-section-tag { margin-bottom: 0.25rem; }
.starter-contact-card-info h2 {
    font-size: var(--text-3xl);
    margin-top: 0;
    margin-bottom: var(--space-sm);
}

.starter-contact-card-info p {
    color: oklch(100% 0 0 / 0.7);
    margin-bottom: var(--space-lg);
    font-size: var(--text-base);
}

.starter-contact-list {
    list-style: none;
    margin-bottom: var(--space-lg);
}

.starter-contact-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    color: oklch(100% 0 0 / 0.85);
    font-size: var(--text-sm);
}

.starter-contact-list svg {
    width: 20px;
    height: 20px;
    stroke: var(--gold);
    flex-shrink: 0;
}

.starter-contact-card-image {
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1200') center/cover;
    min-height: clamp(200px, 40dvh, 400px);
}

/* ====================================================================
    Contact (contact.html)
    ==================================================================== */

.starter-page-hero {
    height: 70dvh;
    min-height: 400px;
    max-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.starter-page-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.starter-page-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
}

.starter-page-hero-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(oklch(0% 0 0 / 0.65), oklch(0% 0 0 / 0.55));
    pointer-events: none;
}

.starter-page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: calc(var(--starter-nav-h) + var(--space-md)) var(--space-md) var(--space-lg);
    padding-left: max(1rem, 3vw);
    padding-right: max(1rem, 3vw);
    max-width: min(800px, 90vw);
}

.starter-page-hero-tag {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold-light);
    margin-bottom: var(--space-md);
    opacity: 0;
    animation: fadeUp 1s ease 0.3s forwards;
}

.starter-page-hero-title {
    font-size: var(--text-5xl);
    line-height: 1.1;
    margin-bottom: var(--space-md);
    font-weight: 500;
    opacity: 0;
    animation: fadeUp 1s ease 0.5s forwards;
}

.starter-page-hero-text {
    font-size: var(--text-lg);
    color: oklch(100% 0 0 / 0.8);
    font-weight: 300;
    max-width: min(600px, 100%);
    margin: 0 auto;
    opacity: 0;
    animation: fadeUp 1s ease 0.7s forwards;
}

.starter-contact-main {
    background: var(--light-gray);
    padding: var(--space-2xl) var(--space-md);
    padding-bottom: max(var(--space-2xl), 10dvh);
    overflow: hidden;
}

.starter-contact-layout {
    max-width: var(--max-w);
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--white);
    box-shadow: 0 20px 60px oklch(0% 0 0 / 0.08);
}

.starter-contact-form-wrap { padding: var(--space-xl); }
.starter-contact-form-wrap .starter-section-tag { text-align: left; margin-bottom: 0.5rem; }
.starter-contact-form-wrap h2 {
    font-size: var(--text-2xl);
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.starter-contact-form-wrap > p {
    color: var(--gray);
    margin-bottom: var(--space-lg);
    font-size: var(--text-sm);
}

.starter-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: var(--space-sm);
}

.starter-form-group {
    margin-bottom: var(--space-sm);
    display: flex;
    flex-direction: column;
}

.starter-form-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gray);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.starter-form-input,
.starter-form-select,
.starter-form-textarea {
    width: 100%;
    padding: 0.9rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-family: 'Inter', sans-serif;
    font-size: var(--text-base);
    color: var(--black);
    transition: border-color 0.3s ease;
    outline: none;
}

.starter-form-input:focus,
.starter-form-select:focus,
.starter-form-textarea:focus {
    border-bottom-color: var(--gold);
}

.starter-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23888' stroke-width='1.5'><polyline points='1,1 6,6 11,1'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.25rem center;
    padding-right: 2rem;
    cursor: pointer;
}

.starter-form-textarea {
    resize: vertical;
    min-height: 110px;
    padding: 0.9rem 0;
    line-height: 1.6;
}

.starter-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.5rem 0 var(--space-md);
    font-size: var(--text-sm);
    color: var(--gray);
    line-height: 1.5;
    cursor: pointer;
}

.starter-form-checkbox input {
    margin-top: 0.2rem;
    accent-color: var(--gold);
    cursor: pointer;
    flex-shrink: 0;
}

.starter-form-submit {
    width: 100%;
    padding: 1.1rem;
    background: var(--black);
    color: var(--white);
    border: 2px solid var(--black);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.starter-form-submit:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--black);
}

.starter-contact-info {
    background: var(--black);
    color: var(--white);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.starter-contact-info::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, transparent 60%, oklch(48% 0.15 70deg / 0.08) 100%);
    pointer-events: none;
}

.starter-contact-info > * {
    position: relative;
    z-index: 1;
}

.starter-contact-info .starter-section-tag { text-align: left; }

.starter-contact-info h2 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-sm);
    color: var(--white);
}

.starter-contact-info p.starter-info-intro {
    color: oklch(100% 0 0 / 0.7);
    margin-bottom: var(--space-lg);
    font-size: var(--text-sm);
}

.starter-info-list {
    list-style: none;
    margin-bottom: var(--space-md);
}

.starter-info-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: oklch(100% 0 0 / 0.85);
    font-size: var(--text-sm);
    line-height: 1.5;
}

.starter-info-list svg {
    width: 20px;
    height: 20px;
    stroke: var(--gold);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.starter-info-list a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.starter-info-list a:hover { color: var(--gold); }

.starter-info-list .starter-info-label {
    display: block;
    font-size: var(--text-xs);
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.25rem;
}

.starter-info-social {
    display: flex;
    gap: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid oklch(100% 0 0 / 0.1);
}

.starter-info-social a {
    color: var(--white);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.starter-info-social a:hover {
    color: var(--gold);
    opacity: 1;
}

/* ====================================================================
    Responsive - Tablet & Desktop (min-width approach)
    ==================================================================== */

@media (min-width: 640px) {
    /* Nav - switch to horizontal */
    .starter-nav-links {
        position: static;
        flex-direction: row;
        width: auto;
        height: auto;
        background: transparent;
        justify-content: flex-end;
        gap: var(--space-lg);
        padding: 0;
        /* This element is the drawer below 640 and the nav row above it, so
           every drawer property has to be undone here. Without these the row
           inherits the closed drawer's transform, opacity and visibility and
           the desktop nav is simply not there - no error, an empty header. */
        overflow: visible;
        transform: none;
        opacity: 1;
        visibility: visible;
        transition: none;
    }
    
    .starter-nav-links a {
        color: var(--white);
        font-size: var(--text-sm);
    }
    
    nav.scrolled .starter-nav-links a { color: var(--black); }
    
    .starter-menu-toggle { display: none; }
    .starter-nav-social { display: none; }
    
    /* Hero buttons side by side */
    .starter-hero-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    /* Form row - two columns */
    .starter-form-row {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
        margin-bottom: var(--space-sm);
    }
    
    /* Bio section */
    .starter-bio-section {
        grid-template-columns: 1fr 1.2fr;
    }
    
    .starter-bio-image {
        position: sticky;
        top: calc(var(--starter-nav-h) + var(--space-md));
    }
}

@media (min-width: 768px) {
    /* About page */
    .starter-agent-hero-content {
        grid-template-columns: 1.1fr 1fr;
        gap: var(--space-xl);
    }
    
    .starter-agent-portrait-wrap {
        display: block;
    }
    
    .starter-agent-portrait,
    .starter-agent-portrait-frame {
        max-width: 380px;
        margin-left: auto;
    }
    
    .starter-agent-portrait-frame {
        right: calc(-1 * var(--space-md));
    }
    
    .starter-contact-card {
        grid-template-columns: 1fr 1fr;
    }
    
    .starter-contact-card-image {
        min-height: 100%;
    }
    
    /* Contact page */
    .starter-contact-layout {
        grid-template-columns: 1.2fr 1fr;
    }
}

@media (min-width: 900px) {
    .starter-bio-signature {
        margin-top: var(--space-xl);
        padding-top: var(--space-lg);
    }
}

@media (min-width: 1024px) {
    /* Larger screens */
    .starter-nav-links {
        gap: 3rem;
    }
}

/* ====================================================================
    Legacy fallbacks for older browsers
    ==================================================================== */
@supports not (height: 100dvh) {
    .starter-hero { height: 100vh; }
    .starter-agent-hero { height: 100svh; min-height: 640px; }
    .starter-page-hero { height: 70vh; min-height: 520px; }
    .starter-nav-links { height: 100vh; }
}

@supports not (color: oklch(0% 0 0 / 0.5)) {
    .starter-nav-links { background: rgba(255,255,255,0.95); }
}

/* ── Custom scrollbar ── */

/* Chrome/Edge/Safari: unset standard props so webkit pseudo-elements work */
@supports selector(::-webkit-scrollbar) {
    html {
        scrollbar-color: unset !important;
        scrollbar-width: unset !important;
    }
}

/* Firefox: standard properties (doesn't support ::-webkit-scrollbar) */
@supports not selector(::-webkit-scrollbar) {
    html {
        scrollbar-color: var(--black) var(--light-gray);
        scrollbar-width: thin;
    }
}

::-webkit-scrollbar { width: 6px !important; height: 6px !important; }
::-webkit-scrollbar-track { background: var(--light-gray) !important; }
::-webkit-scrollbar-thumb { background: var(--black) !important; border-radius: 3px !important; }
::-webkit-scrollbar-thumb:hover { background: var(--gold) !important; }
::-webkit-scrollbar-button { display: none !important; width: 0 !important; height: 0 !important; }
::-webkit-scrollbar-corner { background: transparent !important; }

/* Mobile CTA width ----------------------------------------------------
   At phone widths a standalone CTA goes full width with its label centred.
   Sized to its own text it leaves a ragged edge against the copy above it,
   and of two stacked buttons the shorter reads as the lesser one purely
   because it is narrower.

   .starter-btn-outline is a modifier on .starter-btn, so naming the base
   covers both.

   Card actions and widget-injected markup are excluded. Written as a
   max-width override rather than a mobile-first base rule so the desktop
   layout cannot be affected by construction. */
@media (max-width: 640px) {
  .starter-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .community .starter-btn,
  .ylopo-easy-widget .starter-btn { display: inline-block; width: auto; }

  .starter-hero-actions,
  .starter-agent-hero-actions { flex-direction: column; align-items: stretch; }
}

/* Backdrop for the nav drawer. Created by the template's script, not by the
   layout, so no markup changes. It exists as much to swallow the click as to
   dim the page: tapping beside an open drawer should dismiss it and nothing
   else, and a dim painted with a shadow on the drawer would let that tap fall
   through to a link underneath. Sits one below the drawer. */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
  z-index: 1000;
}
.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
