/* ==========================================================================
   Mori Capital Management - Theme Override (palette + small additions only)
   Loaded after custom.css. Does NOT introduce new component layouts -
   theme structure (hero, about, services, why-choose, footer) is kept.
   ========================================================================== */

/* ----- Palette override -------------------------------------------------- */
:root {
    --primary-color:           #1B3A5C !important;   /* dark navy for headings / dark sections */
    --secondary-color:         #F5F7FA !important;
    --bg-color:                #FFFFFF !important;
    --text-color:              #5A6B7B !important;
    --accent-color:            #1ABC9C !important;   /* Mori brand teal — CTAs, labels, links */
    --accent-secondary-color:  #122842 !important;   /* deeper navy — sticky header, dark sections */
    --divider-color:           #1B3A5C1A !important;
}

body {
    font-family: 'Inter', 'DM Sans', 'Google Sans', system-ui, sans-serif !important;
}

/* ----- Hero -------------------------------------------------------------- */
.hero {
    min-height: clamp(560px, 90vh, 820px) !important;
    padding-top: clamp(120px, 14vh, 160px) !important;
    padding-bottom: clamp(60px, 8vh, 100px) !important;
    overflow: hidden !important;
}
/* Theme's ::before overlay disabled — we use .hero-bg-overlay div instead */
.hero::before {
    display: none !important;
}

/* ----- Hero slider (crossfade between slides) --------------------------- */
.hero.hero-slider { position: relative; }
/* Background layers stacked, fading between each other */
.hero-bg-stack { position: absolute; inset: 0; z-index: 0; }
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.hero-bg.is-active { opacity: 1; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; }
/* Keep the text content above the overlay */
.hero.hero-slider > .container { position: relative; z-index: 2; }
/* All text slides occupy the same grid cell so the hero height stays
   constant (tallest slide wins) and the crossfade never makes it jump. */
.hero-text-stack { display: grid; }
.hero-text {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out;
}
.hero-text.is-active { opacity: 1; visibility: visible; }
/* Slide indicator dots */
.hero-dots {
    position: absolute;
    left: 0; right: 0;
    bottom: clamp(22px, 5vh, 46px);
    z-index: 5;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.hero-dot {
    width: 10px; height: 10px;
    padding: 0; border: none; cursor: pointer;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.3s ease, transform 0.3s ease;
}
.hero-dot:hover { background: rgba(255, 255, 255, 0.7); }
.hero-dot.is-active { background: var(--mori-accent, #1ABC9C); transform: scale(1.25); }

/* ----- Sub-page header (.page-header) — slim banner -------------------- */
.page-header {
    padding: 160px 0 50px !important;     /* theme default was 280/170 */
    min-height: auto !important;
}
.page-header:before {
    background: linear-gradient(135deg, rgba(8,18,33,.62) 0%, rgba(27,58,92,.38) 100%) !important;
}
.page-header .page-header-box {
    padding: 0 !important;                /* partial inline-padding is now unnecessary */
}
.page-header h1 {
    font-size: clamp(26px, 3vw, 38px) !important;
    margin-bottom: 10px !important;
}
@media (max-width: 991px) {
    .page-header { padding: 130px 0 40px !important; }
    .page-header h1 { font-size: clamp(22px, 3.5vw, 30px) !important; }
}
@media (max-width: 600px) {
    .page-header { padding: 110px 0 32px !important; }
}
.hero .section-title h1 {
    font-size: clamp(28px, 3.4vw, 44px) !important;
    line-height: 1.12em !important;
    letter-spacing: -0.01em;
}
.hero .section-title-content p {
    font-size: 15.5px !important;
    line-height: 1.55 !important;
    margin-bottom: 18px;
}
.hero .section-row { row-gap: 18px; }
/* Small footnote under the hero headline (e.g. "*Mori Eastern European Fund") */
.hero-footnote {
    margin: 10px 0 0;
    font-size: 13px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.01em;
}

/* PRI "Signatory of" logo band */
.pri-signatory {
    padding: 40px 0;
    background: #fff;
    text-align: center;
    border-top: 1px solid var(--mori-border, #E1E7EE);
}
.pri-signatory__img {
    width: 260px;
    max-width: 70%;
    height: auto;
    opacity: 0.92;
    transition: opacity 0.2s ease;
}
.pri-signatory a:hover .pri-signatory__img { opacity: 1; }
@media (max-width: 575px) {
    .pri-signatory { padding: 30px 0; }
    .pri-signatory__img { width: 200px; }
}

/* Team bio may contain HTML paragraphs (WYSIWYG). Keep paragraph spacing
   tidy — no stray gap at the top or bottom of the block. */
.team-bio-text p { margin: 0 0 12px; }
.team-bio-text p:last-child { margin-bottom: 0; }
.team-bio-text ul, .team-bio-text ol { margin: 0 0 12px; padding-left: 20px; }

/* ----- Team item — fit longer titles on one line with social icons ------ */
.team-item-content h2 {
    font-size: 20px !important;
    line-height: 1.3em !important;
}
.team-social-list { flex-wrap: nowrap !important; }
.team-social-list p {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    flex: 1 1 auto;
    min-width: 0;
}
.team-social-list ul { flex-shrink: 0; }

/* ----- Logo prominence (header / footer) --------------------------------- */
.main-header .navbar {
    padding: 18px 0 10px !important;
}
.main-header .navbar-brand img {
    height: 110px;
    width: auto;
    max-width: 400px;
}
.main-header .navbar-brand .logo-dark { display: none; }

.header-sticky.fixed-header .navbar-brand img,
.header-sticky.sticky .navbar-brand img,
.header-sticky.active .navbar-brand img {
    height: 84px;
    transition: height .25s ease;
}
.header-sticky.active .navbar { padding: 10px 0 8px !important; }

/* ----- Tighter menu spacing + smaller font ------------------------------- */
.main-menu ul li a {
    font-size: 14px !important;
    padding: 10px 6px !important;
    white-space: nowrap;
}
.main-menu .nav-menu-wrapper {
    margin: 0 0.4vw !important;
}
/* On large screens, shrink slightly more if needed */
@media (min-width: 992px) and (max-width: 1399px) {
    .main-menu ul li a { font-size: 13px !important; padding: 9px 5px !important; }
    .main-header .navbar-brand img { height: 90px !important; }
}
.main-menu ul li {
    margin: 0 1px !important;
}
.main-menu ul li.submenu > a:after {
    font-size: 11px !important;
    margin-left: 4px !important;
}

/* ----- Sticky scroll state: WHITE bg + DARK logo + dark nav text --------- */
header.main-header .header-sticky.active {
    background: #fff !important;
    border-bottom: 1px solid var(--divider-color) !important;
    box-shadow: 0 4px 16px rgba(8, 18, 33, .06);
}
/* Sticky header: white background + dark logo */
header.main-header .header-sticky.active {
    background: #fff !important;
    border-bottom: 1px solid rgba(0,0,0,.06) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.06) !important;
}
header.main-header .header-sticky.active .navbar-brand .logo-light { display: none; }
header.main-header .header-sticky.active .navbar-brand .logo-dark  { display: inline-block; }
header.main-header .header-sticky.active .main-menu ul li a { color: var(--primary-color) !important; }
header.main-header .header-sticky.active .btn-default { color: var(--primary-color); }

/* ── Submenu dropdown — readable on any header state ── */
.main-menu ul ul {
    background: #0E1F36 !important;    /* deep navy, not the teal accent */
    border-radius: 10px !important;
    padding: 6px 0 !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
    overflow: hidden;
    min-width: 240px !important;
    width: auto !important;
}
.main-menu ul ul li a,
.main-menu ul ul li.submenu > a {
    color: #fff !important;
    background: transparent !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    display: block;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.main-menu ul ul li a:hover,
.main-menu ul ul li a:focus {
    background: rgba(26,188,156,.18) !important;   /* subtle teal tint */
    color: var(--accent-color) !important;
}
/* Sticky header still uses dark submenu — keep override */
header.main-header .header-sticky.active .main-menu ul ul li a {
    color: #fff !important;
}
header.main-header .header-sticky.active .main-menu ul ul li a:hover {
    color: var(--accent-color) !important;
}
header.main-header .header-sticky.active .main-menu ul li a {
    color: var(--primary-color) !important;
}
header.main-header .header-sticky.active .main-menu ul li a:hover,
header.main-header .header-sticky.active .main-menu ul li.active > a {
    color: var(--accent-color) !important;
}
header.main-header .header-sticky.active .main-menu ul li.submenu > a:after {
    color: var(--mori-muted, #7A8B99);
}
/* Submenu dropdown when sticky stays styled normally — fine on white */

/* ── Custom hamburger button ── */
.mori-hamburger {
    display: none;
    width: 44px; height: 44px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}
.mori-hamburger span {
    display: block; width: 20px; height: 2px;
    background: #fff; border-radius: 2px;
    position: absolute; left: 50%; transform: translateX(-50%);
    transition: all .25s ease;
}
.mori-hamburger span:nth-child(1) { top: 14px; }
.mori-hamburger span:nth-child(2) { top: 21px; }
.mori-hamburger span:nth-child(3) { top: 28px; }
.mori-hamburger.active span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.mori-hamburger.active span:nth-child(2) { opacity: 0; }
.mori-hamburger.active span:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

/* ── Mobile nav overlay ── */
.mori-mobile-nav {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(14,31,54,.97);
    z-index: 10000;
    display: flex; flex-direction: column; justify-content: flex-start;
    align-items: center; padding-top: 90px;
    opacity: 0; visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mori-mobile-nav.open { opacity: 1; visibility: visible; }
.mori-mobile-nav .slicknav_nav {
    display: block !important;
    list-style: none; margin: 0; padding: 0 20px;
    text-align: center; width: 100%; max-width: 340px;
}
.mori-mobile-nav .slicknav_nav li { border-bottom: 1px solid rgba(255,255,255,.06); }
.mori-mobile-nav .slicknav_nav li a,
.mori-mobile-nav .slicknav_nav .slicknav_row {
    display: block; color: #fff !important; font-size: 17px !important; font-weight: 600;
    padding: 15px 8px !important; text-decoration: none;
    transition: color .15s; background: none !important; border-radius: 0 !important;
}
.mori-mobile-nav .slicknav_nav li a:hover { color: var(--accent-color) !important; }
.mori-mobile-nav .slicknav_nav ul { list-style: none; padding: 0; margin: 0; }
.mori-mobile-nav .slicknav_nav ul ul li a { font-size: 14px !important; font-weight: 400; color: rgba(255,255,255,.55) !important; padding: 10px 8px !important; }
.mori-mobile-nav .slicknav_arrow { display: none !important; }
/* Language switcher inside mobile nav */
.mori-mobile-nav .mori-nav-lang {
    display: flex; gap: 12px; margin-top: 24px; justify-content: center;
}
.mori-mobile-nav .mori-nav-lang a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    font-size: 13px; font-weight: 700; letter-spacing: .05em;
    text-decoration: none; transition: all .2s;
    color: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.15);
}
.mori-mobile-nav .mori-nav-lang a.active {
    background: var(--accent-color); color: #fff; border-color: var(--accent-color);
}
/* Close (X) button — top-right of the mobile menu overlay */
.mori-mobile-close {
    position: fixed; top: 15px; right: 16px;
    width: 44px; height: 44px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 50%;
    color: #fff; font-size: 26px; line-height: 1; font-weight: 300;
    cursor: pointer; z-index: 10002;
    -webkit-tap-highlight-color: transparent;
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.mori-mobile-close:hover,
.mori-mobile-close:active { background: var(--accent-color); border-color: var(--accent-color); transform: rotate(90deg); }

/* ── Mobile bottom tab bar ── */
.mori-tabbar {
    display: none;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid #E1E7EE;
    z-index: 9990;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}
.mori-tabbar__inner {
    display: flex; justify-content: space-around; align-items: stretch;
}
.mori-tabbar__item {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 2px;
    padding: 10px 4px 8px; text-decoration: none;
    color: #7A8B99; font-size: 10px; font-weight: 600;
    letter-spacing: .02em; transition: color .15s;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    min-height: 48px;
}
.mori-tabbar__item i { font-size: 19px; transition: color .15s; }
.mori-tabbar__item:hover,
.mori-tabbar__item.active { color: #1ABC9C; }
.mori-tabbar__item.active::before {
    content: ''; position: absolute; top: 0; left: 20%; right: 20%;
    height: 2.5px; background: #1ABC9C; border-radius: 0 0 3px 3px;
}

@media (max-width: 991px) {
    /* Show tab bar */
    .mori-tabbar { display: block; }
    /* Add bottom padding to body so footer content isn't hidden behind tab bar */
    body { padding-bottom: 64px !important; }
    /* Adjust gate/cookie modals above tab bar */
    .mori-cookie { bottom: 70px !important; }
    /* Prevent horizontal overflow */
    html, body { overflow-x: hidden !important; }

    /* Topbar hidden */
    .topbar { display: none !important; }

    /* Header: dark-grey → Mori-teal gradient. The left (logo) side stays dark
       so the light logo reads clearly; it warms into the brand teal on the
       right behind the menu button. */
    header.main-header { position: relative !important; top: 0 !important; z-index: 9999 !important; }
    header.main-header .header-sticky {
        background: linear-gradient(90deg, #25303B 0%, #25303B 30%, #1ABC9C 112%) !important;
        position: relative !important;
    }
    .main-header .navbar { padding: 7px 0 6px !important; }
    .main-header .navbar .container { display: flex !important; align-items: center; justify-content: space-between; }
    /* Compact logo on phones. Use a high-specificity selector so the sticky
       state (which is more specific on desktop) can't override it and blow
       the header up on scroll. */
    header.main-header .navbar-brand img,
    header.main-header .header-sticky.active .navbar-brand img,
    header.main-header .header-sticky.sticky .navbar-brand img,
    header.main-header .header-sticky.fixed-header .navbar-brand img {
        height: 46px !important;
        transition: height .2s ease;
    }

    /* Light logo always on teal */
    header.main-header .navbar-brand .logo-light { display: inline-block !important; }
    header.main-header .navbar-brand .logo-dark  { display: none !important; }

    /* Hide desktop nav */
    .main-header .collapse.navbar-collapse { display: none !important; }

    /* Show hamburger */
    .mori-hamburger { display: block; z-index: 10001; }

    /* Hide original theme toggle + slicknav (we use our own) */
    .navbar-toggle { display: none !important; }
    .responsive-menu { display: none !important; }

    /* Sticky scroll */
    header.main-header .header-sticky.active {
        position: fixed !important; top: 0 !important; left: 0 !important; right: 0 !important;
        background: linear-gradient(90deg, #25303B 0%, #25303B 30%, #1ABC9C 112%) !important;
        box-shadow: 0 2px 12px rgba(0,0,0,.18) !important;
        z-index: 9999 !important;
    }
    /* Keep the sticky bar just as compact as the static one (the desktop
       rule sets a taller padding that would otherwise win here). */
    header.main-header .header-sticky.active .navbar { padding: 7px 0 6px !important; }
    header.main-header .header-sticky.active .navbar-brand .logo-light { display: inline-block !important; }
    header.main-header .header-sticky.active .navbar-brand .logo-dark  { display: none !important; }
}
.footer-logo img {
    height: 64px;
    width: auto;
}

/* ----- EN/DE Language Switcher (new small component) -------------------- */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 999px;
    padding: 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-left: 14px;
}
.lang-switcher a {
    padding: 4px 12px;
    border-radius: 999px;
    color: rgba(255,255,255,.7) !important;
    transition: all .2s ease;
    text-decoration: none;
}
.lang-switcher a.active {
    background: #fff;
    color: var(--primary-color) !important;
}
.lang-switcher a:hover:not(.active) { color: #fff !important; }

/* ----- MFSA Regulator badge (footer cta-box, between logo and socials) -- */
.footer-cta-box .footer-regulator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.06);
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    color: rgba(255,255,255,.78) !important;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.10);
    transition: all .2s ease;
    white-space: nowrap;
}
.footer-cta-box .footer-regulator i { color: var(--accent-color); }
.footer-cta-box .footer-regulator:hover {
    background: rgba(255,255,255,.10);
    color: #fff !important;
    border-color: var(--accent-color);
}
@media (max-width: 767px) {
    .footer-cta-box .footer-regulator { font-size: 11px; padding: 6px 10px; }
}

/* ----- Regulatory disclaimer (footer) ----------------------------------- */
.footer-disclaimer {
    padding: 24px 0 4px;
    border-top: 1px solid rgba(255,255,255,.10);
    margin-top: 18px;
    font-size: 12px;
    color: rgba(255,255,255,.55);
    line-height: 1.7;
}
.footer-disclaimer strong { color: rgba(255,255,255,.82); font-weight: 600; }

/* ----- Scrollbar / selection consistency ------------------------------- */
::-webkit-scrollbar-track { background-color: var(--primary-color); }
::-webkit-scrollbar { width: 8px; background-color: var(--accent-color); }
::-webkit-scrollbar-thumb { background: var(--accent-color); }
::selection { background-color: var(--accent-color); color: #fff; filter: none; }

/* ==========================================================================
   Cinematic 3D Showcase
   ========================================================================== */
.mori-cinematic {
    position: relative;
    background: linear-gradient(180deg, #0E1F36 0%, #122842 60%, #0E1F36 100%);
    color: #fff;
    padding: 110px 0;
    overflow: hidden;
    isolation: isolate;
}
.mori-cinematic__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.mori-cinematic__grid {
    position: absolute;
    inset: -2px;
    background-image:
        linear-gradient(rgba(93, 173, 226, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(93, 173, 226, .07) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.mori-cinematic__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
}
.mori-cinematic__glow--a { width: 480px; height: 480px; left: -120px; top: -120px; background: #1ABC9C; }
.mori-cinematic__glow--b { width: 540px; height: 540px; right: -160px; bottom: -180px; background: #2980B9; opacity: .22; }
.mori-cinematic .container { position: relative; z-index: 2; }

.mori-cinematic__copy { padding-right: 30px; }
.mori-cinematic__copy .section-sub-title {
    color: var(--accent-color) !important;
    font-size: 12px !important;
    letter-spacing: 0.18em !important;
}
.mori-cinematic__copy .section-sub-title::before { background: var(--accent-color) !important; }
.mori-cinematic__copy h2 {
    color: #fff !important;
    font-size: clamp(28px, 3.2vw, 40px) !important;
    line-height: 1.15em !important;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
}
.mori-cinematic__copy p {
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 26px;
}
.mori-cinematic__cta { margin-bottom: 36px; }
.mori-cinematic__stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 24px 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.mori-cinematic__stats .num {
    display: block;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.mori-cinematic__stats .lbl {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, .55);
    font-weight: 500;
}

/* ----- 3D tilt stage ----- */
.mori-cinematic__stage {
    perspective: 1400px;
    position: relative;
}
.mori-cinematic__card {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 3.6;
    border-radius: 16px;
    background: linear-gradient(140deg, rgba(255,255,255,.06) 0%, rgba(26, 188, 156, .08) 100%);
    border: 1px solid rgba(93, 173, 226, .22);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, .35),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform-style: preserve-3d;
    transition: transform .25s cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
}
.mori-cinematic__card .tilt-layer {
    position: absolute;
    transition: transform .35s cubic-bezier(.2, .8, .2, 1);
    will-change: transform;
}
.tilt-back {
    inset: 0;
    overflow: hidden;
    border-radius: 16px;
    transform: translateZ(10px);
}
.tilt-back svg { width: 100%; height: 100%; display: block; }

.tilt-mid {
    inset: 22px;
    transform: translateZ(40px);
}
.tilt-chart {
    background: rgba(8, 18, 33, .65);
    border: 1px solid rgba(93, 173, 226, .26);
    border-radius: 12px;
    padding: 18px 20px 14px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .25);
}
.tilt-chart__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}
.tilt-chart__head .lbl {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, .55);
    font-weight: 600;
    margin-bottom: 4px;
}
.tilt-chart__head .val {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}
.tilt-chart__head .up {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-color);
    background: rgba(26, 188, 156, .14);
    padding: 3px 8px;
    border-radius: 999px;
    margin-left: 6px;
    vertical-align: middle;
}
.tilt-chart__pills {
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, .05);
    padding: 3px;
    border-radius: 999px;
}
.tilt-chart__pills .pill {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, .65);
    padding: 4px 10px;
    border-radius: 999px;
    cursor: pointer;
    transition: all .2s ease;
}
.tilt-chart__pills .pill.active {
    background: var(--accent-color);
    color: #fff;
}
.tilt-chart__svg { flex: 1; min-height: 100px; width: 100%; }
.tilt-chart__foot {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, .45);
    margin-top: 4px;
}

/* Disciplined-process card (replaces the illustrative chart) */
.tilt-process { justify-content: center; gap: 16px; }
.tilt-process__head {
    font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: #5DADE2; margin-bottom: 2px;
}
.tilt-process__step { display: flex; align-items: flex-start; gap: 14px; }
.tilt-process__ico {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
    background: rgba(26, 188, 156, .14); color: #1ABC9C;
    display: inline-flex; align-items: center; justify-content: center; font-size: 17px;
}
.tilt-process__t { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.tilt-process__d { color: rgba(255, 255, 255, .62); font-size: 12.5px; line-height: 1.5; }

/* Floating chips */
.tilt-chip {
    background: rgba(8, 18, 33, .9);
    border: 1px solid rgba(93, 173, 226, .26);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .35);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    min-width: 200px;
}
.tilt-chip i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(26, 188, 156, .18);
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.tilt-chip .chip-lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, .55);
    font-weight: 600;
    margin-bottom: 2px;
}
.tilt-chip .chip-val {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}
.tilt-chip--ccy { top: -22px; left: 32px; transform: translateZ(75px); }
.tilt-chip--perf { right: -22px; top: 32%; transform: translateZ(95px); }
.tilt-chip--aum { bottom: -22px; right: 30px; transform: translateZ(80px); }

@media (max-width: 991px) {
    .mori-cinematic { padding: 70px 0; }
    .mori-cinematic__copy { padding-right: 0; margin-bottom: 50px; }
    .mori-cinematic__card { aspect-ratio: 5 / 3.4; }
    .tilt-chip { min-width: 170px; padding: 10px 12px; }
    .tilt-chip--ccy { top: -16px; left: 16px; }
    .tilt-chip--perf { right: -10px; top: 28%; }
    .tilt-chip--aum { bottom: -16px; right: 16px; }
}
@media (max-width: 600px) {
    .mori-cinematic__stats { grid-template-columns: 1fr 1fr; gap: 18px; }
    .tilt-chip--perf { display: none; }
    .tilt-chip { min-width: auto; }
    .tilt-chart__head .val { font-size: 18px; }
}

/* ==========================================================================
   Demo-mode toast (shown when a sub-page link is clicked)
   ========================================================================== */
.mori-demo-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translate(-50%, -120%);
    background: var(--primary-color);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    z-index: 11000;
    box-shadow: 0 16px 40px rgba(8, 18, 33, .3);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .25s ease;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
}
.mori-demo-toast i { color: var(--accent-color); font-size: 12px; }
.mori-demo-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* ==========================================================================
   Investor Gate Modal (first-visit disclaimer)
   ========================================================================== */
.mori-gate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(8, 18, 33, .82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.mori-gate.show { opacity: 1; visibility: visible; }
.mori-gate__panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(8, 18, 33, .35);
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 36px 36px 28px;
    transform: translateY(16px);
    transition: transform .3s ease;
}
.mori-gate.show .mori-gate__panel { transform: translateY(0); }
.mori-gate__logo {
    display: block;
    height: 52px;
    margin: 0 auto 22px;
}
.mori-gate__eyebrow {
    text-align: center;
    color: var(--accent-color);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.mori-gate__title {
    text-align: center;
    color: var(--primary-color);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 14px;
}
.mori-gate__intro {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 18px;
    text-align: left;
}
.mori-gate__check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 8px;
    background: #F5F7FA;
    border: 1px solid var(--divider-color);
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.5;
    cursor: pointer;
    margin-bottom: 12px;
}
.mori-gate__check input {
    margin-top: 3px;
    accent-color: var(--accent-color);
    flex-shrink: 0;
}
.mori-gate__buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
}
.mori-gate__btn {
    padding: 13px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .2s ease;
    text-align: center;
    line-height: 1.2;
}
.mori-gate__btn--primary {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}
.mori-gate__btn--primary:hover { background: var(--accent-secondary-color); border-color: var(--accent-secondary-color); }
.mori-gate__btn--primary:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.mori-gate__btn--secondary {
    background: #fff;
    color: var(--primary-color);
    border-color: var(--divider-color);
}
.mori-gate__btn--secondary:hover { background: #F5F7FA; border-color: var(--primary-color); }
.mori-gate__decline {
    display: block;
    margin: 14px auto 0;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 12px;
    text-decoration: underline;
    cursor: pointer;
    text-align: center;
}
.mori-gate__decline:hover { color: var(--primary-color); }
.mori-gate__msg-decline {
    background: #FFF6E0;
    border: 1px solid #F5C76A;
    color: #6F4F00;
    padding: 16px 18px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.55;
    margin-top: 14px;
    display: none;
}
.mori-gate.declined .mori-gate__msg-decline { display: block; }
.mori-gate.declined .mori-gate__buttons,
.mori-gate.declined .mori-gate__decline,
.mori-gate.declined .mori-gate__check { display: none; }
@media (max-width: 480px) {
    .mori-gate__panel { padding: 26px 22px 22px; }
    .mori-gate__title { font-size: 19px; }
    .mori-gate__buttons { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Cookie Consent Banner
   ========================================================================== */
.mori-cookie {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 720px;
    margin: 0 auto;
    z-index: 9000;
    background: var(--accent-secondary-color);
    color: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
    padding: 18px 20px;
    display: flex;
    gap: 18px;
    align-items: center;
    transform: translateY(140%);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    flex-wrap: wrap;
}
.mori-cookie.show { transform: translateY(0); }
.mori-cookie__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(26, 188, 156, .18);
    color: var(--accent-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.mori-cookie__text {
    flex: 1;
    min-width: 240px;
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .9);
}
.mori-cookie__text a {
    color: #fff;
    text-decoration: underline;
}
.mori-cookie__text a:hover { color: var(--accent-color); }
.mori-cookie__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.mori-cookie__btn {
    padding: 9px 16px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 12.5px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .2s ease;
    line-height: 1.2;
    white-space: nowrap;
}
.mori-cookie__btn--accept {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}
.mori-cookie__btn--accept:hover { background: #16A085; border-color: #16A085; }
.mori-cookie__btn--decline {
    background: transparent;
    color: rgba(255, 255, 255, .85);
    border-color: rgba(255, 255, 255, .25);
}
.mori-cookie__btn--decline:hover { background: rgba(255, 255, 255, .08); color: #fff; }
@media (max-width: 600px) {
    .mori-cookie { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; }
    .mori-cookie__actions { justify-content: stretch; }
    .mori-cookie__btn { flex: 1; }
    .mori-cookie__icon { display: none; }
}

/* ==========================================================================
   Latest Insights / Views
   ========================================================================== */
.mori-insights .insight-card {
    background: #fff;
    border: 1px solid var(--divider-color);
    border-radius: 12px;
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    text-decoration: none;
}
.mori-insights .insight-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 18px 40px rgba(27, 58, 92, .12);
}
.mori-insights .insight-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    color: var(--accent-color);
}
.mori-insights .insight-meta .date { color: var(--text-color); font-weight: 500; letter-spacing: 0.05em; text-transform: none; }
.mori-insights .insight-card h3 {
    font-size: 19px;
    line-height: 1.35;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
}
.mori-insights .insight-card p {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-color);
    margin: 0;
    flex: 1;
}
.mori-insights .insight-link {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* ----- Tablet & below (<= 1199px) --------------------------------------- */
@media (max-width: 1199px) {
    .hero { min-height: 720px !important; }

    /* Awards rating-bodies strip — 2-column wrap on tablet */
    .rating-bodies { padding: 22px 24px !important; }
    .rating-bodies > div:last-child {
        gap: 18px 28px !important;
    }
    .team-item-content h2 { font-size: 18px !important; }
    .team-social-list p { font-size: 12px !important; }
}

/* ----- Tablet (<= 991px) ------------------------------------------------ */
@media (max-width: 991px) {
    .hero { min-height: 600px !important; padding: 100px 0 70px !important; }
    .hero .section-title h1 {
        font-size: 36px !important;
        line-height: 1.15em !important;
    }
    .hero .section-title-content p { font-size: 16px !important; }

    .about-us .section-title h2,
    .our-services .section-title h2,
    .why-choose-us .section-title h2,
    .our-awards .section-title h2,
    .page-team .section-title h2 {
        font-size: 24px !important;
        line-height: 1.25em !important;
    }

    .our-awards { padding: 56px 0 !important; }
    .page-team { padding: 56px 0 !important; }

    /* Awards rating-bodies strip — stack into rows of 2 on tablet */
    .rating-bodies {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
    }
    .rating-bodies > div:last-child {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 14px 20px !important;
        width: 100%;
    }

    /* ── Global image safety ── */
    img { max-width: 100% !important; height: auto !important; }
    figure { max-width: 100% !important; }

    /* About section: single column, image full width */
    .about-us-image-box { display: flex; flex-direction: column; align-items: center; }
    .about-us-image-box-1 { width: 100% !important; }
    .about-us-image-box-2 { display: none !important; }
    .about-us-image-box-1 .about-us-image::before { display: none; }
    .about-us-image-box-1 .about-us-image figure { border: none !important; border-radius: 12px !important; }
    .about-us-content { padding-left: 0 !important; margin-top: 30px; }
    .contact-us-circle { display: none !important; }

    /* Counter items: 2-column grid */
    .about-counter-item-list { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
    .about-counter-item { text-align: center; }

    /* Why choose section image */
    .why-choose-us-image { margin-bottom: 30px !important; }
    .why-choose-us-image figure { border-radius: 12px !important; overflow: hidden; }

    /* Fund cards: proper image containment */
    .service-item { border-radius: 12px !important; }
    .service-item-image img { width: 100% !important; height: 100% !important; object-fit: cover !important; }

    /* Satisfy client images (fund managers) */
    .satisfy-client-image { width: 40px !important; height: 40px !important; }
    .satisfy-client-image figure img { border-radius: 50% !important; }

    /* Icon boxes */
    .icon-box img { max-width: 48px !important; }
    .why-choose-body-icon-box img { max-width: 42px !important; }

    /* Cinematic section: tighter on tablet */
    .mori-cinematic { padding: 70px 0 !important; }
    .mori-cinematic__glow { display: none !important; }

    /* About body image hides bulky overlay decoration on small screens */
    .about-us .about-us-image-box-2 { display: none; }
}

/* ----- Mobile (<= 767px) ------------------------------------------------ */
@media (max-width: 767px) {
    /* Hero buttons: contain arrow circle overflow */
    .hero .section-content-btn { overflow: hidden; }
    .hero .btn-default { font-size: 14px !important; padding: 13px 20px !important; }

    /* Body text slightly smaller on phones */
    .section-title-content p,
    .about-us-content p,
    .service-item-content p { font-size: 14px !important; }

    /* Footer disclaimer readable */
    .footer-disclaimer { font-size: 11.5px !important; line-height: 1.65 !important; }

    /* Header compact on phone */
    .main-header .navbar { padding: 8px 0 6px !important; }
    .main-header .navbar-brand img { height: 38px; max-width: 150px; }

    /* All sections: prevent overflow from button arrows */
    .hero, .about-us, .our-services, .why-choose-us, .our-awards, .page-team,
    .our-blog, .main-footer { overflow-x: hidden !important; }
    .section-btn { overflow: hidden; }

    /* About section: tighter spacing */
    .about-us { padding: 40px 0 !important; }
    .about-us-image-box-1 .about-us-image figure { border-radius: 10px !important; }
    .about-us-image-box-1 .about-us-image figure img { border-radius: 10px !important; aspect-ratio: 16/10 !important; object-fit: cover !important; }
    .about-highlighted-box { padding: 16px !important; margin-top: 18px !important; }
    .about-highlighted-box h3 { font-size: 15px !important; line-height: 1.5 !important; }
    .about-counter-item h2 { font-size: 28px !important; }
    .about-counter-item p { font-size: 12px !important; }

    /* Fund cards: shorter on phone */
    .service-item { min-height: 360px !important; border-radius: 10px !important; }
    .service-item-body { padding: 14px !important; }
    .service-item-content h2 { font-size: 18px !important; }
    .service-item-content p { font-size: 13px !important; line-height: 1.5 !important; }

    /* Team section on phone */
    .team-item-content h2 { font-size: 17px !important; }
    .team-social-list p { font-size: 11px !important; }

    /* Why choose section */
    .why-choose-us { padding: 40px 0 !important; }
    .why-choose-body-list li { font-size: 14px !important; }

    /* Footer: tighter on phone */
    .main-footer { padding: 40px 0 20px !important; }
    .footer-links-box { flex-direction: column !important; gap: 24px !important; }
    .footer-links h3 { font-size: 15px !important; }
    .footer-links ul li a { font-size: 13px !important; }
    .footer-cta-box { flex-direction: column !important; align-items: flex-start !important; gap: 16px !important; }
    .footer-logo img { height: 48px !important; }
    .footer-copyright { flex-direction: column !important; gap: 8px !important; text-align: center !important; }
    .footer-copyright-text p { font-size: 11px !important; }
    .footer-privacy-policy ul { justify-content: center !important; }
    .footer-privacy-policy ul li a { font-size: 11px !important; }

    /* Newsletter form in footer */
    .footer-newsletter-form { flex-direction: column !important; }
    .footer-newsletter-form input { width: 100% !important; }

    /* Hero — tighter on phone */
    .hero { min-height: 480px !important; padding: 70px 0 50px !important; }
    .hero .section-title h1 {
        font-size: 28px !important;
        line-height: 1.2em !important;
    }
    .hero .section-title .section-sub-title {
        font-size: 11px !important;
        letter-spacing: 0.16em !important;
    }
    .hero .section-content-btn { margin-top: 18px !important; }

    /* Section titles & body */
    .about-us,
    .our-services,
    .why-choose-us,
    .our-awards,
    .page-team {
        padding: 48px 0 !important;
    }
    .about-us .section-title h2,
    .our-services .section-title h2,
    .why-choose-us .section-title h2,
    .our-awards .section-title h2,
    .page-team .section-title h2 {
        font-size: 24px !important;
    }
    .section-title .section-sub-title {
        font-size: 11px !important;
    }
    .section-content-btn { margin-top: 16px !important; }

    /* Awards rating-bodies — single column on phone */
    .rating-bodies > div:last-child {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px 16px !important;
    }
    .rating-bodies > div:last-child > div { font-size: 11px !important; }
    .rating-bodies > div:last-child strong { font-size: 13px !important; }

    /* Awards cards — tighter padding */
    .award-item { padding: 22px !important; }
    .award-item h3 { font-size: 16px !important; }

    /* Team — single column on phone is bootstrap default for col-md-6 */
    .team-item-content h2 { font-size: 19px !important; }

    /* Insights cards — tighter on mobile */
    .mori-insights { padding: 48px 0 !important; }
    .mori-insights .insight-card { padding: 22px !important; gap: 10px !important; }
    .mori-insights .insight-card h3 { font-size: 17px !important; line-height: 1.3 !important; }
    .mori-insights .insight-card p { font-size: 13px !important; }
    .mori-insights .insight-meta { font-size: 10.5px !important; }

    /* Cinematic on mobile — reduce padding, optimize performance */
    .mori-cinematic { padding: 40px 0 !important; overflow: hidden !important; }
    .mori-cinematic__copy h2 { font-size: 22px !important; }
    .mori-cinematic__copy p { font-size: 13px !important; line-height: 1.6 !important; }
    .mori-cinematic__stats { gap: 12px 20px !important; grid-template-columns: 1fr 1fr !important; }
    .mori-cinematic__stats .num { font-size: 20px !important; }
    .mori-cinematic__stats .lbl { font-size: 9px !important; }
    .mori-cinematic__card { aspect-ratio: 5/3 !important; }
    .mori-cinematic__glow { display: none !important; }
    .tilt-chip { display: none !important; }

    /* FundHub matrix — horizontal scroll, sticky ISIN */
    .fundhub-matrix { min-width: 900px !important; font-size: 12px !important; }

    /* Page header — compact on mobile */
    .page-header h1 { font-size: 22px !important; }

    /* Sub-page content — tighter padding */
    .about-us-content { padding-left: 0 !important; }

    /* Contact form on mobile */
    .col-lg-5, .col-lg-7 { padding-right: 15px !important; padding-left: 15px !important; }

    /* Gate modal tighter */
    .mori-gate__panel { padding: 24px 20px !important; }
    .mori-gate__title { font-size: 18px !important; }
    .mori-gate__intro { font-size: 13px !important; }
    .mori-gate__check { font-size: 12px !important; padding: 10px 12px !important; }
    .mori-gate__buttons { grid-template-columns: 1fr !important; }

    /* Cookie banner vertical on phone */
    .mori-cookie { flex-direction: column !important; align-items: stretch !important; gap: 12px !important; padding: 16px !important; }
    .mori-cookie__actions { justify-content: stretch !important; }
    .mori-cookie__btn { flex: 1 !important; text-align: center !important; }
    .mori-cookie__icon { display: none !important; }

    /* Funds — tighter on phone */
    .service-item { min-height: 380px !important; margin-bottom: 20px !important; }
    .service-item-content h2 { font-size: 20px !important; }
    .service-item-content p { font-size: 13px !important; line-height: 1.5 !important; }

    /* Footer */
    .main-footer.dark-section { padding: 48px 0 0 !important; }
    .footer-cta-box {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 18px !important;
    }
    .footer-disclaimer { font-size: 11px !important; }

    /* Why-choose CTA box smaller on phone */
    .why-choose-cta-box h3 { font-size: 14px !important; }
}

/* ----- Small mobile (<= 480px) ------------------------------------------ */
@media (max-width: 480px) {
    .container { padding-left: 16px; padding-right: 16px; }

    .hero .section-title h1 { font-size: 24px !important; }
    .hero .section-content-btn .section-btn .btn-default {
        width: 100%;
        justify-content: center;
    }

    .topbar .topbar-contact-info { display: none !important; }
    .topbar .container { justify-content: flex-end !important; }

    /* Awards rating-bodies — single col on tiny phones */
    .rating-bodies > div:last-child {
        grid-template-columns: 1fr !important;
    }

    /* Insight cards — single col stack (bootstrap handles), tighter text */
    .mori-insights .insight-card h3 { font-size: 16px !important; }

    /* Cinematic stats 2-col on tiny */
    .mori-cinematic__stats { grid-template-columns: 1fr 1fr !important; }

    /* Footer text smaller */
    .footer-disclaimer { font-size: 10.5px !important; }
    .footer-copyright p { font-size: 11px !important; }

    /* Fund matrix scrolls horizontally — show scroll hint */
    .fundhub-matrix { min-width: 800px !important; }

    /* Performance returns grid: 3 columns on small, 2 on tiny */
    .perf-returns-grid { grid-template-columns: repeat(3, 1fr) !important; }

    /* Document filter form: stack on mobile */
    .doc-filter-form { grid-template-columns: 1fr 1fr !important; }

    /* Team: stack on phone, remove side padding */
    .team-bio-col { padding: 20px 0 0 0 !important; }
}

/* ----- Tiny phone (<= 380px) --------------------------------------------- */
@media (max-width: 380px) {
    .perf-returns-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .doc-filter-form { grid-template-columns: 1fr !important; }
}

/* ----- Reduce motion: disable transforms / heavy animations ------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ----- About page: single large hero image ------------------------------ */
/* The theme's .about-us-image-box-1/-2 split assumes a two-image collage and
   caps a lone image at 57% width. About has one image, so give it a
   dedicated full-width treatment that fills the column and matches the
   height of the copy beside it. */
.about-solo-image {
    width: 100%;
    margin-right: 0;
}
.about-solo-image figure {
    display: block;
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    border: 6px solid #fff;
    box-shadow: 0 18px 50px rgba(8, 18, 33, 0.16);
}
.about-solo-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
}
@media (min-width: 1200px) {
    /* On desktop, stretch the image to roughly the height of the text block
       next to it so the two columns feel balanced. */
    .about-solo-image,
    .about-solo-image figure { height: 100%; }
    .about-solo-image img { height: 100%; aspect-ratio: auto; min-height: 540px; }
}
@media (max-width: 1199px) {
    /* Stacked layout (tablet/phone): cap height so it doesn't dominate. */
    .about-solo-image { margin-bottom: 40px; }
    .about-solo-image img { aspect-ratio: 16 / 10; max-height: 460px; }
}
