/* ============================================================
   Green Street Flats — shared site styles
   Source of truth for footer, mobile menu, design tokens,
   reveal animations, and featured-in press carousel.
   ============================================================ */

/* ============================================================
   DESIGN TOKENS — single source of truth (extracted from index.html)
   ============================================================ */
:root {
    /* COLOR — primary */
    --green: #1B3A21;
    --green-light: #2A5434;
    --gold: #B89B4A;
    --gold-light: #C9AD5E;
    --gold-accessible: #8E6E1C;  /* WCAG AA-compliant gold for body text on white (5.8:1) */
    --cream: #FAF9F6;
    --white: #FFFFFF;
    --text: #1a1a1a;
    --text-mid: #555;            /* darkened from #666 for AA: 7.5:1 on white */
    --text-light: #707070;       /* darkened from #999 for AA: 4.6:1 on white */
    --border: #e6e4df;

    /* TYPE */
    --font-display: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

    /* TYPE SCALE — fluid */
    --text-eyebrow: 0.6875rem;
    --text-xs: 0.75rem;
    --text-sm: 0.8125rem;
    --text-base: 0.9375rem;
    --text-md: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: clamp(1.75rem, 3vw, 2.25rem);
    --text-4xl: clamp(2rem, 4vw, 2.75rem);
    --text-h2: clamp(2.25rem, 4.5vw, 3.5rem);
    --text-h1: clamp(2.75rem, 6vw, 5rem);

    /* LETTER-SPACING */
    --ls-eyebrow: 0.22em;
    --ls-tight: -0.04em;
    --ls-snug: -0.02em;
    --ls-wide: 0.18em;

    /* SPACING */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 56px;
    --space-10: 72px;
    --space-section: 96px;
    --space-section-lg: 120px;
    --space-section-mobile: 64px;

    /* RADIUS — two radii only: 6px small (inputs/buttons/chips), 12px large (cards/images) */
    --radius-sm: 6px;
    --radius-md: 6px;
    --radius-lg: 12px;
    --radius-pill: 999px;

    /* SHADOW */
    --shadow-sm: 0 4px 14px rgba(27,58,33,0.06);
    --shadow-md: 0 8px 28px rgba(27,58,33,0.10);
    --shadow-lg: 0 16px 32px rgba(27,58,33,0.10);

    /* MOTION — 3 easings, 4 durations */
    --ease: cubic-bezier(0.65,0,0.35,1);          /* state toggles, color */
    --ease-out: cubic-bezier(0.16,1,0.3,1);       /* entrances, reveals, hover */
    --ease-spring: cubic-bezier(0.34,1.56,0.64,1);/* tactile pop, used sparingly */
    --t-xs: 0.15s;   /* color/opacity micro */
    --t-sm: 0.28s;   /* hover transforms, nav */
    --t-md: 0.5s;    /* cards, menus */
    --t-lg: 0.7s;    /* reveals, hero */
    /* legacy aliases so existing rules keep resolving */
    --t-fast: 0.28s;
    --t-med: 0.5s;
    --t-slow: 0.7s;

    /* LAYOUT */
    --max-content: 1200px;
    --max-text: 720px;
    --max-prose: 560px;
}

/* ============================================================
   DESIGN-SYSTEM UTILITIES (use across pages instead of duplicating)
   ============================================================ */

/* Eyebrow / section label with hairline rule (institutional polish) */
.ds-label, .ds-eyebrow {
    font-family: var(--font-body);
    font-size: var(--text-eyebrow);
    font-weight: 700;
    letter-spacing: var(--ls-eyebrow);
    text-transform: uppercase;
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
}
.ds-label::before, .ds-eyebrow::before {
    content: '';
    width: 28px;
    height: 1px;
    background: currentColor;
    display: inline-block;
    flex-shrink: 0;
}

/* Display heading */
.ds-h1 {
    font-family: var(--font-display);
    font-size: var(--text-h1);
    font-weight: 600;
    letter-spacing: var(--ls-tight);
    line-height: 1.0;
    color: var(--green);
}
.ds-h2 {
    font-family: var(--font-display);
    font-size: var(--text-h2);
    font-weight: 600;
    letter-spacing: var(--ls-snug);
    line-height: 1.1;
    color: var(--green);
}
.ds-h1 em, .ds-h2 em {
    font-style: italic;
    font-weight: 500;
    color: var(--gold);
}

/* Pull-quote / editorial accent — uses serif */
.ds-pullquote {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.35;
    font-weight: 400;
    font-style: italic;
    color: var(--green);
    letter-spacing: -0.01em;
    max-width: var(--max-prose);
}

/* Buttons — canonical primary / ghost */
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease), gap var(--t-fast) var(--ease), padding var(--t-fast) var(--ease);
    line-height: 1;
}
.ds-btn-primary {
    background: var(--gold);
    color: var(--white);
}
.ds-btn-primary:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.ds-btn-ghost {
    background: transparent;
    color: var(--green);
    border-color: var(--border);
}
.ds-btn-ghost:hover {
    background: var(--cream);
    border-color: var(--gold);
}
.ds-btn-dark {
    background: var(--green);
    color: var(--white);
}
.ds-btn-dark:hover {
    background: var(--green-light);
}

/* Section padding utility */
.ds-section {
    padding: var(--space-section) var(--space-8);
}
.ds-section-tight {
    padding: var(--space-9) var(--space-8);
}
@media (max-width: 768px) {
    .ds-section { padding: var(--space-section-mobile) var(--space-6); }
    .ds-section-tight { padding: var(--space-8) var(--space-6); }
}

/* Tabular figures — apply globally to stat numbers, prices, etc. */
body { font-feature-settings: 'tnum' 1; }

/* ============================================================
   ============================================================
   NAV — SINGLE SOURCE OF TRUTH
   ============================================================
   Owns: spacing, font-size, padding/margin reset, hero vs solid
   color states, active state, dropdown trigger. Per-page CSS
   nav rules are intentionally outranked here via specificity +
   !important so this block is the only thing the user sees.
   ============================================================ */

/* ---- 1. Nav container layout ---- */
nav.nav {
    padding: 20px 32px !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}
nav.nav .nav-logo {
    flex-shrink: 0 !important;
    margin-right: auto !important; /* pushes nav-links to the right edge */
}
nav.nav .nav-logo img {
    height: 56px !important;
    width: auto;
}
@media (min-width: 1400px) {
    nav.nav { padding: 24px 40px !important; }
    nav.nav .nav-logo img { height: 64px !important; }
}
@media (max-width: 768px) {
    nav.nav { padding: 14px 20px !important; }
    nav.nav .nav-logo img { height: 48px !important; }
}

/* ---- 2. Nav-links row: identical box-model for <a> and dropdown button ---- */
nav.nav .nav-links {
    display: none;
    flex: 0 0 auto !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}
@media (min-width: 1100px) {
    nav.nav .nav-links { display: flex !important; }
    nav.nav .mobile-toggle { display: none !important; }
}
@media (max-width: 1279px) { nav.nav .nav-links { gap: 28px !important; } }
@media (min-width: 1500px) { nav.nav .nav-links { gap: 44px !important; } }
@media (min-width: 1700px) { nav.nav .nav-links { gap: 52px !important; } }

/* Nav-link items (both <a> and the dropdown <button>) — identical box-model.
   This is what makes the spacing equidistant: each item has the SAME
   intrinsic width contribution + the SAME flex gap separates them. */
nav.nav .nav-links > a:not(.nav-btn),
nav.nav .nav-links > .nav-dropdown,
nav.nav .nav-links > .nav-dropdown > button.nav-dropdown-trigger {
    margin: 0 !important;
    padding: 0 !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9375rem !important;
    font-weight: 400 !important;
    letter-spacing: normal !important;
    text-decoration: none !important;
    background: none !important;
    border: none !important;
    -webkit-appearance: none;
    appearance: none;
    transition: color 0.3s !important;
    display: inline-flex;
    align-items: center;
    position: relative;
}
@media (max-width: 1279px) {
    nav.nav .nav-links > a:not(.nav-btn),
    nav.nav .nav-links > .nav-dropdown > button.nav-dropdown-trigger {
        font-size: 0.875rem !important;
    }
}
@media (max-width: 1199px) {
    nav.nav .nav-links > a:not(.nav-btn),
    nav.nav .nav-links > .nav-dropdown > button.nav-dropdown-trigger {
        font-size: 0.8125rem !important;
    }
}

/* ---- 3. Dropdown trigger button — same as nav-link, plus chevron + cursor ---- */
nav.nav .nav-links > .nav-dropdown > button.nav-dropdown-trigger {
    cursor: pointer;
    gap: 4px !important;
}
nav.nav .nav-dropdown > button.nav-dropdown-trigger svg {
    width: 10px; height: 10px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.3s;
}
nav.nav .nav-dropdown:hover > button.nav-dropdown-trigger svg,
nav.nav .nav-dropdown > button[aria-expanded="true"] svg { transform: rotate(180deg); }
nav.nav .nav-dropdown:focus-within .nav-dropdown-menu,
nav.nav .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* ---- 4. Get In Touch CTA — tight, fixed sizing ---- */
nav.nav .nav-links > a.nav-btn {
    font-size: 0.8125rem !important;
    padding: 9px 18px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    font-weight: 600 !important;
}
@media (max-width: 1199px) {
    nav.nav .nav-links > a.nav-btn {
        font-size: 0.75rem !important;
        padding: 8px 14px !important;
    }
}

/* ---- 5. COLOR — transparent (hero) state ---- */
/* On hero pages where nav has no .show: WHITE text with shadow */
nav.nav:not(.show) .nav-links > a:not(.nav-btn),
nav.nav:not(.show) .nav-links > .nav-dropdown > button.nav-dropdown-trigger {
    color: rgba(255,255,255,0.9) !important;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5) !important;
}
nav.nav:not(.show) .nav-links > a:not(.nav-btn):hover,
nav.nav:not(.show) .nav-links > .nav-dropdown > button.nav-dropdown-trigger:hover,
nav.nav:not(.show) .nav-links > .nav-dropdown > button.nav-dropdown-trigger:focus,
nav.nav:not(.show) .nav-links > .nav-dropdown:hover > button.nav-dropdown-trigger {
    color: #fff !important;
}

/* ---- 6. COLOR — solid (scrolled or no-hero) state ---- */
nav.nav.show .nav-links > a:not(.nav-btn),
nav.nav.show .nav-links > .nav-dropdown > button.nav-dropdown-trigger {
    color: var(--text-mid) !important;
    text-shadow: none !important;
}
nav.nav.show .nav-links > a:not(.nav-btn):hover,
nav.nav.show .nav-links > .nav-dropdown > button.nav-dropdown-trigger:hover,
nav.nav.show .nav-links > .nav-dropdown > button.nav-dropdown-trigger:focus,
nav.nav.show .nav-links > .nav-dropdown:hover > button.nav-dropdown-trigger {
    color: var(--green) !important;
}

/* ---- 7. ACTIVE STATE — bold + gold underline, color inherits from #5/#6.
   Applies to BOTH regular nav-link <a> items AND the dropdown trigger
   <button> (so e.g. "Develop With Us" lights up when you're on a
   fourplexes/sixplexes/development-management/etc. submenu page). ---- */
nav.nav .nav-links > a.active,
nav.nav .nav-links > .nav-dropdown > button.nav-dropdown-trigger.active,
nav.nav .nav-links > .nav-dropdown.active > button.nav-dropdown-trigger {
    font-weight: 600 !important;
    position: relative;
}
nav.nav .nav-links > a.active::before,
nav.nav .nav-links > .nav-dropdown > button.nav-dropdown-trigger.active::before,
nav.nav .nav-links > .nav-dropdown.active > button.nav-dropdown-trigger::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0; right: 0;
    height: 2px;
    background: var(--gold);
    border-radius: 6px;
    pointer-events: none;
}

/* ---- 8. Width-hold trick — reserve bold-text width so .active doesn't shift layout.
   Uses block-level ::after inside an inline-block parent so the parent sizes
   to the WIDER of the two (visible text vs bold reservation), with the ::after
   collapsed to zero height. This was previously broken because parent was
   inline-flex, which placed ::after BESIDE the text (doubling element width
   and ruining nav spacing). ---- */
nav.nav .nav-links > a:not(.nav-btn) {
    display: inline-block !important;
    text-align: center;
    line-height: 1 !important;
}
nav.nav .nav-links > a:not(.nav-btn)::after {
    content: attr(data-text);
    display: block;
    font-weight: 600;
    letter-spacing: -0.005em;
    height: 0;
    visibility: hidden;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
}

/* ---- 9. Narrow-laptop fallback ---- */
@media (max-width: 1099px) {
    nav.nav .nav-links { display: none !important; }
    nav.nav .mobile-toggle { display: flex !important; }
}

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    background: var(--white);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* REVEAL ANIMATIONS */
.r { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.r.v { opacity: 1; transform: none; }
.r-d1 { transition-delay: 0.08s; } .r-d2 { transition-delay: 0.16s; } .r-d3 { transition-delay: 0.24s; } .r-d4 { transition-delay: 0.32s; }
.r-fade { opacity: 0; transition: opacity 0.9s var(--ease-out); }
.r-fade.v { opacity: 1; }

/* ============================================================
   FOOTER — Compact 4-column footer
   ============================================================ */
.footer {
    background: var(--green);
    padding: 44px 40px 20px;
}
.footer-grid {
    max-width: 1240px; margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
}
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px 24px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.footer-col h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.625rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 12px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li {
    margin-bottom: 7px;
    font-size: 0.8125rem; line-height: 1.45;
    color: rgba(255,255,255,0.55);
}
.footer-col ul li a {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col ul li a:hover { color: var(--gold-light); }

.footer-brand { max-width: 360px; }
.footer-brand .footer-logo { display: inline-block; margin-bottom: 12px; }
.footer-brand .footer-logo img { height: 32px; width: auto; }
.footer-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 0.8125rem; font-weight: 400;
    color: rgba(255,255,255,0.6);
    line-height: 1.5;
    margin-bottom: 16px;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
    width: 30px; height: 30px;
    border: 1px solid rgba(255,255,255,0.12); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: color 0.3s, background-color 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s, opacity 0.3s, gap 0.3s, padding 0.3s;
    color: rgba(255,255,255,0.55);
}
.footer-social a:hover { border-color: var(--gold); color: var(--gold-light); }
.footer-social svg { width: 12px; height: 12px; fill: currentColor; }

.footer-cta {
    display: inline-block; margin-top: 12px; padding: 8px 18px;
    background: var(--gold); color: var(--white) !important;
    font-size: 0.75rem; font-weight: 600;
    border-radius: 6px; text-decoration: none;
    transition: background 0.3s;
}
.footer-cta:hover { background: var(--gold-light); }

.footer-bottom {
    max-width: 1240px; margin: 32px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.6875rem; color: rgba(255,255,255,0.3); margin: 0; }
.footer-bottom-tag {
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
}
@media (max-width: 768px) {
    .footer { padding: 36px 24px 18px; }
    .footer-bottom { margin-top: 24px; }
}

/* MOBILE TOGGLE */
.mobile-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; background: none; border: none; cursor: pointer; }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }
.mobile-toggle span { width: 20px; height: 1.5px; background: var(--green); transition: color 0.3s, background-color 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s, opacity 0.3s, gap 0.3s, padding 0.3s; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,4px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-4px); }

/* MOBILE MENU */
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: var(--green); opacity: 0; visibility: hidden; transition: color 0.5s cubic-bezier(0.16,1,0.3,1), background-color 0.5s cubic-bezier(0.16,1,0.3,1), border-color 0.5s cubic-bezier(0.16,1,0.3,1), transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.5s cubic-bezier(0.16,1,0.3,1), gap 0.5s cubic-bezier(0.16,1,0.3,1), padding 0.5s cubic-bezier(0.16,1,0.3,1); overflow-y: auto; display: flex; flex-direction: column; }
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu-header { padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-menu-header .nav-logo img { height: 36px; }
.mobile-menu-close { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: none; border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; cursor: pointer; transition: color 0.3s, background-color 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s, opacity 0.3s, gap 0.3s, padding 0.3s; }
.mobile-menu-close:hover { border-color: var(--gold); }
.mobile-menu-close svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.6); stroke-width: 2; fill: none; }
.mobile-menu-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px 48px; }
.mobile-menu-body > a, .mm-group-title { display: block; font-family: 'Outfit', sans-serif; font-size: clamp(1.5rem, 4vw, 2.25rem); font-weight: 500; color: rgba(255,255,255,0.5); text-decoration: none; padding: 16px 0; transition: color 0.3s, background-color 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s, opacity 0.3s, gap 0.3s, padding 0.3s; border-bottom: 1px solid rgba(255,255,255,0.04); }
.mobile-menu-body > a:first-child, .mobile-menu-body > .mm-group:first-child .mm-group-title { border-top: 1px solid rgba(255,255,255,0.04); }
.mobile-menu-body > a:hover { color: var(--white); padding-left: 8px; }
.mm-group { border-bottom: 1px solid rgba(255,255,255,0.04); }
.mm-group:first-child { border-top: 1px solid rgba(255,255,255,0.04); }
.mm-group-title { cursor: pointer; border-bottom: none; display: flex; align-items: center; justify-content: space-between; }
.mm-group-title:hover { color: var(--white); }
.mm-group-title svg { width: 18px; height: 18px; stroke: rgba(255,255,255,0.3); stroke-width: 2; fill: none; transition: transform 0.3s; }
.mm-group.open .mm-group-title { color: var(--white); }
.mm-group.open .mm-group-title svg { transform: rotate(180deg); }
.mm-group-links { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.16,1,0.3,1); padding-left: 20px; }
.mm-group.open .mm-group-links { max-height: 300px; }
.mm-group-links a { display: block; font-family: 'Outfit', sans-serif; font-size: clamp(1rem, 2.5vw, 1.25rem); font-weight: 400; color: rgba(255,255,255,0.35); text-decoration: none; padding: 12px 0; transition: color 0.3s, background-color 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s, opacity 0.3s, gap 0.3s, padding 0.3s; }
.mm-group-links a:hover { color: var(--white); padding-left: 8px; }

/* FLOATING HAMBURGER (transparent-nav pages) */
.float-menu { position: fixed; top: 20px; right: 20px; z-index: 101; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.9); backdrop-filter: blur(12px); border: 1px solid rgba(0,0,0,0.06); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: color 0.4s cubic-bezier(0.16,1,0.3,1), background-color 0.4s cubic-bezier(0.16,1,0.3,1), border-color 0.4s cubic-bezier(0.16,1,0.3,1), transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s cubic-bezier(0.16,1,0.3,1), gap 0.4s cubic-bezier(0.16,1,0.3,1), padding 0.4s cubic-bezier(0.16,1,0.3,1); }
.float-menu span { display: flex; flex-direction: column; gap: 4px; }
.float-menu span i { width: 18px; height: 1.5px; background: var(--green); display: block; border-radius: 6px; transition: color 0.3s, background-color 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s, opacity 0.3s, gap 0.3s, padding 0.3s; }
.float-menu.hidden { opacity: 0; pointer-events: none; transform: translateY(-10px); }
@media (min-width: 1024px) { .float-menu { display: none; } }

/* FEATURED-IN — Press logo carousel */
.featured-in { padding: 32px 0; background: var(--cream); border-bottom: 1px solid var(--border); overflow: hidden; position: relative; }
.featured-in::before, .featured-in::after { content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none; }
.featured-in::before { left: 0; background: linear-gradient(to right, var(--cream), transparent); }
.featured-in::after { right: 0; background: linear-gradient(to left, var(--cream), transparent); }
.featured-in-label { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-light); display: block; text-align: center; margin-bottom: 20px; padding: 0 40px; }
.featured-in-track { display: flex; align-items: center; gap: 56px; animation: logoScroll 25s linear infinite; width: max-content; }
.featured-in-track:hover { animation-play-state: paused; }
.featured-in-logo { height: auto; width: auto; flex-shrink: 0; object-fit: contain; filter: grayscale(100%) opacity(0.4); transition: filter 0.4s ease; }
.featured-in-logo:hover { filter: grayscale(0%) opacity(1); }
.featured-in-logo.logo-torontostar { height: 30px; max-width: 140px; }
.featured-in-logo.logo-globeandmail { height: 28px; }
.featured-in-logo.logo-macleans { height: 30px; }
.featured-in-logo.logo-storeys { height: 30px; }
.featured-in-logo.logo-torontolife { height: 36px; }
.featured-in-logo.logo-cbc { height: 28px; }
.featured-in-logo.logo-blogto { height: 26px; }
.featured-in-logo.logo-torontotoday { height: 28px; }
.featured-in-track a { display: flex; align-items: center; flex-shrink: 0; }
@keyframes logoScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (max-width: 768px) {
    .featured-in { padding: 24px 0; }
    .featured-in-track { gap: 40px; animation-duration: 40s; }
    .featured-in-logo.logo-torontostar { height: 22px; }
    .featured-in-logo.logo-globeandmail { height: 20px; }
    .featured-in-logo.logo-macleans { height: 22px; }
    .featured-in-logo.logo-storeys { height: 22px; }
    .featured-in-logo.logo-torontolife { height: 26px; }
    .featured-in-logo.logo-cbc { height: 20px; }
    .featured-in-logo.logo-blogto { height: 18px; }
    .featured-in-logo.logo-torontotoday { height: 20px; }
}


/* ============================================================
   SITE EFFECTS — hero word reveal + image float-in
   (Custom cursor removed 2026-06-09 — council review, Leonid approved.)
   ============================================================ */

/* IMAGE FLOAT-IN — .gsf-float is added by site-effects.js (so images
   are always visible without JS); .gsf-img-in fires on scroll into view. */
body img.gsf-float {
    opacity: 0;
    transform: translateY(26px) scale(1.025);
    transition: opacity 1.05s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.05s cubic-bezier(0.16, 1, 0.3, 1);
}
body img.gsf-float.gsf-img-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}
@media (prefers-reduced-motion: reduce) {
    body img.gsf-float { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* HERO WORD REVEAL */
.gsf-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.4em);
    transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1),
                transform 0.7s cubic-bezier(0.16,1,0.3,1);
    will-change: transform, opacity;
}
.gsf-words-in .gsf-word {
    opacity: 1;
    transform: none;
}

/* ============================================================
   PRESS QUOTE ROTATOR
   ============================================================ */
.press-quotes {
    background: var(--cream);
    padding: 14px 40px 48px; /* merged visually with the featured-in logo band above */
    border-bottom: 1px solid var(--border);
}
.press-quote-inner {
    max-width: 880px; margin: 0 auto;
    text-align: center;
    min-height: 76px;
}
#press-quote {
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1);
}
#press-quote.on { opacity: 1; }
.press-quote-text {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.0625rem, 1.5vw, 1.375rem);
    font-weight: 400;
    color: var(--green);
    letter-spacing: -0.01em;
    line-height: 1.45;
    margin-bottom: 10px;
}
.press-quote-source {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}
@media (max-width: 768px) {
    .press-quotes { padding: 10px 20px 32px; }
    .press-quote-inner { min-height: 96px; }
}

/* ============================================================
   INSTITUTIONAL POLISH — added for "big-boy" trust signal
   Hairline rule before every section label, tabular figures
   on numbers, refined dividers. Safe to apply globally.
   ============================================================ */
.label::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: currentColor;
    vertical-align: middle;
    margin-right: 12px;
    margin-bottom: 2px;
    opacity: 0.85;
}
@media (max-width: 600px) {
    .label::before { width: 20px; margin-right: 8px; }
}
/* When the label sits inside a centred section, the dash + text still center together as a unit. */

/* Tabular figures on all stat numbers (consistent column widths) */
.num, .stat-val, .number-card-val, .featured-stat-val, .hero-stat-val, .case-study-stat-val,
.proj-stat-val, .scout-band-num-val, .scout-hero-stat-num, .criteria-item-val,
.fs-val { font-feature-settings: 'tnum' 1; font-variant-numeric: tabular-nums; }

/* Featured-card source labels (blog page) get the same dash treatment */
.featured-card-source::before, .blog-card-source::before, .pipeline-header .label::before,
.audience-header .label::before, .who .label::before, .why-rent-header .label::before {
    /* These already inherit from .label::before above; no override needed */
}

/* Slightly tighter hairlines for institutional feel */
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); }

/* Building-type pages, services pages, about/blog use .section-label.
   Apply the same hairline rule treatment so the dash is consistent everywhere. */
.section-label::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    background: currentColor;
    vertical-align: middle;
    margin-right: 12px;
    margin-bottom: 2px;
    opacity: 0.85;
}
@media (max-width: 600px) {
    .section-label::before { width: 20px; margin-right: 8px; }
}

/* Some pages use .featured-project-label, .pipeline-header .label, .audience-card-eyebrow, etc.
   Catch the most common ones so the dash is universal. */
.featured-project-label::before, .audience-card-eyebrow::before, .pipe-loc::before,
.prop-loc::before, .who-content .label::before, .scout-criteria-header .sec-label::before {
    /* .sec-label already styled on Scout — this catches identical small eyebrows site-wide. */
}

/* Make sure .featured-card-source / .blog-card-source ALSO get the dash treatment */
.featured-card-source::before, .blog-card-source::before {
    content: '';
    display: inline-block;
    width: 22px;
    height: 1px;
    background: currentColor;
    vertical-align: middle;
    margin-right: 10px;
    margin-bottom: 2px;
    opacity: 0.7;
}

/* ============================================================
   MOBILE + A11Y BASELINE (added during launch QA)
   ============================================================ */

/* iOS zoom-on-focus prevention: any input/textarea/select must be ≥16px on mobile */
@media (max-width: 768px) {
    input[type="text"], input[type="email"], input[type="tel"],
    input[type="number"], input[type="search"], input[type="url"],
    textarea, select {
        font-size: 16px !important;
    }
}

/* Hamburger and icon-only buttons — meet 44×44px tap target */
.mobile-toggle {
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}
.mobile-menu-close {
    min-width: 44px;
    min-height: 44px;
}

/* Touch action — remove 300ms tap delay on Android */
button, a, .nav-btn, .cta-btn, .audience-card, .pipe-card, .pf-card, .prop-card {
    touch-action: manipulation;
}

/* Skip-to-content link — WCAG 2.4.1 */
.skip-link {
    position: absolute;
    top: -100px;
    left: 8px;
    background: var(--green);
    color: var(--white);
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    z-index: 10000;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 8px;
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ============================================================
   GLOBAL FOCUS-VISIBLE — WCAG 2.4.7 AA
   Replaces aggressive outline:none on form inputs/buttons site-wide
   ============================================================ */
*:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 6px;
}
/* Form inputs sometimes set outline:none — override with our focus ring */
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--gold) !important;
    outline-offset: 2px !important;
}

/* sr-only utility — visually hide but keep available to AT */
.sr-only,
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Touch target — ensure scroll-dot type tap targets are >= 24x24 (WCAG 2.5.8) */
.scroll-dot,
.pipeline-dot {
    min-width: 24px;
    min-height: 24px;
    padding: 9px;
    background-clip: content-box;
}

/* Press-logo ticker pause control */
.featured-in-pause {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--white);
    color: var(--green);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    padding: 6px 12px;
    font-size: 0.6875rem;
    font-weight: 600;
    cursor: pointer;
    z-index: 5;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.featured-in-pause:hover { background: var(--cream); }
.featured-in.paused .featured-in-track { animation-play-state: paused !important; }

/* Splash a11y wrapper — does not display visually-hidden status text */
.splash[role="status"] .splash-status-text { position: absolute; clip: rect(0,0,0,0); width: 1px; height: 1px; overflow: hidden; }

/* Extend prefers-reduced-motion to the splash and counters */
@media (prefers-reduced-motion: reduce) {
    .splash { display: none !important; }
    .opening-award,
    .opening h1,
    .opening-proof,
    .opening-sub,
    .opening-ctas,
    .opening-scroll,
    .opening-scroll-dot { animation: none !important; opacity: 1 !important; }
}

/* prefers-reduced-motion — kill the press-logo auto-scroll */
@media (prefers-reduced-motion: reduce) {
    .featured-in-track { animation: none !important; }
    .r, .r-fade { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* prefers-reduced-motion — global catch-all for any per-page inline animations
   (fadeUp / fadeIn hero reveals etc.). Collapse durations to near-zero so any
   keyframe that starts at opacity:0 jumps straight to its visible end state,
   and ensure nothing is left hidden. */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    [style*="opacity:0"], [style*="opacity: 0"] { opacity: 1 !important; }
}

/* On touch devices, show press logos in colour by default (no hover possible) */
@media (hover: none) {
    .featured-in-logo { filter: grayscale(60%) opacity(0.75); }
}

/* ============================================================
   PREMIUM POLISH LAYER (appended) — typographic signature,
   brushed-brass buttons, nav underline, image keyline, grain,
   gold-bloom. Uses !important where it must beat per-page inline.
   ============================================================ */

/* 1. Cormorant italic <em> accent = the brand's typographic signature */
h1 em, h2 em, h3 em,
.opening h1 em, .hero-content h1 em, .hero h1 em,
.article-title em, .ds-h1 em, .ds-h2 em,
.cta-inner h2 em, .who-content h2 em, .cta-band-inner h2 em,
.page-header h1 em, .audience-header h2 em, .approach-header h2 em {
    font-family: var(--font-serif) !important;
    font-style: italic !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
}

/* Press / pull quotes in serif italic */
.press-quote-text, .ds-pullquote, .featured-quote {
    font-family: var(--font-serif) !important;
    font-style: italic !important;
}

/* 2. Brushed-brass buttons (demote flat gold) + tactile press state */
.ds-btn-primary, .opening-btn.primary, .hero-cta:not(.outline),
.cta-btn, .footer-cta, .prop-btn:not(.secondary), .scout-band-cta,
.form-submit, .article-cta a {
    background: linear-gradient(180deg, #C9AD5E 0%, #B89B4A 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.28) !important;
    color: #fff !important;
    border: none !important;
}
.ds-btn-primary:hover, .opening-btn.primary:hover, .hero-cta:not(.outline):hover,
.cta-btn:hover, .footer-cta:hover, .prop-btn:not(.secondary):hover, .scout-band-cta:hover,
.form-submit:hover, .article-cta a:hover {
    background: linear-gradient(180deg, #D4B96A 0%, #C0A352 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 6px 18px rgba(27,58,33,0.14) !important;
}
.ds-btn:active, .opening-btn:active, .hero-cta:active, .cta-btn:active,
.footer-cta:active, .prop-btn:active, .scout-band-cta:active,
.form-submit:active, .nav-btn:active, .article-cta a:active {
    transform: translateY(0) scale(0.985) !important;
}

/* 3. Animated gold underline on nav links (not the Get-In-Touch button) */
nav.nav .nav-links a:not(.nav-btn) { position: relative; }
nav.nav .nav-links a:not(.nav-btn)::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
    height: 1.5px; background: var(--gold);
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--t-sm) var(--ease-out);
}
nav.nav .nav-links a:not(.nav-btn):hover::after,
nav.nav .nav-links a:not(.nav-btn).active::after { transform: scaleX(1); }

/* 4. 1px inset keyline on imagery so photos crisp against cream */
.pf-card-img, .pp-card-img, .prop-card-img-wrap, .bento-img,
.who-image, .featured-img, .case-study-img, .project-card-img,
.story-image, .hero-bg {
    position: relative;
}
.pf-card-img::after, .pp-card-img::after, .prop-card-img-wrap::after,
.bento-img::after, .who-image::after, .featured-img::after,
.case-study-img::after, .project-card-img::after, .story-image::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(27,58,33,0.10);
}

/* 5. Faint film grain over the whole page = material depth, not flat digital */
body::after {
    content: ''; position: fixed; inset: 0; z-index: 9997; pointer-events: none;
    opacity: 0.025; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 6. Gold-bloom utility for green/cream fields */
.gold-bloom { position: relative; overflow: hidden; }
.gold-bloom > * { position: relative; z-index: 1; }
.gold-bloom::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(circle at 82% 12%, rgba(184,155,74,0.10), transparent 60%);
}

/* Scroll-progress hairline (top of viewport) */
.gsf-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 300;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0); transform-origin: left;
    will-change: transform; pointer-events: none;
}
/* Return-to-top button */
.gsf-totop {
    position: fixed; bottom: 28px; right: 28px; z-index: 120;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--green); color: #fff; border: 1px solid rgba(184,155,74,0.5);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity var(--t-sm) var(--ease-out), transform var(--t-sm) var(--ease-out), background var(--t-sm) var(--ease);
    box-shadow: 0 8px 24px rgba(27,58,33,0.22);
}
.gsf-totop.show { opacity: 1; visibility: visible; transform: translateY(0); }
.gsf-totop:hover { background: var(--green-light); }
.gsf-totop:active { transform: scale(0.94); }
.gsf-totop svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-light); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 768px) { .gsf-totop { bottom: 18px; right: 18px; width: 42px; height: 42px; } }

/* ============================================================
   COLOPHON-STYLE FOOTER (site-wide via shared stylesheet)
   Emblem + hairlines header, serif italic tagline, faint gable
   watermark. No per-page markup change needed.
   ============================================================ */
.footer { position: relative; overflow: hidden; padding-top: 52px; }
.footer::before {
    content: ''; display: block; max-width: 440px; height: 28px; margin: 0 auto 34px;
    background:
        linear-gradient(90deg, rgba(184,155,74,0.5), transparent) left center / 42% 1px no-repeat,
        linear-gradient(270deg, rgba(184,155,74,0.5), transparent) right center / 42% 1px no-repeat,
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 28'%3E%3Cpath d='M4 23 L28 7 L52 23' fill='none' stroke='%23C9AD5E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16 15 V8.5' stroke='%23C9AD5E' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center center / auto 26px no-repeat;
}
.footer::after {
    content: ''; position: absolute; right: -26px; bottom: -46px; width: 230px; height: 230px;
    opacity: 0.045; pointer-events: none; z-index: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 60'%3E%3Cpath d='M4 50 L50 12 L96 50' fill='none' stroke='%23ffffff' stroke-width='3'/%3E%3Cline x1='34' y1='25' x2='34' y2='14' stroke='%23ffffff' stroke-width='3'/%3E%3C/svg%3E") no-repeat center / contain;
}
.footer-grid, .footer-bottom { position: relative; z-index: 1; }
.footer-tagline {
    font-family: var(--font-serif) !important;
    font-style: italic !important;
    font-size: 1.05rem !important;
    color: rgba(255,255,255,0.72) !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

/* Editorial pull-quote — used sparingly to heighten key moments */
.gsf-pullquote { border-left: 2px solid var(--gold); padding: 8px 0 8px 28px; margin: 40px auto; max-width: 60ch; }
.gsf-pullquote p { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.5rem,2.6vw,2rem); line-height: 1.35; color: var(--green); font-weight: 500; }
.gsf-pullquote cite { display: block; margin-top: 14px; font-family: var(--font-body); font-style: normal; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-accessible); font-weight: 600; }

/* Nav dropdown hover bridge — keeps the submenu open while the cursor
   crosses the gap between the trigger and the menu (fixes premature close) */
nav.nav .nav-dropdown { position: relative; }
nav.nav .nav-dropdown::after {
    content: ''; position: absolute; left: -24px; right: -24px; top: 100%;
    height: 26px; z-index: 1;
}
