/* ==========================================================================
   PUNTA DEWA GROUP — PRIVATE FAMILY CAPITAL & CLOSED QUANTITATIVE SYNDICATE
   Design System & Styling
   ========================================================================== */

:root {
    /* Color Palette */
    --color-bg-base: #07080a;
    --color-bg-surface: #0e1117;
    --color-bg-card: #131720;
    --color-bg-elevated: #1a202c;
    --color-bg-subtle: rgba(255, 255, 255, 0.03);

    --color-border-subtle: rgba(255, 255, 255, 0.07);
    --color-border-medium: rgba(255, 255, 255, 0.14);
    --color-border-gold: rgba(198, 169, 114, 0.35);

    --color-text-primary: #f2f4f7;
    --color-text-secondary: #9da4b2;
    --color-text-tertiary: #687082;
    --color-text-muted: #4e5565;

    --color-gold-base: #c6a972;
    --color-gold-light: #e8d5b5;
    --color-gold-dark: #967d4e;
    --color-gold-glow: rgba(198, 169, 114, 0.18);

    --color-green-alpha: #34d399;
    --color-green-glow: rgba(52, 211, 153, 0.15);
    --color-warning: #f59e0b;

    /* Typography */
    --font-serif-display: 'Cinzel', 'Cormorant Garamond', 'Georgia', serif;
    --font-serif-body: 'Cormorant Garamond', 'Georgia', serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Consolas', monospace;

    /* Layout & Spacing */
    --container-max-width: 1200px;
    --container-padding: 24px;
    --roster-scrollbar-width: 8px;
    --nav-height: 68px;
    --nav-link-padding-x: clamp(4px, 0.5vw, 8px);
    --transition-fast: 0.18s ease;
    --transition-standard: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height, 68px);
    background-color: var(--color-bg-base);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.page-transitioning-in {
    scroll-behavior: auto !important;
}

html.page-restoring {
    scroll-behavior: auto !important;
}

html.page-restoring *,
html.page-restoring *::before,
html.page-restoring *::after {
    animation: none !important;
    transition: none !important;
}

html.page-restoring .page-curtain {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body {
    background-color: var(--color-bg-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--color-gold-base);
    outline-offset: 3px;
}

/* Typography Helpers */
.font-mono {
    font-family: var(--font-mono);
    letter-spacing: -0.02em;
}

.gold-gradient {
    background: linear-gradient(135deg, #ffffff 10%, #e8d5b5 50%, #c6a972 90%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-green {
    color: var(--color-green-alpha) !important;
}

.font-warning {
    color: var(--color-warning) !important;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font-sans);
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    line-height: 1;
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--color-border-medium);
    color: var(--color-text-primary);
}

.btn-outline:hover {
    background-color: var(--color-gold-glow);
    border-color: var(--color-gold-base);
    color: var(--color-gold-light);
}

.btn-gold {
    background: linear-gradient(135deg, var(--color-gold-base), var(--color-gold-dark));
    color: #07080a;
    font-weight: 600;
    border: none;
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-base));
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-restricted {
    background-color: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.badge-gold {
    background-color: var(--color-gold-glow);
    border: 1px solid var(--color-border-gold);
    color: var(--color-gold-light);
}

/* Pulsing Status Dot */
.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--color-green-alpha);
    display: inline-block;
}

.status-dot.pulsing {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: pulse 2.4s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
    }
}

/* ==========================================================================
   Telemetry Header Bar — Institutional Precision Tier
   ========================================================================== */
.system-bar {
    background-color: #040507;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    height: 34px;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1001;
    width: 100%;
    max-width: 100vw;
}

.system-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    max-width: 1400px;
    padding-left: clamp(16px, 2.2vw, 36px);
    padding-right: clamp(16px, 2.2vw, 36px);
    margin-left: auto;
    margin-right: auto;
    font-size: 10.5px;
    font-family: var(--font-mono);
    color: var(--color-text-tertiary);
    letter-spacing: 0.04em;
    box-sizing: border-box;
}

.telemetry-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Restrained, non-distracting emerald heartbeat */
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-green-alpha);
    display: inline-block;
    flex-shrink: 0;
    align-self: center;
    line-height: 1;
    vertical-align: middle;
    box-shadow: 0 0 5px rgba(52, 211, 153, 0.6);
}

.status-dot.pulsing {
    animation: gentlePulse 3.6s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% {
        opacity: 0.85;
        box-shadow: 0 0 4px rgba(52, 211, 153, 0.5);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 8px rgba(52, 211, 153, 0.85);
    }
}

.telemetry-label {
    color: #555d6e;
    font-weight: 500;
    letter-spacing: 0.06em;
}

.telemetry-val {
    color: #94a3b8;
    font-weight: 500;
}

.telemetry-clocks {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.2vw, 16px);
    white-space: nowrap;
    flex-shrink: 0;
}

.clock-item {
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.clock-label {
    color: #555d6e;
    font-size: 10px;
    letter-spacing: 0.05em;
}

.clock-time {
    color: #e8d5b5;
    font-weight: 500;
    font-size: 11px;
    display: inline-block;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.02em;
    min-width: 78px;
    white-space: nowrap;
}

/* Architectural Hairline Divider */
.clock-divider {
    display: inline-block;
    width: 1px;
    height: 11px;
    background-color: rgba(255, 255, 255, 0.12);
    vertical-align: middle;
}

.telemetry-status {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Institutional Security Tag */
.badge-restricted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 140px;
    height: 24px;
    padding: 0 8px;
    box-sizing: border-box;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.28);
    border-radius: 3px;
    color: #f87171;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.badge-restricted svg {
    color: #ef4444;
    opacity: 0.85;
    flex-shrink: 0;
}

/* ==========================================================================
   Primary Navigation — Executive Institutional Grade
   ========================================================================== */
.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(7, 8, 10, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    height: 68px;
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    width: 100%;
    max-width: 100vw;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(16px, 2.2vw, 36px);
    padding-right: clamp(16px, 2.2vw, 36px);
    gap: clamp(8px, 1.2vw, 20px);
    box-sizing: border-box;
}

/* Brand Lockup */
.brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
    padding: 4px 0;
    transition: opacity var(--transition-fast);
}

.brand-group:hover {
    opacity: 0.95;
}

.brand-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
}

.brand-wordmark {
    display: block;
    width: clamp(104px, 10vw, 150px);
    height: auto;
    max-height: 36px;
    object-fit: contain;
    object-position: left center;
}

.brand-subtitle {
    font-family: var(--font-mono);
    font-size: 6.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(198, 169, 114, 0.72);
    line-height: 1;
    white-space: nowrap;
    text-transform: uppercase;
}

/* Nav Links — Pure Single-Line Architecture */
.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.75vw, 13px);
    min-width: 0;
    flex-shrink: 0;
    height: 100%;
}

.nav-links a {
    position: relative;
    color: #94a3b8;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.015em;
    line-height: 1;
    padding: 0 var(--nav-link-padding-x, clamp(4px, 0.5vw, 8px));
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    max-width: none;
    transition: color 0.2s ease;
}

/* Subtle, perfectly aligned hairline underline indicator flush with header bottom border */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--nav-link-padding-x, clamp(4px, 0.5vw, 8px));
    right: var(--nav-link-padding-x, clamp(4px, 0.5vw, 8px));
    height: 2px;
    background-color: var(--color-gold-base);
    box-shadow: 0 0 8px rgba(198, 169, 114, 0.6);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.24s ease;
    opacity: 0;
    border-radius: 1px 1px 0 0;
}

.nav-links a:hover {
    color: #f1f5f9;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-links a.active {
    color: #e8d5b5;
    font-weight: 600;
}

/* Syndicate Count Micro-Badge */
.nav-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5px 5px;
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--color-gold-base);
    background: rgba(198, 169, 114, 0.12);
    border: 1px solid rgba(198, 169, 114, 0.25);
    border-radius: 2px;
    margin-left: 2px;
    line-height: 1.2;
    transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.nav-links a:hover .nav-count,
.nav-links a.active .nav-count {
    background: rgba(198, 169, 114, 0.2);
    border-color: rgba(198, 169, 114, 0.45);
    color: var(--color-gold-light);
}

/* Institutional Investment Calculator Item */
.nav-links a.nav-link-calculator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #cbd5e1;
    max-width: none;
}

.nav-calc-icon {
    width: 13px;
    height: 13px;
    color: var(--color-gold-base);
    flex-shrink: 0;
    transition: transform 0.2s ease, filter 0.2s ease, color 0.2s ease;
}

.nav-calc-star {
    width: 12px;
    height: 12px;
    color: var(--color-gold-base);
    flex-shrink: 0;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-links a.nav-link-calculator:hover .nav-calc-icon,
.nav-links a.nav-link-calculator.active .nav-calc-icon,
.nav-links a.nav-link-calculator:hover .nav-calc-star,
.nav-links a.nav-link-calculator.active .nav-calc-star {
    color: var(--color-gold-light);
    filter: drop-shadow(0 0 6px rgba(198, 169, 114, 0.6));
    transform: scale(1.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Member Keycard Action Button — Obsidian Gateway Card */
.btn-keycard,
#btn-terminal-auth {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 140px;
    height: 28px;
    padding: 0 8px;
    box-sizing: border-box;
    font-size: 11px;
    font-weight: 500;
    font-family: var(--font-sans);
    letter-spacing: 0.025em;
    border-radius: 3px;
    border: 1px solid rgba(198, 169, 114, 0.28);
    background: rgba(16, 20, 28, 0.85);
    color: #e2e8f0;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: all 0.2s ease;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-keycard svg,
#btn-terminal-auth svg {
    color: var(--color-gold-base);
    transition: transform 0.2s ease, color 0.2s ease;
}

.btn-keycard:hover,
#btn-terminal-auth:hover {
    background: rgba(26, 32, 44, 0.95);
    border-color: rgba(198, 169, 114, 0.55);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(198, 169, 114, 0.16), 0 2px 6px rgba(0, 0, 0, 0.5);
}

.btn-keycard:hover svg,
#btn-terminal-auth:hover svg {
    color: var(--color-gold-light);
    transform: scale(1.08);
}

.btn-keycard:active,
#btn-terminal-auth:active {
    transform: translateY(1px);
    box-shadow: 0 0 4px rgba(198, 169, 114, 0.1);
}

.mobile-toggle-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--color-border-medium);
    border-radius: 4px;
    padding: 7px;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
    width: 36px;
    height: 36px;
    justify-content: center;
    align-items: center;
    transition: all var(--transition-fast);
}

.mobile-toggle-btn:hover {
    border-color: var(--color-gold-base);
    background-color: var(--color-gold-glow);
}

.hamburger-bar {
    width: 18px;
    height: 2px;
    background-color: var(--color-gold-light);
    border-radius: 1px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-toggle-btn.active .hamburger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-toggle-btn.active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-toggle-btn.active .hamburger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav-drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(9, 11, 15, 0.98);
    border-bottom: 1px solid var(--color-border-gold);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    z-index: 99;
}

.mobile-nav-drawer.active {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: slideDown 0.25s ease-out forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mobile-nav-link {
    color: var(--color-text-primary);
    text-decoration: none;
    font-size: 14.5px;
    font-family: var(--font-sans);
    padding: 10px 14px;
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
    background-color: var(--color-gold-glow);
    border-left-color: var(--color-gold-base);
    color: var(--color-gold-light);
}

.mobile-nav-link.active {
    background-color: var(--color-gold-glow);
    border-left-color: var(--color-gold-base);
    color: var(--color-gold-light);
    font-weight: 500;
}

.mobile-nav-link.mobile-nav-calc {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav-calc-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.mobile-nav-calc .nav-calc-icon,
.mobile-nav-calc .nav-calc-star {
    width: 14px;
    height: 14px;
    color: var(--color-gold-base);
}

.nav-exclusive-tag {
    font-family: var(--font-mono);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    border-radius: 3px;
    background-color: rgba(198, 169, 114, 0.12);
    border: 1px solid rgba(198, 169, 114, 0.3);
    color: var(--color-gold-base);
    text-transform: uppercase;
}

.mobile-nav-link.mobile-nav-calc:hover .nav-exclusive-tag,
.mobile-nav-link.mobile-nav-calc.active .nav-exclusive-tag {
    background-color: var(--color-gold-glow);
    border-color: var(--color-gold-base);
    color: var(--color-gold-light);
}

.mobile-nav-action {
    padding-top: 14px;
    border-top: 1px solid var(--color-border-subtle);
}

.mobile-nav-action .btn {
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: calc(100vh - 102px);
    min-height: calc(100dvh - 102px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 70px 0;
    background-color: var(--color-bg-base);
    border-bottom: 1px solid var(--color-border-subtle);
    overflow: hidden;
    box-sizing: border-box;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 20%, transparent 80%);
    pointer-events: none;
}

.hero-subtle-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(198, 169, 114, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* Hero Entrance Orchestration */
@keyframes heroEyebrowReveal {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroHeadlineReveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroDescReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroNoticeReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroStripReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes metricBlockEntrance {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    animation: heroEyebrowReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.eyebrow-line {
    width: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-base));
}

.hero-eyebrow .eyebrow-line:last-child {
    background: linear-gradient(90deg, var(--color-gold-base), transparent);
}

.eyebrow-text {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--color-gold-base);
}

.hero-headline {
    font-family: var(--font-serif-display);
    font-size: clamp(38px, 4.9vw, 75px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.04em;
    white-space: nowrap;
    max-width: 100%;
    margin-bottom: 24px;
    color: var(--color-text-primary);
    animation: heroHeadlineReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.hero-description {
    font-size: 16px;
    line-height: 1.82;
    color: var(--color-text-secondary);
    max-width: 1040px;
    margin-bottom: 36px;
    font-weight: 300;
    letter-spacing: 0.012em;
    text-wrap: balance;
    animation: heroDescReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.38s both;
}

.hero-line {
    display: block;
}

/* Closed Fund Alert Card */
.closed-notice-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background-color: rgba(19, 23, 32, 0.7);
    border: 1px solid var(--color-border-gold);
    border-radius: 6px;
    padding: 16px 22px;
    max-width: 820px;
    margin-bottom: 56px;
    text-align: left;
    backdrop-filter: blur(8px);
    animation: heroNoticeReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) 0.52s both;
}

.notice-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.notice-body {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    text-align: justify;
}

.notice-body strong {
    color: var(--color-gold-light);
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
}

/* Key Metrics Anchor Strip — Orchestrated Presentation Engine */
.hero-metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    max-width: 1080px;
    background: var(--color-bg-surface);
    border: 1px solid var(--color-border-medium);
    border-radius: 6px;
    padding: 24px 28px;
    gap: 16px;
    position: relative;
    overflow: hidden;
    animation: heroStripReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

/* Horizontal laser scan beam across the top border */
.hero-metrics-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold-base), #ffffff, var(--color-gold-light), transparent);
    box-shadow: 0 0 10px rgba(198, 169, 114, 0.8), 0 0 20px rgba(232, 213, 181, 0.5);
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.hero-metrics-strip.laser-active::before {
    animation: stripLaserScan 2.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stripLaserScan {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        transform: translateX(320%);
        opacity: 0;
    }
}

.metric-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 14px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: transform var(--transition-standard), background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
}

/* Subtle hairline divider between cards on desktop */
.metric-block:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 22%;
    bottom: 22%;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    pointer-events: none;
}

.metric-block[data-metric-index="0"] {
    animation: metricBlockEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.68s both;
}

.metric-block[data-metric-index="1"] {
    animation: metricBlockEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.80s both;
}

.metric-block[data-metric-index="2"] {
    animation: metricBlockEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.92s both;
}

.metric-block[data-metric-index="3"] {
    animation: metricBlockEntrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1.04s both;
}

.metric-block:hover {
    background: rgba(255, 255, 255, 0.025);
    border-color: rgba(198, 169, 114, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.metric-value {
    font-size: 34px;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.1;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
    transition: transform 0.25s ease, text-shadow 0.25s ease;
    display: inline-block;
}

.metric-value.is-animating {
    text-shadow: 0 0 16px rgba(198, 169, 114, 0.55), 0 0 32px rgba(198, 169, 114, 0.2);
    transform: translateY(-1px);
}

.metric-value.accent-green.is-animating {
    text-shadow: 0 0 16px rgba(52, 211, 153, 0.6), 0 0 32px rgba(52, 211, 153, 0.25);
    transform: translateY(-1px);
}

.metric-value.is-resolved {
    animation: metricResolvedPing 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes metricResolvedPing {
    0% {
        transform: scale(1.06);
        filter: brightness(1.2);
    }
    100% {
        transform: scale(1);
        filter: brightness(1);
    }
}

/* Cipher Text Decryption Animation */
.text-cipher {
    display: inline-block;
    transition: letter-spacing 0.2s ease, transform 0.2s ease;
}

.text-cipher.is-animating {
    color: var(--color-gold-light);
    letter-spacing: 0.08em;
    text-shadow: 0 0 14px rgba(198, 169, 114, 0.75);
    transform: translateY(-1px);
}

.text-cipher.is-resolved {
    animation: cipherLockGlow 0.55s ease-out;
}

@keyframes cipherLockGlow {
    0% {
        color: #ffffff;
        text-shadow: 0 0 20px rgba(198, 169, 114, 1);
        transform: scale(1.06);
    }
    100% {
        color: var(--color-text-primary);
        text-shadow: none;
        transform: scale(1);
    }
}

/* Dynamic Captions & Subtitles Entrance Movement */
.metric-caption {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.metric-sub {
    font-size: 11px;
    font-family: var(--font-mono);
    color: var(--color-text-tertiary);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.metric-block[data-metric-index="0"] .metric-caption {
    animation: metricTextSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.76s both;
}
.metric-block[data-metric-index="0"] .metric-sub {
    animation: metricTextSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.84s both;
}

.metric-block[data-metric-index="1"] .metric-caption {
    animation: metricTextSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.88s both;
}
.metric-block[data-metric-index="1"] .metric-sub {
    animation: metricTextSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.96s both;
}

.metric-block[data-metric-index="2"] .metric-caption {
    animation: metricTextSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1.00s both;
}
.metric-block[data-metric-index="2"] .metric-sub {
    animation: metricTextSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1.08s both;
}

.metric-block[data-metric-index="3"] .metric-caption {
    animation: metricTextSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1.12s both;
}
.metric-block[data-metric-index="3"] .metric-sub {
    animation: metricTextSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1.20s both;
}

@keyframes metricTextSlide {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Section Layout & Standard Elements
   ========================================================================== */
.section {
    padding: 96px 0;
    border-bottom: 1px solid var(--color-border-subtle);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 60px;
}

.roster-section .section-header {
    max-width: 960px;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--color-gold-base);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-serif-display);
    font-size: clamp(28px, 3.6vw, 40px);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.section-intro {
    font-size: 16px;
    line-height: 1.68;
    color: var(--color-text-secondary);
    font-weight: 300;
}

.roster-section .section-intro {
    text-wrap: balance;
}

/* ==========================================================================
   Company Profile & Mandate
   ========================================================================== */
.profile-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 32px;
}

.profile-card {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: 6px;
    padding: 36px;
    transition: border-color var(--transition-fast);
}

.profile-card:hover {
    border-color: var(--color-border-medium);
}

.profile-card-lead {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--color-gold-base);
    margin-bottom: 14px;
}

.profile-card-lead h3 {
    font-family: var(--font-serif-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.profile-card-lead p {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 18px;
    text-align: justify;
}

.card-quote {
    margin-top: 24px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--color-gold-base);
    border-radius: 0 4px 4px 0;
}

.card-quote blockquote {
    font-family: var(--font-serif-body);
    font-style: italic;
    font-size: 18px;
    line-height: 1.55;
    color: var(--color-gold-light);
    margin-bottom: 8px;
    text-align: justify;
}

.card-quote cite {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-tertiary);
    font-style: normal;
    letter-spacing: 0.04em;
}

.profile-cards-sub {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.profile-cards-sub .profile-card {
    padding: 26px;
}

.card-icon {
    margin-bottom: 14px;
}

.profile-cards-sub h4 {
    font-family: var(--font-serif-display);
    font-size: 18px;
    color: var(--color-text-primary);
    margin-bottom: 10px;
}

.profile-cards-sub p {
    color: var(--color-text-secondary);
    font-size: 13.5px;
    line-height: 1.65;
    text-align: justify;
}

/* ==========================================================================
   Investment Portfolio & Performance Gimmick
   ========================================================================== */
.perf-dashboard {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 32px;
}

.chart-wrapper {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: 6px;
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}

.chart-title {
    font-family: var(--font-serif-display);
    font-size: 19px;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.chart-note {
    font-size: 12px;
    color: var(--color-text-tertiary);
    display: block;
}

.chart-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 11.5px;
    font-family: var(--font-mono);
    color: var(--color-text-secondary);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-pdg {
    background-color: var(--color-gold-base);
    box-shadow: 0 0 6px var(--color-gold-base);
}

.dot-spx {
    background-color: #5a6b82;
}

.dot-idx {
    background-color: #374354;
}

.chart-canvas-container {
    position: relative;
    width: 100%;
    height: 320px;
}

.performance-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-node {
    cursor: pointer;
    transition: transform 0.15s ease;
}

.chart-node circle {
    fill: #07080a;
    stroke: var(--color-gold-base);
    stroke-width: 2px;
    transition: all 0.2s ease;
}

.chart-node:hover circle,
.chart-node.active circle {
    fill: var(--color-gold-base);
    stroke: #ffffff;
    stroke-width: 2.5px;
    r: 6;
}

/* Tooltip */
.chart-tooltip {
    position: absolute;
    background-color: rgba(13, 16, 22, 0.96);
    border: 1px solid var(--color-border-gold);
    border-radius: 4px;
    padding: 12px 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7);
    pointer-events: auto;
    z-index: 50;
    min-width: 200px;
    max-width: 260px;
    transform: translate(-50%, -115%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: opacity 0.15s ease;
}

.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: 4px;
}

.tooltip-year {
    color: var(--color-gold-light);
    font-size: 12px;
    font-weight: 600;
}

.tooltip-close {
    background: transparent;
    border: none;
    color: var(--color-text-tertiary);
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 0 2px;
    transition: color var(--transition-fast);
}

.tooltip-close:hover {
    color: var(--color-gold-light);
}

.tooltip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    margin-bottom: 4px;
}

.tt-label {
    color: var(--color-text-tertiary);
}

.tt-val {
    font-weight: 600;
    color: var(--color-text-primary);
}

.chart-footer-note {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border-subtle);
    font-size: 11px;
    color: var(--color-text-tertiary);
    line-height: 1.5;
}

/* Stats Panel & Allocation */
.perf-stats-panel {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: 6px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
}

.panel-heading {
    font-family: var(--font-serif-display);
    font-size: 16px;
    color: var(--color-text-primary);
    margin-bottom: 14px;
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: 8px;
    letter-spacing: 0.04em;
}

.stats-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.stat-name {
    color: var(--color-text-secondary);
}

.stat-num {
    color: var(--color-text-primary);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

.stat-num.is-animating {
    text-shadow: 0 0 10px rgba(198, 169, 114, 0.5);
}

.stat-num.accent-green.is-animating {
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

.stat-num.is-resolved {
    animation: metricResolvedPing 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.allocation-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.alloc-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.alloc-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--color-text-secondary);
}

.alloc-pct-val {
    font-variant-numeric: tabular-nums;
}

.bar-track {
    width: 100%;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold-base));
    border-radius: 2px;
    transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Illustrative Syndicate Roster & Hierarchy
   ========================================================================== */
.headcount-bar-wrapper {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 24px;
}

.headcount-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.hc-title {
    color: var(--color-gold-light);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.hc-stat {
    color: var(--color-text-tertiary);
}

.headcount-bar {
    display: flex;
    height: 14px;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.04);
    margin-bottom: 14px;
    border: 1px solid var(--color-border-subtle);
}

.headcount-seg {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 700;
    color: #07080a;
    cursor: pointer;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.headcount-seg:hover {
    opacity: 0.85;
}

.seg-exec { background: linear-gradient(135deg, #fcd34d, #f59e0b); }
.seg-quant { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.seg-eng { background: linear-gradient(135deg, #34d399, #059669); }
.seg-risk { background: linear-gradient(135deg, #fb923c, #ea580c); }
.seg-sec { background: linear-gradient(135deg, #a78bfa, #7c3aed); }

.headcount-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 11px;
    color: var(--color-text-secondary);
}

.hl-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.hl-item:hover {
    color: var(--color-text-primary);
}

.hl-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-exec { background-color: #f59e0b; }
.dot-quant { background-color: #0284c7; }
.dot-eng { background-color: #059669; }
.dot-risk { background-color: #ea580c; }
.dot-sec { background-color: #7c3aed; }

.division-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scroll-padding-inline: 12px;
    padding-bottom: 8px;
    margin-bottom: 24px;
    scrollbar-width: thin;
}

.div-tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: 5px;
    padding: 10px 18px;
    color: var(--color-text-secondary);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.div-tab:hover {
    border-color: var(--color-border-medium);
    color: var(--color-text-primary);
}

.div-tab.active {
    background-color: var(--color-bg-card);
    border-color: var(--color-gold-base);
    color: var(--color-gold-light);
    box-shadow: 0 0 12px rgba(198, 169, 114, 0.1);
}

.tab-badge {
    font-family: var(--font-mono);
    font-size: 11px;
    background-color: rgba(255, 255, 255, 0.07);
    padding: 2px 6px;
    border-radius: 3px;
    color: var(--color-text-primary);
}

.div-tab.active .tab-badge {
    background-color: var(--color-gold-base);
    color: #07080a;
    font-weight: 700;
}

/* Division Info Box */
.division-info-box {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border-medium);
    border-radius: 6px;
    padding: 28px 32px;
    margin-bottom: 36px;
}

.div-info-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 20px;
    flex-wrap: wrap;
}

.div-code {
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--color-gold-base);
    margin-bottom: 4px;
    display: block;
}

.div-name {
    font-family: var(--font-serif-display);
    font-size: 24px;
    color: var(--color-text-primary);
    font-weight: 600;
}

.div-stats {
    display: flex;
    gap: 20px;
    font-size: 11px;
}

.div-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.div-stat-item .label {
    color: var(--color-text-tertiary);
}

.div-stat-item .value {
    color: var(--color-gold-light);
    font-weight: 600;
}

.div-summary {
    color: var(--color-text-secondary);
    font-size: 14.5px;
    line-height: 1.7;
    text-align: justify;
}

/* Hierarchy Grid */
.hierarchy-grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.division-cluster {
    background-color: rgba(14, 17, 23, 0.5);
    border: 1px solid var(--color-border-subtle);
    border-radius: 6px;
    padding: 26px 30px;
    transition: opacity var(--transition-fast), border-color var(--transition-fast);
}

.division-cluster.highlighted {
    border-color: var(--color-border-gold);
    background-color: rgba(19, 23, 32, 0.85);
}

.cluster-title-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.cluster-badge {
    background-color: var(--color-gold-glow);
    border: 1px solid var(--color-border-gold);
    color: var(--color-gold-light);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 3px;
    font-weight: 600;
}

.cluster-title-bar h4 {
    font-family: var(--font-serif-display);
    font-size: 19px;
    color: var(--color-text-primary);
    font-weight: 600;
}

.cluster-summary-line {
    font-size: 12.5px;
    color: var(--color-text-tertiary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.member-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 16px;
    align-items: stretch;
}

.member-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: 5px;
    min-height: 210px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all var(--transition-fast);
}

.member-card:hover {
    border-color: var(--color-border-medium);
    transform: translateY(-2px);
}

.member-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.member-token {
    font-size: 11px;
    color: var(--color-gold-light);
    font-weight: 600;
    line-height: 1.35;
}

.clearance-tag {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    white-space: nowrap;
}

.tag-omega {
    background-color: rgba(198, 169, 114, 0.15);
    color: var(--color-gold-light);
    border-color: var(--color-gold-base);
}

.member-role {
    font-family: var(--font-serif-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
    min-height: 2.7em;
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    line-height: 1.35;
}

.member-field {
    flex: 1;
    font-size: 13px;
    color: var(--color-text-secondary);
    min-height: 4.65em;
    line-height: 1.55;
    margin-bottom: 14px;
}

.member-meta {
    font-size: 10.5px;
    color: var(--color-text-tertiary);
    min-height: 2.7em;
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 8px;
}

/* Tokens Registry Viewer */
.member-tokens-container {
    margin-top: 48px;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: 6px;
    padding: 28px 32px;
}

.roster-toggle-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}

.roster-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.roster-tip {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

.roster-filter-counts {
    font-size: 12px;
    color: var(--color-gold-light);
}

/* Member Search Bar */
.roster-search-bar {
    margin-bottom: 18px;
}

.search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--color-gold-base);
    pointer-events: none;
}

.search-input {
    width: 100%;
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: 4px;
    padding: 10px 36px 10px 34px;
    color: var(--color-text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition-fast);
}

.search-input:focus {
    border-color: var(--color-gold-base);
    box-shadow: 0 0 10px rgba(198, 169, 114, 0.15);
}

.search-clear-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: var(--color-text-tertiary);
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
}

.search-clear-btn:hover {
    color: var(--color-text-primary);
}

/* Member Confidential Dossier Card */
.member-dossier-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-gold);
    border-radius: 6px;
    padding: 22px 26px;
    margin-bottom: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.2s ease-out forwards;
}

.member-dossier-card .status-dot {
    width: 8px;
    height: 8px;
    background-color: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12), 0 0 10px rgba(52, 211, 153, 0.75);
}

.member-dossier-card .status-dot.pulsing {
    animation: dossierStatusPulse 2.8s ease-in-out infinite;
}

@keyframes dossierStatusPulse {
    0%, 100% {
        opacity: 0.9;
        box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.12), 0 0 9px rgba(52, 211, 153, 0.65);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1), 0 0 15px rgba(52, 211, 153, 0.95);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.dossier-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.dossier-id-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dossier-id {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--color-gold-light);
    letter-spacing: 0.05em;
}

.dossier-close-btn {
    background: transparent;
    border: none;
    color: var(--color-text-tertiary);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-fast);
}

.dossier-close-btn:hover {
    color: var(--color-gold-light);
}

.dossier-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
}

.dossier-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 2px 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dossier-item-wide {
    grid-column: 1 / -1;
}

.dossier-item-full {
    grid-column: 1 / -1;
    padding-top: 14px;
    padding-bottom: 0;
    border-bottom: none;
}

.dossier-label {
    display: block;
    font-size: 10px;
    color: var(--color-text-tertiary);
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}

.dossier-value {
    font-size: 13.5px;
    color: var(--color-text-primary);
    line-height: 1.45;
}

.tokens-scrollable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 0;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: rgba(198, 169, 114, 0.45) transparent;
}

.tokens-scrollable-grid::-webkit-scrollbar {
    width: var(--roster-scrollbar-width);
}

.tokens-scrollable-grid::-webkit-scrollbar-track {
    background: transparent;
}

.tokens-scrollable-grid::-webkit-scrollbar-thumb {
    background: rgba(198, 169, 114, 0.45);
    border-radius: 4px;
}

.tokens-scrollable-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(198, 169, 114, 0.7);
}

.token-badge-btn {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: 4px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    color: inherit;
    font-family: inherit;
}

.token-badge-btn:hover {
    border-color: var(--color-gold-base);
    background-color: var(--color-bg-elevated);
}

.token-badge-btn.active {
    border-color: var(--color-gold-base);
    background-color: var(--color-gold-glow);
}

.t-id {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.t-div {
    font-family: var(--font-mono);
    font-size: 9.5px;
    color: var(--color-gold-base);
}

.t-lvl {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--color-text-tertiary);
}

/* ==========================================================================
   Primary Location & Domicile Section
   ========================================================================== */
.location-layout {
    display: grid;
    grid-template-columns: 1.15fr 1.35fr;
    gap: 32px;
    align-items: stretch;
}

.location-card {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: 6px;
    padding: clamp(24px, 3vw, 36px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.location-badge {
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--color-gold-base);
    margin-bottom: 12px;
}

.location-facility {
    font-family: var(--font-serif-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 16px;
}

.address-block {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.telemetry-box {
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-border-subtle);
    border-radius: 4px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 11px;
    margin-bottom: 24px;
}

.tele-item {
    display: grid;
    grid-template-columns: minmax(128px, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: 16px;
}

.t-k {
    color: var(--color-text-muted);
    line-height: 1.45;
}

.t-v {
    min-width: 0;
    color: var(--color-gold-light);
    text-align: right;
    line-height: 1.45;
}

.location-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    background-color: rgba(198, 169, 114, 0.05);
    border: 1px solid var(--color-border-gold);
    border-radius: 4px;
    font-size: 12.5px;
    color: var(--color-text-secondary);
    line-height: 1.55;
}

.location-alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.location-alert strong {
    color: var(--color-gold-light);
}

.location-alert > span {
    text-align: justify;
}

/* Map Visual */
.location-map-visual {
    background-color: var(--color-bg-surface);
    border: 1px solid var(--color-border-subtle);
    border-radius: 6px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.map-graphic-container {
    position: relative;
    width: 100%;
    height: 380px;
    background-color: #06070a;
    border: 1px solid var(--color-border-subtle);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-overlay-title {
    position: absolute;
    top: 14px;
    left: 16px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: var(--color-gold-base);
    background-color: rgba(7, 8, 10, 0.85);
    padding: 4px 8px;
    border-radius: 3px;
    border: 1px solid var(--color-border-subtle);
    z-index: 5;
}

.map-svg {
    width: 100%;
    height: 100%;
}

.map-caption {
    font-size: 10.5px;
    color: var(--color-text-tertiary);
    text-align: center;
    margin-top: 14px;
    letter-spacing: 0.06em;
}

/* ==========================================================================
   Governance & Strict Legal Non-Solicitation (No Contact Form)
   ========================================================================== */
.governance-card {
    background: radial-gradient(ellipse at top center, rgba(26, 32, 44, 0.6) 0%, var(--color-bg-surface) 70%);
    border: 1px solid var(--color-border-gold);
    border-radius: 8px;
    padding: 56px 64px;
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.gov-crest {
    flex-shrink: 0;
    padding: 16px;
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gov-content {
    flex-grow: 1;
    min-width: 0;
}

.gov-tag {
    font-size: 11px;
    letter-spacing: 0.16em;
    color: var(--color-gold-base);
    margin-bottom: 10px;
}

.gov-headline {
    font-family: var(--font-serif-display);
    font-size: clamp(24px, 3vw, 32px);
    color: var(--color-text-primary);
    margin-bottom: 18px;
    text-wrap: balance;
}

.gov-text {
    font-size: 15px;
    line-height: 1.75;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    text-align: justify;
}

.gov-text strong {
    color: var(--color-text-primary);
}

.gov-bullet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
    row-gap: 18px;
    margin: 28px 0;
    font-family: var(--font-sans);
    font-size: 12.5px;
    line-height: 1.55;
    letter-spacing: normal;
}

.gov-bullet {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--color-text-secondary);
    min-width: 0;
}

.bullet-icon {
    color: var(--color-gold-base);
    font-size: 16px;
    line-height: 1;
}

.gov-notice-box {
    padding: 14px 18px;
    background-color: rgba(0, 0, 0, 0.4);
    border-left: 2px solid var(--color-border-medium);
    font-size: 12px;
    color: var(--color-text-tertiary);
    line-height: 1.6;
    text-align: justify;
}

.gov-notice-box span {
    color: var(--color-text-secondary);
    font-weight: 600;
}

/* ==========================================================================
   Terminal Modal Window (Simulated Easter Egg)
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-window {
    background-color: #0b0d12;
    border: 1px solid var(--color-border-gold);
    border-radius: 6px;
    width: 100%;
    max-width: 720px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(198, 169, 114, 0.05);
    overflow: hidden;
    animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    background-color: #06070a;
    border-bottom: 1px solid var(--color-border-subtle);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-title {
    font-size: 11px;
    color: var(--color-gold-light);
    letter-spacing: 0.08em;
    font-weight: 500;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--color-text-tertiary);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close-btn:hover {
    color: var(--color-text-primary);
}

.modal-body {
    padding: 24px;
}

/* Zero-Scrollbar Centered ASCII Art */
.terminal-banner {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
    user-select: none;
}

.terminal-ascii {
    margin: 0;
    padding: 0;
    font-family: var(--font-mono, monospace);
    font-size: 8.5px;
    line-height: 1.15;
    letter-spacing: 0px;
    color: var(--color-gold-base);
    text-shadow: 0 0 14px rgba(198, 169, 114, 0.35);
    text-align: center;
    white-space: pre;
    display: block;
}

@media (max-width: 680px) {
    .terminal-ascii {
        font-size: 5.6px;
    }
}
@media (max-width: 480px) {
    .terminal-ascii {
        font-size: 4.4px;
    }
}
@media (max-width: 380px) {
    .terminal-ascii {
        font-size: 3.8px;
    }
}

/* Institutional Zero-Trust Terminal Console */
.terminal-log {
    background-color: #040508;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.7);
}

.terminal-log-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: #717e96;
}

.tlt-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.tlt-pip {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.8);
    display: inline-block;
}

.tlt-right {
    color: #556277;
    font-size: 9.5px;
    letter-spacing: 0.06em;
}

.terminal-log-body {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.t-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 11px;
    line-height: 1.5;
    border-left: 2px solid transparent;
    transition: background-color var(--transition-fast);
}

.t-prompt {
    font-weight: 700;
    user-select: none;
    flex-shrink: 0;
    color: #556277;
}

.t-text {
    flex-grow: 1;
    word-break: break-word;
}

/* Row states */
.t-row-dim {
    color: #8895a7;
    border-left-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.012);
}

.t-row-dim .t-prompt {
    color: #64748b;
}

.t-row-warn {
    background: rgba(239, 68, 68, 0.08);
    border-left-color: #ef4444;
    color: #fca5a5;
    font-weight: 500;
}

.t-row-warn .t-prompt {
    color: #ef4444;
}

.t-row-hw {
    background: rgba(255, 255, 255, 0.02);
    border-left-color: #94a3b8;
    color: #cbd5e1;
}

.t-row-hw .t-prompt {
    color: #94a3b8;
}

.t-row-gold {
    background: rgba(198, 169, 114, 0.07);
    border-left-color: #c6a972;
    color: #dfcaa2;
    font-weight: 500;
}

.t-row-gold .t-prompt {
    color: #c6a972;
}

/* Compatibility with dynamic lines inserted via JS */
.terminal-log-body .t-line {
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 11.5px;
    line-height: 1.5;
    border-left: 2px solid #34d399;
    background: rgba(52, 211, 153, 0.08);
    color: #6ee7b7;
    margin: 0;
}

/* Terminal Input Simulation */
.terminal-input-sim {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (max-width: 520px) {
    .terminal-input-sim {
        flex-wrap: wrap;
    }
    .t-input-label {
        width: 100%;
    }
}

.t-input-label {
    font-size: 11px;
    color: var(--color-gold-base);
    letter-spacing: 0.06em;
    font-weight: 600;
    white-space: nowrap;
}

.terminal-field {
    flex-grow: 1;
    background-color: #050608;
    border: 1px solid var(--color-border-medium);
    color: var(--color-text-primary);
    padding: 9px 14px;
    font-size: 12px;
    border-radius: 4px;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.terminal-field:focus {
    border-color: var(--color-gold-base);
    box-shadow: 0 0 10px rgba(198, 169, 114, 0.15);
}

.terminal-feedback {
    margin-top: 10px;
    font-size: 11px;
    min-height: 18px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: #040507;
    border-top: 1px solid var(--color-border-subtle);
    padding: 50px 0 30px;
    margin-top: auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.footer-brand-title {
    font-family: var(--font-serif-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.footer-brand-desc {
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-text-tertiary);
}

.footer-meta {
    font-size: 11px;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border-subtle);
    padding-top: 24px;
    font-size: 12px;
    color: var(--color-text-muted);
    flex-wrap: wrap;
    gap: 16px;
}

.footer-badge {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-badge .status-dot {
    transform: translateY(-1px);
}

/* ==========================================================================
   Structural Helper & Section Modifier Classes
   ========================================================================== */
html.modal-open,
body.modal-open {
    overflow: hidden;
}

.profile-section,
.performance-section,
.roster-section,
.location-section {
    position: relative;
}

.governance-section {
    position: relative;
    min-height: calc(100vh - var(--nav-height, 68px));
    min-height: calc(100dvh - var(--nav-height, 68px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 3.5vw, 44px) 0 clamp(48px, 6vw, 80px);
}

.chart-title-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.grid-lines {
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 1px;
}

.axis-labels text {
    font-family: var(--font-mono);
    font-size: 11px;
    fill: var(--color-text-tertiary);
}

.axis-x-labels text {
    font-family: var(--font-mono);
    font-size: 11px;
    fill: var(--color-text-secondary);
}

.path-benchmark {
    fill: none;
    transition: stroke 0.2s ease;
}

.path-benchmark.spx {
    stroke: #5a6b82;
    stroke-width: 1.75;
    stroke-dasharray: 3,3;
}

.path-benchmark.idx {
    stroke: #414a58;
    stroke-width: 1.5;
    stroke-dasharray: 2,2;
}

.pdg-area {
    transition: opacity 0.3s ease;
}

.path-pdg {
    stroke: var(--color-gold-base);
    stroke-width: 3;
    stroke-linecap: round;
    fill: none;
}

.chart-nodes {
    transition: all 0.2s ease;
}

.allocation-section {
    margin-top: 8px;
}

.tab-title {
    font-weight: 500;
}

.div-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hierarchy-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.address-line {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
    line-height: 1.5;
}

.address-line strong {
    color: var(--color-gold-light);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-copy {
    font-size: 12px;
    color: var(--color-text-tertiary);
    line-height: 1.5;
}

/* ==========================================================================
   Corporate 404 / Error Dossier Section
   ========================================================================== */
.error-page-section {
    position: relative;
    background-color: var(--color-bg-base);
    min-height: calc(100vh - 34px - 60px - 280px);
    min-height: calc(100dvh - 34px - 60px - 280px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.error-dossier-wrap {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.error-action-group {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Investment Parameter Calculator Page & Engine
   ========================================================================== */
.calculator-page-section {
    position: relative;
    background-color: #07090d;
    padding: 64px 0 100px 0;
    min-height: calc(100vh - 160px);
}

.calculator-section {
    position: relative;
    background-color: #090c12;
    border-top: 1px solid var(--color-border-subtle);
    border-bottom: 1px solid var(--color-border-subtle);
}

/* Calculator Dynamic Layout Wrapper */
.calc-layout-wrapper {
    width: 100%;
    margin: 0 auto;
    transition: max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.calc-layout-wrapper.centered-mode {
    max-width: 580px;
}

.calc-layout-wrapper.results-mode {
    max-width: 1240px;
}

/* Calculator Grid */
.calc-layout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: stretch;
    transition: all 0.3s ease;
}

.calc-layout-wrapper.results-mode .calc-layout-grid {
    grid-template-columns: 460px 1fr;
}

/* Calculator Cards - Synchronized Equal Heights */
.calc-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border-subtle);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
    transition: border-color var(--transition-fast);
}

.calc-card-inputs {
    border-top: 3px solid var(--color-gold-base);
    display: flex;
    flex-direction: column;
}

.calc-card-inputs .calc-form {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.calc-card-inputs .calc-btn-group {
    margin-top: auto;
    padding-top: 24px;
}

.calc-card-results {
    border-top: 3px solid #2563eb;
    display: flex;
    flex-direction: column;
    animation: resultsFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes resultsFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Header */
.calc-card-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border-subtle);
}

.calc-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.calc-header-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-gold-glow);
    border: 1px solid var(--color-border-gold);
    border-radius: 6px;
    flex-shrink: 0;
}

.calc-title {
    font-family: var(--font-serif-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--color-text-primary);
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.calc-subtitle {
    font-size: 12px;
    color: var(--color-text-tertiary);
    font-family: var(--font-sans);
    display: block;
    margin-top: 2px;
}

/* Form Fields */
.calc-field-group {
    margin-bottom: 20px;
}

.calc-field-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-field-label {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.required-star {
    color: #ef4444;
}

.calc-field-hint {
    font-size: 11.5px;
    color: var(--color-text-tertiary);
    margin: 3px 0 8px 0;
    line-height: 1.4;
}

.calc-field-group.is-validation-target .calc-field-label {
    color: var(--color-gold-light);
}

.calc-field-group.is-validation-target .required-star {
    color: var(--color-warning);
}

.calc-field-group.is-validation-target .calc-input-affix-wrap,
.calc-field-group.is-validation-target .calc-select-wrap {
    border-color: var(--color-warning);
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.16), 0 0 16px rgba(245, 158, 11, 0.08);
}

/* Affix Wrappers (Prefix/Suffix) */
.calc-input-affix-wrap {
    display: flex;
    align-items: center;
    background-color: #1a1e27;
    border: 1px solid var(--color-border-medium);
    border-radius: 6px;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.calc-input-affix-wrap:focus-within {
    border-color: var(--color-gold-base);
    box-shadow: 0 0 0 2px var(--color-gold-glow);
}

.calc-affix {
    padding: 0 14px;
    font-size: 13px;
    font-weight: 600;
    user-select: none;
    background-color: rgba(255, 255, 255, 0.03);
    border-right: 1px solid var(--color-border-subtle);
    color: var(--color-gold-base);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calc-suffix {
    border-right: none;
    border-left: 1px solid var(--color-border-subtle);
    color: var(--color-text-secondary);
}

.calc-input {
    flex: 1;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-family: var(--font-mono);
    font-size: 14.5px;
    outline: none;
}

.calc-input::placeholder {
    color: var(--color-text-muted);
}

/* Select Box */
.calc-select-wrap {
    position: relative;
    background-color: #1a1e27;
    border: 1px solid var(--color-border-medium);
    border-radius: 6px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.calc-select-wrap:focus-within {
    border-color: var(--color-gold-base);
    box-shadow: 0 0 0 2px var(--color-gold-glow);
}

.calc-select-wrap.is-open {
    z-index: 20;
    border-color: var(--color-gold-base);
    box-shadow: 0 0 0 2px var(--color-gold-glow);
}

.calc-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.calc-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 44px;
    padding: 0 14px;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: 13.5px;
    cursor: pointer;
    outline: none;
    text-align: left;
}

.calc-select-trigger:focus-visible {
    outline: 2px solid var(--color-gold-base);
    outline-offset: -3px;
    border-radius: 5px;
}

.calc-select-chevron {
    color: var(--color-gold-base);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    pointer-events: none;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.calc-select-wrap.is-open .calc-select-chevron {
    transform: rotate(180deg);
    color: var(--color-gold-light);
}

.calc-select-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
    background: #101520;
    border: 1px solid var(--color-border-gold);
    border-radius: 6px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.72), 0 0 18px rgba(198, 169, 114, 0.08);
    z-index: 30;
}

.calc-select-menu[hidden] {
    display: none;
}

.calc-select-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 36px;
    width: 100%;
    padding: 0 10px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: var(--color-text-secondary);
    font-family: var(--font-sans);
    font-size: 13px;
    cursor: pointer;
    text-align: left;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.calc-select-option:hover,
.calc-select-option:focus-visible {
    background: rgba(198, 169, 114, 0.1);
    border-color: rgba(198, 169, 114, 0.24);
    color: var(--color-text-primary);
    outline: none;
}

.calc-select-option[aria-selected="true"] {
    background: rgba(198, 169, 114, 0.14);
    border-color: rgba(198, 169, 114, 0.34);
    color: var(--color-gold-light);
}

.calc-select-option[aria-selected="true"]::after {
    content: '\2713';
    color: var(--color-gold-base);
    font-family: var(--font-mono);
    font-size: 12px;
}

/* Button Group */
.calc-btn-group {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 12px;
    margin-top: 26px;
}

.btn-calc-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #ffffff;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-calc-primary:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.btn-calc-primary:active {
    transform: translateY(0);
}

.btn-calc-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-secondary);
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 14px;
    padding: 12px 20px;
    border: 1px solid var(--color-border-medium);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-calc-secondary:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--color-text-primary);
    border-color: var(--color-border-gold);
}

/* Right Column - Results */
.calc-results-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--color-border-subtle);
}

.results-heading {
    font-family: var(--font-serif-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.results-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-action-pill.pill-blue {
    background-color: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.4);
    color: #93c5fd;
}

.btn-action-pill.pill-blue:hover {
    background-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.btn-action-pill.pill-green {
    background-color: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: #6ee7b7;
}

.btn-action-pill.pill-green:hover {
    background-color: #059669;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.calc-section-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-left: 3px solid #2563eb;
    padding-left: 10px;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

/* 4 Highlight Projection Cards - Stacked 1 Column Horizontal Rows (Bennix Reference) */
.projection-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    width: 100%;
}

.proj-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    background-color: #121620;
    border: 1px solid var(--color-border-subtle);
    border-radius: 6px;
    padding: 13px 20px;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.proj-card:hover {
    border-color: var(--color-border-medium);
    transform: translateX(3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.card-total-value {
    border-left: 4px solid #2563eb;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.09) 0%, rgba(18, 22, 32, 0.95) 70%);
}

.card-total-interest {
    border-left: 4px solid #10b981;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.09) 0%, rgba(18, 22, 32, 0.95) 70%);
}

.card-total-contribution {
    border-left: 4px solid #8b5cf6;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.09) 0%, rgba(18, 22, 32, 0.95) 70%);
}

.card-monthly-avg {
    border-left: 4px solid #f97316;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.09) 0%, rgba(18, 22, 32, 0.95) 70%);
}

.proj-card-left {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.proj-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 2px;
}

.proj-card-title {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.proj-card-value {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    overflow-wrap: break-word;
}

.card-total-value .proj-card-value {
    color: #60a5fa;
}

.card-total-interest .proj-card-value {
    color: #34d399;
}

.card-total-contribution .proj-card-value {
    color: #a78bfa;
}

.card-monthly-avg .proj-card-value {
    color: #fb923c;
}

.proj-card-sub {
    font-size: 11.5px;
    color: var(--color-text-tertiary);
    margin-top: 1px;
}

/* Calculation Breakdown Box - 3 Column Horizontal Strip */
.calc-detail-box {
    background-color: rgba(14, 18, 25, 0.6);
    border: 1px solid var(--color-border-subtle);
    border-radius: 6px;
    padding: 13px 18px;
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
}

.calc-detail-header {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-tertiary);
    margin-bottom: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.calc-detail-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.calc-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 11px;
    color: var(--color-text-tertiary);
}

.detail-value {
    color: #60a5fa;
    font-weight: 600;
    font-size: 13.5px;
}

/* Annual Table */
.annual-table-wrapper {
    margin-top: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
    box-sizing: border-box;
}

.annual-table-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.annual-table-title h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.table-icon {
    width: 17px;
    height: 17px;
    color: var(--color-gold-base);
    flex: 0 0 17px;
}

.table-scroll-container {
    height: 240px;
    min-height: 210px;
    max-height: 280px;
    flex: 1;
    overflow-y: auto;
    border: 1px solid var(--color-border-subtle);
    border-radius: 6px;
    background-color: #0b0e14;
    width: 100%;
    box-sizing: border-box;
}

.table-scroll-container::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.table-scroll-container::-webkit-scrollbar-track {
    background: #0b0e14;
}

.table-scroll-container::-webkit-scrollbar-thumb {
    background: var(--color-border-medium);
    border-radius: 3px;
}

.table-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-base);
}

.projection-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    text-align: left;
}

.projection-table thead th {
    position: sticky;
    top: 0;
    background-color: #121722;
    padding: 12px 16px;
    color: var(--color-text-tertiary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--color-border-medium);
    z-index: 2;
}

.projection-table thead th:last-child,
.projection-table tbody td:last-child {
    text-align: right;
}

.projection-table tbody td {
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--color-text-secondary);
}

.projection-table tbody tr:last-child td {
    border-bottom: none;
}

.projection-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.projection-table .col-year {
    color: var(--color-text-primary);
    font-weight: 600;
}

.projection-table .col-interest {
    color: #34d399;
}

.projection-table .col-total {
    color: #60a5fa;
    font-weight: 600;
}

/* Calculator Toast */
.calc-toast {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: min(440px, calc(100vw - 32px));
    background-color: rgba(14, 17, 23, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 3px solid var(--toast-accent, var(--color-green-alpha));
    color: var(--color-text-primary);
    padding: 13px 17px 14px 14px;
    border-radius: 4px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    z-index: 9999;
    animation: toastFadeIn 0.25s ease-out;
}

.calc-toast[data-state="warning"] {
    --toast-accent: var(--color-warning);
}

.calc-toast[data-state="neutral"] {
    --toast-accent: var(--color-gold-base);
}

.calc-toast .toast-icon {
    color: var(--toast-accent, var(--color-green-alpha));
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 25px;
    border: 1px solid color-mix(in srgb, var(--toast-accent, var(--color-green-alpha)) 48%, transparent);
    border-radius: 50%;
}

.calc-toast .toast-icon svg {
    width: 15px;
    height: 15px;
}

.toast-icon-glyph {
    display: none;
}

.calc-toast[data-state="success"] .toast-icon-check,
.calc-toast[data-state="warning"] .toast-icon-alert,
.calc-toast[data-state="neutral"] .toast-icon-info {
    display: block;
}

.toast-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.45;
}

.toast-kicker {
    color: var(--toast-accent, var(--color-green-alpha));
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

#calc-toast-text {
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

@keyframes toastFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Investment Projection Preview Modal */
.preview-modal-window {
    max-width: 760px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}

.preview-modal-body {
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.preview-dossier-header {
    border-bottom: 1px solid var(--color-border-medium);
    padding-bottom: 14px;
}

.preview-dossier-brand {
    font-family: var(--font-serif-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-gold-base);
    letter-spacing: 0.05em;
}

.preview-dossier-tagline {
    font-size: 11px;
    color: var(--color-text-tertiary);
    margin-top: 4px;
    letter-spacing: 0.06em;
}

.preview-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border-subtle);
    border-radius: 6px;
    padding: 14px;
}

.preview-meta-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.preview-meta-cell .meta-label {
    font-size: 9.5px;
    color: var(--color-text-tertiary);
    letter-spacing: 0.05em;
}

.preview-meta-cell .meta-val {
    font-size: 13px;
    color: var(--color-text-primary);
    font-weight: 600;
}

.preview-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.prev-stat-card {
    background: #121620;
    border: 1px solid var(--color-border-subtle);
    border-radius: 6px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.prev-stat-label {
    font-size: 9.5px;
    color: var(--color-text-tertiary);
    font-weight: 500;
}

.prev-stat-val {
    font-size: 15px;
    font-weight: 700;
    color: #60a5fa;
}

.preview-table-container {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--color-border-subtle);
    border-radius: 6px;
    background-color: #0b0e14;
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
}

.preview-table th {
    position: sticky;
    top: 0;
    background-color: #121722;
    padding: 8px 12px;
    color: var(--color-text-tertiary);
    font-size: 10px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-medium);
}

.preview-table th:last-child,
.preview-table td:last-child {
    text-align: right;
}

.preview-table td {
    padding: 7px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--color-text-secondary);
}

.preview-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border-subtle);
}

/* Print Styles */
@media print {
    /* Leave no margin for browser-generated date, title, and URL boxes. */
    @page {
        margin: 0;
    }

    .system-bar,
    .main-nav,
    .hero-section,
    .profile-section,
    .performance-section,
    .roster-section,
    .location-section,
    .governance-section,
    .main-footer,
    .modal-backdrop,
    .calc-presets-bar,
    .calc-btn-group,
    .results-actions,
    .calc-card-inputs {
        display: none !important;
    }

    body, html {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .calculator-section,
    .calculator-page-section {
        background: #ffffff !important;
        border: none !important;
        padding: 0 !important;
    }

    .calculator-page-section {
        padding: 24px 0 0 !important;
        min-height: auto !important;
    }

    .calc-layout-grid {
        grid-template-columns: 1fr !important;
    }

    .calc-card {
        background: #ffffff !important;
        border: 1px solid #cccccc !important;
        color: #000000 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .proj-card {
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
    }

    .proj-card-value {
        color: #0f172a !important;
    }

    .table-scroll-container {
        max-height: none !important;
        background: #ffffff !important;
    }

    .projection-table thead th {
        background: #f1f5f9 !important;
        color: #334155 !important;
    }

    .projection-table tbody td {
        color: #0f172a !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1280px) {
    .system-bar-inner,
    .nav-inner {
        padding-left: 20px;
        padding-right: 20px;
    }

    .nav-inner {
        gap: 10px;
    }

    .nav-links {
        gap: 6px;
    }

    .nav-links a {
        --nav-link-padding-x: 3px;
        font-size: 11px;
        padding: 0 var(--nav-link-padding-x);
    }

    .badge-restricted,
    .btn-keycard,
    #btn-terminal-auth {
        width: 136px;
    }

    .btn-keycard,
    #btn-terminal-auth {
        font-size: 10.5px;
    }
}

@media (max-width: 1140px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle-btn {
        display: flex;
    }

    .nav-actions #btn-terminal-auth {
        display: none;
    }
}

@media (max-width: 1080px) {
    .telemetry-clocks {
        display: none;
    }
}

@media (max-width: 992px) {
    .hero-line,
    .desc-break {
        display: inline;
    }

    .hero-headline {
        font-size: clamp(32px, 5vw, 52px);
        letter-spacing: 0.04em;
        white-space: nowrap;
    }

    .hero-metrics-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .metric-block::after {
        display: none;
    }

    .profile-grid,
    .perf-dashboard,
    .location-layout,
    .calc-layout-wrapper.results-mode .calc-layout-grid,
    .calc-layout-grid {
        grid-template-columns: 1fr;
    }

    .profile-cards-sub {
        display: flex;
        flex-direction: column;
    }

    .governance-card {
        flex-direction: column;
        padding: 36px 28px;
    }

    .dossier-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .system-bar {
        height: 30px;
        overflow: hidden;
    }

    .system-bar-inner,
    .nav-inner {
        padding-left: 14px;
        padding-right: 14px;
    }

    .system-bar-inner {
        justify-content: space-between;
        gap: 6px;
    }

    .telemetry-item {
        gap: 5px;
        font-size: 8.5px;
        overflow: hidden;
    }

    .telemetry-label {
        display: none;
    }

    .telemetry-val {
        font-size: 8.5px;
        letter-spacing: 0.02em;
    }

    .badge-restricted {
        width: auto;
        height: auto;
        font-size: 8px;
        padding: 2px 5px;
        letter-spacing: 0.04em;
        white-space: nowrap;
    }

    .badge-restricted svg {
        width: 8px;
        height: 8px;
    }

    .nav-inner {
        width: 100%;
    }

    .brand-wordmark {
        width: clamp(104px, 34vw, 132px);
        max-height: 31px;
    }

    .brand-subtitle {
        font-size: 5.5px;
        letter-spacing: 0.08em;
    }

    .hero-section {
        min-height: calc(100vh - 98px);
        min-height: calc(100dvh - 98px);
        padding: 40px 0;
    }

    .location-card {
        padding: 24px 20px;
    }

    .tele-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .t-v {
        text-align: left;
    }

    .governance-card {
        padding: 28px 20px;
        gap: 24px;
    }

    .gov-bullet-grid {
        row-gap: 12px;
    }

    .hero-eyebrow {
        gap: 6px;
        margin-bottom: 16px;
    }

    .eyebrow-line {
        display: none;
    }

    .eyebrow-text {
        font-size: 8.5px;
        letter-spacing: 0.08em;
        text-align: center;
        white-space: normal;
    }

    .hero-headline {
        font-size: clamp(22px, 6.8vw, 36px);
        white-space: normal;
        word-break: normal;
        letter-spacing: 0.03em;
        line-height: 1.15;
    }

    .hero-metrics-strip {
        grid-template-columns: 1fr;
        padding: 20px 16px;
        gap: 14px;
    }

    .gov-bullet-grid,
    .calc-detail-list {
        grid-template-columns: 1fr;
    }

    .proj-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .proj-card-right {
        align-items: flex-start;
        text-align: left;
    }

    .preview-summary-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .calc-presets-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .preset-buttons {
        width: 100%;
    }

    .preset-btn {
        flex: 1;
        text-align: center;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .chart-canvas-container {
        height: 240px;
    }

    .headcount-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .tokens-scrollable-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .calc-toast {
        right: 16px;
        bottom: 16px;
        width: calc(100vw - 32px);
    }
}



@media (prefers-reduced-motion: reduce) {
    .status-dot.pulsing {
        animation: none !important;
        opacity: 1 !important;
        box-shadow: 0 0 4px rgba(52, 211, 153, 0.5) !important;
    }

    .hero-eyebrow,
    .hero-headline,
    .hero-description,
    .closed-notice-card,
    .hero-metrics-strip,
    .metric-block,
    .metric-caption,
    .metric-sub,
    .hero-metrics-strip::before {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    .metric-value.is-animating,
    .metric-value.is-resolved,
    .text-cipher.is-animating,
    .text-cipher.is-resolved,
    .stat-num.is-animating,
    .stat-num.is-resolved {
        animation: none !important;
        text-shadow: none !important;
        transform: none !important;
    }
    .bar-fill,
    .headcount-seg {
        transition: none !important;
    }
    .page-curtain {
        display: none !important;
        transition: none !important;
    }
}

/* ==========================================================================
   Obsidian Page Transition Curtain (Medallion-Style Dip-to-Dark)
   ========================================================================== */
.page-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background-color: var(--color-bg-base);
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

.page-curtain.is-active,
html.page-transitioning-in .page-curtain {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.page-curtain.is-exiting {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
