/* =====================================================
   SOLOMON PARTNERS — Technology investment & advisory
   Global stylesheet
   ===================================================== */

:root {
    /* Brand palette — deep navy + warm cream */
    --navy-900: #070d1a;
    --navy-800: #0c1526;
    --navy-700: #122036;
    --navy-600: #1a2c4a;
    --navy-500: #24395e;
    --navy-100: #e8edf5;

    --cream-50: #f7f9fb;
    --cream-100: #eef2f6;
    --cream-200: #e2e8f0;
    --cream-300: #cbd5e1;

    --ink-900: #14181f;
    --ink-700: #2a2f38;
    --ink-500: #4a5260;
    --ink-400: #6b7380;
    --ink-300: #98a0ad;
    --ink-200: #c8cdd4;
    --ink-100: #e7eaef;

    --accent: #2563eb;   /* warm bronze */
    --accent-2: #60a5fa;
    --rule: #d9e1ea;
    --rule-dark: rgba(255,255,255,0.14);

    /* Type */
    --serif: 'Playfair Display', 'Times New Roman', Georgia, serif;
    --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

    --maxw: 1320px;
    --maxw-narrow: 980px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-900);
    background: var(--cream-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== Topbar ===== */
.topbar {
    background: var(--navy-900);
    color: var(--cream-100);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.topbar-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 10px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.topbar-links { display: flex; gap: 28px; }
.topbar-links a { opacity: 0.78; transition: opacity .2s; }
.topbar-links a:hover { opacity: 1; }
.topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar-locale { color: var(--cream-300); }
.topbar-locale strong { color: #fff; font-weight: 500; }
.topbar-client {
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
    margin: -10px -8px -10px 0;
    font-weight: 500;
    letter-spacing: 0.12em;
    transition: background .2s;
}
.topbar-client:hover { background: var(--accent-2); }

/* ===== Main nav ===== */
.nav {
    background: #fff;
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    z-index: 80;
}
.nav-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
}
.nav-logo img { height: 38px; }
.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
    display: inline-block;
    padding: 32px 18px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-700);
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.nav-menu > li > a:hover,
.nav-menu > li.is-open > a,
.nav-menu > li > a.is-active {
    color: var(--navy-900);
    border-bottom-color: var(--accent);
}
.nav-menu > li.has-mega > a::after {
    content: '';
    display: inline-block;
    width: 6px; height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 8px;
    vertical-align: 3px;
}
.nav-search {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--ink-200);
    background: #fff;
    cursor: pointer;
    color: var(--ink-500);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, color .2s;
}
.nav-search:hover { border-color: var(--navy-700); color: var(--navy-900); }

/* Mobile hamburger */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ink-200);
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.nav-toggle .bar,
.nav-toggle .bar::before,
.nav-toggle .bar::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--navy-900);
    transition: transform .25s, opacity .15s;
}
.nav-toggle .bar { position: relative; }
.nav-toggle .bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: -6px;
}
.nav-toggle .bar::after {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
}
.nav-toggle[aria-expanded="true"] .bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Mega menu */
.mega {
    position: absolute;
    top: 100%;
    left: -40px;
    width: 880px;
    max-width: 92vw;
    background: #fff;
    border-top: 2px solid var(--accent);
    box-shadow: 0 24px 60px rgba(7,13,26,0.12);
    padding: 36px 40px 40px;
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 36px 56px;
}
.nav-menu > li.has-mega:hover .mega,
.nav-menu > li.has-mega:focus-within .mega { display: grid; }
.mega-col h4 {
    margin: 0 0 14px;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    color: var(--navy-900);
    letter-spacing: -0.01em;
}
.mega-col p {
    margin: 0 0 18px;
    color: var(--ink-500);
    font-size: 14px;
    line-height: 1.55;
}
.mega-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--rule);
}
.mega-col ul li { border-bottom: 1px solid var(--rule); }
.mega-col ul a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    color: var(--ink-700);
    font-weight: 500;
    transition: color .15s;
}
.mega-col ul a::after {
    content: '→';
    color: var(--accent);
    opacity: 0;
    transition: opacity .15s, transform .15s;
}
.mega-col ul a:hover { color: var(--navy-900); }
.mega-col ul a:hover::after { opacity: 1; transform: translateX(2px); }
.mega-feature {
    grid-column: span 2;
    background: var(--cream-100);
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--rule);
}
.mega-feature p {
    margin: 0;
    font-family: var(--serif);
    font-size: 18px;
    color: var(--navy-900);
    max-width: 60%;
}
.mega-feature a {
    color: var(--navy-900);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-700); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-2); }
.btn::after { content: '→'; font-size: 14px; }

/* ===== Hero (home) ===== */
.hero {
    position: relative;
    min-height: 78vh;
    background:
        linear-gradient(180deg, rgba(7,13,26,0.55) 0%, rgba(7,13,26,0.78) 100%),
        radial-gradient(ellipse at 30% 20%, #14294d 0%, #070d1a 70%);
    color: #fff;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 80px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 80px);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 120px 32px 100px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: end;
}
.hero-eyebrow {
    font-size: 12px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 24px;
}
.hero-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(48px, 6vw, 84px);
    line-height: 1.04;
    letter-spacing: -0.015em;
    margin: 0 0 28px;
    color: #fff;
}
.hero-title em { font-style: italic; color: var(--cream-200); }
.hero-lede {
    font-size: 19px;
    line-height: 1.55;
    color: rgba(255,255,255,0.78);
    max-width: 560px;
    margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { border-left: 1px solid rgba(255,255,255,0.18); padding-left: 28px; }
.hero-meta-label {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 14px;
}
.hero-meta-stat {
    font-family: var(--serif);
    font-size: 42px;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 4px;
}
.hero-meta-sub { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 28px; }

/* ===== Section primitives ===== */
.section { padding: 110px 32px; }
.section-narrow { padding: 90px 32px; }
.section-cream { background: var(--cream-100); }
.section-navy { background: var(--navy-900); color: #fff; }
.section-white { background: #fff; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-inner-narrow { max-width: var(--maxw-narrow); margin: 0 auto; }

.eyebrow {
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 500;
}
.section-navy .eyebrow { color: var(--accent-2); }

.section-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin: 0 0 28px;
    color: var(--navy-900);
    max-width: 18ch;
}
.section-navy .section-title { color: #fff; }
.section-title em { font-style: italic; color: var(--ink-500); }
.section-navy .section-title em { color: var(--cream-300); }

.section-lede {
    font-size: 18px;
    line-height: 1.65;
    color: var(--ink-500);
    max-width: 60ch;
    margin: 0 0 48px;
}
.section-navy .section-lede { color: rgba(255,255,255,0.72); }

.section-header {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 60px;
    align-items: end;
}
.section-header-cta { text-align: right; }

/* ===== Services (Rothschild-style) ===== */
.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}
.service {
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 48px 44px 56px;
    background: #fff;
    transition: background .25s;
}
.service:hover { background: var(--cream-50); }
.service-num {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 22px;
}
.service h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 32px;
    line-height: 1.12;
    margin: 0 0 16px;
    color: var(--navy-900);
}
.service p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-500);
    margin: 0 0 24px;
}
.service ul { margin: 0 0 28px; padding: 0; list-style: none; }
.service ul li {
    font-size: 14px;
    padding: 9px 0;
    border-top: 1px solid var(--rule);
    color: var(--ink-700);
    display: flex;
    justify-content: space-between;
}
.service ul li::after { content: '›'; color: var(--accent); }
.service-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--navy-900);
    border-bottom: 1px solid var(--accent);
    padding-bottom: 4px;
}

/* ===== Stats ===== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--rule-dark);
    border-bottom: 1px solid var(--rule-dark);
}
.section-navy .stat { padding: 56px 36px; border-right: 1px solid var(--rule-dark); }
.stat:last-child { border-right: 0 !important; }
.stat-num { font-family: var(--serif); font-size: 58px; line-height: 1; color: #fff; margin-bottom: 14px; }
.stat-label {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 16px;
}
.stat-text { font-size: 13.5px; color: rgba(255,255,255,0.7); line-height: 1.6; }
.stats-light .stat { padding: 56px 36px; border-right: 1px solid var(--rule); background: #fff; }
.stats-light .stat-num { color: var(--navy-900); }
.stats-light .stat-label { color: var(--ink-400); }
.stats-light .stat-text { color: var(--ink-500); }

/* ===== Editorial split ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split-image {
    background: linear-gradient(135deg, #1a2c4a 0%, #070d1a 100%);
    aspect-ratio: 4/5;
    position: relative;
    overflow: hidden;
}
.split-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 18px);
}
.split-image-cap {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    color: #fff;
    font-family: var(--serif);
    font-style: italic;
    font-size: 18px;
    line-height: 1.4;
    z-index: 2;
}

/* ===== Cards / insights ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card {
    background: #fff;
    border: 1px solid var(--rule);
    transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(7,13,26,0.08); }
.card-img {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #122036 0%, #070d1a 100%);
    position: relative;
    overflow: hidden;
}
.card-img::after {
    content: '';
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(0deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 22px);
}
.card-img.alt-1 { background: linear-gradient(135deg, #24395e 0%, #0c1526 100%); }
.card-img.alt-2 { background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); }
.card-img.alt-3 { background: linear-gradient(135deg, #1a2c4a 0%, #122036 100%); }
.card-img.alt-4 { background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%); }
.card-body { padding: 28px 30px 32px; }
.card-meta {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    display: flex;
    gap: 10px;
}
.card-meta span:last-child { color: var(--ink-400); }
.card h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 22px;
    line-height: 1.25;
    color: var(--navy-900);
    margin: 0 0 12px;
}
.card p { font-size: 14px; color: var(--ink-500); line-height: 1.6; margin: 0 0 18px; }
.card-link {
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy-900);
    font-weight: 500;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 3px;
}

/* ===== Page hero ===== */
.page-hero {
    background: var(--navy-900);
    color: #fff;
    padding: 130px 32px 90px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 30%, rgba(96,165,250,0.16) 0%, transparent 60%),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 96px);
    pointer-events: none;
}
.page-hero-inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.crumbs {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 30px;
}
.crumbs a { color: var(--accent-2); }
.crumbs span { margin: 0 12px; color: rgba(255,255,255,0.35); }
.page-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(44px, 5.6vw, 72px);
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0 0 24px;
    color: #fff;
    max-width: 18ch;
}
.page-title em { font-style: italic; color: var(--cream-200); }
.page-lede {
    font-size: 19px;
    line-height: 1.55;
    color: rgba(255,255,255,0.78);
    max-width: 70ch;
}

/* ===== Prose ===== */
.prose { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; }
.prose-side {
    font-family: var(--serif);
    font-style: italic;
    font-size: 22px;
    line-height: 1.4;
    color: var(--navy-900);
    border-top: 1px solid var(--accent);
    padding-top: 24px;
    position: sticky;
    top: 120px;
    align-self: start;
}
.prose-body { color: var(--ink-700); font-size: 16.5px; line-height: 1.75; }
.prose-body h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 32px;
    color: var(--navy-900);
    margin: 48px 0 18px;
    line-height: 1.15;
}
.prose-body h2:first-child { margin-top: 0; }
.prose-body h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 22px;
    color: var(--navy-900);
    margin: 36px 0 12px;
}
.prose-body p { margin: 0 0 18px; }
.prose-body ul { padding-left: 1.2em; }
.prose-body ul li { margin-bottom: 8px; }

/* ===== Quote ===== */
.quote { max-width: 920px; margin: 0 auto; text-align: center; }
.quote-mark { font-family: var(--serif); font-size: 88px; line-height: 1; color: var(--accent); margin-bottom: 8px; }
.quote-text {
    font-family: var(--serif);
    font-weight: 400;
    font-style: italic;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.35;
    color: var(--navy-900);
    margin: 0 0 36px;
}
.section-navy .quote-text { color: #fff; }
.quote-attr {
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-500);
}
.section-navy .quote-attr { color: var(--cream-300); }

/* ===== People ===== */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.person { background: #fff; border: 1px solid var(--rule); }
.person-img {
    aspect-ratio: 3/4;
    background: linear-gradient(160deg, #24395e 0%, #0c1526 100%);
    position: relative;
}
.person-img::after {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 26px);
}
.person-body { padding: 24px 26px 30px; }
.person-name {
    font-family: var(--serif);
    font-size: 24px;
    color: var(--navy-900);
    margin: 0 0 4px;
    font-weight: 500;
}
.person-role {
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.person-bio { font-size: 14px; color: var(--ink-500); line-height: 1.6; }

/* ===== Timeline ===== */
.timeline { position: relative; padding-left: 0; }
.timeline-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 40px;
    padding: 28px 0;
    border-top: 1px solid var(--rule);
}
.timeline-item:last-child { border-bottom: 1px solid var(--rule); }
.timeline-year { font-family: var(--serif); font-size: 36px; color: var(--accent); line-height: 1; }
.timeline-body h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 22px;
    color: var(--navy-900);
    margin: 0 0 8px;
}
.timeline-body p { margin: 0; color: var(--ink-500); line-height: 1.6; font-size: 15px; }

/* ===== Locations ===== */
.locations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.location { border: 1px solid var(--rule); padding: 32px 28px; background: #fff; }
.location h3 {
    font-family: var(--serif);
    font-size: 26px;
    color: var(--navy-900);
    margin: 0 0 16px;
    font-weight: 500;
}
.location-flag {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
}
.location p { font-size: 14px; line-height: 1.6; color: var(--ink-500); margin: 0 0 6px; }

/* ===== Sectors ===== */
.sectors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
}
.sector { background: #fff; padding: 36px 32px 40px; transition: background .2s; }
.sector:hover { background: var(--cream-50); }
.sector-num {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 16px;
}
.sector h3 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 24px;
    color: var(--navy-900);
    margin: 0 0 12px;
}
.sector p { font-size: 14px; line-height: 1.6; color: var(--ink-500); margin: 0 0 14px; }
.sector-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sector-tag {
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--rule);
    color: var(--ink-500);
}

/* ===== CTA band ===== */
.cta-band { background: var(--navy-900); color: #fff; padding: 90px 32px; text-align: center; }
.cta-band-inner { max-width: 780px; margin: 0 auto; }
.cta-band h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.1;
    margin: 0 0 20px;
}
.cta-band p { color: rgba(255,255,255,0.72); font-size: 17px; margin: 0 0 36px; line-height: 1.55; }
.cta-band-actions { display: inline-flex; gap: 14px; flex-wrap: wrap; }

/* ===== Disclaimer bar ===== */
.disclaimer-bar {
    background: #e8eef6;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    color: var(--ink-700);
    font-size: 12.5px;
    line-height: 1.6;
    padding: 18px 32px;
}
.disclaimer-bar-inner { max-width: var(--maxw); margin: 0 auto; }
.disclaimer-bar strong { color: var(--navy-900); }
.disclaimer-bar a { color: var(--navy-900); border-bottom: 1px solid var(--accent); }

/* ===== Eligibility modal ===== */
.elig-overlay {
    position: fixed; inset: 0;
    background: rgba(7,13,26,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 24px;
}
.elig-overlay.is-open { display: flex; }
.elig-card {
    background: #fff;
    max-width: 640px;
    width: 100%;
    padding: 48px 48px 44px;
    border-top: 3px solid var(--accent);
    max-height: 90vh;
    overflow-y: auto;
}
.elig-card h2 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 32px;
    color: var(--navy-900);
    margin: 0 0 14px;
}
.elig-card p {
    font-size: 14px;
    color: var(--ink-500);
    line-height: 1.65;
    margin: 0 0 14px;
}
.elig-card .choice {
    margin: 20px 0 24px;
    padding: 14px 16px;
    border: 1px solid var(--rule);
    background: var(--cream-50);
    font-size: 13.5px;
    color: var(--ink-700);
}
.elig-card .choice label { display: flex; gap: 10px; cursor: pointer; line-height: 1.5; align-items: flex-start; }
.elig-card .choice input[type="checkbox"] { margin-top: 4px; }
.elig-card .elig-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.elig-card .small {
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--ink-400);
    margin-top: 16px;
}

/* ===== Footer ===== */
.footer {
    background: #04080f;
    color: rgba(255,255,255,0.72);
    padding: 80px 32px 36px;
    font-size: 13px;
    line-height: 1.7;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-top {
    display: grid;
    grid-template-columns: 1.3fr repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand img { height: 32px; margin-bottom: 24px; }
.footer-brand p { color: rgba(255,255,255,0.55); max-width: 26ch; font-size: 13px; }
.footer h5 {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
    margin: 6px 0 16px;
    font-weight: 500;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: rgba(255,255,255,0.65); transition: color .15s; }
.footer ul a:hover { color: var(--accent-2); }
.footer-bottom {
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}
.footer-legal a { color: rgba(255,255,255,0.6); margin-left: 22px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; }
.contact-form { display: grid; gap: 18px; }
.field label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-500);
    margin-bottom: 8px;
}
.field input, .field textarea, .field select {
    width: 100%;
    padding: 14px 16px;
    font: inherit;
    background: #fff;
    border: 1px solid var(--rule);
    color: var(--ink-900);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy-700); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contact-info { font-size: 14px; line-height: 1.7; color: var(--ink-500); }
.contact-info h3 {
    font-family: var(--serif);
    font-size: 28px;
    color: var(--navy-900);
    margin: 0 0 18px;
    font-weight: 500;
}
.contact-info strong { display: block; color: var(--navy-900); margin-top: 22px; font-weight: 600; }

/* ===== Client login ===== */
.login-shell {
    min-height: calc(100vh - 88px - 36px);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: var(--cream-50);
}
.login-art {
    background:
        linear-gradient(180deg, rgba(7,13,26,0.4) 0%, rgba(7,13,26,0.85) 100%),
        radial-gradient(ellipse at 30% 30%, #1a2c4a 0%, #070d1a 75%);
    color: #fff;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.login-art::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 22px);
}
.login-art > * { position: relative; }
.login-art h2 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: 42px;
    line-height: 1.1;
    max-width: 14ch;
}
.login-art p { color: rgba(255,255,255,0.7); max-width: 38ch; font-size: 15px; line-height: 1.6; }
.login-card { padding: 80px 80px; display: flex; flex-direction: column; justify-content: center; }
.login-card h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 36px;
    color: var(--navy-900);
    margin: 0 0 12px;
}
.login-card .small { color: var(--ink-500); font-size: 14px; margin-bottom: 32px; }

/* ===== Fine print ===== */
.fine {
    background: var(--cream-100);
    padding: 64px 32px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--ink-500);
}
.fine .section-inner { max-width: var(--maxw-narrow); }
.fine h2 { font-family: var(--serif); color: var(--navy-900); font-size: 28px; font-weight: 500; margin-top: 36px; }
.fine h2:first-child { margin-top: 0; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; padding: 90px 32px; }
    .section-header { grid-template-columns: 1fr; gap: 16px; }
    .section-header-cta { text-align: left; }
    .services { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .cards { grid-template-columns: repeat(2, 1fr); }
    .people { grid-template-columns: repeat(2, 1fr); }
    .locations { grid-template-columns: repeat(2, 1fr); }
    .sectors { grid-template-columns: repeat(2, 1fr); }
    .prose { grid-template-columns: 1fr; gap: 36px; }
    .prose-side { position: static; }
    .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .login-shell { grid-template-columns: 1fr; }
    .login-art, .login-card { padding: 48px 32px; }
    .timeline-item { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 760px) {
    .topbar-inner { padding: 8px 20px; font-size: 11px; }
    .topbar-links { display: none; }
    .nav-inner { padding: 0 20px; height: 70px; }
    .nav-logo img { height: 28px; }
    .nav-search { display: none; }
    .nav-toggle { display: inline-flex; }

    /* Convert nav-menu into a full-screen drawer */
    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: #fff;
        padding: 8px 20px 40px;
        margin: 0;
        list-style: none;
        z-index: 90;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
    }
    .nav-menu.is-open { display: flex; }
    body.nav-open { overflow: hidden; }

    .nav-menu > li {
        width: 100%;
        border-bottom: 1px solid var(--rule);
    }
    .nav-menu > li > a {
        display: block;
        padding: 16px 0;
        font-size: 13px;
        border-bottom: none;
        color: var(--navy-900);
    }
    .nav-menu > li.has-mega > a::after {
        float: right;
        margin-top: 6px;
        transition: transform .2s;
    }
    .nav-menu > li.is-open > a::after { transform: rotate(225deg); }

    /* Mega becomes an inline accordion panel on mobile */
    .mega {
        position: static;
        display: none;
        width: 100%;
        max-width: 100%;
        grid-template-columns: 1fr;
        gap: 16px;
        background: var(--cream-50);
        border-top: none;
        box-shadow: none;
        padding: 4px 0 18px;
        margin: 0 0 4px;
    }
    .nav-menu > li.is-open .mega { display: grid; }
    /* Override the desktop hover-show */
    .nav-menu > li.has-mega:hover .mega,
    .nav-menu > li.has-mega:focus-within .mega {
        display: none;
    }
    .nav-menu > li.has-mega.is-open:hover .mega,
    .nav-menu > li.has-mega.is-open .mega { display: grid; }

    .mega-col { padding: 0 12px; }
    .mega-col h4 { font-size: 16px; margin: 8px 0 8px; }
    .mega-col p { display: none; }
    .mega-col ul { border-top: none; }
    .mega-col ul li { border-bottom: 1px solid var(--rule); }
    .mega-col ul a { padding: 12px 0; font-size: 13.5px; }
    .mega-col ul a::after { opacity: 1; }
    .mega-feature { display: none; }

    .section { padding: 70px 20px; }
    .cards, .people, .locations, .sectors, .stats { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .field-row { grid-template-columns: 1fr; }

    /* Disclaimer bar on mobile */
    .disclaimer-bar { padding: 14px 20px; font-size: 12px; }

    /* Eligibility modal mobile */
    .elig-card { padding: 28px 22px 24px; }
    .elig-card h2 { font-size: 24px; }
    .elig-card .elig-actions { flex-direction: column; }
    .elig-card .elig-actions .btn { width: 100%; justify-content: center; }
}

/* ===========================================================================
   DATAROOM PORTAL SHIM
   Maps EQUORIX-era portal classes onto AXIOS EQUITY visual language.
   Used by: investors.html, partner-portal.html, investor-dataroom.html,
            partner-dataroom.html, investor-request.html, partner-request.html,
            admin.html, viewer.html
   =========================================================================== */

/* Container / shell */
.portal-shell {
    background: var(--cream-50);
    min-height: 60vh;
    padding: 60px 32px 90px;
}
.portal-shell .container,
.portal-shell > .container { max-width: var(--maxw); margin: 0 auto; }

.portal-card {
    background: #fff;
    border: 1px solid var(--rule);
    padding: 40px 44px 44px;
    max-width: var(--maxw-narrow);
    margin: 0 auto;
}
.portal-card--wide { max-width: var(--maxw); }

/* Portal typography */
.portal-eyebrow {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 14px;
}
.portal-title {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    color: var(--navy-900);
    margin: 0 0 16px;
}
.portal-title em { font-style: italic; color: var(--ink-500); }
.portal-lede {
    font-size: 16px;
    color: var(--ink-500);
    line-height: 1.65;
    margin: 0 0 28px;
    max-width: 70ch;
}
.portal-fine {
    font-size: 12px;
    color: var(--ink-400);
    line-height: 1.65;
    margin: 0;
}
.portal-divider {
    border: 0;
    border-top: 1px solid var(--rule);
    margin: 28px 0 18px;
    height: 0;
}

/* Portal forms */
.portal-form { display: grid; gap: 18px; margin: 24px 0 16px; }
.portal-field label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-500);
    margin-bottom: 8px;
    font-weight: 500;
}
.portal-field input,
.portal-field textarea,
.portal-field select {
    width: 100%;
    padding: 14px 16px;
    font: inherit;
    background: #fff;
    border: 1px solid var(--rule);
    color: var(--ink-900);
}
.portal-field input:focus,
.portal-field textarea:focus,
.portal-field select:focus { outline: none; border-color: var(--navy-700); }

.portal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
    align-items: center;
}
.btn-secondary {
    background: transparent;
    color: var(--navy-900);
    border-color: var(--navy-900);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid var(--navy-900);
    transition: background .2s, color .2s;
    text-decoration: none;
}
.btn-secondary:hover { background: var(--navy-900); color: #fff; }
.portal-error {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    background: #fdecec;
    border: 1px solid #f3c2c2;
    color: #7a1a1a;
    font-size: 13px;
}
.portal-error.is-visible { display: block; }

/* Disclaimer checklist */
.disclaimer-list { list-style: none; margin: 0; padding: 0; }
.disclaimer-item {
    display: flex;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid var(--rule);
}
.disclaimer-item:last-child { border-bottom: 1px solid var(--rule); }
.disclaimer-item input[type="checkbox"] {
    width: 18px; height: 18px;
    margin: 3px 0 0;
    flex-shrink: 0;
    cursor: pointer;
}
.disclaimer-item-body { cursor: pointer; flex: 1; }
.disclaimer-item-title {
    display: block;
    font-family: var(--serif);
    font-size: 18px;
    color: var(--navy-900);
    margin-bottom: 4px;
    font-weight: 500;
}

/* Workstream cards (portal grid) */
.stream-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.stream-card {
    background: #fff;
    border: 1px solid var(--rule);
    padding: 28px 28px 30px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
}
.stream-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(7,13,26,0.08);
    border-color: var(--accent);
}
.stream-card-eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 500;
}
.stream-card-title {
    font-family: var(--serif);
    font-size: 24px;
    color: var(--navy-900);
    line-height: 1.2;
    margin: 0 0 10px;
    font-weight: 500;
}
.stream-card-desc {
    font-size: 13.5px;
    color: var(--ink-500);
    line-height: 1.6;
    flex: 1;
    margin: 0 0 16px;
}
.stream-card-status {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-400);
    border-top: 1px solid var(--rule);
    padding-top: 12px;
}
.stream-card-cta {
    color: var(--navy-900);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 500;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 3px;
    align-self: flex-start;
    margin-top: 8px;
    text-decoration: none;
}

/* Dataroom listing */
.dataroom-shell { background: var(--cream-50); min-height: 60vh; padding: 50px 32px 90px; }
.dataroom-shell .container { max-width: var(--maxw); margin: 0 auto; }
.dataroom-breadcrumb {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-400);
    margin-bottom: 16px;
}
.dataroom-breadcrumb a { color: var(--accent); }
.dataroom-breadcrumb span { margin: 0 10px; color: var(--ink-200); }

.dataroom-files {
    background: #fff;
    border: 1px solid var(--rule);
}
.dataroom-row {
    display: grid;
    grid-template-columns: 36px 1fr 110px 130px 32px;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-top: 1px solid var(--rule);
    text-decoration: none;
    color: var(--ink-900);
    transition: background .15s;
    font-size: 14px;
}
.dataroom-row:first-child { border-top: 0; }
.dataroom-row:hover { background: var(--cream-50); }
.dataroom-row-icon { color: var(--accent); }
.dataroom-row-name { font-weight: 500; color: var(--navy-900); }
.dataroom-row-type, .dataroom-row-meta { font-size: 12px; color: var(--ink-500); }
.dataroom-row-arrow { color: var(--ink-300); }

/* Dataroom doc rows */
.dataroom-section { margin-top: 40px; }
.dataroom-section:first-child { margin-top: 0; }
.dataroom-section-title {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--navy-900);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
    font-weight: 500;
}
.dataroom-doc {
    display: grid;
    grid-template-columns: 1fr 110px 130px auto;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
    border: 1px solid var(--rule);
    border-top: 0;
    background: #fff;
    transition: background .15s;
}
.dataroom-doc:first-child { border-top: 1px solid var(--rule); }
.dataroom-doc:hover { background: var(--cream-50); }
.dataroom-doc-name { font-weight: 500; color: var(--navy-900); font-size: 14px; }
.dataroom-doc-type, .dataroom-doc-meta { font-size: 12px; color: var(--ink-500); }
.dataroom-doc a {
    color: var(--navy-900);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    text-decoration: none;
}

/* Portal dashboard / header (used in old portal markup) */
.portal-dashboard {
    background: var(--cream-50);
    min-height: 60vh;
    padding: 50px 32px 90px;
}
.portal-dashboard .container { max-width: var(--maxw); margin: 0 auto; }
.portal-header { margin-bottom: 40px; }
.portal-greeting {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 14px;
}
.display-md {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 44px;
    letter-spacing: -0.01em;
    color: var(--navy-900);
    line-height: 1.1;
    margin: 0 0 18px;
}
.lede {
    font-size: 17px;
    color: var(--ink-500);
    line-height: 1.6;
    max-width: 720px;
    margin: 0 0 24px;
}
.portal-search { margin-top: 14px; max-width: 480px; }
.portal-search input {
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid var(--rule);
    color: var(--ink-900);
    font: inherit;
}
.portal-search input:focus { outline: none; border-color: var(--navy-700); }

/* Project grid + cards (old class names) */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.project-card {
    background: #fff;
    border: 1px solid var(--rule);
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(7,13,26,0.08);
    border-color: var(--accent);
}
.project-card.is-hidden { display: none; }
.project-sector {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    font-weight: 500;
}
.project-name {
    font-family: var(--serif);
    font-size: 22px;
    color: var(--navy-900);
    line-height: 1.2;
    margin: 0 0 10px;
    font-weight: 500;
}
.project-status {
    font-size: 13.5px;
    color: var(--ink-500);
    line-height: 1.6;
    flex: 1;
    margin: 0 0 14px;
}
.project-meta {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-400);
    border-top: 1px solid var(--rule);
    padding-top: 12px;
}

/* Container shim */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

/* Old logo class shim */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy-900);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
    text-decoration: none;
}
.logo-mark { display: none; }

/* Old nav-links shim — desktop only */
.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.nav-links a {
    color: var(--ink-700);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.nav-links a:hover { color: var(--navy-900); }
.nav-links .nav-cta {
    background: var(--accent);
    color: #fff;
    padding: 8px 14px;
}
.nav-links .nav-cta:hover { background: var(--accent-2); color: #fff; }

@media (max-width: 760px) {
    .portal-shell { padding: 40px 20px 60px; }
    .portal-card { padding: 28px 22px 28px; }
    .portal-title { font-size: 28px; }
    .dataroom-row {
        grid-template-columns: 28px 1fr 24px;
        font-size: 13.5px;
    }
    .dataroom-row-type, .dataroom-row-meta { display: none; }
}

/* =====================================================
   SOLOMON PARTNERS — theme overrides
   ===================================================== */

/* Brand logo — stacked bold lowercase wordmark (black / gray) */
.brand-logo { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo .lines { display: flex; flex-direction: column; line-height: 0.94; }
.brand-logo .l1, .brand-logo .l2 {
    font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 800;
    font-size: 27px;
    letter-spacing: -0.035em;
    text-transform: lowercase;
}
.brand-logo .l1 { color: var(--ink-900); }
.brand-logo .l2 { color: #8f959e; }
.brand-logo--light .l1 { color: #fff; }
.brand-logo--light .l2 { color: rgba(255,255,255,0.52); }
.footer-brand .brand-logo { margin-bottom: 22px; }
/* Large display variant (logo page) */
.brand-logo--xl .l1, .brand-logo--xl .l2 { font-size: 84px; }
@media (max-width: 760px) {
    .brand-logo .l1, .brand-logo .l2 { font-size: 20px; }
    .brand-logo--xl .l1, .brand-logo--xl .l2 { font-size: 44px; }
}

/* Anchor offset for in-page links under sticky nav */
[id] { scroll-margin-top: 110px; }

/* Keep mega menus inside the viewport */
@media (min-width: 761px) {
    .mega { max-width: calc(100vw - 48px); }
    /* Later mega menus (e.g. Services) anchor to the right edge of their item
       so they open leftward instead of overflowing the browser window */
    .nav-menu > li.has-mega ~ li.has-mega .mega { left: auto; right: -40px; }
}
