/* ================================================================
   DEVASHISH WEALTH — CUSTOM CSS
   Load AFTER Framo CSS and theme.css.
   ================================================================ */


/* ================================================================
   1. HEADER — STICKY CONTAINER
   ================================================================ */

.site-header.header-glass {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;

    width: 100%;
    /* max-width: none; */

    margin: 0 auto !important;
    padding: 12px 24px;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    box-sizing: border-box;
}

html[data-animations-ready="true"] .reveal {
    transition:
        opacity var(--duration-base) var(--ease-out),
        transform var(--duration-base) var(--ease-out);
}

html[data-animations-ready="true"] .reveal:not(.visible) {
    opacity: 0;
    transform: translateY(0.75rem);
}

html[data-animations-ready="true"] .reveal.visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

html:not([data-animations-ready="true"]) :is([data-anim]:not([data-anim='']):not(.modal),
    .reveal,
    [data-text-reveal]) {
    opacity: 1 !important;
    animation: none !important;
}

html:not([data-animations-ready="true"]) .reveal {
    transform: none !important;
}

html:not([data-animations-ready="true"]) [data-text-reveal] .char {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
}

html[data-animations-ready="true"] [data-text-reveal]:not([data-text-reveal-split]) {
    opacity: 0;
    animation-duration: var(--anim-duration, 1.1s);
    animation-delay: var(--anim-delay, 0.12s);
    animation-timing-function: var(--anim-ease, var(--ease-out));
    animation-fill-mode: both;
}

html[data-animations-ready="true"] [data-text-reveal="fade"]:not([data-text-reveal-split]).visible {
    animation-name: nx-fade;
}

html[data-animations-ready="true"] [data-text-reveal="slide-up"]:not([data-text-reveal-split]).visible {
    animation-name: nx-fade-up;
}

html[data-animations-ready="true"] [data-text-reveal="drop"]:not([data-text-reveal-split]).visible {
    animation-name: nx-fade-down;
}

html[data-animations-ready="true"] [data-text-reveal="rise"]:not([data-text-reveal-split]).visible,
html[data-animations-ready="true"] [data-text-reveal]:not([data-text-reveal-split]):not([data-text-reveal="fade"]):not([data-text-reveal="slide-up"]):not([data-text-reveal="drop"]).visible {
    animation-name: nx-fade-up;
}

.site-header.header-glass .navbar {
    position: relative;
    width: 100%;
    /* max-width: none; */
    margin: 0 auto;
}

.site-header.header-glass .navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
    /* max-width: none; */
    /* min-height: 76px; */

    margin: 0 auto;
    padding: 8px 24px;

    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid var(--brand-divider);
    border-radius: 14px;
    box-shadow: 0 5px 22px rgba(53, 53, 43, 0.07);

    box-sizing: border-box;
}

.site-header .brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.site-header .brand-logo {
    display: block;
    width: 145px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: none !important;
}


/* ================================================================
   2. DESKTOP NAVIGATION
   ================================================================ */

.site-header .nav-links {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 1.8vw, 30px);
    min-width: 0;
    margin: 0 25px;
    padding: 0;
    list-style: none;
}

.site-header .nav-links>li {
    position: relative;
    flex: 0 0 auto;
}

.site-header .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 0;
    border: 0;
    background: transparent;
    color: var(--brand-charcoal) !important;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -.01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus-visible,
.site-header .nav-link[aria-expanded="true"] {
    color: var(--brand-lime) !important;
}

.site-header .nav-link:focus-visible {
    outline: 2px solid var(--brand-lime);
    outline-offset: 5px;
}

.site-header .nav-cascade .ph-caret-down,
.site-header .nav-megamenu .ph-caret-down {
    color: var(--brand-grey);
    transition: transform .2s ease;
}

.site-header .nav-cascade.is-open .ph-caret-down,
.site-header .nav-megamenu.is-open .ph-caret-down {
    transform: rotate(180deg);
}


/* ================================================================
   3. NAV ACTIONS
   ================================================================ */

.site-header .nav-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}


/* ================================================================
   4. DROPDOWN VISIBILITY
   ================================================================ */

/* Compact About dropdown */

.site-header .nav-cascade>.cascade-panel {
    display: none;
}

.site-header .nav-cascade.is-open>.cascade-panel {
    display: block;
}

/* Mega menus are inside a wrapper div in the React component */

.site-header .nav-megamenu .megamenu-panel {
    display: none;
}

.site-header .nav-megamenu.is-open .megamenu-panel {
    display: block;
}


/* ================================================================
   5. ABOUT — COMPACT DROPDOWN
   ================================================================ */

.site-header .nav-cascade>.cascade-panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10000;
    min-width: 220px;
    padding: 10px 0;
    margin-top: 15px;
    background: var(--brand-white) !important;
    border: 1px solid var(--brand-divider);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(29, 29, 27, .12);
}

.site-header .cascade-item {
    display: block;
    padding: 10px 16px;
    color: var(--brand-charcoal);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    transition: color .2s ease, background .2s ease;
}

.site-header .cascade-item:hover {
    color: var(--brand-lime);
    background: var(--brand-ivory);
}


/* ================================================================
   6. MEGA MENU — COMMON
   ================================================================ */

.site-header .megamenu-col-title {
    margin-bottom: 22px;
    color: var(--brand-charcoal);
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -.02em;
}

.site-header .megamenu-item {
    color: var(--brand-charcoal);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.site-header .megamenu-item:hover {
    color: var(--brand-lime);
}


/* ================================================================
   7. WEALTH MANAGEMENT — IMAGE MEGA MENU
   React structure:
   li.custom-mega > div > .megamenu-panel
   ================================================================ */

.site-header .custom-mega {
    position: static;
}

/* The wrapper around the mega menu must not become its
   absolute-positioning container. */

.site-header .custom-mega>div {
    position: static;
}

.site-header .custom-mega .megamenu-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    right: auto;
    z-index: 10000;
    width: min(1200px, calc(100vw - 60px));
    max-width: none;
    padding: 28px;
    transform: translateX(-50%);
    box-sizing: border-box;
    background: var(--brand-white) !important;
    border: 1px solid var(--brand-divider);
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(29, 29, 27, .12);
}

.site-header .custom-mega .megamenu-inner {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
}

.site-header .custom-mega-media {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
}

.site-header .custom-wealth-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
    width: 100%;
    margin: 0 auto;
}

.site-header .custom-mega-stage {
    width: 100%;
    min-width: 0;
}

.site-header .custom-mega-stage img,
.site-header .custom-mega-stage-placeholder {
    display: flex;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 10px;
}

.site-header .custom-mega-stage-placeholder {
    align-items: center;
    justify-content: center;
    background: var(--brand-muted);
    color: var(--brand-charcoal);
    font-size: 2.5rem;
}

.site-header .custom-mega-stage .megamenu-item {
    display: block;
    margin-top: 13px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.site-header .custom-mega-stage p {
    margin: 7px 0 0;
    color: var(--brand-soft-text);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.65;
}

.site-header .custom-mega .megamenu-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 15px 0px !important;
}


/* ================================================================
   8. SOLUTIONS — SERVICES MEGA MENU
   ================================================================ */

.site-header .custom-services-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    right: auto;
    z-index: 10000;
    width: min(1000px, calc(100vw - 60px));
    max-width: none;
    padding: 28px;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.site-header .custom-services-inner {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
}

.site-header .custom-services-inner>.megamenu-col {
    display: block;
    width: 100%;
    max-width: none;
    min-width: 0;
}

.site-header .custom-services-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    margin: 0;
}

.site-header .custom-service-item {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 18px 14px;
    border: 1px solid var(--brand-divider);
    border-radius: 10px;
    background: var(--brand-white);
    color: var(--brand-charcoal);
    text-decoration: none;
    box-sizing: border-box;
    transition: border-color .2s ease, background .2s ease,
        transform .2s ease;
}

.site-header .custom-service-item:nth-child(4) {
    grid-column: 2 / span 2;
}

.site-header .custom-service-item:nth-child(5) {
    grid-column: 4 / span 2;
}

.site-header .custom-service-item:hover {
    border-color: var(--brand-lime);
    background: var(--brand-ivory);
    transform: translateY(-2px);
}

.site-header .custom-service-icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--brand-muted);
    color: var(--brand-charcoal);
    font-size: 21px;
}

.site-header .custom-service-label {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    color: var(--brand-charcoal);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.site-header .custom-service-label small {
    display: block;
    margin-top: 3px;
    color: var(--brand-soft-text);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
}

.site-header .custom-service-arrow {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--brand-grey);
    font-size: 17px;
}


/* ================================================================
   9. HAMBURGER BUTTON
   ================================================================ */

.site-header .hamburger.custom-hamburger {
    position: relative;
    display: none;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border: 1px solid var(--brand-divider);
    border-radius: 10px;
    background: var(--brand-ivory) !important;
    color: var(--brand-charcoal) !important;
    cursor: pointer;
    line-height: 1;
    box-shadow: none;
}

.site-header .hamburger.custom-hamburger:hover {
    border-color: var(--brand-lime);
    background: var(--brand-muted) !important;
}

.site-header .custom-hamburger .nav-toggle-open,
.site-header .custom-hamburger .nav-toggle-close {
    position: absolute;
    inset: 0;
    display: none !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    color: var(--brand-charcoal) !important;
    font-family: Arial, sans-serif !important;
    font-size: 0;
    font-style: normal;
    line-height: 1;
    transform: none;
}

.site-header .custom-hamburger[aria-expanded="false"] .nav-toggle-open {
    display: flex !important;
}

.site-header .custom-hamburger[aria-expanded="false"] .nav-toggle-open::before {
    content: "☰";
    color: var(--brand-charcoal);
    font-size: 23px;
}

.site-header .custom-hamburger[aria-expanded="true"] .nav-toggle-close {
    display: flex !important;
}

.site-header .custom-hamburger[aria-expanded="true"] .nav-toggle-close::before {
    content: "×";
    color: var(--brand-charcoal);
    font-size: 32px;
}


/* ================================================================
   10. MOBILE NAVIGATION
   ================================================================ */

.site-header .mobile-nav {
    display: none;
    width: 100%;
    margin-top: 10px;
    padding: 10px 20px;
    background: var(--brand-white) !important;
    color: var(--brand-charcoal);
    border: 1px solid var(--brand-divider);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(29, 29, 27, .10);
    box-sizing: border-box;
}

.site-header .mobile-nav.is-open {
    display: block !important;
}

.site-header .nav-panel-menu {
    width: 100%;
    padding: 20px 22px 28px;
    box-sizing: border-box;
}

.site-header .nav-panel-menu>.mobile-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 52px;
    padding: 14px 0;
    border-bottom: 1px solid var(--brand-divider);
    color: var(--brand-charcoal) !important;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.site-header .mobile-category {
    border-bottom: 1px solid var(--brand-divider);
}

.site-header .mobile-category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    padding: 14px 0;
    border: 0;
    border-bottom: 1px solid var(--brand-divider);
    background: transparent;
    color: var(--brand-charcoal) !important;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.site-header .mobile-category-toggle:hover,
.site-header .mobile-link:hover {
    color: var(--brand-lime) !important;
}

.site-header .mobile-category-toggle>i {
    display: flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--brand-grey);
    font-size: 17px;
    transition: transform .2s ease;
}

.site-header .mobile-category.is-expanded .mobile-category-toggle>i {
    transform: rotate(180deg);
    color: var(--brand-lime);
}

.site-header .mobile-submenu {
    padding: 8px 0 14px 14px;
    margin-left: 3px;
    border-left: 2px solid var(--brand-lime);
}

.site-header .mobile-submenu-group+.mobile-submenu-group {
    margin-top: 14px;
}

.site-header .mobile-submenu-title {
    margin: 10px 0;
    color: var(--brand-grey);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.site-header .mobile-submenu-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    color: var(--brand-charcoal);
    font-family: var(--font-sans);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
}

.site-header .mobile-submenu-link:hover {
    color: var(--brand-lime);
}

.site-header .mobile-submenu-link>i {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--brand-olive);
    font-size: 18px;
}

.site-header .mobile-submenu-link span {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.site-header .mobile-submenu-link small {
    color: var(--brand-grey);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.6;
}


/* ================================================================
   11. SCROLLED HEADER STATE
   Uses the is-scrolled class added by your React useEffect.
   The header stays fixed after it scrolls into view.
   ================================================================ */

.site-header.header-glass.is-scrolled {
    position: fixed !important;
    top: 0;
    padding-top: 8px;
    padding-bottom: 8px;
}

.site-header.header-glass.is-scrolled .navbar-inner {
    background: rgba(255, 255, 255, 0.8) !important;
    border-color: rgba(29, 29, 27, .10);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(29, 29, 27, .10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header.header-glass.is-scrolled .nav-link {
    color: var(--brand-charcoal) !important;
}

.site-header.header-glass.is-scrolled .brand-logo {
    filter: none !important;
}

.site-header.header-glass.is-scrolled .custom-hamburger {
    background: var(--brand-ivory) !important;
    border-color: var(--brand-divider);
    color: var(--brand-charcoal) !important;
}


/* ================================================================
   12. TABLET — MAX WIDTH 1023px
   ================================================================ */

@media (max-width: 1023px) {

    .site-header.header-glass {
        padding: 10px 20px;
    }

    .site-header.header-glass .navbar-inner {
        min-height: 68px;
        padding: 8px 16px;
        border-radius: 12px;
    }

    .site-header .nav-links {
        display: none !important;
    }

    .site-header .nav-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 10px;
        margin-left: auto;
    }

    .site-header .hamburger.custom-hamburger {
        display: inline-flex !important;
    }

    .site-header .mobile-nav {
        padding: 10px 20px;
    }

    .site-header .nav-megamenu .megamenu-panel,
    .site-header .nav-cascade .cascade-panel {
        display: none !important;
    }

    .site-header .custom-wealth-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .site-header .custom-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-header .custom-services-grid>.custom-service-item,
    .site-header .custom-services-grid>.custom-service-item:nth-child(4),
    .site-header .custom-services-grid>.custom-service-item:nth-child(5) {
        grid-column: auto;
    }

    .site-header .nav-panel-cta {
        display: none !important;
    }
}


/* ================================================================
   13. SMALL MOBILE — MAX WIDTH 575px
   ================================================================ */

@media (max-width: 575px) {

    .site-header.header-glass {
        padding: 8px 12px;
    }

    .site-header.header-glass .navbar-inner {
        min-height: 62px;
        padding: 7px 12px;
        border-radius: 10px;
    }

    .site-header .brand-logo {
        width: 115px;
    }

    .site-header .nav-actions {
        gap: 8px;
    }

    .site-header .hamburger.custom-hamburger {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        min-width: 42px;
        border-radius: 9px;
    }

    .site-header .nav-panel-menu {
        padding: 14px 16px 22px;
    }

    .site-header .mobile-nav {
        padding: 10px 14px;
        border-radius: 10px;
    }

    .site-header .mobile-link,
    .site-header .mobile-category-toggle {
        min-height: 48px;
        font-size: 14px;
    }

    .site-header .custom-wealth-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .site-header .custom-services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .site-header .custom-services-grid>.custom-service-item,
    .site-header .custom-services-grid>.custom-service-item:nth-child(4),
    .site-header .custom-services-grid>.custom-service-item:nth-child(5) {
        grid-column: auto;
    }

    .site-header.header-glass.is-scrolled {
        padding-top: 6px;
    }
}


/* ================================================================
   14. ACCESSIBILITY
   ================================================================ */

.site-header a:focus-visible,
.site-header button:focus-visible {
    outline: 2px solid var(--brand-lime);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    .site-header *,
    .site-header *::before,
    .site-header *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}


/* ================================================================
   15. DEVASHISH WEALTH — HOMEPAGE HERO
   Preserved from your original CSS.
   ================================================================ */

.dw-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: var(--brand-charcoal);
    color: var(--brand-white);
}

.dw-hero-frame {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 760px;
    min-height: min(820px, calc(100svh - 90px));
    padding: 100px 0 190px;
    isolation: isolate;
}

/* Background images */

.dw-hero-backgrounds,
.dw-hero-background {
    position: absolute;
    inset: 0;
    z-index: -3;
}

.dw-hero-background {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 1.2s ease;
}

.dw-hero-background.is-active {
    opacity: 1;
    visibility: visible;
}

.dw-hero-background img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay */

.dw-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg,
            rgba(20, 22, 18, .88) 0%,
            rgba(20, 22, 18, .68) 42%,
            rgba(20, 22, 18, .18) 100%),
        linear-gradient(0deg,
            rgba(20, 22, 18, .65) 0%,
            transparent 55%);
}

/* Main content */

.dw-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.dw-hero-copy {
    max-width: 720px;
    animation: dwHeroContentIn .7s ease both;
}

.dw-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 24px;
    color: var(--brand-lime);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.dw-hero-eyebrow-line {
    display: inline-block;
    width: 34px;
    height: 2px;
    background: var(--brand-lime);
}

.dw-hero-title {
    margin: 0 0 24px;
    color: var(--brand-white);
    /* font-family: var(--font-display); */
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 400;
    letter-spacing: -.02em;
    line-height: 1.04;
}

.font-display {
    font-family: var(--font-display) !important;
}

.dw-hero-title span {
    display: inline;
}

.dw-hero-description {
    max-width: 570px;
    margin: 0 0 18px;
    color: rgba(255, 255, 255, .88);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.9;
}

.dw-hero-location {
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .7);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .04em;
}

.dw-hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    padding: 0 23px;
    border: 1px solid var(--brand-lime);
    border-radius: 8px;
    background: var(--brand-lime);
    color: var(--brand-charcoal) !important;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .25s ease, border-color .25s ease,
        transform .25s ease;
}

.dw-hero-cta:hover {
    transform: translateY(-2px);
    border-color: var(--brand-white);
    background: var(--brand-white);
    color: var(--brand-charcoal) !important;
    box-shadow: none !important;
}

.dw-hero-cta i {
    font-size: 18px;
}

/* Slide counter */

.dw-hero-counter {
    position: absolute;
    right: 5%;
    bottom: 210px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--brand-white);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
}

.dw-hero-counter-divider {
    width: 32px;
    height: 1px;
    background: rgba(255, 255, 255, .55);
}

/* Bottom navigation */

.dw-hero-navigation {
    position: absolute;
    right: 0;
    bottom: 32px;
    left: 0;
    z-index: 4;
}

.dw-hero-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 12px;
    background: rgba(29, 29, 27, .55);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.dw-hero-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
    min-height: 92px;
    padding: 18px 20px;
    overflow: hidden;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .16);
    background: transparent;
    color: var(--brand-white);
    text-align: left;
    cursor: pointer;
    transition: background .25s ease;
}

.dw-hero-card:first-child {
    border-radius: 11px 0 0 11px;
}

.dw-hero-card:last-child {
    border-right: 0;
    border-radius: 0 11px 11px 0;
}

.dw-hero-card:hover,
.dw-hero-card.is-active {
    background: rgba(255, 255, 255, .12);
}

.dw-hero-card:focus-visible {
    z-index: 1;
    outline: 2px solid var(--brand-lime);
    outline-offset: 3px;
}

.dw-hero-card-number {
    flex: 0 0 auto;
    color: var(--brand-lime);
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
}

.dw-hero-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.dw-hero-card-title {
    overflow: hidden;
    color: var(--brand-white);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dw-hero-card-meta {
    overflow: hidden;
    color: rgba(255, 255, 255, .65);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dw-hero-card-arrow {
    display: flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    color: var(--brand-white);
    font-size: 15px;
    transition: color .25s ease, background .25s ease;
}

.dw-hero-card.is-active .dw-hero-card-arrow {
    border-color: var(--brand-lime);
    background: var(--brand-lime);
    color: var(--brand-charcoal);
}

/* Autoplay progress */

.dw-hero-card-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    overflow: hidden;
    background: transparent;
}

.dw-hero-card-progress-fill {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--brand-lime);
    transform: scaleX(0);
    transform-origin: left;
    animation: dwHeroProgress 7s linear forwards;
}

/* Hero animations */

@keyframes dwHeroProgress {
    to {
        transform: scaleX(1);
    }
}

@keyframes dwHeroContentIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ================================================================
   16. HERO — TABLET
   ================================================================ */

@media (max-width: 991px) {

    .dw-hero-frame {
        min-height: 760px;
        padding-top: 80px;
        padding-bottom: 220px;
    }

    .dw-hero-title {
        font-size: clamp(46px, 8vw, 72px);
    }

    .dw-hero-counter {
        right: 5%;
        bottom: 235px;
    }

    .dw-hero-card {
        gap: 10px;
        min-height: 85px;
        padding: 14px 12px;
    }

    .dw-hero-card-arrow {
        display: none;
    }
}


/* ================================================================
   17. HERO — MOBILE
   ================================================================ */

@media (max-width: 767px) {

    .dw-hero-frame {
        min-height: max(39rem, min(48rem, calc(100svh - 75px)));
        align-items: flex-start;
        padding-top: 100px;
        padding-bottom: 245px;
    }

    .dw-hero-overlay {
        background:
            linear-gradient(90deg,
                rgba(20, 22, 18, .82),
                rgba(20, 22, 18, .48)),
            linear-gradient(0deg,
                rgba(20, 22, 18, .85) 0%,
                transparent 75%);
    }

    .dw-hero-title {
        font-size: clamp(43px, 11vw, 64px);
        letter-spacing: -.045em;
    }

    .dw-hero-description {
        max-width: 470px;
        font-size: 14px;
        line-height: 1.8;
    }

    .dw-hero-navigation {
        bottom: 22px;
        width: 100%;
    }

    .dw-hero-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dw-hero-card {
        min-height: 72px;
        padding: 12px;
        border-right: 1px solid rgba(255, 255, 255, .16);
        border-bottom: 1px solid rgba(255, 255, 255, .16);
    }

    .dw-hero-card:nth-child(2) {
        border-right: 0;
        border-radius: 0 11px 0 0;
    }

    .dw-hero-card:nth-child(3) {
        border-bottom: 0;
        border-radius: 0 0 0 11px;
    }

    .dw-hero-card:nth-child(4) {
        border-right: 0;
        border-bottom: 0;
        border-radius: 0 0 11px 0;
    }

    .dw-hero-card-title {
        font-size: 11px;
    }

    .dw-hero-card-meta {
        font-size: 10px;
    }

    .dw-hero-counter {
        right: 22px;
        bottom: 195px;
    }
}

@media (max-width: 420px) {

    .dw-hero-frame {
        padding-top: 80px;
    }

    .dw-hero-eyebrow {
        font-size: 10px;
    }

    .dw-hero-title {
        font-size: 42px;
    }

    .dw-hero-card {
        gap: 8px;
        padding: 10px 8px;
    }

    .dw-hero-card-number {
        font-size: 10px;
    }
}


/* ================================================================
   18. HERO — REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {

    .dw-hero-background,
    .dw-hero-cta,
    .dw-hero-card,
    .dw-hero-card-arrow {
        transition: none !important;
    }

    .dw-hero-copy {
        animation: none !important;
    }

    .dw-hero-card-progress-fill {
        animation: none !important;
        transform: scaleX(1);
    }
}

/* .site-header.header-glass {
    position: absolute !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0 !important;
    z-index: 9999;
} */

/* Remove spacing above the first hero section */
main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

main>section:first-child {
    margin-top: 0 !important;
}

[data-anim-delay="0"] {
    --anim-delay: 0ms;
}

[data-anim-delay="80"] {
    --anim-delay: 80ms;
}

[data-anim-delay="100"] {
    --anim-delay: 100ms;
}

[data-anim-delay="120"] {
    --anim-delay: 120ms;
}

[data-anim-delay="140"] {
    --anim-delay: 140ms;
}

[data-anim-delay="160"] {
    --anim-delay: 160ms;
}

[data-anim-delay="180"] {
    --anim-delay: 180ms;
}

[data-anim-delay="200"] {
    --anim-delay: 200ms;
}

[data-anim-delay="240"] {
    --anim-delay: 240ms;
}

[data-anim-delay="260"] {
    --anim-delay: 260ms;
}


.dw-wealth-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    position: relative;
    isolation: isolate;
}

/* Cards */
.dw-wealth-card {
    position: relative;
    min-width: 0;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 12px;
    isolation: isolate;
    background: var(--brand-charcoal);
    cursor: pointer;
}

/* Image */
.dw-wealth-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transition: transform 700ms ease;
}

/* Overlay */
.dw-wealth-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top,
            rgba(15, 20, 16, .94),
            rgba(15, 20, 16, .12) 85%);
}

/* Description */
.dw-wealth-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, .9);
    transform: translateY(10px);
    transition:
        max-height var(--duration-base) var(--ease-out),
        margin var(--duration-base) var(--ease-out),
        opacity var(--duration-base) var(--ease-out),
        transform var(--duration-base) var(--ease-out);
}

.dw-wealth-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 14px;
    color: white;
}

/* Hover */
.dw-wealth-card:hover .dw-wealth-image,
.dw-wealth-card:focus-visible .dw-wealth-image {
    transform: scale(1.04);
}

.dw-wealth-card:hover .dw-wealth-description,
.dw-wealth-card:focus-visible .dw-wealth-description {
    max-height: 150px;
    opacity: 1;
    margin-top: 10px;
    transform: translateY(0);
}

/* Tablet */
@media (max-width: 991px) {
    .dw-wealth-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Mobile */
@media (max-width: 575px) {
    .dw-wealth-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .dw-wealth-card {
        aspect-ratio: 4 / 5;
    }

    .dw-wealth-description {
        max-height: 150px;
        opacity: 1;
        margin-top: 8px;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {

    .dw-wealth-image,
    .dw-wealth-description {
        transition: none;
    }
}


/* Animated wealth journey connector */

.dw-wealth-grid::before {
    content: "";
    position: absolute;
    top: -22px;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: -1;
    background: linear-gradient(90deg,
            transparent,
            var(--brand-lime),
            #d9e7a0,
            var(--brand-lime),
            transparent);
    background-size: 200% 100%;
    animation: wealthJourney 5s linear infinite;
}

.dw-wealth-grid::after {
    content: "";
    position: absolute;
    top: -26px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--brand-lime);
    box-shadow: 0 0 12px var(--brand-lime);
    animation: wealthPulse 5s ease-in-out infinite;
}

@keyframes wealthJourney {
    from {
        background-position: 100% 0;
    }

    to {
        background-position: -100% 0;
    }
}

@keyframes wealthPulse {
    0% {
        left: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        left: calc(100% - 9px);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {

    .dw-wealth-grid::before,
    .dw-wealth-grid::after {
        animation: none;
    }
}


.dw-wealth-identity {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin-bottom: 12px;
}

.dw-wealth-letter {
    font-size: clamp(30px, 2.5vw, 40px);
    font-weight: 300;
    line-height: 1;
    color: var(--brand-lime);
    margin: 0;
}

.dw-wealth-word {
    font-size: clamp(14px, 1.2vw, 17px);
    font-weight: 500;
    letter-spacing: 0.04em;
    color: #fff;
}

.dw-wealth-title {
    font-size: clamp(14px, 1.15vw, 18px);
    line-height: 1.3;
    font-weight: 500;
    margin: 0;
}

.megamenu-item {
    transition: all 0.3s ease;
}

.megamenu-item.active {
    border-color: var(--color-primary);
}

.nav-megamenu--media .group {
    animation: menuFade 0.35s ease;
}

@keyframes menuFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-study-card {
    animation: caseStudyCardEnterRight 750ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.case-study-slide--next .case-study-card {
    animation-name: caseStudyCardEnterRight;
}

.case-study-slide--prev .case-study-card {
    animation-name: caseStudyCardEnterLeft;
}

@keyframes caseStudyCardEnterRight {
    from {
        opacity: 0;
        transform: translate3d(45px, 0, 0);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
}

@keyframes caseStudyCardEnterLeft {
    from {
        opacity: 0;
        transform: translate3d(-45px, 0, 0);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .case-study-card {
        animation: none !important;
        transition: none !important;
    }
}