/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Logo-derived gold palette */
    --gold: #E8B530;
    --gold-light: #F2CB5C;
    --gold-dark: #B8860B;
    --gold-deep: #8B6508;

    /* Dark palette — primary identity */
    --bg-darkest: #0a0a0a;
    --bg-dark: #121212;
    --bg-mid: #1a1a1a;
    --bg-elevated: #1f1f1f;
    --bg-surface: #262626;

    /* Legacy mappings (used throughout existing rules) */
    --dark: var(--bg-mid);
    --darker: var(--bg-darkest);
    --gray-900: #1a1a1a;
    --gray-800: #2a2a2a;
    --gray-700: #3a3a3a;
    --gray-600: #888888;
    --gray-400: #a0a0a0;
    --gray-300: #cccccc;
    --gray-200: rgba(255, 255, 255, 0.08);
    --gray-100: #161616;
    --white: #ffffff;

    /* Text on dark */
    --text-primary: #f5f5f5;
    --text-secondary: #b8b8b8;
    --text-muted: #888888;

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-medium: rgba(255, 255, 255, 0.12);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --nav-height: 84px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font);
    color: var(--text-primary);
    background: var(--bg-darkest);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Scroll Animations ──
   Shorter distance + faster transition keeps the reveal from competing
   with the user's scroll velocity (which felt jumpy). */
.reveal {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

.reveal-left {
    opacity: 0;
    transform: translate3d(-24px, 0, 0);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-left.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

.reveal-right {
    opacity: 0;
    transform: translate3d(24px, 0, 0);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-right.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
    will-change: auto;
}

.stagger-1 { transition-delay: 0.06s; }
.stagger-2 { transition-delay: 0.12s; }
.stagger-3 { transition-delay: 0.18s; }
.stagger-4 { transition-delay: 0.24s; }
.stagger-5 { transition-delay: 0.30s; }
.stagger-6 { transition-delay: 0.36s; }

/* Promote parallax surfaces to their own compositor layer so the rAF
   transform updates don't repaint surrounding content. */
.hero-bg {
    will-change: transform;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}
.hero-content {
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Respect user's reduced-motion preference: kill all reveals + parallax. */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .hero-bg,
    .hero-content {
        transform: none !important;
        opacity: 1 !important;
        will-change: auto !important;
    }
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ── Container ── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Section Label ── */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 12px;
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 1px;
    background: var(--gold);
}

.section-label-gold { color: var(--gold-light); }
.section-label-gold::before { background: var(--gold-light); }

/* ══════════════════════════════════════
   NAVBAR — prominent logo
   ══════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.85) 0%, rgba(10, 10, 10, 0) 100%);
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 var(--border-subtle), 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    transition: opacity var(--transition);
    position: relative;
}

/* Soft permanent gold glow behind the logo so it pops on the dark navbar */
.nav-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 26px;
    transform: translate(-50%, -50%);
    width: 76px;
    height: 76px;
    background: radial-gradient(circle, rgba(232, 181, 48, 0.18) 0%, transparent 65%);
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.nav-logo:hover::before {
    opacity: 1.5;
}

.nav-logo img {
    height: 52px;
    width: auto;
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease;
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(232, 181, 48, 0.15);
}

.nav-logo:hover img {
    transform: scale(1.04);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(232, 181, 48, 0.5),
        0 0 24px rgba(232, 181, 48, 0.25);
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    gap: 4px;
}

.nav-logo-text .nav-brand {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.22em;
    text-shadow: 0 0 18px rgba(232, 181, 48, 0.2);
}

.nav-logo-text .nav-tagline {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.nav-menu { display: flex; align-items: center; gap: 8px; }

.nav-menu li { display: flex; align-items: center; }

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background var(--transition), color var(--transition);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(212, 160, 23, 0.15);
    color: var(--gold-light);
}

/* ── Services dropdown ── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    gap: 6px;
}

.nav-dropdown-caret {
    transition: transform 0.3s ease;
    color: var(--gold);
    opacity: 0.7;
}

.nav-dropdown:hover .nav-dropdown-caret {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 240px;
    margin-top: 8px;
    padding: 10px;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 24px 48px -12px rgba(0, 0, 0, 0.7),
        0 0 60px -20px rgba(232, 181, 48, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
}

/* Bridge the gap between trigger and menu so hover doesn't break */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.nav-dropdown-menu::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 181, 48, 0.4), transparent);
    border-radius: 12px 12px 0 0;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}

/* ── Step menu (Services dropdown with flyout submenus) ── */
.nav-step {
    min-width: 280px;
    padding: 10px;
}

.nav-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-step-item {
    position: relative;
}

.nav-step-parent {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    color: var(--text-primary) !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-step-parent::before { display: none !important; }

.nav-step-parent:hover,
.nav-step-item:hover .nav-step-parent {
    background: rgba(232, 181, 48, 0.1) !important;
    color: var(--gold-light) !important;
    padding-left: 16px !important;
}

.nav-step-chevron {
    width: 14px;
    height: 14px;
    color: var(--gold);
    opacity: 0.6;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

.nav-step-item:hover .nav-step-chevron {
    opacity: 1;
    transform: translateX(2px);
}

/* Submenu — desktop: flyout to the right on hover.
   Critical: NO margin-left gap and a small overlap so the cursor never
   enters dead space when moving from parent to submenu. */
.nav-step-submenu {
    list-style: none;
    padding: 10px;
    margin: 0;
    position: absolute;
    top: -10px;
    left: 100%;
    /* Overlap parent by 4px so diagonal mouse paths never lose hover */
    margin-left: -4px;
    min-width: 280px;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 24px 48px -12px rgba(0, 0, 0, 0.7),
        0 0 60px -20px rgba(232, 181, 48, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-8px);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1002;
}

/* Invisible "bridge" pseudo-element extending the parent's hover area
   into the submenu region, so cursor can travel diagonally without
   dropping :hover. Only on the parent item, not the submenu. */
.nav-step-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: -16px;
    width: 16px;
    height: 100%;
    pointer-events: none;
}

.nav-step-item:hover::after {
    pointer-events: auto;
}

/* Top accent line on submenu */
.nav-step-submenu::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(232, 181, 48, 0.4), transparent);
    border-radius: 12px 12px 0 0;
}

.nav-step-item:hover .nav-step-submenu,
.nav-step-item:focus-within .nav-step-submenu,
.nav-step-item.hover-open .nav-step-submenu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(0);
}

.nav-step-submenu-title {
    padding: 6px 12px 12px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 6px;
}

.nav-step-overview {
    display: block !important;
    padding: 8px 12px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--gold) !important;
    border-radius: 6px;
    margin-bottom: 4px;
}

.nav-step-overview::before { display: none !important; }

.nav-step-overview:hover {
    background: rgba(232, 181, 48, 0.1) !important;
    color: var(--gold-light) !important;
}

.nav-step-submenu .nav-dropdown-item {
    font-size: 0.85rem !important;
    padding: 8px 12px !important;
}

/* Hide the mobile-only "back" button on desktop.
   The .nav-menu li { display: flex } rule has higher specificity than a
   single class, so we have to match it. */
.nav-step-submenu .nav-step-submenu-back { display: none; }

@media (max-width: 768px) {
    /* Step menu inside the mobile fullscreen overlay — accordion behavior */
    .nav-step {
        min-width: 0;
        padding: 0;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .nav-step-list {
        width: 100%;
    }

    .nav-step-item {
        width: 100%;
    }

    .nav-step-parent {
        font-size: 1.4rem !important;
        padding: 14px 24px !important;
        justify-content: center !important;
        gap: 10px;
    }

    /* Mobile submenu: full-screen slide-in */
    .nav-step-submenu {
        position: fixed;
        inset: 0;
        top: 0; left: 0; right: 0; bottom: 0;
        margin: 0;
        min-width: 0;
        max-width: none;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        padding: 80px 24px 24px;
        border-radius: 0;
        border: none;
        background: rgba(10, 10, 10, 0.99);
        transform: translateX(100%);
        opacity: 1;
        pointer-events: auto;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        overflow-y: auto;
        z-index: 1003;
        display: none;
    }

    .nav-step-item.open .nav-step-submenu {
        display: block;
        transform: translateX(0);
    }

    /* Hover-show is disabled on mobile — only the .open class shows it */
    .nav-step-item:hover .nav-step-submenu,
    .nav-step-item:focus-within .nav-step-submenu {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(100%);
    }
    .nav-step-item.open:hover .nav-step-submenu,
    .nav-step-item.open .nav-step-submenu {
        transform: translateX(0);
    }

    .nav-step-submenu .nav-dropdown-item {
        font-size: 1.15rem !important;
        padding: 14px 20px !important;
        text-align: center;
    }

    .nav-step-submenu-title {
        text-align: center;
        font-size: 0.75rem;
        padding: 8px 0 16px;
    }

    .nav-step-overview {
        text-align: center;
        font-size: 0.85rem !important;
        padding: 14px 20px !important;
        border: 1px solid var(--gold);
        margin: 8px 24px 16px !important;
    }

    /* Show the back button on mobile, override the desktop rule */
    .nav-step-submenu .nav-step-submenu-back {
        display: block;
        margin-bottom: 16px;
        width: 100%;
        text-align: center;
    }

    .nav-step-back {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        background: transparent;
        border: 1px solid var(--border-medium);
        color: var(--text-secondary);
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        padding: 10px 18px;
        border-radius: 999px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .nav-step-back svg {
        width: 14px;
        height: 14px;
    }

    .nav-step-back:hover {
        color: var(--gold);
        border-color: var(--gold);
    }
}

.nav-dropdown-item {
    display: block !important;
    padding: 11px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    color: var(--text-secondary) !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    white-space: nowrap;
    text-align: left;
}

.nav-dropdown-item::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    transform-origin: left;
    width: 6px;
    height: 1px;
    background: var(--gold);
    transition: transform 0.2s ease;
}

.nav-dropdown-item:hover {
    background: rgba(232, 181, 48, 0.1) !important;
    color: var(--gold-light) !important;
    padding-left: 22px !important;
}

.nav-dropdown-item:hover::before {
    transform: translateY(-50%) scaleX(1);
}

.nav-dropdown-all {
    display: block !important;
    margin-top: 8px;
    padding: 12px 14px !important;
    text-align: center;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: var(--gold) !important;
    border-top: 1px solid var(--border-subtle);
    border-radius: 0 0 8px 8px;
    transition: all 0.2s ease;
}

.nav-dropdown-all:hover {
    background: rgba(232, 181, 48, 0.1) !important;
    color: var(--gold-light) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    width: 44px;
    height: 44px;
    z-index: 1001;
}

.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--white);
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ══════════════════════════════════════
   HERO — fullscreen with background image
   ══════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    /* Reserve space for the fixed navbar so the centered hero logo can
       never slide up underneath it on short viewports. */
    padding-top: var(--nav-height);
    padding-bottom: 40px;
    box-sizing: border-box;
}

.hero-bg {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
    transition: transform 0.1s linear;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(10, 10, 10, 0.45) 40%,
        rgba(10, 10, 10, 0.85) 100%
    );
    z-index: 1;
}

.hero-watermark {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    overflow: hidden;
}

.hero-watermark img {
    width: 90vmin;
    max-width: 1000px;
    opacity: 0.04;
    mix-blend-mode: lighten;
    filter: brightness(1.5) contrast(1.2);
}

.hero-logo {
    height: 150px;
    width: auto;
    border-radius: 12px;
    margin: 0 auto 28px;
    box-shadow:
        0 10px 36px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(232, 181, 48, 0.2),
        0 0 60px rgba(232, 181, 48, 0.15);
    opacity: 0;
    transform: translateY(-10px);
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@media (max-width: 768px) {
    .hero-logo { height: 110px; margin-bottom: 20px; }
}

@media (max-width: 480px) {
    .hero-logo { height: 90px; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 24px;
    max-width: 900px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6.5vw, 5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 1.2s forwards;
}

.hero-scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.5);
}

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

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ══════════════════════════════════════
   PAGE HERO — inner pages with bg image
   ══════════════════════════════════════ */
.page-hero-image {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(10, 10, 10, 0.5) 50%,
        rgba(10, 10, 10, 0.85) 100%
    );
}

.page-hero-image .page-hero-content {
    position: relative;
    z-index: 1;
    padding: 120px 24px 60px;
}

.page-hero-image h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.page-hero-image p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.75);
    max-width: 500px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(15px);
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

/* Old page hero (project detail) */
.page-hero {
    position: relative;
    padding: 160px 0 80px;
    background: var(--darker);
    text-align: center;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(212, 160, 23, 0.06) 0%, transparent 70%);
}

.page-hero-compact { text-align: left; padding: 140px 24px 60px; }
.page-hero-compact .page-hero-content { max-width: 1200px; margin: 0 auto; }
.page-hero-content { position: relative; z-index: 1; }

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 12px;
    opacity: 0; transform: translateY(20px);
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.page-hero p {
    font-size: 1.15rem; color: var(--gray-400);
    opacity: 0; transform: translateY(15px);
    animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.back-link {
    display: inline-block; color: var(--gold-light);
    font-size: 0.9rem; margin-bottom: 16px;
    transition: opacity var(--transition);
}
.back-link:hover { opacity: 0.7; }

.project-meta {
    display: flex; gap: 16px; margin-top: 8px;
    opacity: 0; animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}
.btn:hover::after { transform: translateX(0); }

.btn-primary {
    background: var(--gold); color: var(--dark); border-color: var(--gold);
}
.btn-primary:hover {
    background: var(--gold-light); border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 160, 23, 0.3);
}

.btn-outline {
    background: transparent; color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--dark); color: var(--white); border-color: var(--dark);
}
.btn-dark:hover {
    background: var(--gray-800);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-white {
    background: var(--white); color: var(--dark); border-color: var(--white);
}
.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn-lg { padding: 18px 44px; font-size: 1rem; }
.btn-full { width: 100%; }

/* ══════════════════════════════════════
   SECTIONS — dark theme
   ══════════════════════════════════════ */
.section { padding: 100px 0; position: relative; }
.section-light { background: var(--bg-dark); color: var(--text-primary); }
.section-gray { background: var(--bg-mid); color: var(--text-primary); }
.section-dark { background: var(--bg-darkest); color: var(--text-primary); }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}
.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}
.section-header p { font-size: 1.1rem; color: var(--text-secondary); }

.section-header-light h2 { color: var(--text-primary); }
.section-header-light p { color: var(--text-secondary); }

.section-cta { text-align: center; margin-top: 48px; }

/* ══════════════════════════════════════
   PARALLAX DIVIDER — full-width image sections
   ══════════════════════════════════════ */
.parallax-divider {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.parallax-divider-short { min-height: 300px; }

.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(10, 10, 10, 0.7) 50%,
        rgba(10, 10, 10, 0.9) 100%
    );
}

.parallax-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 24px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-row {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.stat-item { text-align: center; }

.stat-item .stat-number {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    display: inline;
}

.stat-suffix {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--gold);
}

.stat-item .stat-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-400);
    margin-top: 8px;
}

.hero-quote {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 300;
    font-style: italic;
    color: var(--white);
    line-height: 1.4;
    max-width: 700px;
    margin: 0 auto;
    border: none;
    padding: 0;
}

.hero-quote-cite {
    display: block;
    margin-top: 24px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold);
    font-style: normal;
}

/* ══════════════════════════════════════
   SPLIT SECTION — 50/50 image + content
   ══════════════════════════════════════ */
.section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.section-split-reverse { direction: rtl; }
.section-split-reverse > * { direction: ltr; }

.split-image {
    position: relative;
    overflow: hidden;
}

.split-image-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-split:hover .split-image-bg {
    transform: scale(1.03);
}

.split-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 80px;
    background: var(--bg-mid);
    color: var(--text-primary);
}

.split-content h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    line-height: 1.15;
}

.split-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.split-content .btn { margin-top: 16px; align-self: flex-start; }

/* ══════════════════════════════════════
   VISUAL SERVICE CARDS — image-backed
   ══════════════════════════════════════ */
.services-visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* 3-up category grid (homepage) — taller cards with more presence */
.services-visual-grid-three {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.services-visual-grid-three .service-visual-card-cat {
    min-height: 460px;
}

.services-visual-grid-three .service-visual-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.services-visual-grid-three .service-visual-content p {
    max-height: none;
    opacity: 1;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 12px;
    font-size: 0.92rem;
}

.service-visual-cta {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    transition: transform 0.3s ease, color 0.3s ease;
}

.services-visual-grid-three .service-visual-card:hover .service-visual-cta {
    color: var(--gold-light);
    transform: translateX(4px);
}

/* When the grid has exactly 5 cards on desktop, switch to a 6-column
   track so the last row of 2 cards centers under the first row of 3.
   Wrapped in min-width so it never fights the mobile 1-col/2-col rules. */
@media (min-width: 1025px) {
    .services-visual-grid-three:has(> .service-visual-card-cat:nth-child(5)):not(:has(> .service-visual-card-cat:nth-child(6))) {
        grid-template-columns: repeat(6, 1fr);
    }
    .services-visual-grid-three:has(> .service-visual-card-cat:nth-child(5)):not(:has(> .service-visual-card-cat:nth-child(6))) > .service-visual-card-cat {
        grid-column: span 2;
    }
    .services-visual-grid-three:has(> .service-visual-card-cat:nth-child(5)):not(:has(> .service-visual-card-cat:nth-child(6))) > .service-visual-card-cat:nth-child(4) {
        grid-column: 2 / span 2;
    }
    .services-visual-grid-three:has(> .service-visual-card-cat:nth-child(5)):not(:has(> .service-visual-card-cat:nth-child(6))) > .service-visual-card-cat:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

@media (max-width: 1024px) {
    .services-visual-grid-three { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .services-visual-grid-three { grid-template-columns: 1fr; gap: 14px; }
    .services-visual-grid-three .service-visual-card-cat { min-height: 280px; }
    .services-visual-grid-three .service-visual-content h3 { font-size: 1.4rem; }
    .services-visual-grid-three .service-visual-content p { font-size: 0.85rem; }
}

.service-visual-card {
    position: relative;
    display: block;
    min-height: 320px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.service-visual-card-wide {
    grid-column: span 1;
}

/* Leftover asymmetric 5-card layout removed — the homepage now uses the
   .services-visual-grid-three rules above for the 6-practice grid (clean
   3×2). Re-introducing nth-child column overrides here will force card 5
   double-wide and orphan card 6 on its own row. */

.service-visual-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-visual-card:hover .service-visual-bg {
    transform: scale(1.08);
}

.service-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.7) 100%
    );
    transition: background 0.4s ease;
}

.service-visual-card:hover .service-visual-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

.service-visual-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    z-index: 1;
}

.service-visual-number {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 8px;
}

.service-visual-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
}

.service-visual-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    opacity: 0;
}

.service-visual-card:hover .service-visual-content p {
    max-height: 100px;
    opacity: 1;
}

/* ══════════════════════════════════════
   SERVICE SHOWCASE — alternating image/text
   ══════════════════════════════════════ */
.service-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    /* Lets native anchor jumps land BELOW the fixed navbar without JS. */
    scroll-margin-top: calc(var(--nav-height) + 16px);
}

.service-showcase.showcase-reverse {
    direction: rtl;
}
.service-showcase.showcase-reverse > * {
    direction: ltr;
}

.showcase-image {
    position: relative;
    overflow: hidden;
    /* min-height: 0 plus an absolute-positioned <img> below lets the grid
       row size to the content cell instead of the image's intrinsic aspect
       ratio. Without this a portrait photo (like the field trailer) makes
       the row grow past 1000px and the matching text content floats inside
       a sea of empty space. */
    min-height: 0;
}

.showcase-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-showcase:hover .showcase-image img {
    transform: scale(1.04);
}

.showcase-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    background: var(--bg-dark);
    color: var(--text-primary);
    position: relative;
}

.service-showcase:nth-child(even) .showcase-content {
    background: var(--bg-mid);
}

.showcase-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.25;
    line-height: 1;
    margin-bottom: 8px;
}

.showcase-content h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.showcase-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.showcase-list li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 6px 0 6px 24px;
    position: relative;
}

.showcase-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 12px;
    height: 2px;
    background: var(--gold);
}

/* ══════════════════════════════════════
   APPROACH — visual cards
   ══════════════════════════════════════ */
.approach-visual-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.approach-visual-card {
    padding: 40px 28px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.approach-visual-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.approach-visual-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(232, 181, 48, 0.2);
}

.approach-visual-card:hover::after {
    transform: scaleX(1);
}

.approach-visual-icon {
    width: 56px;
    height: 56px;
    color: var(--gold);
    margin: 0 auto 20px;
}

.approach-visual-icon svg { width: 100%; height: 100%; }

.approach-visual-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.approach-visual-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ══════════════════════════════════════
   TIMELINE — about page approach
   ══════════════════════════════════════ */
.approach-timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.approach-timeline::before {
    content: '';
    position: absolute;
    left: 60px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-subtle);
}

.timeline-item {
    display: flex;
    gap: 40px;
    padding: 32px 0;
    position: relative;
}

.timeline-number {
    flex-shrink: 0;
    width: 120px;
    font-size: 3rem;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.25;
    line-height: 1;
    text-align: right;
    padding-right: 40px;
    position: relative;
}

.timeline-number::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 12px;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 0 2px var(--gold);
}

.timeline-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ══════════════════════════════════════
   VALUES — visual cards (dark bg)
   ══════════════════════════════════════ */
.values-visual-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.value-visual-card {
    padding: 40px 28px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.4s ease,
                border-color 0.4s ease;
}

.value-visual-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(212, 160, 23, 0.2);
}

.value-visual-bar {
    width: 40px;
    height: 3px;
    background: var(--gold);
    margin-bottom: 20px;
}

.value-visual-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 10px;
}

.value-visual-card p {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* ══════════════════════════════════════
   SERVICE CATEGORY CARDS (services overview page)
   ══════════════════════════════════════ */
.service-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* 5-card layout (desktop only): switch to 6 tracks so the last row of 2
   centers under the first row of 3. The min-width guard keeps this rule
   from overriding the mobile 1-col fallback. */
@media (min-width: 901px) {
    .service-cat-grid:has(> .service-cat-card:nth-child(5)):not(:has(> .service-cat-card:nth-child(6))) {
        grid-template-columns: repeat(6, 1fr);
    }
    .service-cat-grid:has(> .service-cat-card:nth-child(5)):not(:has(> .service-cat-card:nth-child(6))) > .service-cat-card {
        grid-column: span 2;
    }
    .service-cat-grid:has(> .service-cat-card:nth-child(5)):not(:has(> .service-cat-card:nth-child(6))) > .service-cat-card:nth-child(4) {
        grid-column: 2 / span 2;
    }
    .service-cat-grid:has(> .service-cat-card:nth-child(5)):not(:has(> .service-cat-card:nth-child(6))) > .service-cat-card:nth-child(5) {
        grid-column: 4 / span 2;
    }
}

.service-cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 460px;
    border-radius: 12px;
    overflow: hidden;
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease,
                box-shadow 0.4s ease;
}

.service-cat-card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-cat-card:hover .service-cat-card-image {
    transform: scale(1.06);
}

.service-cat-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.4) 0%,
        rgba(10, 10, 10, 0.85) 60%,
        rgba(10, 10, 10, 0.95) 100%
    );
    transition: background 0.4s ease;
}

.service-cat-card:hover .service-cat-card-overlay {
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.5) 0%,
        rgba(10, 10, 10, 0.9) 50%,
        rgba(10, 10, 10, 0.97) 100%
    );
}

.service-cat-card-content {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-cat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(232, 181, 48, 0.4);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5),
                0 0 60px -20px rgba(232, 181, 48, 0.25);
}

.service-cat-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-top: 4px;
}

.service-cat-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-cat-preview {
    list-style: none;
    padding: 8px 0 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
}

.service-cat-preview li {
    font-size: 0.78rem;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.service-cat-preview li a {
    display: block;
    padding: 4px 10px;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.service-cat-preview li:hover {
    border-color: rgba(232, 181, 48, 0.5);
    background: rgba(232, 181, 48, 0.08);
}

.service-cat-preview li:hover a {
    color: var(--gold);
}

.service-cat-preview-more {
    border-color: rgba(232, 181, 48, 0.4) !important;
    background: rgba(232, 181, 48, 0.06) !important;
}

.service-cat-preview-more a {
    color: var(--gold) !important;
}

/* Card title link styled like the old h2 — strip default link blue */
.service-cat-card-title { color: inherit; }
.service-cat-card-title:hover { color: var(--gold); }

.service-cat-arrow {
    margin-top: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.service-cat-card:hover .service-cat-arrow {
    color: var(--gold-light);
    transform: translateX(4px);
}

@media (max-width: 1100px) and (min-width: 641px) {
    .service-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .service-cat-card { min-height: 380px; }
}

@media (max-width: 640px) {
    .service-cat-grid { grid-template-columns: 1fr; gap: 14px; }
    .service-cat-card { min-height: 340px; }
    .service-cat-card-content { padding: 24px 20px; }
    .service-cat-card h2 { font-size: 1.4rem; }
    .service-cat-card p { font-size: 0.88rem; }
    .service-cat-preview li { font-size: 0.78rem; }
    /* Larger tap target on mobile — pills become finger-sized */
    .service-cat-preview li a { padding: 9px 14px; }
    .service-cat-preview { gap: 8px 10px; }
}

/* ── Other practices bar (top of category page) ── */
.other-categories-bar {
    background: var(--bg-mid);
    padding: 18px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.other-categories-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.other-categories-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

.other-category-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

@media (max-width: 640px) {
    .other-categories-bar { padding: 14px 0; }
    .other-categories-row { gap: 10px 14px; }
    .other-categories-label { width: 100%; text-align: center; font-size: 0.62rem; }
    .other-category-link { font-size: 0.78rem; }
}

.other-category-link:hover {
    color: var(--gold);
    transform: translateX(2px);
}

/* ══════════════════════════════════════
   SERVICE QUICK JUMP (homepage)
   ══════════════════════════════════════ */
.service-jump-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

/* Three-column variant for category buttons (homepage) */
.service-jump-grid-three {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-jump-btn-large {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 32px;
    gap: 8px;
    min-height: 200px;
}

.service-jump-btn-large .service-jump-num {
    font-size: 2.25rem;
    margin-bottom: 8px;
}

.service-jump-btn-large .service-jump-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.service-jump-count {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-top: 4px;
}

.service-jump-btn-large .service-jump-arrow {
    margin-top: auto;
    align-self: flex-end;
}

@media (max-width: 900px) {
    .service-jump-grid-three { grid-template-columns: 1fr; }
}

.service-jump-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-jump-btn::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gold);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-jump-btn:hover {
    transform: translateX(6px);
    background: var(--bg-surface);
    border-color: rgba(232, 181, 48, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.service-jump-btn:hover::before {
    transform: scaleY(1);
}

.service-jump-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.7;
    line-height: 1;
    flex-shrink: 0;
    min-width: 36px;
}

.service-jump-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.service-jump-arrow {
    width: 20px;
    height: 20px;
    color: var(--gold);
    flex-shrink: 0;
    transform: translateX(-4px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.service-jump-btn:hover .service-jump-arrow {
    transform: translateX(0);
    opacity: 1;
}

@media (max-width: 1024px) {
    .service-jump-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .service-jump-grid {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════
   CTA IMAGE SECTION
   ══════════════════════════════════════ */
.cta-image-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.cta-image-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 650px;
    padding: 80px 24px;
}

.cta-image-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.cta-image-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* ══════════════════════════════════════
   PROJECTS GRID
   ══════════════════════════════════════ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.projects-grid-full { grid-template-columns: repeat(3, 1fr); }

/* Featured projects band (top of /projects page) */
.projects-grid-featured {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.projects-grid-featured .project-card {
    border: 1px solid rgba(232, 181, 48, 0.25);
    box-shadow: 0 0 0 1px rgba(232, 181, 48, 0.05),
                0 12px 32px rgba(0, 0, 0, 0.4);
}

.projects-grid-featured .project-card:hover {
    border-color: rgba(232, 181, 48, 0.5);
    box-shadow: 0 0 0 1px rgba(232, 181, 48, 0.3),
                0 24px 60px rgba(0, 0, 0, 0.5),
                0 0 60px -20px rgba(232, 181, 48, 0.3);
}

.projects-grid-featured .project-card-image::before {
    content: 'Featured';
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: var(--bg-darkest);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 2;
}

/* Section headers between Featured and All Projects */
.projects-section-header {
    margin-bottom: 24px;
    padding-top: 8px;
}

.projects-section-header h2 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-top: 8px;
}

.projects-section-header-secondary {
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

@media (max-width: 1024px) {
    .projects-grid-featured { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .projects-grid-featured { grid-template-columns: 1fr; }
}

.project-card {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.4s ease;
}
.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    border-color: rgba(232, 181, 48, 0.3);
}

.project-card-image {
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--gray-800);
}
.project-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-card-image img { transform: scale(1.08); }

.project-card-placeholder {
    width: 100%; height: 100%;
    background:
        radial-gradient(ellipse at 50% 50%, rgba(232, 181, 48, 0.18) 0%, transparent 60%),
        linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-darkest) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 24px;
    overflow: hidden;
}

.project-card-placeholder::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    background-image: url('/static/images/logos/logo-small.jpeg');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.05;
    filter: grayscale(0.5);
    pointer-events: none;
}

/* Hide the inline logo image — it overlaps the centered text */
.placeholder-logo {
    display: none;
}

.project-card-placeholder::after {
    content: 'Images Coming Soon';
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: var(--gold);
    text-transform: uppercase;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.85);
    line-height: 1.3;
    padding: 14px 24px;
    border-top: 1px solid rgba(232, 181, 48, 0.4);
    border-bottom: 1px solid rgba(232, 181, 48, 0.4);
    background: rgba(10, 10, 10, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .project-card-placeholder::after {
        font-size: 0.9rem;
        padding: 12px 16px;
    }
}

.project-card-light .project-card-placeholder {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
}

.project-card-light {
    background: var(--bg-mid);
    border: 1px solid var(--border-subtle);
}

.project-card-light .project-card-info h3 {
    color: var(--text-primary);
}

.project-card-light .project-location {
    color: var(--text-secondary);
}

.project-year-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--gold);
    color: var(--bg-darkest);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    letter-spacing: 0.05em;
    z-index: 2;
}

.project-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #5DD9A0;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(93, 217, 160, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

/* Status badge color variants — set by admin */
.project-status-badge.status-color-gold {
    color: #F2CB5C;
    border-color: rgba(232, 181, 48, 0.4);
}
.project-status-badge.status-color-gold .status-dot {
    background: #F2CB5C;
    animation: goldPulse 2s ease-in-out infinite;
}

.project-status-badge.status-color-green {
    color: #5DD9A0;
    border-color: rgba(93, 217, 160, 0.4);
}

.project-status-badge.status-color-blue {
    color: #5B9DEF;
    border-color: rgba(91, 157, 239, 0.4);
}
.project-status-badge.status-color-blue .status-dot {
    background: #5B9DEF;
    animation: bluePulse 2s ease-in-out infinite;
}
@keyframes bluePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(91, 157, 239, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(91, 157, 239, 0); }
}

.project-status-badge.status-color-red {
    color: #EF6B6B;
    border-color: rgba(239, 107, 107, 0.4);
}
.project-status-badge.status-color-red .status-dot {
    background: #EF6B6B;
    animation: redPulse 2s ease-in-out infinite;
}
@keyframes redPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 107, 107, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(239, 107, 107, 0); }
}

.project-status-badge.status-color-gray {
    color: #b8b8b8;
    border-color: rgba(184, 184, 184, 0.3);
}
.project-status-badge.status-color-gray .status-dot {
    background: #b8b8b8;
    animation: none;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5DD9A0;
    box-shadow: 0 0 0 0 rgba(93, 217, 160, 0.6);
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(93, 217, 160, 0.6); }
    50% { box-shadow: 0 0 0 6px rgba(93, 217, 160, 0); }
}

.section-label .status-dot {
    width: 7px;
    height: 7px;
    margin-right: 8px;
    vertical-align: middle;
}

.filter-btn-progress {
    border-color: rgba(93, 217, 160, 0.4) !important;
    color: #5DD9A0 !important;
}

.filter-btn-progress.active {
    background: rgba(93, 217, 160, 0.15) !important;
    color: #5DD9A0 !important;
    border-color: #5DD9A0 !important;
}

.filter-btn-progress .status-dot {
    width: 7px;
    height: 7px;
    margin-right: 6px;
    vertical-align: middle;
}

.project-card-progress {
    border-color: rgba(93, 217, 160, 0.2);
    box-shadow: 0 0 0 1px rgba(93, 217, 160, 0.1);
}

.project-card-progress:hover {
    border-color: rgba(93, 217, 160, 0.4);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(93, 217, 160, 0.3);
}

.project-card-image {
    position: relative;
}

.project-card-info { padding: 20px 24px; }
.project-category {
    display: inline-block;
    font-size: 0.75rem; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold);
    margin-bottom: 6px;
}
.project-card-info h3 { font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.project-location { font-size: 0.85rem; color: var(--gray-400); }

/* ── Single-line filter bar ── */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 0 auto 56px;
    padding: 10px 14px;
    width: fit-content;
    max-width: 100%;
    background:
        linear-gradient(135deg, rgba(232, 181, 48, 0.04) 0%, transparent 60%),
        var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: 999px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 16px 40px -12px rgba(0, 0, 0, 0.5),
        0 0 60px -20px rgba(232, 181, 48, 0.18);
    position: relative;
    overflow: visible;
}

.filter-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(232, 181, 48, 0.4) 50%, transparent 100%);
}

.filter-bar-count {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0 18px;
    flex-shrink: 0;
}

.filter-bar-count-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 16px rgba(232, 181, 48, 0.4);
}

.filter-bar-count-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

.filter-bar-divider {
    width: 1px;
    height: 32px;
    background: var(--border-medium);
    flex-shrink: 0;
}

.filter-bar-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-select {
    position: relative;
    display: flex;
    align-items: center;
}

.filter-select-icon {
    position: absolute;
    left: 14px;
    width: 16px;
    height: 16px;
    color: var(--gold);
    pointer-events: none;
    z-index: 1;
    opacity: 0.85;
}

.filter-select-arrow {
    position: absolute;
    right: 12px;
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.filter-select:hover .filter-select-arrow {
    color: var(--gold);
}

.filter-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    min-width: 180px;
    padding: 11px 36px 11px 38px;
    font-family: var(--font);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-medium);
    border-radius: 999px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-select select:hover {
    background: rgba(232, 181, 48, 0.06);
    border-color: rgba(232, 181, 48, 0.4);
}

.filter-select select:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(232, 181, 48, 0.08);
    box-shadow: 0 0 0 3px rgba(232, 181, 48, 0.15);
}

.filter-select select option {
    background: var(--bg-mid);
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px;
}

.filter-bar-reset {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 18px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    transition: all var(--transition);
    flex-shrink: 0;
    margin-right: 4px;
}

.filter-bar-reset:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(232, 181, 48, 0.08);
}

@media (max-width: 900px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        border-radius: 16px;
        padding: 16px;
        gap: 12px;
    }
    .filter-bar-divider { display: none; }
    .filter-bar-count { padding: 0; justify-content: center; }
    .filter-bar-controls { flex-direction: column; }
    .filter-select { width: 100%; }
    .filter-select select { min-width: 0; width: 100%; }
}

/* Old filters kept as no-op below — overridden */
.filters-wrap {
    margin-bottom: 64px;
    padding: 0;
    background:
        linear-gradient(135deg, rgba(232, 181, 48, 0.06) 0%, transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%),
        var(--bg-elevated);
    border: 1px solid var(--border-medium);
    border-radius: 16px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 0 0 1px rgba(232, 181, 48, 0.08) inset,
        0 32px 64px -16px rgba(0, 0, 0, 0.6),
        0 0 80px -20px rgba(232, 181, 48, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.filters-wrap::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(232, 181, 48, 0.6) 50%,
        transparent 100%);
}

.filters-wrap::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 181, 48, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    z-index: 1;
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-primary);
}

.filters-title svg {
    color: var(--gold);
    filter: drop-shadow(0 0 8px rgba(232, 181, 48, 0.4));
}

.filters-clear {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    transition: all var(--transition);
}

.filters-clear:hover {
    color: var(--gold);
    border-color: var(--gold);
    background: rgba(232, 181, 48, 0.08);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 18px 28px;
    position: relative;
    z-index: 1;
    transition: background 0.3s ease;
}

.filter-group + .filter-group {
    border-top: 1px solid var(--border-subtle);
}

.filter-group:hover {
    background: rgba(232, 181, 48, 0.02);
}

.filter-group-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold);
    flex-shrink: 0;
    min-width: 130px;
}

.filter-group-label svg {
    width: 16px;
    height: 16px;
    color: var(--gold);
    opacity: 0.85;
}

.project-filters {
    display: flex; gap: 8px;
    justify-content: flex-start; flex-wrap: wrap;
}

/* Override filter-btn for sexier look */
.filter-btn {
    padding: 9px 20px;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid var(--border-medium);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    background: rgba(232, 181, 48, 0.08);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--bg-darkest);
    border-color: var(--gold);
    box-shadow:
        0 4px 16px rgba(232, 181, 48, 0.4),
        0 0 0 1px rgba(232, 181, 48, 0.5);
    transform: translateY(-1px);
}

.filter-btn-progress {
    border-color: rgba(93, 217, 160, 0.5) !important;
    color: #5DD9A0 !important;
    background: rgba(93, 217, 160, 0.04) !important;
}

.filter-btn-progress:hover {
    background: rgba(93, 217, 160, 0.1) !important;
    border-color: #5DD9A0 !important;
}

.filter-btn-progress.active {
    background: linear-gradient(135deg, #5DD9A0 0%, #7EE8B5 100%) !important;
    color: var(--bg-darkest) !important;
    border-color: #5DD9A0 !important;
    box-shadow:
        0 4px 16px rgba(93, 217, 160, 0.4),
        0 0 0 1px rgba(93, 217, 160, 0.5) !important;
}

.filter-btn-progress.active .status-dot {
    background: var(--bg-darkest);
    animation: none;
}

@media (max-width: 768px) {
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
    }
    .filter-group-label {
        min-width: 0;
    }
    .filters-header {
        padding: 14px 20px;
    }
}

.filter-btn {
    padding: 10px 22px;
    font-family: var(--font); font-size: 0.85rem; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.04em;
    border: 1px solid var(--border-medium); border-radius: 4px;
    background: transparent; color: var(--text-secondary);
    cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold-light);
}
.filter-btn.active {
    background: var(--gold); color: var(--bg-darkest); border-color: var(--gold);
}

/* ══════════════════════════════════════
   PROJECT DETAIL
   ══════════════════════════════════════ */
.project-hero-image {
    margin-bottom: 48px; border-radius: 8px; overflow: hidden;
}
.project-hero-image img { width: 100%; max-height: 500px; object-fit: cover; }

.project-content { max-width: 800px; margin: 0 auto 48px; }
.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.project-description p { margin-bottom: 18px; color: var(--text-secondary); }
.project-description p:first-child { color: var(--text-primary); font-size: 1.2rem; }

.project-gallery h2 { font-size: 1.75rem; font-weight: 700; color: var(--text-primary); margin-bottom: 24px; }

/* ── Project gallery carousel ── */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 16px;
}

.gallery-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 8px;
}

.gallery-controls {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.gallery-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-medium);
    background: var(--bg-elevated);
    color: var(--gold);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.gallery-arrow svg {
    width: 18px;
    height: 18px;
}

.gallery-arrow:hover {
    background: var(--gold);
    color: var(--bg-darkest);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 181, 48, 0.3);
}

.gallery-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 16px;
    margin: 0 -24px;
    padding-left: 24px;
    padding-right: 24px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) transparent;
}

.gallery-scroll::-webkit-scrollbar {
    height: 6px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: var(--border-subtle);
    border-radius: 3px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

.gallery-slide {
    flex: 0 0 calc((100% - 32px) / 3);
    min-width: 280px;
    scroll-snap-align: start;
    margin: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-slide:hover {
    transform: translateY(-4px);
}

.gallery-slide-image {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.gallery-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-slide:hover .gallery-slide-image img {
    transform: scale(1.06);
}

.gallery-slide-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.5);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    color: var(--gold-light);
}

.gallery-slide-overlay svg {
    width: 36px;
    height: 36px;
}

.gallery-slide:hover .gallery-slide-overlay {
    opacity: 1;
}

.gallery-slide-caption {
    margin-top: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    padding: 0 4px;
}

.gallery-progress {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 4px;
    margin-top: 24px;
    font-size: 0.95rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.gallery-progress-current {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.15rem;
}

.gallery-progress-divider {
    color: var(--text-muted);
    margin: 0 4px;
}

@media (max-width: 768px) {
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .gallery-slide {
        flex: 0 0 85%;
        min-width: 0;
    }
}

/* Legacy fallback (if grid is still used somewhere) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    color: var(--white);
}

.gallery-item-overlay svg { width: 32px; height: 32px; }
.gallery-item:hover .gallery-item-overlay { opacity: 1; }

/* ── Project Detail Hero ── */
.project-detail-hero { min-height: 60vh; }

.project-detail-hero-placeholder {
    background:
        radial-gradient(circle at 30% 30%, rgba(232, 181, 48, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(232, 181, 48, 0.06) 0%, transparent 60%),
        linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-darkest) 100%);
}

.project-detail-hero-placeholder .project-hero-overlay {
    background: linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.7) 100%);
}

.project-coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(232, 181, 48, 0.12);
    border: 1px solid rgba(232, 181, 48, 0.4);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-light);
}

.project-coming-soon .status-dot {
    width: 7px;
    height: 7px;
    animation: goldPulse 2s ease-in-out infinite;
}

@keyframes goldPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232, 181, 48, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(232, 181, 48, 0); }
}

.project-hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.45) 0%,
        rgba(0, 0, 0, 0.6) 60%,
        rgba(0, 0, 0, 0.85) 100%
    );
}

.project-detail-hero .page-hero-content {
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 140px 24px 60px;
}

.project-detail-hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.project-detail-hero .back-link {
    display: inline-block;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 16px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color var(--transition);
}

.project-detail-hero .back-link:hover {
    color: var(--gold-light);
}

.project-detail-hero .section-label {
    margin-bottom: 16px;
}

.project-meta {
    display: flex;
    gap: 24px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.project-location-meta,
.project-year-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.project-location-meta svg,
.project-year-meta svg {
    color: var(--gold-light);
}

/* ── Lightbox ── */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease; padding: 40px;
}
.lightbox.active { opacity: 1; pointer-events: all; }
.lightbox img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.lightbox-figure {
    max-width: 90vw;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.lightbox-caption {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    max-width: 700px;
    padding: 12px 20px;
    background: rgba(10, 10, 10, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(10, 10, 10, 0.6);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-arrow svg { width: 24px; height: 24px; }

.lightbox-arrow:hover {
    background: var(--gold);
    color: var(--bg-darkest);
    border-color: var(--gold);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 768px) {
    .lightbox-arrow { width: 44px; height: 44px; }
    .lightbox-prev { left: 12px; }
    .lightbox-next { right: 12px; }
    .lightbox-caption { font-size: 0.9rem; padding: 10px 16px; }
}
.lightbox-close {
    position: absolute; top: 20px; right: 24px;
    background: none; border: none; color: var(--white);
    font-size: 2rem; cursor: pointer; padding: 8px;
    line-height: 1; transition: opacity var(--transition);
}
.lightbox-close:hover { opacity: 0.7; }

/* ══════════════════════════════════════
   CONTACT
   ══════════════════════════════════════ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: 2.25rem; font-weight: 700;
    color: var(--text-primary); margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.contact-info > p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 40px; }

.contact-details { display: flex; flex-direction: column; gap: 24px; }

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 2px;
}
.contact-icon svg { width: 100%; height: 100%; }

.contact-item h4 {
    font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--gold); margin-bottom: 4px;
}
.contact-item p { color: var(--text-secondary); }
.contact-item a { transition: color var(--transition); }
.contact-item a:hover { color: var(--gold); }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: var(--text-primary); margin-bottom: 6px;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 14px 16px;
    font-family: var(--font); font-size: 0.95rem;
    border: 1px solid var(--border-medium); border-radius: 4px;
    background: var(--bg-elevated); color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(232, 181, 48, 0.15);
    background: var(--bg-surface);
}
.form-group select option { background: var(--bg-elevated); color: var(--text-primary); }
.form-group textarea { resize: vertical; }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state h3 { font-size: 1.5rem; color: var(--text-primary); margin-bottom: 8px; }
.empty-state p { color: var(--text-secondary); }

/* ══════════════════════════════════════
   FOOTER — prominent logo
   ══════════════════════════════════════ */
.footer {
    background: var(--bg-darkest);
    color: var(--text-muted);
    padding: 100px 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(232, 181, 48, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}

.footer-logo {
    height: 96px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease;
}

.footer-logo:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 28px rgba(232, 181, 48, 0.25);
}

.footer-brand p {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 320px;
    color: var(--text-secondary);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--gold); margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 24px;
    height: 2px;
    background: var(--gold);
}

.footer-links li { margin-bottom: 12px; }
.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: color var(--transition), padding var(--transition);
    display: inline-block;
}
.footer-links a:hover {
    color: var(--gold-light);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-secondary);
}
.footer-contact a { color: var(--text-secondary); transition: color var(--transition); }
.footer-contact a:hover { color: var(--gold-light); }

.footer-bottom {
    padding: 28px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
    .services-visual-grid { grid-template-columns: repeat(2, 1fr); }
    .services-visual-grid .service-visual-card:nth-child(5) { grid-column: span 2; }
    .services-visual-grid .service-visual-card:nth-child(4) { grid-column: span 1; }

    .projects-grid, .projects-grid-full { grid-template-columns: repeat(2, 1fr); }
    .approach-visual-grid { grid-template-columns: repeat(2, 1fr); }
    .values-visual-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-row { gap: 48px; }
}

@media (max-width: 768px) {
    :root { --nav-height: 72px; }

    .nav-logo img {
        height: 44px;
        border-radius: 8px;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45),
                    0 0 0 1px rgba(232, 181, 48, 0.15);
    }
    .nav-logo { gap: 10px; }
    .nav-logo::before { width: 64px; height: 64px; left: 22px; }
    .nav-logo-text .nav-brand { font-size: 0.95rem; letter-spacing: 0.18em; }
    .nav-logo-text .nav-tagline { font-size: 0.62rem; letter-spacing: 0.14em; }

    /* Disable backdrop-filter on the navbar parent so it doesn't trap
       the fixed mobile menu inside its containing block. */
    .navbar,
    .navbar.scrolled {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    .navbar.scrolled {
        background: rgba(10, 10, 10, 0.98);
    }

    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0; right: 0; bottom: 0; left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh; /* dynamic viewport for mobile browsers */
        background: rgba(10, 10, 10, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        overflow-y: auto;
        padding: 80px 24px 24px;
        z-index: 999;
    }
    .nav-menu.active { opacity: 1; pointer-events: all; }
    .nav-menu li { width: 100%; justify-content: center; }
    .nav-menu a { font-size: 1.4rem; padding: 14px 24px; }

    /* Hide dropdown menu on mobile — parent link still works */
    .nav-dropdown-menu { display: none; }
    .nav-dropdown-caret { display: none; }

    .hero { min-height: 90vh; }
    .hero-content h1 { font-size: clamp(2.5rem, 12vw, 4rem); line-height: 1.1; }
    .hero-content p { font-size: 1rem; padding: 0 8px; }
    .hero-buttons { padding: 0 16px; }
    /* Touch users naturally scroll — the indicator only competes with the
       hero buttons for space on a 375px-tall layout. */
    .hero-scroll-indicator { display: none; }

    .page-hero-image { min-height: 40vh; }
    .page-hero-image .page-hero-content { padding: 100px 16px 50px; }

    .section-label { padding-left: 32px; font-size: 0.7rem; }
    .section-label::before { width: 22px; }

    .section-header { margin-bottom: 40px; }

    .section-split { grid-template-columns: 1fr; }
    .split-image { min-height: 280px; }
    .split-content { padding: 40px 20px; }
    .section-split-reverse { direction: ltr; }
    .split-content h2 { font-size: 1.75rem; }

    .service-showcase { grid-template-columns: 1fr; }
    .service-showcase.showcase-reverse { direction: ltr; }
    .showcase-image { min-height: 240px; }
    .showcase-content { padding: 40px 20px; }
    .showcase-content h2 { font-size: 1.5rem; }
    .showcase-number { font-size: 3rem; }

    .services-visual-grid { grid-template-columns: 1fr; gap: 12px; }
    .services-visual-grid .service-visual-card:nth-child(4),
    .services-visual-grid .service-visual-card:nth-child(5) {
        grid-column: span 1;
    }
    .service-visual-card { min-height: 240px; }
    .service-visual-content { padding: 24px; }
    .service-visual-content p {
        max-height: 200px;
        opacity: 1;
    }

    .projects-grid, .projects-grid-full {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .approach-visual-grid { grid-template-columns: 1fr; gap: 16px; }
    .values-visual-grid { grid-template-columns: 1fr; gap: 16px; }

    .parallax-divider { min-height: 320px; }
    .stat-row { flex-direction: column; gap: 32px; }
    .stat-item .stat-number { font-size: 3rem; }
    .stat-suffix { font-size: 2.25rem; }

    .hero-quote { font-size: 1.5rem; padding: 0 16px; }

    .cta-image-section { min-height: 320px; }
    .cta-image-content { padding: 60px 20px; }
    .cta-image-content h2 { font-size: 1.75rem; }
    .cta-image-content p { font-size: 1rem; }

    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-info h2 { font-size: 1.75rem; }

    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer { padding: 60px 0 0; }
    .footer-bottom { padding: 20px 0; }

    .section { padding: 60px 0; }
    .container { padding: 0 16px; }

    .parallax-divider,
    .page-hero-image,
    .cta-image-section {
        background-attachment: scroll;
    }

    .approach-timeline::before { left: 24px; }
    .timeline-number {
        width: 48px;
        font-size: 1.75rem;
        padding-right: 16px;
    }
    .timeline-number::after { right: -6px; }
    .timeline-item { gap: 20px; padding: 24px 0; }
    .timeline-content h3 { font-size: 1.15rem; }

    .filter-btn { padding: 11px 18px; font-size: 0.8rem; min-height: 44px; }
    .project-filters { gap: 6px; margin-bottom: 32px; }

    /* Min 44px tap target per WCAG / Apple HIG */
    .btn {
        padding: 14px 24px;
        font-size: 0.9rem;
        min-height: 44px;
    }
    .btn-lg { padding: 16px 32px; font-size: 0.95rem; min-height: 48px; }

    .filter-select select { min-height: 44px; }
    .filter-bar-reset { min-height: 44px; }

    /* Native form inputs already get 16px font (prevents iOS zoom) */
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        min-height: 44px;
    }
    .form-group textarea { min-height: 120px; }

    /* Larger close button on lightbox for easier tapping */
    .lightbox-close {
        width: 44px;
        height: 44px;
        font-size: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

    /* Make the gallery scroll arrows reachable */
    .gallery-arrow {
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .hero-buttons .btn { width: 100%; max-width: none; }
    .gallery-grid { grid-template-columns: 1fr; }
    .stat-row { gap: 24px; }
    .section { padding: 48px 0; }
    .hero-content h1 { font-size: clamp(2rem, 14vw, 3rem); }
    .page-hero-image h1 { font-size: clamp(2rem, 9vw, 3rem); }
    .split-content h2,
    .showcase-content h2 { font-size: 1.5rem; }
}


/* ══════════════════════════════════════
   PUBLIC FLASH MESSAGES (post-redirect notices)
   ══════════════════════════════════════ */
.public-flash-container {
    position: sticky;
    top: var(--nav-height);
    z-index: 50;
    padding: 0;
    pointer-events: none;
}
.public-flash {
    pointer-events: auto;
    max-width: 720px;
    margin: 16px auto;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: publicFlashIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.public-flash-success {
    background: rgba(34, 197, 94, 0.96);
    color: #fff;
    border: 1px solid #16a34a;
}
.public-flash-error {
    background: rgba(220, 38, 38, 0.96);
    color: #fff;
    border: 1px solid #b91c1c;
}
@keyframes publicFlashIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Honeypot — hidden from humans, visible to bots filling every input. */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
