/* ═══════════════════════════════════
   Hero (index.html)
═══════════════════════════════════ */

.hero-section {
    position: relative;
    overflow: hidden;
    color: var(--color-text-inverse);
    isolation: isolate;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-block: clamp(88px, 12vw, 152px) clamp(104px, 14vw, 176px);
    background:
        radial-gradient(circle at 76% 28%, rgba(47, 93, 168, 0.26), transparent 28%),
        radial-gradient(circle at 92% 72%, rgba(212, 175, 55, 0.14), transparent 28%),
        radial-gradient(circle at 42% 92%, rgba(255, 255, 255, 0.065), transparent 30%),
        linear-gradient(135deg, #060b15 0%, #0c1424 52%, #172239 100%);
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(255, 255, 255, 0.020) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.020) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: linear-gradient(90deg, black, transparent 86%);
    pointer-events: none;
}
.hero-section::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 42%;
    z-index: -1;
    background:
        linear-gradient(180deg, transparent, rgba(7, 11, 20, 0.84)),
        radial-gradient(ellipse at 58% 100%, rgba(212, 175, 55, 0.14), transparent 66%);
    pointer-events: none;
}
.hero-mesh {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    opacity: 0.92;
    pointer-events: none;
}
.hero-sheen {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(112deg, transparent 0%, transparent 38%, rgba(255, 255, 255, 0.08) 48%, transparent 58%, transparent 100%),
        radial-gradient(circle at 72% 28%, rgba(255, 255, 255, 0.10), transparent 18%);
    opacity: 0.54;
    transform: translate3d(-8%, 0, 0);
    animation: hero-sheen-drift 9s ease-in-out infinite alternate;
    pointer-events: none;
}
.hero-editorial-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: clamp(var(--space-4), 4.2vw, 64px);
    align-items: center;
}
.hero-copy {
    position: relative;
    animation: hero-slide-in 0.92s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-copy::before {
    content: "";
    position: absolute;
    inset: -18px auto auto -4px;
    width: 40px;
    height: 1px;
    border: 0;
    background: var(--brand-accent);
    opacity: 1;
    pointer-events: none;
}
.hero-section .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-bottom: var(--space-3);
    color: var(--brand-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.hero-section h1 {
    max-width: 720px;
    margin-bottom: var(--space-4);
    font-size: clamp(3.25rem, 7.2vw, 6.75rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
    color: var(--color-text-inverse);
    text-wrap: balance;
    text-shadow: 0 22px 70px rgba(0, 0, 0, 0.42);
}
.hero-title-break,
.hero-title-accent {
    display: block;
}
.hero-title-accent {
    color: var(--brand-accent);
    text-shadow:
        0 18px 48px rgba(212, 175, 55, 0.12),
        0 30px 88px rgba(0, 0, 0, 0.34);
}
.hero-section .sub-hero {
    max-width: 680px;
    margin-bottom: var(--space-5);
    color: rgba(255, 255, 255, 0.70);
    font-size: clamp(1rem, 1.4vw, 1.12rem);
}
.hero-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-2);
    align-items: center;
}
.hero-actions .btn {
    flex: 0 0 auto;
}
.hero-section .btn-primary {
    box-shadow:
        0 20px 48px rgba(212, 175, 55, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.34);
}
.hero-section .btn-primary:hover {
    box-shadow:
        0 24px 64px rgba(212, 175, 55, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.36);
}
.hero-visual {
    animation:
        hero-slide-in 1.02s cubic-bezier(0.16, 1, 0.3, 1) 0.10s both,
        premium-float 7.4s ease-in-out 1.25s infinite;
}

/* ── 3D Map Visual (index.html) ── */

.map-visual {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    --glow-x: 50%;
    --glow-y: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 620px);
    height: auto;
    min-height: 0;
    justify-self: center;
    margin-top: var(--space-4);
    margin-left: 0;
    padding: clamp(var(--space-2), 1.4vw, var(--space-3));
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 26px;
    background:
        radial-gradient(420px circle at var(--glow-x) var(--glow-y), rgba(212, 175, 55, 0.15), transparent 62%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.040));
    box-shadow:
        0 46px 150px rgba(0, 0, 0, 0.56),
        0 0 0 1px rgba(212, 175, 55, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    overflow: hidden;
    transform: perspective(900px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    will-change: transform;
}
.map-visual::before {
    content: "";
    position: absolute;
    inset: -35%;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.28), transparent 64%);
    transform: translateX(-60%) rotate(8deg);
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}
.map-visual::after {
    content: "";
    position: absolute;
    inset: clamp(var(--space-2), 1.4vw, var(--space-3));
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 18px;
    pointer-events: none;
}
.map-visual:hover {
    border-color: rgba(212, 175, 55, 0.34);
    box-shadow:
        0 54px 170px rgba(0, 0, 0, 0.60),
        0 0 0 1px rgba(212, 175, 55, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.map-visual:hover::before {
    transform: translateX(60%) rotate(8deg);
}
.map-visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 18px;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    filter:
        drop-shadow(0 30px 54px rgba(0, 0, 0, 0.34))
        saturate(1.04)
        contrast(1.04);
}

/* ═══════════════════════════════════
   Typography helpers
═══════════════════════════════════ */

.body-text {
    max-width: 72ch;
    margin-bottom: var(--space-3);
    font-size: 1rem;
    line-height: 1.65;
}
.body-secondary {
    max-width: 72ch;
    margin-bottom: var(--space-2);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}
.sub-hero {
    max-width: 650px;
    margin-bottom: var(--space-6);
    color: var(--color-text-secondary);
    font-size: 1.125rem;
    line-height: 1.55;
}
.eyebrow {
    color: var(--brand-accent);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.footnote {
    margin-top: calc(var(--space-1) * -1);
    margin-bottom: var(--space-4);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}
.footer-text {
    margin-bottom: var(--space-1);
    color: #e6e8ed;
    font-size: var(--font-size-sm);
    line-height: 1.6;
}

/* ═══════════════════════════════════
   Inner-page hero band
═══════════════════════════════════ */

.page-hero {
    background: var(--color-bg-surface);
}

/* ═══════════════════════════════════
   Layout Grids
═══════════════════════════════════ */

.two-col-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
    align-items: start;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: var(--space-8);
    align-items: start;
}

/* ═══════════════════════════════════
   Homepage dark editorial sections
═══════════════════════════════════ */

.home-dark-section,
.home-dark-section-alt {
    position: relative;
    overflow: hidden;
    color: var(--color-text-inverse);
    isolation: isolate;
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}
.home-dark-section::after,
.home-dark-section-alt::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.24), transparent);
    pointer-events: none;
}
.home-dark-section .container,
.home-dark-section-alt .container {
    position: relative;
    z-index: 1;
}
.home-dark-section {
    background:
        radial-gradient(circle at 12% 14%, rgba(212, 175, 55, 0.09), transparent 30%),
        linear-gradient(180deg, #101524 0%, #0b1120 100%);
}
.home-dark-section-alt {
    background:
        radial-gradient(circle at 82% 18%, rgba(212, 175, 55, 0.11), transparent 32%),
        radial-gradient(circle at 18% 86%, rgba(47, 93, 168, 0.14), transparent 34%),
        linear-gradient(180deg, #0b1120 0%, #111a2d 100%);
}
.home-dark-section::before,
.home-dark-section-alt::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, transparent, black 16%, black 84%, transparent);
    pointer-events: none;
}
.home-dark-section h2,
.home-dark-section h3,
.home-dark-section-alt h2,
.home-dark-section-alt h3 {
    color: var(--color-text-inverse);
}
.home-dark-section .body-text,
.home-dark-section-alt .body-text {
    color: rgba(255, 255, 255, 0.76);
}
.home-dark-section .footnote,
.home-dark-section-alt .footnote {
    color: rgba(255, 255, 255, 0.54);
}
.home-dark-section .card,
.home-dark-section-alt .card {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-lg);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    background:
        radial-gradient(260px circle at var(--glow-x, 50%) var(--glow-y, 50%), rgba(212, 175, 55, 0.08), transparent 64%),
        linear-gradient(145deg, rgba(28, 34, 51, 0.90), rgba(16, 21, 36, 0.92));
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.home-dark-section .card::after,
.home-dark-section-alt .card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), transparent 42%);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}
.home-dark-section .card:hover,
.home-dark-section-alt .card:hover {
    border-color: rgba(212, 175, 55, 0.34);
    box-shadow:
        0 30px 88px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.home-dark-section .card:hover::after,
.home-dark-section-alt .card:hover::after {
    opacity: 1;
}
.home-dark-section .table-container {
    border-top-color: rgba(255, 255, 255, 0.12);
}
.home-dark-section .table-row {
    position: relative;
    margin-bottom: var(--space-1);
    padding: var(--space-3);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.045);
    overflow: hidden;
    transition:
        transform 0.24s ease,
        border-color 0.24s ease,
        background-color 0.24s ease;
}
.home-dark-section .table-row::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(212, 175, 55, 0.10), transparent 48%);
    opacity: 0;
    transition: opacity 0.24s ease;
    pointer-events: none;
}
.home-dark-section .table-row:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.26);
    background: rgba(255, 255, 255, 0.065);
}
.home-dark-section .table-row:hover::after {
    opacity: 1;
}
.home-dark-section .table-label {
    color: var(--brand-accent);
}
.home-dark-section .table-value {
    color: rgba(255, 255, 255, 0.80);
}
.home-dark-section .link-inline {
    color: var(--brand-accent);
}

/* ── Marquee ── */

.home-marquee {
    position: relative;
    overflow: hidden;
    margin-top: -1px;
    border-block: 1px solid rgba(212, 175, 55, 0.11);
    background:
        linear-gradient(90deg, #070b14 0%, #111a2d 50%, #070b14 100%);
    color: rgba(255, 255, 255, 0.72);
}
.home-marquee::before,
.home-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    z-index: 2;
    width: 220px;
    height: 100%;
    pointer-events: none;
}
.home-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #070b14 0%, rgba(7, 11, 20, 0.92) 38%, transparent 100%);
}
.home-marquee::after {
    right: 0;
    background: linear-gradient(270deg, #070b14 0%, rgba(7, 11, 20, 0.92) 38%, transparent 100%);
}
.home-marquee-track {
    display: flex;
    width: max-content;
    gap: var(--space-6);
    padding: 12px var(--space-4) 12px calc(var(--space-4) + 8px);
    animation: marquee-drift 64s linear infinite;
}
.home-marquee-track span {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: var(--font-size-sm);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}
.home-marquee-track span::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-right: var(--space-2);
    border-radius: 50%;
    background: var(--brand-accent);
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.55);
}

/* ── Stats Strip ── */

.home-stats-strip {
    position: relative;
    padding: var(--space-5) 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(212, 175, 55, 0.10), transparent 28%),
        radial-gradient(circle at 15% 100%, rgba(47, 93, 168, 0.12), transparent 30%),
        linear-gradient(180deg, #07101f 0%, #101a2e 100%);
}
.home-stats-strip::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.42), transparent);
}
.home-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-2);
}
.home-stat-card {
    position: relative;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2);
    border: 1px solid rgba(255, 255, 255, 0.105);
    border-radius: var(--radius-md);
    background:
        radial-gradient(180px circle at 50% 0%, rgba(212, 175, 55, 0.085), transparent 62%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.060), rgba(255, 255, 255, 0.024));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 52px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    transition:
        transform 0.28s ease,
        border-color 0.28s ease,
        background-color 0.28s ease;
}
.home-stat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), transparent 46%);
    opacity: 0;
    transition: opacity 0.28s ease;
}
.home-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(212, 175, 55, 0.32);
    background-color: rgba(255, 255, 255, 0.06);
}
.home-stat-card:hover::before {
    opacity: 1;
}
.home-stat-card span {
    position: relative;
    color: var(--brand-accent);
    font-size: clamp(0.92rem, 1.55vw, 1.42rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
}

/* ── Motion & Animation Keyframes ── */

@keyframes marquee-drift {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@keyframes hero-sheen-drift {
    from { transform: translate3d(-10%, 0, 0); opacity: 0.36; }
    to   { transform: translate3d(6%, 0, 0); opacity: 0.62; }
}

@media (max-width: 900px) {
    .hero-editorial-grid {
        grid-template-columns: 1fr;
    }
    .hero-capital-visual {
        width: min(100%, 520px);
        justify-self: center;
        margin-top: 0;
        margin-left: 0;
        padding: var(--space-2);
        border-radius: 22px;
    }
    .hero-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 560px) {
    .hero-section {
        padding-block: var(--space-8);
    }
    .hero-actions .btn {
        width: 100%;
    }
}


/* ═══════════════════════════════════
   Responsive overrides
═══════════════════════════════════ */

@media (max-width: 768px) {
    .hero-grid,
    .two-col-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
}


/* ═══════════════════════════════════
   Capital structure diagram
   Inline HTML/CSS/SVG (index.html hero). Renders directly inside the
   existing .map-visual glass card, so it has no outer background/border
   of its own — .map-visual already supplies that chrome.
═══════════════════════════════════ */

.capital-diagram {
    --cd-grad-gold-text:    linear-gradient(135deg, #fff2be 0%, #fbd561 40%, #c49323 100%);
    --cd-grad-gold-surface: linear-gradient(180deg, rgba(82, 57, 12, 0.95) 0%, rgba(38, 26, 5, 0.95) 100%);
    --cd-grad-gold-border:  linear-gradient(180deg, #ffe082 0%, #d4af37 60%, rgba(184, 134, 11, 0.2) 100%);

    --cd-blue-2-surface: linear-gradient(180deg, rgba(24, 56, 112, 0.94) 0%, rgba(12, 28, 58, 0.97) 100%);
    --cd-blue-2-border:  linear-gradient(180deg, #8fe0ff 0%, #2f80ed 60%, rgba(16, 42, 87, 0.3) 100%);

    --cd-blue-3-surface: linear-gradient(180deg, rgba(21, 46, 92, 0.94) 0%, rgba(11, 23, 48, 0.97) 100%);
    --cd-blue-3-border:  linear-gradient(180deg, #7ad5ff 0%, #2870d8 60%, rgba(16, 42, 87, 0.3) 100%);

    --cd-blue-4-surface: linear-gradient(180deg, rgba(18, 37, 75, 0.94) 0%, rgba(9, 19, 39, 0.97) 100%);
    --cd-blue-4-border:  linear-gradient(180deg, #67c2f0 0%, #2260bf 60%, rgba(16, 42, 87, 0.3) 100%);

    --cd-blue-5-surface: linear-gradient(180deg, rgba(14, 29, 60, 0.94) 0%, rgba(7, 15, 31, 0.97) 100%);
    --cd-blue-5-border:  linear-gradient(180deg, #54aade 0%, #1c50a3 60%, rgba(16, 42, 87, 0.3) 100%);

    --cd-grad-text-white: linear-gradient(180deg, #ffffff 30%, #b8c8dc 100%);
    --cd-glow-gold: rgba(245, 197, 66, 0.45);
    --cd-glow-blue: rgba(64, 169, 255, 0.35);

    position: relative;
    width: 100%;
    container-type: inline-size;
    container-name: capdiagram;
}

.capital-diagram-title {
    text-align: center;
    font-size: clamp(0.95rem, 5.6cqw, 1.4rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    line-height: 1.15;
    text-transform: uppercase;
    margin: 0 0 clamp(14px, 4cqw, 26px);
    background: linear-gradient(180deg, #ffffff 20%, #b0c4de 70%, #687f9d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.8));
}

.capital-diagram-wrapper {
    display: flex;
    align-items: stretch;
    gap: clamp(10px, 3.4cqw, 24px);
    width: 100%;
}

.capital-priority-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(38px, 11cqw, 56px);
    flex-shrink: 0;
}
.capital-priority-text {
    background: var(--cd-grad-gold-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(0.5rem, 2.4cqw, 0.64rem);
    font-weight: 800;
    text-align: center;
    line-height: 1.35;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
}
.capital-priority-arrow-line {
    flex: 1;
    width: 2.5px;
    background: linear-gradient(to bottom, #ffe885 0%, #d4af37 40%, rgba(212, 175, 55, 0.4) 85%, #d4af37 100%);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}
.capital-priority-arrow-head {
    width: 0;
    height: 0;
    margin-top: -1px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 10px solid #d4af37;
    filter: drop-shadow(0 3px 6px rgba(212, 175, 55, 0.6));
}

.capital-pyramid {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.capital-tier {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px clamp(8px, 2.6cqw, 14px);
    text-align: center;
    border-radius: 9px;
    /* Never let a tier be narrower than its own label: the percentage widths
       below set the pyramid shape, this stops text spilling outside the block
       if a label needs more room than its tier's share. Note min() with
       max-content is not supported, so this is a plain max-content; the
       container query at the end wraps the text before it can get too wide. */
    min-width: max-content;
    max-width: 100%;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.32s ease;
}
.capital-tier-1 { width: 46%; z-index: 5; }
.capital-tier-2 { width: 59%; z-index: 4; }
.capital-tier-3 { width: 72%; z-index: 3; }
.capital-tier-4 { width: 85%; z-index: 2; }
.capital-tier-5 { width: 98%; z-index: 1; }

.capital-tier::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    border-radius: 50%;
}

/* Gradient border via a masked pseudo-element rather than border-image:
   border-image ignores border-radius and draws square corners. */
.capital-tier::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.capital-tier-blue,
.capital-tier-gold {
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.35),
        0 0 14px var(--cd-glow-blue),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.capital-tier-gold {
    background:
        radial-gradient(100% 100% at 50% 0%, rgba(255, 214, 92, 0.32) 0%, transparent 80%),
        var(--cd-grad-gold-surface);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.45),
        0 0 20px var(--cd-glow-gold),
        inset 0 1px 0 rgba(255, 255, 255, 0.32);
    padding-block: 12px;
}
.capital-tier-gold::after { background: var(--cd-grad-gold-border); }
.capital-tier-gold:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.55),
        0 0 30px rgba(245, 197, 66, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.capital-tier-2 { background: radial-gradient(120% 100% at 50% 0%, rgba(56, 132, 255, 0.24) 0%, transparent 70%), var(--cd-blue-2-surface); }
.capital-tier-2::after { background: var(--cd-blue-2-border); }

.capital-tier-3 { background: radial-gradient(120% 100% at 50% 0%, rgba(56, 132, 255, 0.2) 0%, transparent 70%), var(--cd-blue-3-surface); }
.capital-tier-3::after { background: var(--cd-blue-3-border); }

.capital-tier-4 { background: radial-gradient(120% 100% at 50% 0%, rgba(56, 132, 255, 0.17) 0%, transparent 70%), var(--cd-blue-4-surface); }
.capital-tier-4::after { background: var(--cd-blue-4-border); }

.capital-tier-5 { background: radial-gradient(120% 100% at 50% 0%, rgba(56, 132, 255, 0.14) 0%, transparent 70%), var(--cd-blue-5-surface); }
.capital-tier-5::after { background: var(--cd-blue-5-border); }

.capital-tier-blue:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 16px 32px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(64, 169, 255, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.capital-tier-icon {
    width: 20px;
    height: 20px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.capital-tier-gold .capital-tier-icon svg {
    fill: none;
    stroke: url(#capDiagramGoldIcon);
    stroke-width: 2;
    filter: drop-shadow(0 0 6px rgba(245, 197, 66, 0.5));
}
.capital-tier-blue .capital-tier-icon svg {
    fill: none;
    stroke: url(#capDiagramBlueIcon);
    stroke-width: 1.8;
    filter: drop-shadow(0 0 5px rgba(64, 169, 255, 0.45));
}

.capital-tier-name {
    font-size: clamp(0.6rem, 3cqw, 0.82rem);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.25;
    white-space: nowrap;
}
.capital-tier-gold .capital-tier-name {
    background: var(--cd-grad-gold-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
}
.capital-tier-blue .capital-tier-name {
    background: var(--cd-grad-text-white);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

.capital-tier-sub {
    font-size: clamp(0.48rem, 2.2cqw, 0.62rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 2px;
    white-space: nowrap;
}
.capital-tier-gold .capital-tier-sub {
    background: linear-gradient(90deg, #e3be64 0%, #c49935 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.capital-tier-blue .capital-tier-sub {
    background: linear-gradient(90deg, #99aec9 0%, #768ca8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.capital-pyramid-base-glow {
    width: 92%;
    height: 7px;
    background: radial-gradient(ellipse at center, rgba(64, 169, 255, 0.7) 0%, rgba(47, 128, 237, 0.2) 50%, transparent 80%);
    margin-top: 4px;
    border-radius: 50%;
    filter: blur(2px);
}

/* Wrapping is keyed to the diagram's own width, not the viewport: the card
   sits in a hero column that is far narrower than the screen on desktop, so a
   viewport media query fires at the wrong moment. */
@container capdiagram (max-width: 330px) {
    .capital-tier { padding: 8px 6px; }
    .capital-tier-name,
    .capital-tier-sub { white-space: normal; line-height: 1.3; }
}
