/* ============================================
   NEWWORLDSECURITY — Full-Viewport Panel Dashboard
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

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

:root {
    --bg: #000000;
    --bg-elevated: #0a0a0a;
    --bg-card: #0d0d0d;
    --bg-card-hover: #111111;
    --accent: #f53c4b;
    --accent-light: #ff5c6a;
    --accent-dark: #d4323f;
    --accent-dim: rgba(245, 60, 75, 0.18);
    --accent-glow: rgba(245, 60, 75, 0.30);
    --text: #ffffff;
    --text-secondary: #d8d8d8;
    --text-muted: #a8a8a8;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --scrollbar-track: rgba(255, 255, 255, 0.05);
    --scrollbar-thumb: rgba(245, 60, 75, 0.78);
    --scrollbar-thumb-strong: rgba(255, 92, 106, 0.94);
    --scrollbar-thumb-border: rgba(8, 8, 10, 0.9);
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    -webkit-tap-highlight-color: transparent;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

*::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.06) 100%);
}

*::-webkit-scrollbar-thumb {
    border: 2px solid var(--scrollbar-thumb-border);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--scrollbar-thumb-strong) 0%, var(--scrollbar-thumb) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 14px rgba(245, 60, 75, 0.18);
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 120, 132, 0.98) 0%, rgba(245, 60, 75, 0.9) 100%);
}

*::-webkit-scrollbar-corner {
    background: transparent;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-secondary);
    line-height: 1.6;
    height: 100vh;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.panel-open {
    overflow: hidden !important;
}

body.mobile-search-open {
    overflow: hidden !important;
}

@media (max-width: 768px) {
    body.panel-open .navbar {
        display: none !important;
    }
    body.panel-open .status-bar {
        display: none !important;
    }
    body.panel-open .dashboard {
        transform: none !important;
        contain: none !important;
    }
}

body.loaded {
    opacity: 1;
}


img, video, iframe {
    max-width: 100%;
}

.container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 32px;
}

a { color: inherit; text-decoration: none; }
.accent { color: var(--accent); }

/* ===== SKIP NAV ===== */
.skip-nav {
    position: fixed;
    top: -100%;
    left: 16px;
    z-index: 9999;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 0 0 8px 8px;
    font-size: 0.85rem;
    transition: top 0.3s;
}
.skip-nav:focus {
    top: 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
    transition: left 0.6s var(--ease);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-1px);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-hover);
    position: relative;
    overflow: hidden;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.btn-full { width: 100%; }

/* ===== THREE.JS BACKGROUND (advisors page) ===== */
#heroCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 70% 60% at 50% 50%, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.92) 100%);
    pointer-events: none;
}

/* ===== GRID BACKGROUND (advisors page) ===== */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 25% 35%, rgba(245, 60, 75, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 75% 35%, rgba(70, 145, 255, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 25% 75%, rgba(160, 100, 255, 0.25) 0%, transparent 40%),
        radial-gradient(circle at 75% 75%, rgba(30, 215, 145, 0.25) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px;
}

/* Advisors page status bar fixed to bottom */
.adv-wrap ~ .status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    opacity: 1;
    animation: none;
}

/* ===== ANIMATED MESH BACKGROUND ===== */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #050508;
}

.bg-gradient {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    will-change: transform;
}

.bg-gradient-1 {
    width: 60vw;
    height: 60vw;
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(245, 60, 75, 0.36) 0%, transparent 70%);
    animation: bgFloat1 18s ease-in-out infinite;
}

.bg-gradient-2 {
    width: 50vw;
    height: 50vw;
    bottom: -15%;
    right: -10%;
    background: radial-gradient(circle, rgba(40, 70, 160, 0.40) 0%, transparent 70%);
    animation: bgFloat2 22s ease-in-out infinite;
}

.bg-gradient-3 {
    width: 40vw;
    height: 40vw;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(160, 100, 255, 0.26) 0%, transparent 70%);
    animation: bgFloat3 15s ease-in-out infinite;
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
}

@keyframes bgFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(8%, 12%) scale(1.08); }
    66% { transform: translate(-5%, 6%) scale(0.95); }
}

@keyframes bgFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-10%, -8%) scale(1.1); }
    66% { transform: translate(6%, -4%) scale(0.92); }
}

@keyframes bgFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-45%, -55%) scale(1.15); }
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 13px 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    min-width: 0;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: 0.3em;
}

.logo-mark { display: flex; }

.logo-mark-orbit {
    position: relative;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.nav-logo-orbit {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
    filter:
        drop-shadow(0 0 4px rgba(119, 230, 255, 0.16))
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.06));
}

.nav-logo-orbit .orbit-wobble,
.nav-logo-orbit .orbit-spin,
.nav-logo-orbit .orbit-pulse {
    transform-origin: 32px 32px;
}

.nav-logo-orbit .orbit-pulse {
    animation: logoOrbitPulse 3.4s ease-in-out infinite;
}

.nav-logo-orbit .orbit-wobble {
    animation: logoOrbitWobble 6.6s ease-in-out infinite;
}

.nav-logo-orbit .orbit-spin {
    animation: logoOrbitSpin 8.6s linear infinite;
}

.nav-logo-orbit .orbit-back,
.nav-logo-orbit .orbit-mid,
.nav-logo-orbit .orbit-rib {
    fill: none;
    stroke: url(#navOrbitStroke);
    stroke-linecap: round;
    stroke-width: 1.55;
    opacity: 0.72;
}

.nav-logo-orbit .orbit-mid {
    stroke-width: 1.25;
    opacity: 0.54;
}

.nav-logo-orbit .orbit-mid-soft,
.nav-logo-orbit .orbit-rib-soft {
    opacity: 0.36;
    stroke-width: 1.1;
}

.nav-logo-orbit .orbit-front {
    fill: none;
    stroke: url(#navOrbitFront);
    stroke-linecap: round;
    stroke-width: 3.2;
    opacity: 0.94;
}

.nav-logo-orbit .orbit-front-soft {
    stroke-width: 1.9;
    opacity: 0.76;
}

.nav-logo-orbit .orbit-spark {
    fill: #ffffff;
    opacity: 0.96;
}

.nav-logo:hover .nav-logo-orbit .orbit-spin {
    animation-duration: 5.8s;
}

@keyframes logoOrbitSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes logoOrbitWobble {
    0%, 100% { transform: rotate(-8deg) scaleY(0.94); }
    50% { transform: rotate(8deg) scaleY(1.03); }
}

@keyframes logoOrbitPulse {
    0%, 100% { opacity: 0.42; transform: scale(0.96); }
    50% { opacity: 0.82; transform: scale(1.03); }
}

@media (prefers-reduced-motion: reduce) {
    .nav-logo-orbit .orbit-pulse,
    .nav-logo-orbit .orbit-wobble,
    .nav-logo-orbit .orbit-spin {
        animation: none;
    }
}

.nav-links {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    justify-content: flex-end;
    list-style: none;
    gap: 40px;
}

.nav-cta {
    flex: 0 0 auto;
    min-width: 0;
    padding: 6px;
    line-height: 1;
    white-space: nowrap;
    background: none;
    border: none;
    color: var(--accent);
    box-shadow: none;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
    border-radius: 0;
}

.nav-cta::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease), left 0.3s var(--ease);
}

.nav-cta:hover,
.nav-cta:focus-visible {
    background: none;
    border: none;
    color: var(--text);
    box-shadow: none;
    transform: none;
}

.nav-cta:hover::after,
.nav-cta:focus-visible::after {
    width: 100%;
    left: 0;
}

.nav-search-btn::after,
.contact-trigger::after {
    display: none;
}

.nav-cta-group {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-cta-label {
    display: none;
}

.nav-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-cta-icon svg {
    width: 18px;
    height: 18px;
}

.nav-cta-icon .fa-magnifying-glass {
    font-size: 18px;
    line-height: 1;
}

.nav-cta-icon .fa-phone {
    font-size: 18px;
    line-height: 1;
}

.nav-service-search {
    position: relative;
    flex: 0 1 250px;
    min-width: 198px;
}

.nav-service-search-desktop {
    display: block;
}

.nav-search-btn {
    flex: 0 0 auto;
    min-width: 0;
    padding: 10px;
    font-size: 0.82rem;
    white-space: nowrap;
}

.nav-search-item {
    display: none;
}

.nav-service-search-mobile-overlay {
    width: 100%;
    min-width: 0;
}

.service-search {
    z-index: 1;
}

.service-search.is-open {
    z-index: 3;
}

.service-search-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.36);
    overflow: hidden;
    isolation: isolate;
    background-clip: padding-box;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
    font-family: var(--font-body);
}

.service-search.is-open .service-search-shell,
.service-search-shell:focus-within {
    border-color: rgba(245, 60, 75, 0.42);
    box-shadow: 0 0 0 3px var(--accent-dim);
    background: rgba(8, 8, 8, 0.92);
}

.service-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    flex: 0 0 auto;
}

.service-search-icon svg {
    width: 17px;
    height: 17px;
}

.service-search-icon .fa-magnifying-glass {
    font-size: 16px;
    line-height: 1;
}

.service-search-input {
    width: 100%;
    min-width: 0;
    border: none;
    background: transparent;
    color: var(--text);
    -webkit-appearance: none;
    appearance: none;
    font-family: var(--font-body);
    font-size: 0.81rem;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.01em;
    outline: none;
}

.service-search-input::placeholder {
    color: rgba(255, 255, 255, 0.88);
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.service-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.service-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(4, 4, 4, 0.98) 0%, rgba(10, 10, 10, 0.98) 100%);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    background-clip: padding-box;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-height: 360px;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(245, 60, 75, 0.9) rgba(255, 255, 255, 0.05);
}

.service-search-dropdown::-webkit-scrollbar {
    width: 10px;
}

.service-search-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 999px;
}

.service-search-dropdown::-webkit-scrollbar-thumb {
    border: 2px solid rgba(8, 8, 10, 0.94);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 100, 114, 0.98) 0%, rgba(245, 60, 75, 0.88) 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 12px rgba(245, 60, 75, 0.16);
}

.service-search-dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(255, 132, 143, 1) 0%, rgba(245, 60, 75, 0.94) 100%);
}

.service-search-results {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-search-result {
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease);
}

.service-search-result-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-search-result-label {
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text);
}

.service-search-result-meta {
    font-family: var(--font-body);
    font-size: 0.67rem;
    line-height: 1.4;
    letter-spacing: 0.08em;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-muted);
}

.service-search-result-arrow {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 108, 121, 0.52);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(97, 9, 17, 0.2),
        0 8px 18px rgba(245, 60, 75, 0.18);
    color: rgba(8, 5, 6, 0.94);
    opacity: 1;
    transition: opacity 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}

.service-search-result-arrow svg {
    width: 16px;
    height: 16px;
    display: block;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.14));
}

.service-search-result:hover,
.service-search-result.is-active {
    border-color: rgba(245, 60, 75, 0.22);
    background: rgba(245, 60, 75, 0.08);
}

.service-search-result:hover .service-search-result-arrow,
.service-search-result.is-active .service-search-result-arrow {
    opacity: 1;
    border-color: rgba(255, 134, 145, 0.72);
    background: linear-gradient(135deg, rgba(255, 104, 118, 1) 0%, rgba(212, 49, 64, 1) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(97, 9, 17, 0.24),
        0 10px 22px rgba(245, 60, 75, 0.24);
    color: rgba(5, 4, 5, 0.98);
}

.service-search-empty {
    padding: 16px 14px;
    border: 1px dashed var(--border);
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.55;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text);
    transition: color 0.3s;
    letter-spacing: 0.02em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }

.nav-right {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 16px;
}

.nav-search-trigger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--accent);
    cursor: pointer;
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav-search-trigger:hover,
.nav-search-trigger:focus-visible,
.nav-search-trigger.is-active {
    background: none;
    box-shadow: none;
}

.nav-search-trigger svg {
    width: 20px;
    height: 20px;
    stroke-width: 2.2;
}

.mobile-search-overlay[hidden] {
    display: none !important;
}

.mobile-search-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: -webkit-fill-available;
    z-index: 1200;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px 20px;
    pointer-events: none;
}

.mobile-search-overlay.open {
    pointer-events: auto;
}

.mobile-search-scrim {
    position: fixed;
    inset: 0;
    border: none;
    background: rgba(0, 0, 0, 0.84);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    cursor: pointer;
    opacity: 0;
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: opacity 0.4s var(--ease);
}

.mobile-search-overlay.open .mobile-search-scrim {
    opacity: 1;
}

.mobile-search-dialog {
    position: relative;
    width: min(560px, 100%);
    max-width: 100%;
    z-index: 1;
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.mobile-search-overlay.open .mobile-search-dialog {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.mobile-search-panel {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    overflow: hidden;
    isolation: isolate;
    background-clip: padding-box;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    background:
        radial-gradient(circle at top, rgba(245, 60, 75, 0.12) 0%, rgba(245, 60, 75, 0) 55%),
        linear-gradient(180deg, rgba(7, 7, 8, 0.97) 0%, rgba(4, 4, 5, 0.98) 100%);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.52),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mobile-search-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.mobile-search-kicker {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.mobile-search-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}

.mobile-search-close:hover,
.mobile-search-close:focus-visible {
    border-color: rgba(245, 60, 75, 0.3);
    background: rgba(245, 60, 75, 0.1);
    color: var(--accent-light);
}

.mobile-search-close svg {
    width: 15px;
    height: 15px;
}

.nav-service-search-mobile-overlay .service-search-dropdown {
    position: static;
    margin-top: 12px;
    border-radius: 16px;
    max-height: min(44vh, 340px);
}

.nav-contact-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-phone,
.nav-email {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    transition: color 0.3s;
}

.nav-phone:hover,
.nav-email:hover {
    color: var(--accent);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s var(--ease);
    transform-origin: center;
}

/* Mobile-only nav extras (hidden on desktop) */
.nav-mobile-divider,
.nav-mobile-contact,
.nav-mobile-footer {
    display: none;
}

/* ===== MOBILE PANEL OVERLAY ===== */
.mobile-panel-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9000;
    background: rgba(6, 8, 14, 0.98);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 20px 24px;
    padding-top: max(20px, calc(12px + env(safe-area-inset-top)));
    padding-bottom: calc(40px + env(safe-area-inset-bottom));
    flex-direction: column;
    gap: 16px;
}

.mobile-panel-overlay.open {
    display: flex;
}

.mobile-panel-overlay .mobile-overlay-close {
    position: fixed;
    top: max(16px, env(safe-area-inset-top, 16px));
    right: 16px;
    z-index: 9999;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    background: none;
    border: none;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.mobile-panel-overlay .mobile-overlay-close:hover {
    color: var(--text);
}

.mobile-panel-overlay .panel-expanded-content {
    display: flex !important;
    flex-direction: column;
    gap: 16px;
}

.mobile-panel-overlay .panel-number {
    font-family: var(--font-mono);
    font-size: 1.4rem;
    color: var(--panel-color, var(--accent));
    letter-spacing: 0.1em;
}

.mobile-panel-overlay .panel-title {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 630;
    color: var(--text);
}

.mobile-panel-overlay .panel-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.mobile-panel-overlay .panel-detail-col h4 {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    font-weight: 630;
    margin-bottom: 8px;
}

.mobile-panel-overlay .panel-detail-col li {
    font-size: 0.92rem;
    color: var(--text);
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
}

.mobile-panel-overlay .panel-detail-col li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--panel-color, var(--accent));
}

.mobile-panel-overlay .panel-details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.mobile-panel-overlay .panel-ctas {
    margin-top: 16px;
    padding-top: 16px;
}

.mobile-panel-overlay .btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
}

.contact-trigger.btn-primary:not(.nav-cta) {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 14px 28px rgba(131, 19, 29, 0.22);
}

.contact-trigger.btn-primary:hover,
.contact-trigger.btn-primary:focus-visible {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 16px 34px rgba(131, 19, 29, 0.28),
        0 0 0 1px rgba(255, 92, 106, 0.18);
}

.contact-trigger.btn-primary.nav-cta:hover,
.contact-trigger.btn-primary.nav-cta:focus-visible {
    background: none;
    border: none;
    color: var(--text);
    box-shadow: none;
    transform: none;
}

/* ===== DASHBOARD ===== */
.dashboard {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding-top: 63px; /* navbar height */
}

/* ===== PANEL GRID ===== */
.panel-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1px;
    padding: 12px 16px;
    min-height: 0;
    contain: layout paint;
}

/* Grid area assignments */
.panel[data-panel="01"] { grid-area: p01; }
.panel[data-panel="02"] { grid-area: p02; }
.panel[data-panel="03"] { grid-area: p03; }
.panel[data-panel="04"] { grid-area: p04; }

.panel-grid {
    grid-template-areas:
        "p01 p02"
        "p03 p04";
}

/* Expanded states — left panels */
.panel-grid.expanded-01 {
    grid-template-columns: 3fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas:
        "p01 p02"
        "p01 p03"
        "p01 p04";
}

.panel-grid.expanded-03 {
    grid-template-columns: 3fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas:
        "p03 p01"
        "p03 p02"
        "p03 p04";
}

/* Expanded states — right panels */
.panel-grid.expanded-02 {
    grid-template-columns: 1fr 3fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas:
        "p01 p02"
        "p03 p02"
        "p04 p02";
}

.panel-grid.expanded-04 {
    grid-template-columns: 1fr 3fr;
    grid-template-rows: 1fr 1fr 1fr;
    grid-template-areas:
        "p01 p04"
        "p02 p04"
        "p03 p04";
}

/* ===== PANEL ===== */
.panel {
    position: relative;
    background: rgba(12, 14, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 32px 28px;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    min-height: 0;
    opacity: 1;
    transform: none;
    contain: layout paint;
    backface-visibility: hidden;
}

/* Panel inner decorative background */
.panel-bg-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Grid pattern removed — canvas animations handle backgrounds */

/* Per-panel unique accent glow — centered */
.panel[data-panel="01"] .panel-bg-deco::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(245, 60, 75, 0.55) 0%, rgba(245, 60, 75, 0.15) 45%, transparent 75%);
    filter: blur(40px);
}

.panel[data-panel="02"] .panel-bg-deco::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(70, 145, 255, 0.55) 0%, rgba(70, 145, 255, 0.15) 45%, transparent 75%);
    filter: blur(40px);
}

.panel[data-panel="03"] .panel-bg-deco::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(160, 100, 255, 0.52) 0%, rgba(160, 100, 255, 0.14) 45%, transparent 75%);
    filter: blur(40px);
}

.panel[data-panel="04"] .panel-bg-deco::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(30, 215, 145, 0.50) 0%, rgba(30, 215, 145, 0.14) 45%, transparent 75%);
    filter: blur(40px);
}

/* Ensure panel content sits above deco */
.panel-collapsed-content,
.panel-expanded-content,
.panel-close {
    position: relative;
    z-index: 1;
}

/* Panel glow on hover (mouse-tracking) — per-panel color */
.panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                var(--panel-glow) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 0;
}

.panel[data-panel="01"] { --panel-glow: rgba(245, 60, 75, 0.24); --panel-accent: rgba(245, 60, 75, 0.14); --panel-border: rgba(245, 60, 75, 0.42); --panel-color: #f53c4b; }
.panel[data-panel="02"] { --panel-glow: rgba(70, 145, 255, 0.24); --panel-accent: rgba(70, 145, 255, 0.14); --panel-border: rgba(70, 145, 255, 0.42); --panel-color: #4691ff; }
.panel[data-panel="03"] { --panel-glow: rgba(160, 100, 255, 0.24); --panel-accent: rgba(160, 100, 255, 0.14); --panel-border: rgba(160, 100, 255, 0.42); --panel-color: #a064ff; }
.panel[data-panel="04"] { --panel-glow: rgba(30, 215, 145, 0.24); --panel-accent: rgba(30, 215, 145, 0.14); --panel-border: rgba(30, 215, 145, 0.42); --panel-color: #1ed791; }

/* Top accent line */
.panel::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--panel-color, var(--accent));
    z-index: 1;
}

.panel:hover {
    background: linear-gradient(135deg, var(--panel-accent, rgba(10,10,16,0.06)), rgba(10, 10, 16, 0.8));
    border-color: var(--panel-border, var(--border-hover));
}
.panel:hover::before { opacity: 1; }
.panel:hover::after { width: 100%; }

.ua-safari .panel,
.device-lowpower .panel {
    background: rgba(12, 14, 20, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.ua-safari .panel-bg-deco::after,
.device-lowpower .panel-bg-deco::after {
    filter: blur(24px);
    opacity: 0.82;
}

.ua-safari .panel::before,
.device-lowpower .panel::before {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
                var(--panel-glow) 0%, transparent 52%);
}

/* ===== PANEL CONTENT ===== */
.panel-close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, color 0.3s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-close:hover {
    color: var(--text);
}

.panel-icon {
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: auto;
    opacity: 0.85;
    transition: transform 0.6s var(--ease), opacity 0.4s;
    pointer-events: none;
    flex-shrink: 0;
}

.service-visual {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(17, 20, 28, 0.96), rgba(5, 7, 11, 0.92));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 36px rgba(0, 0, 0, 0.34);
}

.service-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 24%);
    pointer-events: none;
}

.service-visual span,
.service-visual span::before,
.service-visual span::after {
    display: block;
    position: absolute;
    content: '';
}

/* Pen test canvas — full panel background */
.pentest-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
    display: block;
    will-change: opacity, transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.panel.collapsed .pentest-canvas {
    opacity: 0.4;
}

.panel.active .pentest-canvas {
    opacity: 0.9;
}

/* Satellite canvas — full panel background */
.satellite-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
    display: block;
    will-change: opacity, transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.panel.collapsed .satellite-canvas {
    opacity: 0.4;
}

.panel.active .satellite-canvas {
    opacity: 0.9;
}

/* Quantum canvas — full panel background */
.quantum-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
    display: block;
    will-change: opacity, transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.panel.collapsed .quantum-canvas {
    opacity: 0.4;
}

.panel.active .quantum-canvas {
    opacity: 0.9;
}

/* AI canvas — full panel background */
.ai-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.85;
    display: block;
    will-change: opacity, transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.panel.collapsed .ai-canvas {
    opacity: 0.4;
}

.panel.active .ai-canvas {
    opacity: 0.9;
}

.panel:hover .panel-icon {
    transform: scale(1.05);
    opacity: 0.95;
}

.panel-number {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    color: var(--panel-color, var(--accent));
    letter-spacing: 0.12em;
    padding-bottom: 12px;
    margin-bottom: 14px;
    display: block;
    font-weight: 500;
    border-bottom: 1px solid var(--panel-border, rgba(230, 57, 70, 0.35));
    width: 40px;
}

.panel-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 2.8vw, 2.4rem);
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.panel-summary {
    font-size: clamp(0.92rem, 1.2vw, 1.05rem);
    color: rgba(255, 255, 255, 0.76);
    font-weight: 450;
    line-height: 1.6;
    max-width: 320px;
    margin-bottom: 16px;
}

.panel-arrow {
    display: none;
}

/* Collapsed content (default visible) */
.panel-collapsed-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex: 1;
    gap: 0;
}

/* Expanded content (hidden by default) */
.panel-expanded-content {
    display: none;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.panel-desc {
    font-size: 1.14rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 490;
    line-height: 1.65;
    max-width: 680px;
}

.panel-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.panel-detail-col h4 {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 600;
}

.panel-detail-col ul {
    list-style: none;
}

.panel-detail-col li {
    font-size: 1.06rem;
    color: var(--text);
    font-weight: 490;
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
}

.panel-detail-col li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--panel-color, var(--accent));
}

.panel-ctas {
    margin-top: auto;
    padding-top: 16px;
}

/* ===== ACTIVE / COLLAPSED STATES ===== */
.panel.active {
    cursor: default;
    background: rgba(0, 0, 0, 0.82);
}

.panel.active::after {
    width: 100%;
}

.panel.active .panel-collapsed-content {
    display: none;
}

.panel.active .panel-expanded-content {
    display: flex;
}

.panel.active .panel-close {
    opacity: 1;
    pointer-events: auto;
}

.panel.active .panel-number {
    font-size: 1.6rem;
    width: 48px;
}

.panel.active .panel-title {
    font-size: clamp(2rem, 3vw, 2.7rem);
    font-weight: 630;
}

.panel.active .panel-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 490;
}

.panel.active .panel-detail-col h4 {
    font-size: 0.85rem;
    color: var(--text);
    font-weight: 630;
}

.panel.active .panel-detail-col li {
    font-size: 1.04rem;
    font-weight: 490;
}

.panel.collapsed {
    padding: 24px 28px;
    justify-content: center;
}

.panel.collapsed .panel-collapsed-content {
    flex: none;
}

.panel.collapsed .panel-summary {
    display: none;
}

.panel.collapsed .panel-icon {
    width: 70px;
    height: 70px;
    margin-top: 12px;
    opacity: 0.6;
}

.panel.collapsed .panel-title {
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 530;
    margin-bottom: 0;
}

.panel.collapsed .panel-number {
    margin-bottom: 6px;
    font-size: 1.6rem;
}

.panel.collapsed .panel-expanded-content {
    display: none;
}

/* ===== THREAT MAP (inside panel) ===== */
.panel-threat-map {
    display: none;
}

.threat-map-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 10px;
    min-height: 220px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.2) 100%);
}

.threat-map-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 84px 84px;
    opacity: 0.45;
}

.threat-world {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.threat-continent {
    fill: rgba(255, 255, 255, 0.045);
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
}

.threat-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

.threat-lines line {
    stroke: rgba(230, 57, 70, 0.6);
    stroke-width: 1.4;
    stroke-dasharray: 6 8;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    animation: threatRoute 1.45s ease-out forwards;
}

.threat-lines line.hot-low { stroke: rgba(249, 115, 22, 0.7); stroke-width: 1.1; }
.threat-lines line.hot-medium { stroke: rgba(239, 68, 68, 0.72); }
.threat-lines line.hot-high { stroke: rgba(248, 113, 113, 0.96); stroke-width: 1.8; }

.threat-nodes {
    position: absolute;
    inset: 0;
    z-index: 5;
}

.threat-node {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%);
}

.threat-node-ping {
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(230, 57, 70, 0.35);
    border-radius: 50%;
    opacity: 0.35;
    animation: threatNodeAmbient 3s ease-out infinite;
    animation-delay: var(--delay, 0s);
}

.threat-node-core {
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: rgba(230, 57, 70, 0.75);
    box-shadow: 0 0 12px rgba(230, 57, 70, 0.45);
    transition: background 0.3s, box-shadow 0.3s;
}

.threat-node.is-hot .threat-node-core {
    animation: threatNodeBurst 1.25s ease-out;
}

.threat-node.sev-low .threat-node-core { background: #f97316; box-shadow: 0 0 12px rgba(249, 115, 22, 0.55); }
.threat-node.sev-medium .threat-node-core { background: #ef4444; box-shadow: 0 0 12px rgba(239, 68, 68, 0.58); }
.threat-node.sev-high .threat-node-core { background: #f87171; box-shadow: 0 0 14px rgba(248, 113, 113, 0.75); }

.threat-map-legend {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.threat-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

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

.threat-legend-dot.low { background: #f97316; }
.threat-legend-dot.medium { background: #ef4444; }
.threat-legend-dot.high { background: #f87171; }

/* Compact feed for panel */
.threat-feed-compact {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(6, 6, 6, 0.72);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow: hidden;
}

.threat-feed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.threat-feed-head h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.01em;
}

.threat-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(230, 57, 70, 0.4);
    background: rgba(230, 57, 70, 0.1);
    color: #fca5a5;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.threat-live-pill::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    animation: threatLivePulse 1.25s ease-in-out infinite;
}

.threat-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.threat-metric {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.015);
    text-align: center;
}

.threat-metric strong {
    display: block;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 4px;
}

.threat-metric span {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    text-transform: uppercase;
}

.severity-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-size: 0.7rem !important;
}

.severity-pill.sev-low { color: #fdba74; border-color: rgba(249, 115, 22, 0.35); background: rgba(249, 115, 22, 0.15); }
.severity-pill.sev-medium { color: #fda4af; border-color: rgba(239, 68, 68, 0.3); background: rgba(239, 68, 68, 0.14); }
.severity-pill.sev-high { color: #fecaca; border-color: rgba(248, 113, 113, 0.42); background: rgba(248, 113, 113, 0.22); }

.threat-feed-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 120px;
    overflow: hidden;
}

.threat-feed-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.015);
    animation: threatFeedIn 0.36s var(--ease-out);
    font-size: 0.72rem;
}

.threat-feed-list li.severity-low { border-left: 2px solid rgba(249, 115, 22, 0.85); }
.threat-feed-list li.severity-medium { border-left: 2px solid rgba(239, 68, 68, 0.9); }
.threat-feed-list li.severity-high { border-left: 2px solid rgba(248, 113, 113, 0.95); }

.threat-feed-list time {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    white-space: nowrap;
}

.threat-feed-list span {
    font-size: 0.68rem;
    color: var(--text-secondary);
    line-height: 1.4;
    overflow-wrap: anywhere;
}

@keyframes threatNodeAmbient {
    0% { opacity: 0.4; transform: scale(0.4); }
    100% { opacity: 0; transform: scale(1.9); }
}

@keyframes threatNodeBurst {
    0% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.6); }
    100% { box-shadow: 0 0 0 11px rgba(230, 57, 70, 0); }
}

@keyframes threatRoute {
    0% { opacity: 0; stroke-dashoffset: 44; }
    20% { opacity: 0.85; }
    100% { opacity: 0; stroke-dashoffset: 0; }
}

@keyframes threatLivePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(0.62); opacity: 0.45; }
}

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

/* ===== STATUS BAR ===== */
.status-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
    border-top: 1px solid var(--border);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    isolation: isolate;
    z-index: 2;
    opacity: 0;
    animation: statusBarIn 0.4s var(--ease) forwards;
}

@keyframes statusBarIn {
    to { opacity: 1; }
}

.status-certs {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-cert {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--text);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.4s, color 0.4s, box-shadow 0.4s, text-shadow 0.4s;
}

.status-cert:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 8px rgba(230, 57, 70, 0.25), inset 0 0 6px rgba(230, 57, 70, 0.08);
    text-shadow: 0 0 6px rgba(230, 57, 70, 0.4);
}

.status-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-copyright {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text);
    letter-spacing: 0.02em;
    margin-left: auto;
}

.status-social {
    display: flex;
    gap: 12px;
}

.status-social a {
    color: var(--text);
    transition: color 0.3s;
}

.status-social a:hover {
    color: var(--text);
}

.status-legal {
    display: flex;
    align-items: center;
    gap: 14px;
}

.status-legal-link {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    padding: 0;
    transition: color 0.3s;
}

.status-legal-link:hover {
    color: var(--accent);
}

/* ===== LEGAL MODAL ===== */
.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease-out;
}

.legal-modal.open {
    pointer-events: auto;
    opacity: 1;
}

.legal-modal-scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    will-change: opacity;
}

.legal-modal-box {
    position: relative;
    z-index: 1;
    width: min(680px, 92vw);
    max-height: 80vh;
    background: rgba(10, 10, 14, 0.98);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.15s ease-out;
}

.legal-modal.open .legal-modal-box {
    transform: translateY(0);
}

.legal-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
    transition: color 0.3s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.legal-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    flex-shrink: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.legal-tab {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 18px 0;
    margin-right: 28px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-color 0.3s;
    text-transform: uppercase;
}

.legal-tab.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.legal-tab:hover:not(.active) {
    color: var(--text-secondary);
}

.legal-content {
    display: none;
    overflow-y: auto;
    padding: 28px 32px 36px;
    flex: 1;
    min-height: 0;
    scroll-behavior: smooth;
}

.legal-content.active {
    display: block;
}

.legal-content h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.legal-updated {
    font-family: var(--font-body);
    font-size: 0.68rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 28px;
}

.legal-content h3 {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal-content p {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 10px;
}

.legal-content ul {
    list-style: none;
    margin-bottom: 10px;
}

.legal-content ul li {
    font-size: 0.83rem;
    color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 16px;
    position: relative;
    margin-bottom: 4px;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 1px;
    background: var(--accent);
}

.legal-content strong {
    color: var(--text);
    font-weight: 500;
}

/* ===== CONTACT OVERLAY ===== */
.contact-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.contact-overlay.open {
    pointer-events: auto;
}

.contact-overlay-scrim {
    position: absolute;
    inset: -50px;
    background: rgba(0, 0, 0, 0.84);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    opacity: 0;
    will-change: opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    transition: opacity 0.4s var(--ease);
}

.contact-overlay.open .contact-overlay-scrim {
    opacity: 1;
}

.contact-overlay-panel {
    position: relative;
    width: min(820px, 92vw);
    max-height: 90vh;
    background: linear-gradient(180deg, rgba(4, 4, 4, 0.96) 0%, rgba(10, 10, 10, 0.985) 100%);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 36px;
    overflow-y: auto;
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
    transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.contact-overlay.open .contact-overlay-panel {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.contact-overlay-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-overlay-close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.contact-direct-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 40px;
    margin-bottom: 24px;
}

.contact-action-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.4s var(--ease);
    color: var(--text-secondary);
}

.contact-action-btn span {
    min-width: 0;
}

.contact-action-btn:hover {
    border-color: var(--accent);
    background: rgba(230, 57, 70, 0.05);
    transform: translateY(-2px);
}

.contact-action-btn:hover svg {
    color: var(--accent);
}

.contact-action-btn strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.contact-action-btn small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
    color: var(--text-secondary);
}

@media (max-width: 640px) {
    .contact-direct-actions {
        grid-template-columns: 1fr;
    }
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.contact-form .btn-full {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.form-group:focus-within label {
    color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.85rem;
    transition: all 0.3s var(--ease);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group select {
    cursor: pointer;
    color: var(--text-muted);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.form-group select option {
    background: var(--bg);
    color: var(--text);
}

.form-group select.has-value {
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: rgba(230, 57, 70, 0.5);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group textarea {
    resize: none;
    min-height: 84px;
    max-height: 180px;
    overflow-y: hidden;
    overscroll-behavior: contain;
}

.form-group textarea.is-scrollable {
    overflow-y: auto;
}

.form-group:has(textarea) {
    grid-column: 1 / -1;
}

.contact-form .form-group:has(select) {
    grid-column: 1 / -1;
}

/* ===== ADVISOR CAROUSEL — Centered ===== */

/* Full-viewport wrapper: arrow | content | arrow */
.adv-wrap {
    position: fixed;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 4vw, 64px);
    padding: 0 clamp(20px, 4vw, 60px);
    padding-bottom: 44px;
}

/* Arrow buttons on left and right */
.adv-arrow {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 110, 123, 0.54);
    background:
        radial-gradient(circle at 32% 28%, rgba(255, 186, 192, 0.5) 0%, rgba(255, 126, 138, 0.18) 28%, rgba(0, 0, 0, 0) 56%),
        linear-gradient(180deg, rgba(255, 96, 111, 0.98) 0%, rgba(245, 60, 75, 0.96) 58%, rgba(209, 36, 54, 0.98) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(83, 6, 15, 0.22),
        0 14px 32px rgba(0, 0, 0, 0.34),
        0 0 18px rgba(245, 60, 75, 0.18);
    color: rgba(9, 5, 6, 0.94);
    cursor: pointer;
    transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
    flex-shrink: 0;
    overflow: hidden;
    isolation: isolate;
}

.adv-arrow::before {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    border: 1px solid rgba(83, 6, 15, 0.18);
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 35%, transparent 72%);
    z-index: 0;
}

.adv-arrow svg {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.18));
}

.adv-arrow:hover {
    border-color: rgba(255, 146, 156, 0.72);
    color: rgba(7, 4, 5, 0.98);
    background:
        radial-gradient(circle at 34% 30%, rgba(255, 208, 214, 0.56) 0%, rgba(255, 126, 138, 0.2) 28%, rgba(0, 0, 0, 0) 58%),
        linear-gradient(180deg, rgba(255, 116, 129, 1) 0%, rgba(245, 60, 75, 0.98) 58%, rgba(214, 37, 55, 1) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.26),
        inset 0 -1px 0 rgba(83, 6, 15, 0.26),
        0 16px 34px rgba(0, 0, 0, 0.42),
        0 0 22px rgba(245, 60, 75, 0.24);
    transform: scale(1.08);
}

/* Center content area */
.adv-center {
    flex: 1;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Stage holds all slides stacked */
.adv-stage {
    position: relative;
    width: 100%;
    min-height: 360px;
}

/* Advisor photo / avatar */
.adv-photo {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.adv-photo svg {
    width: 48px;
    height: 48px;
}

.adv-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Each slide stacked, fades in/out */
.adv-slide {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
    pointer-events: none;
}

.adv-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Slide number */
.adv-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    opacity: 0.7;
}

/* Advisor name */
.adv-name {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 12px;
}

/* Role tag */
.adv-role {
    font-family: var(--font-mono);
    font-size: clamp(0.65rem, 0.8vw, 0.76rem);
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 20px;
    padding: 5px 14px;
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 4px;
    background: rgba(230, 57, 70, 0.06);
}

/* Bio text */
.adv-bio {
    font-size: clamp(0.85rem, 1vw, 0.98rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
}

/* Counter below stage */
.adv-counter {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.06em;
}

.adv-counter #advCurrent {
    color: var(--text);
    font-weight: 500;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .adv-track { transition: none; }
}

/* ===== ACCESSIBILITY ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .panel-details-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .panel-threat-map {
        grid-template-columns: 1fr;
    }
    .nav-email { display: none; }
    .nav-cta {
        min-width: 0;
        padding: 10px;
    }
    .nav-service-search {
        flex-basis: 220px;
        min-width: 176px;
    }
    .panel-icon {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 900px) {
    .nav-contact-info { display: none; }
    .nav-logo {
        gap: 10px;
        font-size: 0.8rem;
        letter-spacing: 0.18em;
    }
    .nav-container {
        gap: 18px;
    }
    .nav-links {
        gap: 28px;
    }
    .nav-cta {
        min-width: 0;
        padding: 9px;
        font-size: 0.79rem;
    }
    .nav-service-search {
        flex-basis: 194px;
        min-width: 156px;
    }
    .service-search-shell {
        min-height: 40px;
        padding: 0 12px;
    }
    .service-search-input {
        font-size: 16px;
    }
    .logo-mark-orbit {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }
    .panel-icon {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 6px 0;
    }

    html {
        height: auto;
    }

    body {
        height: auto;
        min-height: 100svh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .container { padding: 0 20px; }

    .nav-container {
        gap: 12px;
    }

    .nav-logo {
        flex: 0 1 auto;
    }

    .nav-cta-group {
        position: static;
        transform: none;
        margin-left: auto;
        gap: 14px;
        order: 2;
    }

    .nav-right {
        order: 3;
    }

    .nav-cta {
        min-width: 35px;
        width: 35px;
        height: 35px;
        padding: 0;
        background: none;
        border: none;
        border-radius: 0;
        color: var(--accent);
        box-shadow: none;
    }

    .nav-right {
        gap: 10px;
    }

    .nav-search-trigger {
        display: inline-flex;
        width: 35px;
        height: 35px;
    }

    .nav-cta-label {
        display: none;
    }

    .nav-cta-icon {
        display: inline-flex;
    }

    .nav-cta-icon svg {
        width: 12px;
        height: 12px;
    }

    .nav-service-search-desktop {
        display: none !important;
    }

    .nav-search-trigger {
        display: none !important;
    }

    .mobile-search-overlay {
        padding:
            max(20px, calc(10px + env(safe-area-inset-top)))
            16px
            max(20px, calc(10px + env(safe-area-inset-bottom)));
    }

    .mobile-search-panel {
        padding: 16px;
        border-radius: 20px;
    }

    .nav-service-search-mobile-overlay .service-search-shell {
        min-height: 52px;
        padding: 0 16px;
        border-radius: 16px;
    }

    .nav-service-search-mobile-overlay .service-search-dropdown {
        max-height: min(48vh, 340px);
    }

    .dashboard {
        height: auto;
        min-height: 100svh;
        padding-top: 59px;
    }

    .panel-grid {
        flex: none;
        overflow: visible;
        align-content: normal;
        grid-template-rows: repeat(4, minmax(220px, auto));
    }

    .panel {
        min-height: 220px;
    }

    .panel-collapsed-content {
        justify-content: center;
        min-height: 100%;
        gap: 6px;
    }

    .panel-summary {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        margin-bottom: 0;
        max-width: 38ch;
    }

    .panel-icon {
        width: 72px;
        height: 72px;
        margin-top: auto;
    }

    /* Mobile nav */
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(82vw, 280px);
        height: 100vh;
        background: var(--bg-elevated);
        flex: none;
        flex-direction: column;
        justify-content: flex-start;
        padding: 96px 28px 40px;
        gap: 20px;
        border-left: 1px solid var(--border);
        transition: right 0.4s var(--ease);
        transform: none;
        left: auto;
        z-index: 1001;
    }
    .nav-links.open { right: 0; }

    .nav-links li a {
        font-size: 1.1rem;
        letter-spacing: 0.04em;
    }

    .nav-mobile-divider {
        display: block;
        width: 32px;
        height: 1px;
        background: var(--border);
        margin: 4px 0;
    }

    .nav-mobile-contact {
        display: list-item;
    }
    .nav-mobile-info-link {
        font-size: 0.82rem !important;
        color: var(--text-muted) !important;
        letter-spacing: 0.02em !important;
        transition: color 0.3s;
    }
    .nav-mobile-info-link:hover {
        color: var(--accent) !important;
    }

    .nav-mobile-footer {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: auto;
        padding-top: 20px;
    }
    .nav-mobile-tagline {
        font-family: var(--font-mono);
        font-size: 0.65rem;
        color: var(--text-muted);
        letter-spacing: 0.08em;
        opacity: 0.6;
    }
    .nav-mobile-social a {
        color: var(--text-muted);
        transition: color 0.3s;
    }
    .nav-mobile-social a:hover {
        color: var(--accent);
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 999;
        pointer-events: none;
        opacity: 0;
        will-change: opacity;
        transform: translateZ(0);
        backface-visibility: hidden;
        transition: opacity 0.4s var(--ease);
    }
    .nav-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle.active span:first-child {
        transform: translateY(7px) rotate(45deg);
    }
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    .nav-toggle.active span:last-child {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* Mobile panel grid */
    .panel-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, minmax(220px, auto));
        grid-template-areas:
            "p01"
            "p02"
            "p03"
            "p04";
        padding: 10px 12px 16px;
        gap: 10px;
    }

    .panel {
        padding: 24px 20px 20px;
    }

    /* Boost panel background glows on mobile — panels are wider & shorter
       so the circular gradient gets clipped, making colors appear muted */
    .panel[data-panel="01"] .panel-bg-deco::after {
        background: radial-gradient(circle, rgba(245, 60, 75, 0.78) 0%, rgba(245, 60, 75, 0.28) 45%, transparent 75%);
        filter: blur(32px);
    }
    .panel[data-panel="02"] .panel-bg-deco::after {
        background: radial-gradient(circle, rgba(70, 145, 255, 0.78) 0%, rgba(70, 145, 255, 0.28) 45%, transparent 75%);
        filter: blur(32px);
    }
    .panel[data-panel="03"] .panel-bg-deco::after {
        background: radial-gradient(circle, rgba(160, 100, 255, 0.75) 0%, rgba(160, 100, 255, 0.26) 45%, transparent 75%);
        filter: blur(32px);
    }
    .panel[data-panel="04"] .panel-bg-deco::after {
        background: radial-gradient(circle, rgba(30, 215, 145, 0.72) 0%, rgba(30, 215, 145, 0.26) 45%, transparent 75%);
        filter: blur(32px);
    }

    .panel-title {
        font-size: 1.75rem;
    }

    .panel-summary {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 0;
    }

    .panel-arrow {
        bottom: 16px;
        right: 16px;
    }

    /* Mobile expanded: full screen popup — covers everything including navbar */
    .panel.active {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        z-index: 10000 !important;
        border-radius: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        margin: 0 !important;
        padding: 28px 24px;
        padding-top: max(28px, calc(20px + env(safe-area-inset-top)));
        padding-bottom: calc(32px + env(safe-area-inset-bottom));
        overflow-y: auto !important;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        touch-action: pan-y;
        background: #06080e !important;
        border: none !important;
        transform: none !important;
        contain: none !important;
        backface-visibility: visible !important;
    }

    body.panel-open .panel-grid {
        contain: none !important;
        transform: none !important;
    }

    .panel.active .panel-expanded-content {
        display: flex !important;
        overflow-y: visible;
    }

    .panel.active .panel-close {
        position: absolute !important;
        top: max(28px, calc(20px + env(safe-area-inset-top)));
        right: 24px;
        z-index: 10;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .panel-threat-map {
        grid-template-columns: 1fr;
    }

    .threat-map-card {
        min-height: 180px;
    }

    /* Mobile: don't rearrange grid on expand */
    .panel-grid.expanded-01,
    .panel-grid.expanded-02,
    .panel-grid.expanded-03,
    .panel-grid.expanded-04 {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, minmax(220px, auto));
        grid-template-areas:
            "p01"
            "p02"
            "p03"
            "p04";
    }

    /* Status bar mobile */
    .status-bar {
        flex-wrap: wrap;
        gap: 14px;
        padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
        justify-content: center;
    }

    .status-certs {
        gap: 8px;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 8px;
    }

    .status-cert {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .status-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .status-copyright {
        font-size: 0.78rem;
    }

    .status-legal {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .status-social {
        gap: 10px;
    }

    /* Advisor carousel mobile — keep viewport-locked */
    .adv-wrap {
        gap: 12px;
        padding: 0 12px;
        padding-bottom: 44px;
    }

    /* Advisor page: prevent body scroll on mobile */
    body.advisors-page {
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .adv-arrow {
        width: 44px;
        height: 44px;
    }

    .adv-center {
        max-width: 100%;
    }

    .adv-name {
        font-size: 1.6rem;
    }

    .adv-stage {
        min-height: 300px;
    }

    .adv-photo {
        width: 72px;
        height: 72px;
        margin-bottom: 14px;
    }

    .adv-bio {
        font-size: 0.82rem;
    }

    .adv-role {
        font-size: 0.6rem;
    }

    /* Contact overlay mobile */
    .contact-overlay-panel {
        padding: 32px 20px;
        border-radius: 16px;
        width: min(640px, 94vw);
    }

    .contact-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .nav-logo {
        font-size: 0.74rem;
        letter-spacing: 0.16em;
    }
    .nav-cta {
        width: 33px;
        height: 33px;
        min-width: 33px;
        background: none;
        border: none;
        border-radius: 0;
        color: var(--accent);
        box-shadow: none;
    }
    .nav-search-trigger {
        width: 33px;
        height: 33px;
    }
    .mobile-search-overlay {
        padding:
            max(16px, calc(8px + env(safe-area-inset-top)))
            12px
            max(16px, calc(8px + env(safe-area-inset-bottom)));
    }
    .mobile-search-panel {
        padding: 14px;
        border-radius: 18px;
    }
    .nav-service-search-mobile-overlay .service-search-shell {
        min-height: 50px;
        padding: 0 14px;
    }
    .nav-service-search-mobile-overlay .service-search-result {
        padding: 12px;
    }
    .nav-service-search-mobile-overlay .service-search-result-label {
        font-size: 0.9rem;
    }
    .nav-cta-icon svg {
        width: 11px;
        height: 11px;
    }
    .nav-search-trigger svg {
        width: 18px;
        height: 18px;
    }
    .logo-mark-orbit {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
    .nav-links {
        width: min(88vw, 280px);
        padding: 88px 22px 28px;
    }

    .dashboard {
        padding-top: 57px;
    }

    .panel-grid {
        grid-template-rows: repeat(4, minmax(196px, auto));
        padding: 8px 10px 14px;
        gap: 8px;
    }

    .panel {
        min-height: 196px;
        padding: 20px 16px 16px;
    }

    .panel-title {
        font-size: 1.48rem;
    }

    .panel-summary {
        font-size: 0.87rem;
    }

    .panel-icon {
        width: 60px;
        height: 60px;
        display: flex;
        margin-top: auto;
    }

    .status-certs {
        gap: 4px;
    }

    .status-bar {
        padding-inline: 12px;
    }

    .contact-overlay-panel {
        width: min(640px, 96vw);
        padding: 28px 16px;
    }

    .contact-action-btn {
        gap: 12px;
        padding: 13px 14px;
    }

    .contact-action-btn strong {
        font-size: 0.94rem;
    }

    .panel-grid.expanded-01,
    .panel-grid.expanded-02,
    .panel-grid.expanded-03,
    .panel-grid.expanded-04 {
        grid-template-rows: repeat(4, minmax(196px, auto));
    }
}
