/* Nabil Executive — Main Styles */

:root {
    --ne-void: #05070b;
    --ne-deep: #0a0f16;
    --ne-surface: #111827;
    --ne-elevated: #151a23;
    --ne-cyan: #00e5ff;
    --ne-blue: #3b82f6;
    --ne-green: #00ff88;
    --ne-magenta: #ff2d95;
    --ne-violet: #8b5cf6;
    --ne-text: #e8ecf4;
    --ne-muted: #8b95a8;
    --ne-dim: #4a5568;
    --ne-font: "Geist", "Inter", system-ui, sans-serif;
    --ne-display: "Space Grotesk", "Inter", system-ui, sans-serif;
    --ne-mono: "IBM Plex Mono", "Courier New", monospace;
    --ne-radius: 12px;
    --ne-radius-lg: 20px;
    --ne-transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --ne-glow-cyan: 0 0 40px rgba(0, 229, 255, 0.15);
    --ne-header-h: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

body.ne-body {
    margin: 0;
    padding: 0;
    background: var(--ne-void);
    color: var(--ne-text);
    font-family: var(--ne-font);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

body.ne-body.ne-menu-open {
    overflow: hidden;
}

.ne-main {
    width: 100%;
    overflow-x: clip;
}

.ne-main img,
.ne-main svg {
    max-width: 100%;
    height: auto;
}

.ne-main button {
    font-family: inherit;
    color: inherit;
}

body.ne-body a,
body.ne-body button {
    cursor: none;
}

@media (max-width: 768px), (pointer: coarse) {
    body.ne-body,
    body.ne-body a,
    body.ne-body button {
        cursor: auto;
    }
    .ne-cursor,
    .ne-cursor-ring {
        display: none !important;
    }
}

.ne-mono {
    font-family: var(--ne-mono);
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
}

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

.ne-skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 10000;
    padding: 0.75rem 1.25rem;
    background: var(--ne-cyan);
    color: var(--ne-void);
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
}
.ne-skip-link:focus {
    top: 1rem;
}

.ne-container {
    width: min(1200px, 100% - 3rem);
    margin-inline: auto;
}

@media (max-width: 768px) {
    .ne-container {
        width: min(1200px, 100% - 2rem);
    }
}

/* Boot Sequence */
.ne-boot {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--ne-void);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}
.ne-boot.is-done {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.ne-boot__inner {
    text-align: center;
}
.ne-boot__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}
.ne-boot__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ne-cyan);
    box-shadow: 0 0 20px var(--ne-cyan);
    animation: ne-pulse 1.5s ease infinite;
}
.ne-boot__text {
    font-family: var(--ne-mono);
    font-size: 1.25rem;
    color: var(--ne-cyan);
    letter-spacing: 0.2em;
}
.ne-boot__lines {
    min-height: 120px;
}
.ne-boot__line {
    font-family: var(--ne-mono);
    font-size: 0.875rem;
    color: var(--ne-muted);
    margin: 0.5rem 0;
    opacity: 0;
    transform: translateY(8px);
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}
.ne-boot__line.is-visible {
    opacity: 1;
    transform: translateY(0);
    color: var(--ne-text);
}
.ne-boot__line:last-child.is-visible {
    color: var(--ne-green);
}
.ne-boot__skip {
    margin-top: 2rem;
    background: none;
    border: 1px solid var(--ne-dim);
    color: var(--ne-muted);
    font-family: var(--ne-mono);
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition:
        border-color var(--ne-transition),
        color var(--ne-transition);
}
.ne-boot__skip:hover {
    border-color: var(--ne-cyan);
    color: var(--ne-cyan);
}

/* Cursor */
.ne-cursor {
    position: fixed;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ne-cyan);
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
}
.ne-cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.3);
    pointer-events: none;
    z-index: 9997;
    transform: translate(-50%, -50%);
    transition:
        width 0.3s ease,
        height 0.3s ease,
        border-color 0.3s ease;
}
.ne-cursor-ring.is-hover {
    width: 60px;
    height: 60px;
    border-color: rgba(0, 229, 255, 0.6);
}

/* Header */
.ne-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--ne-header-h);
    background: rgba(5, 7, 11, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background var(--ne-transition);
}
.ne-header.is-scrolled {
    background: rgba(5, 7, 11, 0.92);
}
.ne-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: min(1200px, 100% - 3rem);
    margin-inline: auto;
}
.ne-header__brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--ne-text);
}
.ne-header__brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ne-green);
    box-shadow: 0 0 10px var(--ne-green);
}
.ne-header__brand-text {
    font-family: var(--ne-mono);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.15em;
}
.ne-header__brand-accent {
    color: var(--ne-cyan);
}
.ne-header__nav {
    display: flex;
    gap: 2rem;
}
.ne-nav-link {
    font-family: var(--ne-mono);
    font-size: 0.75rem;
    color: var(--ne-muted);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    position: relative;
    transition: color var(--ne-transition);
}
.ne-nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--ne-cyan);
    transition: width var(--ne-transition);
}
.ne-nav-link:hover,
.ne-nav-link:focus-visible {
    color: var(--ne-text);
}
.ne-nav-link:hover::after,
.ne-nav-link:focus-visible::after {
    width: 100%;
}
.ne-nav-link--accent {
    color: var(--ne-cyan);
}
.ne-header__menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}
.ne-header__menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ne-text);
    transition:
        transform var(--ne-transition),
        opacity var(--ne-transition);
}
.ne-header__menu-btn[aria-expanded="true"] span:first-child {
    transform: translateY(4px) rotate(45deg);
}
.ne-header__menu-btn[aria-expanded="true"] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

/* Mobile nav — hidden by default; class toggles visibility */
.ne-mobile-nav {
    display: none;
    position: fixed;
    top: var(--ne-header-h);
    left: 0;
    right: 0;
    background: rgba(10, 15, 22, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 1.5rem 1.5rem;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 999;
    max-height: calc(100dvh - var(--ne-header-h));
    overflow-y: auto;
}
.ne-mobile-nav.is-open {
    display: flex;
}
.ne-mobile-nav button {
    font-family: var(--ne-mono);
    font-size: 0.8125rem;
    color: var(--ne-cyan);
    background: none;
    border: none;
    text-align: left;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    cursor: pointer;
}
.ne-mobile-nav a,
.ne-mobile-nav__link {
    font-family: var(--ne-mono);
    font-size: 0.8125rem;
    color: var(--ne-text-muted);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.ne-mobile-nav a:last-child,
.ne-mobile-nav__link:last-of-type {
    border-bottom: none;
    color: var(--ne-cyan);
}

@media (max-width: 768px) {
    .ne-header__nav {
        display: none;
    }
    .ne-header__menu-btn {
        display: flex;
    }
    .ne-header__inner {
        width: min(1200px, 100% - 2rem);
    }
}

@media (min-width: 769px) {
    .ne-mobile-nav {
        display: none !important;
    }
}

/* Hero */
.ne-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 4rem;
    overflow: hidden;
}
.ne-hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.ne-hero__grid {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.04;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.5) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent);
}
.ne-hero__glow {
    position: absolute;
    top: 20%;
    left: 30%;
    width: 50%;
    height: 50%;
    background: radial-gradient(
        circle,
        rgba(0, 229, 255, 0.08) 0%,
        transparent 70%
    );
    z-index: 1;
    pointer-events: none;
}
.ne-hero__content {
    position: relative;
    z-index: 2;
    width: min(1200px, 100% - 3rem);
    margin-inline: auto;
    padding-top: calc(var(--ne-header-h) + 2rem);
}
.ne-hero__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.ne-hero__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ne-green);
}
.ne-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ne-green);
    animation: ne-pulse 2s ease infinite;
}
.ne-hero__timestamp {
    color: var(--ne-dim);
}
.ne-hero__name {
    margin: 0 0 1.5rem;
    line-height: 0.9;
}
.ne-hero__name-line {
    display: block;
    font-family: var(--ne-display);
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}
.ne-hero__name-line--accent {
    background: linear-gradient(
        135deg,
        var(--ne-cyan) 0%,
        var(--ne-blue) 50%,
        var(--ne-violet) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.ne-hero__name-line--sub {
    font-size: clamp(0.875rem, 2.4vw, 1.25rem);
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-top: 0.5rem;
}
.ne-hero__descriptor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: clamp(0.9rem, 2.5vw, 1.35rem);
    color: var(--ne-muted);
    min-height: 2rem;
}
.ne-hero__descriptor-prefix {
    color: var(--ne-cyan);
}
.ne-hero__descriptor-text {
    transition: opacity 0.4s ease;
}
.ne-hero__cursor-blink {
    color: var(--ne-cyan);
    animation: ne-blink 1s step-end infinite;
}
.ne-hero__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}
.ne-hero__profile {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    max-width: 480px;
}
.ne-hero__avatar-wrap {
    position: relative;
    flex-shrink: 0;
}
.ne-hero__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 229, 255, 0.3);
}
.ne-hero__avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(0, 229, 255, 0.2);
    animation: ne-rotate 8s linear infinite;
}
.ne-hero__tagline {
    margin: 0;
    color: var(--ne-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}
.ne-hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.ne-hero__scroll {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--ne-dim);
}
.ne-hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--ne-cyan), transparent);
    animation: ne-scroll-line 2s ease infinite;
}

/* Buttons */
.ne-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 1.75rem;
    border-radius: var(--ne-radius);
    font-family: var(--ne-mono);
    font-size: 0.8125rem;
    text-decoration: none;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
    overflow: hidden;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}
.ne-btn--primary {
    background: rgba(0, 229, 255, 0.08);
    color: var(--ne-cyan);
    border-color: rgba(0, 229, 255, 0.3);
}
.ne-btn--primary:hover,
.ne-btn--primary:focus-visible {
    border-color: var(--ne-cyan);
    box-shadow: var(--ne-glow-cyan);
    transform: translateY(-2px);
}
.ne-btn--ghost {
    background: transparent;
    color: var(--ne-muted);
    border-color: rgba(255, 255, 255, 0.1);
}
.ne-btn--ghost:hover,
.ne-btn--ghost:focus-visible {
    color: var(--ne-text);
    border-color: rgba(255, 255, 255, 0.25);
}
.ne-btn__glow {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(0, 229, 255, 0.1) 50%,
        transparent 60%
    );
    transition: opacity 0.3s ease;
}
.ne-btn--primary:hover .ne-btn__glow {
    opacity: 1;
    animation: ne-sweep 1.5s ease infinite;
}

/* Sections */
.ne-section {
    padding-block: clamp(4rem, 8vw, 7rem);
    position: relative;
}
.ne-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1200px, 100%);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.06),
        transparent
    );
}
.ne-section__header {
    margin-bottom: 3.5rem;
    max-width: 640px;
}
.ne-section__label {
    display: block;
    color: var(--ne-cyan);
    margin-bottom: 1rem;
}
.ne-section__title {
    font-family: var(--ne-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 600;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}
.ne-section__desc {
    color: var(--ne-muted);
    margin: 0;
}

.ne-reveal {
    opacity: 1;
    transform: none;
}
.ne-reveal.will-animate {
    opacity: 0;
    transform: translateY(24px);
}

/* Overview Modules */
.ne-overview__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}
.ne-module {
    position: relative;
    padding: 2rem;
    background: var(--ne-deep);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--ne-radius-lg);
    overflow: hidden;
    transition:
        transform 0.4s ease,
        border-color 0.4s ease,
        box-shadow 0.4s ease;
}
.ne-module:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.ne-module__edge {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--ne-cyan),
        transparent
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}
.ne-module:hover .ne-module__edge {
    opacity: 1;
}
.ne-module__label {
    color: var(--ne-cyan);
    display: block;
    margin-bottom: 1rem;
}
.ne-module__title {
    font-family: var(--ne-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}
.ne-module__body {
    color: var(--ne-muted);
    margin: 0;
    font-size: 0.9375rem;
}
.ne-module__index {
    position: absolute;
    bottom: 1rem;
    right: 1.5rem;
    color: var(--ne-dim);
    font-size: 2rem;
    opacity: 0.3;
}

/* Timeline */
.ne-timeline__stream {
    position: relative;
    padding-left: 1.5rem;
}
.ne-timeline__line {
    position: absolute;
    left: 5px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        var(--ne-cyan),
        var(--ne-violet),
        transparent
    );
}
.ne-event {
    margin-bottom: 0.25rem;
}
.ne-event__trigger {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 1rem 1.25rem;
    background: none;
    border: none;
    padding: 1.25rem 1rem 1.25rem 0;
    text-align: left;
    color: inherit;
    border-radius: var(--ne-radius);
    transition: background 0.3s ease;
    cursor: pointer;
}
.ne-event__trigger:hover,
.ne-event__trigger:focus-visible {
    background: rgba(255, 255, 255, 0.02);
}
.ne-event__node {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    margin-top: 6px;
    position: relative;
    z-index: 1;
    grid-row: 1 / span 2;
}
.ne-event__node-inner {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--ne-deep);
    border: 2px solid var(--ne-cyan);
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}
.ne-event.is-open .ne-event__node-inner {
    background: var(--ne-cyan);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}
.ne-event__header {
    display: contents;
}
.ne-event__year {
    color: var(--ne-cyan);
    grid-column: 2;
}
.ne-event__meta {
    grid-column: 2;
}
.ne-event__role {
    margin: 0;
    font-family: var(--ne-display);
    font-size: 1.125rem;
    font-weight: 600;
}
.ne-event__org {
    color: var(--ne-muted);
    display: block;
    margin-top: 0.25rem;
}
.ne-event__expand {
    color: var(--ne-dim);
    grid-column: 3;
    grid-row: 1;
    transition: color 0.3s ease;
}
.ne-event.is-open .ne-event__expand {
    color: var(--ne-cyan);
}
.ne-event__detail {
    padding: 0 1rem 1.25rem 2.75rem;
    color: var(--ne-muted);
    font-size: 0.9375rem;
    animation: ne-fade-in 0.4s ease;
}
.ne-event__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.ne-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.15);
    color: var(--ne-cyan);
    font-size: 0.6875rem;
}

/* Capabilities Graph */
.ne-graph {
    position: relative;
    min-height: 520px;
    background: var(--ne-deep);
    border-radius: var(--ne-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}
.ne-graph__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.ne-graph__links line {
    stroke: rgba(0, 229, 255, 0.15);
    stroke-width: 0.15;
    transition:
        stroke 0.3s ease,
        stroke-width 0.3s ease;
}
.ne-graph__links line.is-active {
    stroke: rgba(0, 229, 255, 0.6);
    stroke-width: 0.25;
}
.ne-graph__nodes {
    position: absolute;
    inset: 0;
}
.ne-graph__node {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    color: var(--ne-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem;
    transition: transform 0.3s ease;
    cursor: pointer;
    max-width: 110px;
    text-align: center;
}
.ne-graph__node:hover,
.ne-graph__node.is-active {
    transform: translate(-50%, -50%) scale(1.08);
    z-index: 2;
}
.ne-graph__node-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--ne-cyan);
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
    transition:
        box-shadow 0.3s ease,
        background 0.3s ease;
}
.ne-graph__node.is-active .ne-graph__node-dot,
.ne-graph__node:hover .ne-graph__node-dot {
    background: var(--ne-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}
.ne-graph__node-label {
    font-family: var(--ne-mono);
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
    color: var(--ne-muted);
    transition: color 0.3s ease;
}
.ne-graph__node.is-active .ne-graph__node-label,
.ne-graph__node:hover .ne-graph__node-label {
    color: var(--ne-text);
}
.ne-graph__info {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    right: 1.5rem;
    color: var(--ne-muted);
    font-size: 0.75rem;
    line-height: 1.5;
    max-height: 5rem;
    overflow-y: auto;
}

/* Dossiers */
.ne-dossiers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.ne-dossier {
    background: var(--ne-deep);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--ne-radius-lg);
    overflow: hidden;
    transition: border-color 0.4s ease;
}
.ne-dossier.is-open {
    border-color: rgba(0, 229, 255, 0.2);
}
.ne-dossier__tab {
    width: 100%;
    padding: 1.75rem 2rem;
    background: none;
    border: none;
    text-align: left;
    color: inherit;
    cursor: pointer;
    transition: background 0.3s ease;
}
.ne-dossier__tab:hover {
    background: rgba(255, 255, 255, 0.02);
}
.ne-dossier__classified {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--ne-dim);
}
.ne-dossier__stamp {
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--ne-magenta);
    color: var(--ne-magenta);
    font-family: var(--ne-mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
}
.ne-dossier.is-open .ne-dossier__stamp {
    border-color: var(--ne-green);
    color: var(--ne-green);
}
.ne-dossier__title {
    font-family: var(--ne-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}
.ne-dossier__summary {
    color: var(--ne-muted);
    margin: 0 0 1rem;
    font-size: 0.9375rem;
}
.ne-dossier__action {
    color: var(--ne-cyan);
}
.ne-dossier__content {
    padding: 0 2rem 2rem;
    animation: ne-declassify 0.6s ease;
}
.ne-dossier__content[hidden] {
    display: none !important;
}
.ne-event__detail[hidden] {
    display: none !important;
}
.ne-dossier__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.ne-dossier__field span {
    display: block;
    color: var(--ne-cyan);
    margin-bottom: 0.5rem;
    font-size: 0.6875rem;
}
.ne-dossier__field p {
    margin: 0;
    color: var(--ne-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}
.ne-dossier__field--full {
    grid-column: 1 / -1;
}

/* Metrics */
.ne-metrics__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
}
.ne-metric {
    padding: 1.75rem;
    background: var(--ne-deep);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--ne-radius);
    position: relative;
    overflow: hidden;
}
.ne-metric__value {
    font-family: var(--ne-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--ne-cyan);
    line-height: 1;
}
.ne-metric__label {
    display: block;
    margin-top: 0.75rem;
    font-weight: 500;
    font-size: 0.875rem;
}
.ne-metric__detail {
    display: block;
    margin-top: 0.25rem;
    color: var(--ne-dim);
    font-size: 0.6875rem;
}
.ne-metric__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.04);
}
.ne-metric__bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--ne-cyan), var(--ne-violet));
    transition: width 1.5s ease;
}
.ne-metric.is-counted .ne-metric__bar-fill {
    width: 100%;
}

/* Principles */
.ne-principles__framework {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
    position: relative;
}
.ne-principles__core {
    display: none;
}
.ne-principle__card {
    padding: 1.75rem;
    background: var(--ne-deep);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--ne-radius);
    transition:
        transform 0.4s ease,
        border-color 0.4s ease;
}
.ne-principle:hover .ne-principle__card {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.2);
}
.ne-principle__num {
    color: var(--ne-violet);
    display: block;
    margin-bottom: 0.75rem;
}
.ne-principle__title {
    font-family: var(--ne-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}
.ne-principle__body {
    color: var(--ne-muted);
    margin: 0;
    font-size: 0.875rem;
}

/* Constellation */
.ne-tech-pillars {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.25rem;
    max-width: 1240px;
    margin-inline: auto;
    padding: 2rem 0;
}
.ne-tech-pillar {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--ne-radius-lg);
}
.ne-tech-pillar__title {
    margin: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--ne-mono);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ne-cyan);
}
.ne-tech-pillar__cards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}
.ne-tech-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
    padding: 1rem 1.125rem;
    background: var(--ne-elevated);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ne-radius);
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}
.ne-tech-card:hover,
.ne-tech-card.is-active {
    border-color: rgba(0, 229, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.08);
    transform: translateY(-2px);
}
.ne-tech-card__name {
    font-family: var(--ne-mono);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.25;
}
.ne-tech-card__links {
    font-size: 0.65rem;
    color: var(--ne-muted);
}

@media (max-width: 1100px) {
    .ne-tech-pillars {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .ne-tech-pillars {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ne-tech-pillars {
        grid-template-columns: 1fr;
    }
    .ne-tech-pillar {
        padding: 1rem;
    }
}

/* Insights */
.ne-insights__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}
.ne-insight-card {
    position: relative;
    padding: 2rem;
    background: var(--ne-deep);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--ne-radius-lg);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition:
        transform 0.4s ease,
        border-color 0.4s ease;
    display: block;
}
.ne-insight-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.15);
}
.ne-insight-card__glow {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle,
        rgba(0, 229, 255, 0.05) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}
.ne-insight-card:hover .ne-insight-card__glow {
    opacity: 1;
}
.ne-insight-card__date {
    color: var(--ne-dim);
    display: block;
    margin-bottom: 1rem;
}
.ne-insight-card__title {
    font-family: var(--ne-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}
.ne-insight-card__excerpt {
    color: var(--ne-muted);
    margin: 0 0 1.25rem;
    font-size: 0.875rem;
}
.ne-insight-card__link {
    color: var(--ne-cyan);
}

/* Terminal */
.ne-terminal {
    background: var(--ne-deep);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--ne-radius-lg);
    overflow: hidden;
    max-width: 800px;
}
.ne-terminal__chrome {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--ne-elevated);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.ne-terminal__ai-status {
    margin-left: auto;
    font-size: 0.625rem;
    color: var(--ne-dim);
    letter-spacing: 0.08em;
}
.ne-terminal__ai-status.is-online {
    color: var(--ne-green);
}
.ne-terminal__dots {
    display: flex;
    gap: 6px;
}
.ne-terminal__dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.ne-terminal__dots span:nth-child(1) {
    background: #ff5f57;
}
.ne-terminal__dots span:nth-child(2) {
    background: #ffbd2e;
}
.ne-terminal__dots span:nth-child(3) {
    background: #28ca42;
}
.ne-terminal__title {
    color: var(--ne-dim);
    font-size: 0.75rem;
}
.ne-terminal__body {
    padding: 1.5rem;
}
.ne-terminal__line {
    margin: 0.35rem 0;
}
.ne-terminal__line--dim {
    color: var(--ne-dim);
}
.ne-terminal__line--success {
    color: var(--ne-green);
}
.ne-terminal__line--warn {
    color: #fbbf24;
}
.ne-terminal__line--ai {
    color: var(--ne-text);
    white-space: pre-wrap;
    line-height: 1.65;
    padding: 0.75rem 0 0.75rem 1rem;
    margin: 0.25rem 0;
    border-left: 2px solid rgba(0, 229, 255, 0.4);
}
.ne-terminal__ai-block.is-streaming .ne-terminal__line--ai {
    border-left-color: rgba(0, 229, 255, 0.7);
    box-shadow: inset 2px 0 12px rgba(0, 229, 255, 0.08);
}
.ne-terminal__stream-cursor {
    color: #00e5ff;
    animation: ne-ai-blink 0.9s step-end infinite;
    margin-left: 2px;
}
@keyframes ne-ai-blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}
.ne-terminal__stream-status {
    color: var(--ne-dim, #4a5568);
}
.ne-terminal__ai-block {
    margin: 0.5rem 0 1rem;
}
.ne-terminal__sources {
    font-size: 0.6875rem !important;
    margin-top: 0.25rem !important;
}
.ne-graph__info.is-loading {
    color: var(--ne-cyan);
}
.ne-terminal__prompt {
    color: var(--ne-cyan);
    margin-right: 0.5rem;
}
.ne-terminal__channels {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
    animation: ne-fade-in 0.5s ease;
}
.ne-terminal__channels[hidden] {
    display: none !important;
}
.ne-terminal__channel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--ne-radius);
    text-decoration: none;
    color: var(--ne-text);
    transition:
        border-color 0.3s ease,
        background 0.3s ease;
}
.ne-terminal__channel:hover {
    border-color: rgba(0, 229, 255, 0.25);
    background: rgba(0, 229, 255, 0.04);
}
.ne-terminal__channel-url {
    color: var(--ne-dim);
    font-size: 0.6875rem;
}
.ne-terminal__input-row {
    display: flex;
    align-items: center;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
}
.ne-terminal__input {
    flex: 1;
    background: none;
    border: none;
    color: var(--ne-text);
    font-size: 0.875rem;
    outline: none;
    padding: 0.5rem 0;
}
.ne-terminal__input::placeholder {
    color: var(--ne-dim);
}

/* Footer */
.ne-footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    background: var(--ne-deep);
}
.ne-footer__inner {
    width: min(1200px, 100% - 3rem);
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}
.ne-footer__mono {
    font-family: var(--ne-mono);
    font-size: 0.75rem;
    color: var(--ne-dim);
}
.ne-footer__copy {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--ne-muted);
}
.ne-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.ne-footer__link {
    font-family: var(--ne-mono);
    font-size: 0.75rem;
    color: var(--ne-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}
.ne-footer__link:hover {
    color: var(--ne-cyan);
}
.ne-footer__status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.ne-footer__status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ne-green);
    animation: ne-pulse 2s ease infinite;
}

/* Animations */
@keyframes ne-pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
}
@keyframes ne-blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}
@keyframes ne-scroll-line {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }
    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}
@keyframes ne-sweep {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
@keyframes ne-fade-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes ne-declassify {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}
@keyframes ne-rotate {
    to {
        transform: rotate(360deg);
    }
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--ne-cyan);
    outline-offset: 3px;
}

/* Reduced motion overrides */
body.ne-reduced-motion .ne-hero__canvas,
body.ne-reduced-motion .ne-constellation__canvas {
    display: none;
}
body.ne-reduced-motion .ne-reveal,
body.ne-reduced-motion .ne-reveal.will-animate {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 768px) {
    .ne-hero__content {
        width: min(1200px, 100% - 2rem);
    }
    .ne-hero__meta {
        margin-bottom: 2rem;
    }
    .ne-hero__timestamp {
        display: none;
    }
    .ne-hero__bottom {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 2.5rem;
    }
    .ne-hero__actions {
        width: 100%;
    }
    .ne-hero__actions .ne-btn {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }
    .ne-hero__scroll {
        display: none;
    }
    .ne-overview__grid {
        grid-template-columns: 1fr;
    }
    .ne-metrics__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ne-principles__framework {
        grid-template-columns: 1fr;
    }
    .ne-insights__grid {
        grid-template-columns: 1fr;
    }
    .ne-dossier__tab {
        padding: 1.25rem 1.25rem;
    }
    .ne-dossier__content {
        padding: 0 1.25rem 1.25rem;
    }
    .ne-dossier__grid {
        grid-template-columns: 1fr;
    }
    .ne-footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 900px) {
    /* Capabilities: switch to clean grid */
    .ne-graph {
        min-height: auto;
        padding: 1.25rem;
        padding-bottom: 3.5rem;
    }
    .ne-graph__svg {
        display: none;
    }
    .ne-graph__nodes {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }
    .ne-graph__node {
        position: static;
        transform: none !important;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        max-width: none;
        text-align: left;
        gap: 0.65rem;
        padding: 0.85rem 1rem;
        background: var(--ne-elevated);
        border: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: var(--ne-radius);
    }
    .ne-graph__node-label {
        font-size: 0.65rem;
        white-space: normal;
    }
    .ne-graph__info {
        left: 1.25rem;
        right: 1.25rem;
    }
}

@media (max-width: 480px) {
    .ne-metrics__grid {
        grid-template-columns: 1fr;
    }
    .ne-graph__nodes {
        grid-template-columns: 1fr;
    }
    .ne-hero__name-line {
        font-size: clamp(2.5rem, 14vw, 3.5rem);
    }
}
