/* ==========================================================================
   10X Cafe - Cyber / Futuristic interactive layer
   Layered on top of the neumorphic base. Activates strongest in dark mode.
   ========================================================================== */

:root {
    --neon-1: #7c5cff;
    --neon-2: #22d3ee;
    --neon-3: #c084fc;
    --neon-soft: rgba(124, 92, 255, 0.22);
    --grid-line: rgba(255, 255, 255, 0.05);
    --glass-bg: rgba(28, 29, 32, 0.55);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glow-strong: 0 0 0 1px rgba(124, 92, 255, 0.35), 0 0 32px rgba(124, 92, 255, 0.35);
}

/* ==========================================================================
   Background canvas — particle network
   ========================================================================== */

.fx-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.55;
}

/* ==========================================================================
   Cursor trail (dark cyber experience)
   ========================================================================== */

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle,
        rgba(124, 92, 255, 0.18) 0%,
        rgba(124, 92, 255, 0.09) 25%,
        rgba(124, 92, 255, 0) 65%);
    transform: translate3d(-50%, -50%, 0);
    opacity: 0;
    transition: opacity 200ms ease;
    will-change: transform, opacity;
}
.cursor-glow::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--neon-1);
    box-shadow:
        0 0 10px rgba(124, 92, 255, 0.9),
        0 0 22px rgba(124, 92, 255, 0.6);
    transform: translate(-50%, -50%);
}
@media (hover: none) { .cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) { .cursor-glow { display: none; } }

/* ==========================================================================
   Hero — interactive
   ========================================================================== */

.hero-fx {
    position: relative;
    overflow: visible;
    isolation: isolate;
    padding-top: var(--space-7);
    padding-bottom: var(--space-7);
}

.hero-fx::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 35%, transparent 75%);
    z-index: 0;
    pointer-events: none;
}

.hero-fx .hero-inner { z-index: 2; }

.hero-fx h1 {
    max-width: none;
    width: 100%;
}
.hero-fx h1 .accent-word {
    display: block;
    width: fit-content;
    margin-top: 0.15em;
}

.hero-aurora {
    position: absolute;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    top: -20%;
    right: -15%;
    background: radial-gradient(circle at 50% 50%,
        var(--neon-1) 0%,
        transparent 55%);
    opacity: 0.35;
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
    animation: auroraFloat 18s ease-in-out infinite;
}

.hero-aurora-2 {
    position: absolute;
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    bottom: -10%;
    left: -10%;
    background: radial-gradient(circle at 50% 50%,
        var(--neon-2) 0%,
        transparent 55%);
    opacity: 0.28;
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
    animation: auroraFloat 22s ease-in-out infinite reverse;
}

@keyframes auroraFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.08); }
    66% { transform: translate(-30px, 25px) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-aurora, .hero-aurora-2 { animation: none; }
}

/* Hero typewriter banner */
.hero-banner {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-top: 1.5rem;
    margin-bottom: 1.2rem;
    color: var(--ink);
}
.hero-banner .word {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--neon-1) 0%, var(--neon-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-banner .word::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-1), var(--neon-2), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-banner .word.is-visible::after { transform: scaleX(1); }

.hero-banner .dot-sep {
    color: var(--ink-faint);
    font-weight: 400;
}

.tw-target { display: inline-block; }
.tw-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--neon-1);
    margin-left: 4px;
    transform: translateY(2px);
    animation: blink 1s steps(2, start) infinite;
    box-shadow: 0 0 12px var(--neon-1);
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.hero-tagline {
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    color: var(--ink-soft);
    max-width: 56ch;
    margin-bottom: var(--space-5);
}

/* Hero "mission control" stage — terminal + floating metrics */
.hero-stage {
    position: relative;
    margin-top: var(--space-6);
    height: 380px;
    perspective: 1400px;
    pointer-events: none;
}
@media (max-width: 880px) {
    .hero-stage { height: 480px; }
}

/* Centerpiece terminal */
.hero-terminal {
    position: absolute;
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: min(560px, 90%);
    background: rgba(15, 16, 20, 0.85);
    border: 1px solid rgba(124, 92, 255, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(124, 92, 255, 0.15),
        0 0 40px rgba(124, 92, 255, 0.18);
    font-family: var(--font-mono);
    pointer-events: auto;
    z-index: 2;
    animation: floatY 8s ease-in-out infinite;

    --cut: 14px;
    clip-path: polygon(
        0 0,
        calc(100% - var(--cut)) 0,
        100% var(--cut),
        100% 100%,
        var(--cut) 100%,
        0 calc(100% - var(--cut))
    );
}
.hero-terminal-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid rgba(124, 92, 255, 0.18);
    background: rgba(124, 92, 255, 0.05);
}
.hero-terminal-head .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.hero-terminal-head .dot.red    { background: #ff5f57; box-shadow: 0 0 6px rgba(255, 95, 87, 0.5); }
.hero-terminal-head .dot.amber  { background: #febc2e; box-shadow: 0 0 6px rgba(254, 188, 46, 0.5); }
.hero-terminal-head .dot.green  { background: #28c840; box-shadow: 0 0 6px rgba(40, 200, 64, 0.5); }
.hero-terminal-head .title {
    margin-left: 0.5rem;
    font-size: 0.72rem;
    color: var(--ink-muted);
    letter-spacing: 0.05em;
    flex: 1;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.hero-terminal-head .status {
    font-size: 0.7rem;
    color: var(--neon-2);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.hero-terminal-head .status .pulse {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--neon-2);
    box-shadow: 0 0 0 0 var(--neon-2);
    animation: terminalPulse 1.6s ease-out infinite;
}
@keyframes terminalPulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); }
    70%  { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

.hero-terminal-body {
    margin: 0;
    padding: 1rem 1.1rem;
    font-size: 0.75rem;
    color: var(--ink-soft);
    line-height: 1.65;
    white-space: pre;
    overflow: hidden;
}
.hero-terminal-body .line { display: block; }
.hero-terminal-body .prompt { color: var(--neon-2); margin-right: 0.4rem; }
.hero-terminal-body .cmd { color: var(--ink); }
.hero-terminal-body .hl { color: var(--neon-3); }
.hero-terminal-body .ok { color: #58e08c; }
.hero-terminal-body .type .cmd {
    border-right: 2px solid var(--neon-1);
    animation: termCaret 1s steps(2) infinite;
    padding-right: 2px;
}
@keyframes termCaret { 50% { border-color: transparent; } }

/* Floating metric pods around the terminal */
.hero-metric {
    position: absolute;
    background: rgba(28, 29, 32, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 0.7rem 0.95rem;
    font-family: var(--font-mono);
    color: var(--ink);
    box-shadow:
        0 12px 36px rgba(0, 0, 0, 0.45),
        0 0 24px rgba(124, 92, 255, 0.1);
    pointer-events: auto;
    transform-style: preserve-3d;
    animation: floatY 6s ease-in-out infinite;
    z-index: 1;

    --cut: 10px;
    clip-path: polygon(
        0 0,
        calc(100% - var(--cut)) 0,
        100% var(--cut),
        100% 100%,
        var(--cut) 100%,
        0 calc(100% - var(--cut))
    );
}
.hero-metric .label {
    color: var(--ink-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.62rem;
    margin-bottom: 0.25rem;
}
.hero-metric .value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.hero-metric .value .unit {
    font-size: 0.85rem;
    color: var(--ink-muted);
    margin-left: 1px;
}
.hero-metric .value-sm {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
}
.hero-metric .trend {
    font-size: 0.7rem;
    color: var(--ink-muted);
    margin-top: 0.35rem;
}
.hero-metric .trend.up { color: #58e08c; }

.hero-metric .metric-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    margin-top: 0.4rem;
    height: 22px;
}
.hero-metric .metric-bars span {
    flex: 1;
    background: linear-gradient(180deg, var(--neon-2), var(--neon-1));
    height: var(--h, 50%);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 0 6px rgba(124, 92, 255, 0.4);
}

.hero-metric .chips-mini {
    display: flex;
    gap: 4px;
    margin-top: 0.4rem;
    flex-wrap: wrap;
}
.hero-metric .chips-mini span {
    font-size: 0.62rem;
    padding: 0.18rem 0.45rem;
    background: rgba(124, 92, 255, 0.12);
    color: var(--ink-soft);
    border-radius: 3px;
    letter-spacing: 0.05em;
}

.hero-metric-1 { top: 4%;  left: 4%;  animation-delay: 0s;     width: 150px; }
.hero-metric-2 { top: 4%;  right: 4%; animation-delay: -1.5s;  width: 150px; }
.hero-metric-3 { bottom: 4%; left: 4%;  animation-delay: -3s;  width: 180px; }
.hero-metric-4 { bottom: 4%; right: 4%; animation-delay: -4.5s; width: 150px; }

@media (max-width: 880px) {
    .hero-terminal { width: 92%; top: 28%; }
    .hero-metric-1 { top: 2%; left: 4%; width: 44%; }
    .hero-metric-2 { top: 2%; right: 4%; width: 44%; }
    .hero-metric-3 { bottom: 2%; left: 4%; width: 44%; }
    .hero-metric-4 { bottom: 2%; right: 4%; width: 44%; }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero-terminal {
    /* override translateX(-50%) preservation */
    animation: floatYCenter 8s ease-in-out infinite;
}
@keyframes floatYCenter {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}
@media (max-width: 880px) {
    @keyframes floatYCenter {
        0%, 100% { transform: translateX(-50%) translateY(0); }
        50% { transform: translateX(-50%) translateY(-6px); }
    }
}
@media (prefers-reduced-motion: reduce) {
    .hero-terminal, .hero-metric { animation: none; }
}

/* Hero CTA accent — cut-corner cyber button (with gradient outline via .btn::before) */
.btn-neon {
    --btn-bg: linear-gradient(135deg, var(--neon-1) 0%, var(--neon-3) 100%);
    color: #fff;
    border: 0;
    filter: drop-shadow(0 0 14px rgba(124, 92, 255, 0.55));
    transition: transform 220ms ease, filter 220ms ease;
}
.btn-neon:hover {
    transform: translateY(-2px);
    animation: btnGradientPulse 3000ms cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@media (prefers-reduced-motion: reduce) {
    .btn-neon:hover {
        animation: none;
        filter: drop-shadow(0 0 22px rgba(124, 92, 255, 0.75)) brightness(1.06);
    }
}

/* ==========================================================================
   Glass card variant
   ========================================================================== */

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--r-lg);
    padding: var(--space-5);
    transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}
.glass-card:hover {
    border-color: rgba(124, 92, 255, 0.5);
    box-shadow: var(--glow-strong);
}

/* Tilt-on-mouse effect (toggled via JS) */
[data-tilt] {
    transform-style: preserve-3d;
    will-change: transform;
    transition: transform 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ==========================================================================
   Journey timeline (Idea → Build → Growth)
   ========================================================================== */

.journey {
    position: relative;
    padding: var(--space-7) 0;
}

.journey-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-6);
}
@media (max-width: 880px) {
    .journey-track { grid-template-columns: 1fr; }
}

.journey-line {
    position: absolute;
    top: 56px;
    left: 6%;
    right: 6%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--ink-faint) 8%,
        var(--ink-faint) 92%,
        transparent 100%);
    z-index: 0;
}
@media (max-width: 880px) {
    .journey-line { display: none; }
}

.journey-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--neon-1), var(--neon-2), var(--neon-3));
    transform-origin: left center;
    transform: scaleX(var(--journey-progress, 0));
    transition: transform 800ms cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 12px var(--neon-1);
}

.journey-step {
    position: relative;
    text-align: center;
    z-index: 1;
}

.journey-icon {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-out);
    display: grid;
    place-items: center;
    margin: 0 auto var(--space-3);
    position: relative;
    transition: box-shadow 400ms ease, transform 400ms ease;
}
.journey-step.is-active .journey-icon {
    box-shadow:
        var(--shadow-out),
        0 0 0 2px var(--neon-1),
        0 0 32px var(--neon-soft);
    transform: scale(1.06);
}
.journey-step.is-active .journey-icon svg {
    color: var(--neon-1);
}

.journey-icon svg {
    width: 42px;
    height: 42px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--ink);
    transition: color 400ms ease;
}

.journey-icon svg .draw {
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke-dashoffset 1100ms ease;
}
.journey-step.is-active .journey-icon svg .draw {
    stroke-dashoffset: 0;
}

.journey-step h4 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}
.journey-step p {
    font-size: 0.92rem;
    color: var(--ink-muted);
    margin: 0;
}
.journey-step .step-num {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-muted);
    letter-spacing: 0.14em;
    margin-bottom: 0.4rem;
    display: block;
}

/* ==========================================================================
   Network graph (AI / digital network)
   ========================================================================== */

.network-section {
    padding: var(--space-7) 0;
    position: relative;
    overflow: hidden;
}

.network-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 640px;
    background: var(--surface);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-out-lg);
    overflow: hidden;
    margin-top: var(--space-5);
}
.network-stage canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.network-node {
    position: absolute;
    transform: translate(-50%, -50%);
    background: var(--surface);
    border: 1px solid transparent;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-out-sm);
    cursor: pointer;
    transition:
        transform 460ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 460ms cubic-bezier(0.16, 1, 0.3, 1),
        width 460ms cubic-bezier(0.16, 1, 0.3, 1),
        height 460ms cubic-bezier(0.16, 1, 0.3, 1),
        border-radius 460ms cubic-bezier(0.16, 1, 0.3, 1),
        border-color 320ms ease,
        padding 460ms cubic-bezier(0.16, 1, 0.3, 1),
        background-color 320ms ease;
    z-index: 2;
    color: var(--ink);
}
.network-node::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--neon-soft), transparent 70%);
    opacity: 0;
    transition: opacity 320ms ease;
    z-index: -1;
}
.network-node:hover, .network-node.is-active {
    transform: translate(-50%, -50%) scale(1.12);
    box-shadow:
        var(--shadow-out),
        0 0 0 2px var(--neon-1),
        0 0 24px var(--neon-soft);
}
.network-node:hover::before, .network-node.is-active::before { opacity: 1; }

.network-node:hover {
    animation: nodeGradientPulse 3000ms cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes nodeGradientPulse {
    0%, 100% {
        box-shadow:
            var(--shadow-out),
            0 0 0 2px var(--neon-1),
            0 0 14px rgba(124, 92, 255, 0.55),
            0 0 26px rgba(192, 132, 252, 0.32),
            0 0 38px rgba(34, 211, 238, 0.22);
    }
    50% {
        box-shadow:
            var(--shadow-out),
            0 0 0 2px var(--neon-1),
            0 0 24px rgba(124, 92, 255, 0.85),
            0 0 40px rgba(192, 132, 252, 0.6),
            0 0 56px rgba(34, 211, 238, 0.4);
    }
}
@media (prefers-reduced-motion: reduce) {
    .network-node:hover { animation: none; }
}

/* Expanded node — circle morphs into a card */
.network-node.is-expanded,
.network-node.is-expanded.is-active {
    width: min(300px, 78%);
    height: auto;
    min-height: 130px;
    border-radius: 14px;
    padding: 1.05rem 1.25rem 1.15rem;
    place-items: start stretch;
    text-align: left;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        var(--shadow-out-lg),
        0 0 0 1px rgba(124, 92, 255, 0.4),
        0 0 32px rgba(124, 92, 255, 0.35);
    cursor: default;
    z-index: 10;
    color: var(--ink);
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: normal;
    overflow: visible;
    transform: translate(-50%, -50%) scale(1);
}
.network-node.is-expanded:hover,
.network-node.is-expanded,
.network-node.is-collapsing,
.network-node.is-collapsing:hover {
    animation: none;
}
.network-node.is-expanded:hover {
    transform: translate(-50%, -50%) scale(1);
    box-shadow:
        var(--shadow-out-lg),
        0 0 0 1px rgba(124, 92, 255, 0.4),
        0 0 32px rgba(124, 92, 255, 0.35);
}
.network-node.is-expanded::before { opacity: 0; }

.node-card-body {
    width: 100%;
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
        transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.network-node.is-expanded .node-card-body {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 240ms;
}
.network-node.is-collapsing .node-card-body,
.network-node.is-collapsing .node-close {
    opacity: 0 !important;
    transform: translateY(0);
    transition: opacity 140ms ease;
    transition-delay: 0ms;
}
.node-card-body .node-card-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--neon-2);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.45rem;
}
.node-card-body .node-card-title {
    margin: 0 0 0.45rem;
    font-size: 1.05rem;
    font-family: var(--font-display);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.node-card-body .node-card-desc {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ink-soft);
    line-height: 1.5;
    font-family: var(--font-body);
}

.network-node .node-close {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 220ms ease, color 180ms ease, background 180ms ease;
    z-index: 1;
}
.network-node.is-expanded .node-close {
    opacity: 1;
    transition-delay: 260ms, 0ms, 0ms;
}
.network-node .node-close:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.06);
}
.network-node svg {
    width: 28px;
    height: 28px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.network-node-label {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
}

.network-info {
    position: absolute;
    left: 50%;
    bottom: 5%;
    transform: translateX(-50%);
    width: min(440px, 90%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--r-md);
    padding: 1rem 1.25rem;
    z-index: 3;
    transition: opacity 280ms ease, transform 280ms ease;
    opacity: 0;
    transform: translate(-50%, 10px);
    pointer-events: none;
}
.network-info.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}
.network-info .label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--neon-2);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 0.4rem;
}
.network-info h4 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
}
.network-info p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
}
.network-info .close-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: var(--ink-muted);
    font-family: var(--font-mono);
    font-size: 1.05rem;
    line-height: 1;
    display: grid;
    place-items: center;
}

/* ==========================================================================
   Animated stats (counters + rings)
   ========================================================================== */

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-5);
}
@media (max-width: 820px) {
    .stats-row { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
}

.stat-tile {
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-out-sm);
    padding: var(--space-5) var(--space-4);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.stat-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--neon-soft), transparent 60%);
    opacity: 0;
    transition: opacity 360ms ease;
    pointer-events: none;
}
.stat-tile:hover::after { opacity: 1; }

.ring-wrap {
    --fill: 0deg;
    --ring-size: 168px;
    --ring-thickness: 9px;
    position: relative;
    width: var(--ring-size);
    height: var(--ring-size);
    margin: 0 auto var(--space-3);
    display: grid;
    place-items: center;
    isolation: isolate;
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
    line-height: 1;
}
.ring-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        conic-gradient(
            from -90deg,
            #7c5cff 0deg,
            #c084fc calc(var(--fill) * 0.5),
            #22d3ee var(--fill),
            rgba(124, 92, 255, 0.18) var(--fill),
            rgba(124, 92, 255, 0.18) 360deg
        );
    filter: drop-shadow(0 0 14px rgba(124, 92, 255, 0.45));
    z-index: -2;
}
.ring-wrap::after {
    content: "";
    position: absolute;
    inset: var(--ring-thickness);
    border-radius: 50%;
    background: var(--surface);
    z-index: -1;
}
.stat-tile .stat-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--ink-muted);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ==========================================================================
   Services page — cyber-themed visuals
   ========================================================================== */

.service-visual {
    background: linear-gradient(180deg, rgba(28, 29, 32, 0.72), rgba(20, 21, 26, 0.85));
    border: 1px solid rgba(124, 92, 255, 0.22);
    border-radius: var(--r-md);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 0 80px rgba(124, 92, 255, 0.1) inset;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    place-items: end center;
    padding-bottom: var(--space-7);
    transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 320ms ease,
                border-color 320ms ease;
}
.service-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(124, 92, 255, 0.05) 1px, transparent 1px) 0 0 / 100% 28px,
        radial-gradient(700px 280px at 80% -10%, rgba(124, 92, 255, 0.18), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.service-visual::after {
    content: "";
    position: absolute;
    top: 0.7rem; left: 0.7rem; right: 0.7rem;
    height: 1.6rem;
    border-bottom: 1px solid rgba(124, 92, 255, 0.18);
    background: linear-gradient(90deg,
        rgba(124, 92, 255, 0.08) 0%,
        transparent 70%);
    pointer-events: none;
    z-index: 1;
}
.service-visual:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 92, 255, 0.45);
    box-shadow:
        0 36px 70px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(124, 92, 255, 0.25),
        0 0 0 1px rgba(124, 92, 255, 0.18) inset;
}

.service-visual .big-num {
    font-family: var(--font-display);
    font-size: clamp(7rem, 16vw, 13rem);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg,
        rgba(124, 92, 255, 0.6) 0%,
        rgba(192, 132, 252, 0.4) 50%,
        rgba(34, 211, 238, 0.2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    opacity: 1;
    position: absolute;
    top: 32%;
    left: 50%;
    transform: translate(-50%, -50%);
    user-select: none;
    z-index: 0;
    filter: drop-shadow(0 0 24px rgba(124, 92, 255, 0.25));
}

.service-visual .visual-inset {
    --cut: 12px;
    position: relative;
    z-index: 2;
    background: rgba(20, 21, 26, 0.72);
    border: 1px solid rgba(124, 92, 255, 0.28);
    border-radius: 0;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(124, 92, 255, 0.08) inset;
    padding: 1.6rem 2rem;
    max-width: 88%;
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    clip-path: polygon(
        0 0,
        calc(100% - var(--cut)) 0,
        100% var(--cut),
        100% 100%,
        var(--cut) 100%,
        0 calc(100% - var(--cut))
    );
}
.service-visual .visual-inset .label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--neon-1);
    letter-spacing: 0.18em;
    text-transform: lowercase;
    margin-bottom: 0.7rem;
}
.service-visual .visual-inset .label::before {
    content: "// ";
    color: var(--neon-2);
}
.service-visual .visual-inset .tech {
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--ink);
    line-height: 1.55;
    letter-spacing: 0.01em;
}

.service-block {
    background: rgba(28, 29, 32, 0.55);
    border: 1px solid rgba(124, 92, 255, 0.14);
    border-left: 2px solid var(--neon-1);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

@media (max-width: 600px) {
    .service-visual {
        aspect-ratio: 1.4 / 1;
        padding: var(--space-4);
        padding-bottom: var(--space-5);
    }
    .service-visual .big-num {
        font-size: clamp(5rem, 22vw, 7rem);
        top: 30%;
    }
    .service-visual .visual-inset {
        padding: 1rem 1.2rem;
        max-width: 92%;
    }
    .service-visual .visual-inset .tech { font-size: 0.84rem; }
}
.service-block:hover {
    border-left-color: var(--neon-3);
    transform: translateX(2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25), 0 0 24px rgba(124, 92, 255, 0.1);
}
.service-block-title {
    color: var(--neon-1);
}
.service-block-title::before {
    content: "// ";
    color: var(--neon-2);
}

/* ==========================================================================
   Stack board — cyber tech manifest
   ========================================================================== */

.stack-board {
    margin-top: var(--space-5);
    background: linear-gradient(180deg, rgba(28, 29, 32, 0.72), rgba(20, 21, 26, 0.82));
    border: 1px solid rgba(124, 92, 255, 0.22);
    border-radius: var(--r-md);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 0 60px rgba(124, 92, 255, 0.08) inset;
    overflow: hidden;
    position: relative;
}
.stack-board::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(124, 92, 255, 0.04) 1px, transparent 1px) 0 0 / 100% 28px,
        radial-gradient(900px 320px at 80% -10%, rgba(124, 92, 255, 0.18), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.stack-board-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid rgba(124, 92, 255, 0.18);
    background: rgba(124, 92, 255, 0.05);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-muted);
    letter-spacing: 0.1em;
    position: relative;
    z-index: 1;
}
.stack-board-head .dot {
    width: 10px; height: 10px; border-radius: 50%;
}
.stack-board-head .dot-r { background: #ff5f56; }
.stack-board-head .dot-y { background: #ffbd2e; }
.stack-board-head .dot-g { background: #27c93f; }
.stack-board-head .board-title {
    margin-left: 0.5rem;
    color: var(--ink-soft);
    text-transform: lowercase;
}
.stack-board-head .board-meta {
    margin-left: auto;
    color: var(--ink-faint);
    font-size: 0.68rem;
}

.stack-board-body {
    padding: var(--space-3) var(--space-4) var(--space-3);
    display: grid;
    gap: 0.4rem;
    position: relative;
    z-index: 1;
}

.stack-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-3);
    align-items: center;
    padding: 0.75rem 0.4rem;
    border-bottom: 1px dashed rgba(124, 92, 255, 0.12);
    transition: background 200ms ease;
}
.stack-row:last-child { border-bottom: 0; }
.stack-row:hover { background: rgba(124, 92, 255, 0.04); }

.stack-row-meta {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    font-family: var(--font-mono);
}
.stack-row-num {
    color: var(--ink-faint);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
}
.stack-row-label {
    color: var(--neon-1);
    font-size: 0.85rem;
    text-transform: lowercase;
    letter-spacing: 0.04em;
}

.stack-row-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.stack-tag {
    --cut: 8px;
    position: relative;
    padding: 0.45rem 0.95rem;
    background: transparent;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    isolation: isolate;
    clip-path: polygon(
        0 0,
        calc(100% - var(--cut)) 0,
        100% var(--cut),
        100% 100%,
        var(--cut) 100%,
        0 calc(100% - var(--cut))
    );
    filter: drop-shadow(0 0 14px rgba(124, 92, 255, 0.55));
    transition: color 200ms ease, transform 200ms ease, filter 200ms ease;
}
.stack-tag::before,
.stack-tag::after {
    content: "";
    position: absolute;
    pointer-events: none;
}
.stack-tag::before {
    inset: 0;
    background: linear-gradient(90deg,
        rgba(124, 92, 255, 1) 0%,
        rgba(192, 132, 252, 1) 50%,
        rgba(34, 211, 238, 1) 100%);
    clip-path: polygon(
        0 0,
        calc(100% - var(--cut)) 0,
        100% var(--cut),
        100% 100%,
        var(--cut) 100%,
        0 calc(100% - var(--cut))
    );
    z-index: -2;
}
.stack-tag::after {
    inset: 1.5px;
    background: var(--bg-deep);
    clip-path: polygon(
        0 0,
        calc(100% - (var(--cut) - 1.5px)) 0,
        100% calc(var(--cut) - 1.5px),
        100% 100%,
        calc(var(--cut) - 1.5px) 100%,
        0 calc(100% - (var(--cut) - 1.5px))
    );
    z-index: -1;
}
.stack-tag:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 0 18px rgba(124, 92, 255, 0.75));
}
.stack-tag.is-pri {
    font-weight: 600;
}

.stack-board-foot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.1rem;
    border-top: 1px solid rgba(124, 92, 255, 0.18);
    background: rgba(124, 92, 255, 0.04);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--neon-2);
    position: relative;
    z-index: 1;
}
.cursor-blink {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--neon-2);
    box-shadow: 0 0 8px var(--neon-2);
    animation: cursorBlink 1s steps(1, end) infinite;
}
@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

@media (max-width: 760px) {
    .stack-board { margin-top: var(--space-4); }
    .stack-board-head {
        padding: 0.6rem 0.85rem;
        font-size: 0.66rem;
        gap: 0.4rem;
    }
    .stack-board-head .board-title { font-size: 0.66rem; }
    .stack-board-head .board-meta { display: none; }
    .stack-board-body { padding: var(--space-3); }
    .stack-row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
        padding: 0.65rem 0.2rem;
    }
    .stack-row-tags { justify-content: flex-start; }
    .stack-tag { font-size: 0.74rem; padding: 0.4rem 0.85rem; }
    .stack-board-foot { padding: 0.65rem 0.85rem; font-size: 0.72rem; }
}

/* ==========================================================================
   Interactive service cards (animated hover affordances)
   ========================================================================== */

.fx-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}
@media (max-width: 920px) { .fx-services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .fx-services-grid { grid-template-columns: 1fr; } }

.fx-service {
    position: relative;
    background: var(--surface);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-out-sm);
    padding: var(--space-5);
    overflow: hidden;
    transition: box-shadow 320ms ease, transform 320ms ease, border-color 320ms ease;
    isolation: isolate;
}
.fx-service::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle 320px at var(--mx, 50%) var(--my, 50%),
        var(--neon-soft), transparent 60%);
    opacity: 0;
    transition: opacity 280ms ease;
    pointer-events: none;
    z-index: 0;
}
.fx-service:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-out), 0 0 0 1px rgba(124, 92, 255, 0.35), 0 0 28px rgba(124, 92, 255, 0.18);
}
.fx-service:hover::before { opacity: 1; }
.fx-service > * { position: relative; z-index: 1; }

.fx-service h3 { font-size: 1.2rem; margin: 0 0 0.6rem; }
.fx-service p { font-size: 0.95rem; margin: 0 0 1rem; }
.fx-service .fx-tag {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border-radius: var(--r-pill);
    background: var(--surface);
    box-shadow: var(--shadow-in-sm);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.fx-service .fx-vis {
    width: 100%;
    height: 96px;
    margin-bottom: var(--space-3);
    display: grid;
    place-items: center;
    border-radius: var(--r-md);
    background: var(--surface);
    box-shadow: var(--shadow-in-sm);
    overflow: hidden;
    position: relative;
}
.fx-service .fx-vis svg {
    width: 80%;
    height: 80%;
    stroke: var(--ink-soft);
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 360ms ease, transform 480ms ease;
}
.fx-service:hover .fx-vis svg { stroke: var(--neon-2); }

.fx-service .fx-vis svg .anim-build path,
.fx-service .fx-vis svg .anim-build rect,
.fx-service .fx-vis svg .anim-build line,
.fx-service .fx-vis svg .anim-shield path,
.fx-service .fx-vis svg .anim-wire path,
.fx-service .fx-vis svg .anim-gear circle,
.fx-service .fx-vis svg .anim-gear path {
    stroke-dasharray: 240;
    stroke-dashoffset: 240;
    transition: stroke-dashoffset 900ms cubic-bezier(0.4, 0, 0.2, 1);
}
.fx-service:hover .fx-vis svg .anim-build path,
.fx-service:hover .fx-vis svg .anim-build rect,
.fx-service:hover .fx-vis svg .anim-build line,
.fx-service:hover .fx-vis svg .anim-shield path,
.fx-service:hover .fx-vis svg .anim-wire path,
.fx-service:hover .fx-vis svg .anim-gear circle,
.fx-service:hover .fx-vis svg .anim-gear path {
    stroke-dashoffset: 0;
}
.fx-service .fx-vis svg .anim-gear {
    transform-origin: 50% 50%;
    transition: transform 900ms ease;
}
.fx-service:hover .fx-vis svg .anim-gear { transform: rotate(72deg); }

/* ==========================================================================
   Portfolio / 3D showcase
   ========================================================================== */

.showcase {
    padding: var(--space-7) 0;
    position: relative;
}

.showcase-rail {
    display: flex;
    gap: var(--space-4);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: var(--space-4) calc((100vw - var(--container)) / 2);
    margin: 0 calc((var(--container) - 100vw) / 2);
    scroll-padding-left: calc((100vw - var(--container)) / 2);
    perspective: 1400px;
    scrollbar-width: thin;
}
@media (max-width: 1240px) {
    .showcase-rail {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
        margin: 0;
        scroll-padding-left: var(--space-4);
    }
}
.showcase-rail::-webkit-scrollbar { height: 6px; }
.showcase-rail::-webkit-scrollbar-thumb { background: var(--ink-faint); border-radius: 3px; }

.showcase-card {
    flex: 0 0 min(580px, 86vw);
    background: var(--surface);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-out-lg);
    padding: var(--space-5);
    scroll-snap-align: start;
    transform-style: preserve-3d;
    transition: transform 480ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 480ms ease;
    will-change: transform;
}
.showcase-card:hover {
    transform: translateY(-6px) rotateY(-3deg) rotateX(2deg);
    box-shadow: var(--shadow-out-lg), 0 0 0 1px rgba(124, 92, 255, 0.4), 0 0 40px rgba(124, 92, 255, 0.18);
}

.showcase-card .laptop {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--r-md);
    background:
        linear-gradient(135deg, rgba(108, 99, 255, 0.04), transparent 70%),
        var(--bg-deep);
    box-shadow: var(--shadow-in);
    overflow: hidden;
    position: relative;
    margin-bottom: var(--space-4);
    transform: translateZ(20px);
}
.showcase-card .laptop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 14px;
    background: var(--surface);
    border-radius: 0 0 12px 12px;
    box-shadow: var(--shadow-in-sm);
}
.showcase-card .laptop-inner {
    position: absolute;
    inset: 22px 12px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(34, 211, 238, 0.1));
    overflow: hidden;
    padding: 1rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink-soft);
}
.laptop-inner .row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed var(--bg-deep);
}
.laptop-inner .bar {
    height: 6px;
    background: linear-gradient(90deg, var(--neon-1), var(--neon-2));
    border-radius: 3px;
    margin-bottom: 0.5rem;
    transform-origin: left;
    transform: scaleX(0);
    animation: barGrow 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.laptop-inner .bar:nth-child(2) { animation-delay: 0.2s; --bw: 70%; }
.laptop-inner .bar:nth-child(3) { animation-delay: 0.4s; --bw: 40%; }
.laptop-inner .bar:nth-child(4) { animation-delay: 0.6s; --bw: 88%; }
.laptop-inner .bar:nth-child(5) { animation-delay: 0.8s; --bw: 55%; }
@keyframes barGrow {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(var(--bw, 75%)); }
}

.showcase-card .meta {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}
.showcase-card .meta .chip {
    padding: 0.3rem 0.7rem;
    border-radius: var(--r-pill);
    background: var(--surface);
    box-shadow: var(--shadow-in-sm);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-soft);
}
.showcase-card h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
.showcase-card p { font-size: 0.97rem; }

.showcase-card .outcome {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--bg-deep);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}
.showcase-card .outcome .stat {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--ink);
    letter-spacing: -0.02em;
}
.showcase-card .outcome .lab {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ==========================================================================
   Floating digital workspace (assembling on scroll)
   ========================================================================== */

.workspace {
    padding: var(--space-7) 0;
    position: relative;
}
.workspace-stage {
    position: relative;
    height: 540px;
    margin-top: var(--space-5);
    background: var(--surface);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-in-lg);
    overflow: hidden;
}
.workspace-stage::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.ws-piece {
    position: absolute;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.9rem 1.1rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    opacity: 0;
    transform: translateY(40px) scale(0.92);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.workspace-stage.is-active .ws-piece { opacity: 1; transform: translateY(0) scale(1); }
.workspace-stage.is-active .ws-piece:nth-child(1) { transition-delay: 0ms; }
.workspace-stage.is-active .ws-piece:nth-child(2) { transition-delay: 120ms; }
.workspace-stage.is-active .ws-piece:nth-child(3) { transition-delay: 240ms; }
.workspace-stage.is-active .ws-piece:nth-child(4) { transition-delay: 360ms; }
.workspace-stage.is-active .ws-piece:nth-child(5) { transition-delay: 480ms; }
.workspace-stage.is-active .ws-piece:nth-child(6) { transition-delay: 600ms; }

.ws-piece .head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--ink-muted);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}
.ws-piece .head .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--neon-1);
    box-shadow: 0 0 8px var(--neon-1);
}
.ws-piece .body { font-family: var(--font-display); font-weight: 600; color: var(--ink); }

.ws-browser { top: 8%; left: 6%; width: 280px; }
.ws-chart   { top: 46%; left: 26%; width: 240px; }
.ws-chat    { top: 12%; right: 8%; width: 220px; }
.ws-code    { bottom: 14%; left: 8%; width: 360px; }
.ws-shield  { bottom: 10%; right: 14%; width: 180px; }
.ws-notif   { top: 38%; right: 22%; width: 200px; }

@media (max-width: 760px) {
    .workspace-stage { height: 700px; }
    .ws-piece { width: 80% !important; left: 10% !important; right: auto !important; }
    .ws-browser { top: 4%; }
    .ws-chart   { top: 18%; }
    .ws-chat    { top: 32%; }
    .ws-code    { top: 46%; bottom: auto; }
    .ws-shield  { top: 62%; bottom: auto; }
    .ws-notif   { top: 78%; }
}

.ws-chart .bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 60px;
    margin-top: 0.5rem;
}
.ws-chart .bars span {
    flex: 1;
    min-width: 6px;
    background: linear-gradient(180deg, var(--neon-2), var(--neon-1));
    border-radius: 3px;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 10px rgba(124, 92, 255, 0.35);
}
.workspace-stage.is-active .ws-chart .bars span:nth-child(1) { transform: scaleY(0.30); transition-delay: 0.55s; }
.workspace-stage.is-active .ws-chart .bars span:nth-child(2) { transform: scaleY(0.55); transition-delay: 0.65s; }
.workspace-stage.is-active .ws-chart .bars span:nth-child(3) { transform: scaleY(0.40); transition-delay: 0.75s; }
.workspace-stage.is-active .ws-chart .bars span:nth-child(4) { transform: scaleY(0.80); transition-delay: 0.85s; }
.workspace-stage.is-active .ws-chart .bars span:nth-child(5) { transform: scaleY(0.65); transition-delay: 0.95s; }
.workspace-stage.is-active .ws-chart .bars span:nth-child(6) { transform: scaleY(0.95); transition-delay: 1.05s; }

.ws-code pre {
    margin: 0.4rem 0 0;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-soft);
    line-height: 1.5;
    white-space: pre;
}
.ws-code pre .kw { color: var(--neon-1); }
.ws-code pre .str { color: var(--neon-2); }

/* ==========================================================================
   Audience cards — pulsing gradient glow on hover
   ========================================================================== */

.audience-card {
    transition: box-shadow 280ms ease, transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 280ms ease;
}
.audience-card:hover {
    transform: translateY(-3px);
    animation: cardGradientPulse 3000ms cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes cardGradientPulse {
    0%, 100% {
        box-shadow:
            0 8px 24px rgba(0, 0, 0, 0.25),
            0 0 18px rgba(124, 92, 255, 0.18),
            0 0 36px rgba(192, 132, 252, 0.10),
            0 0 60px rgba(34, 211, 238, 0.06);
    }
    50% {
        box-shadow:
            0 12px 32px rgba(0, 0, 0, 0.3),
            0 0 28px rgba(124, 92, 255, 0.45),
            0 0 56px rgba(192, 132, 252, 0.28),
            0 0 90px rgba(34, 211, 238, 0.18);
    }
}
@media (prefers-reduced-motion: reduce) {
    .audience-card:hover {
        animation: none;
        box-shadow:
            0 12px 32px rgba(0, 0, 0, 0.3),
            0 0 24px rgba(124, 92, 255, 0.35),
            0 0 48px rgba(192, 132, 252, 0.18);
    }
}

/* ==========================================================================
   Mission console contact form
   ========================================================================== */

.console {
    background: linear-gradient(180deg, rgba(28, 29, 32, 0.72), rgba(20, 21, 26, 0.85));
    border: 1px solid rgba(124, 92, 255, 0.22);
    border-radius: var(--r-md);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 0 80px rgba(124, 92, 255, 0.1) inset;
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.console::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(124, 92, 255, 0.05) 1px, transparent 1px) 0 0 / 100% 28px,
        radial-gradient(900px 320px at 80% -10%, rgba(124, 92, 255, 0.18), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.console > * { position: relative; z-index: 1; }

.console-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-5);
    padding: 0.75rem 1.1rem;
    border-bottom: 1px solid rgba(124, 92, 255, 0.18);
    background: rgba(124, 92, 255, 0.05);
    flex-wrap: wrap;
    gap: var(--space-3);
}
.console-head .channel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--ink-soft);
    letter-spacing: 0.1em;
    text-transform: lowercase;
}
.console-head .channel .pulse {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--neon-1);
    box-shadow: 0 0 8px var(--neon-1);
    animation: pulseRing 1.6s ease-out infinite;
}
@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.55), 0 0 8px var(--neon-1); }
    70% { box-shadow: 0 0 0 14px rgba(124, 92, 255, 0), 0 0 8px var(--neon-1); }
    100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0), 0 0 8px var(--neon-1); }
}

.console-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}
@media (max-width: 720px) {
    .console-grid { grid-template-columns: 1fr; }
    .console { padding: var(--space-4); }
    .console-head {
        margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) var(--space-4);
        padding: 0.6rem 0.9rem;
        font-size: 0.66rem;
    }
    .console-head .channel { font-size: 0.66rem; gap: 0.4rem; }
    .console-launch {
        margin: var(--space-4) calc(-1 * var(--space-4)) calc(-1 * var(--space-4));
        padding: 0.85rem 0.9rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.7rem;
    }
    .console-launch .meta { text-align: center; }
    .console-launch .btn-launch { justify-content: center; }
    .console-chip { font-size: 0.8rem; padding: 0.5rem 0.85rem; }
}

.console-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.console-field.full { grid-column: 1 / -1; }
.console-field label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--neon-1);
    letter-spacing: 0.04em;
    text-transform: lowercase;
}
.console-field label::before {
    content: "// ";
    color: var(--neon-2);
}
.console-field input,
.console-field textarea,
.console-field select {
    background: rgba(20, 21, 26, 0.65);
    color: var(--ink);
    border: 1px solid rgba(124, 92, 255, 0.22);
    border-radius: 0;
    padding: 0.95rem 1.1rem;
    font-family: var(--font-mono);
    font-size: 0.95rem;
    transition: border-color 240ms ease, box-shadow 240ms ease, background 240ms ease;
    outline: none;
    width: 100%;
    box-shadow: none;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.console-field input::placeholder,
.console-field textarea::placeholder {
    color: var(--ink-faint);
    font-family: var(--font-mono);
}
.console-field input:hover,
.console-field textarea:hover,
.console-field select:hover {
    border-color: rgba(124, 92, 255, 0.4);
    background: rgba(20, 21, 26, 0.8);
}
.console-field input:focus,
.console-field textarea:focus,
.console-field select:focus {
    border-color: var(--neon-1);
    box-shadow:
        0 0 0 1px var(--neon-1),
        0 0 18px rgba(124, 92, 255, 0.35);
    background: rgba(20, 21, 26, 0.9);
}
.console-field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }

.console-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.console-chip {
    --cut: 8px;
    --chip-bg: var(--bg-deep);
    position: relative;
    padding: 0.55rem 1.05rem;
    background: transparent;
    color: var(--ink-soft);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    cursor: pointer;
    border: 0;
    isolation: isolate;
    clip-path: polygon(
        0 0,
        calc(100% - var(--cut)) 0,
        100% var(--cut),
        100% 100%,
        var(--cut) 100%,
        0 calc(100% - var(--cut))
    );
    transition: color 200ms ease, transform 200ms ease, filter 200ms ease;
}
.console-chip::before,
.console-chip::after {
    content: "";
    position: absolute;
    pointer-events: none;
}
.console-chip::before {
    inset: 0;
    background: linear-gradient(90deg,
        rgba(124, 92, 255, 0.85) 0%,
        rgba(192, 132, 252, 0.95) 50%,
        rgba(34, 211, 238, 0.85) 100%);
    clip-path: polygon(
        0 0,
        calc(100% - var(--cut)) 0,
        100% var(--cut),
        100% 100%,
        var(--cut) 100%,
        0 calc(100% - var(--cut))
    );
    z-index: -2;
}
.console-chip::after {
    inset: 1.5px;
    background: var(--chip-bg);
    clip-path: polygon(
        0 0,
        calc(100% - (var(--cut) - 1.5px)) 0,
        100% calc(var(--cut) - 1.5px),
        100% 100%,
        calc(var(--cut) - 1.5px) 100%,
        0 calc(100% - (var(--cut) - 1.5px))
    );
    z-index: -1;
}
.console-chip:hover {
    transform: translateY(-1px);
    color: var(--ink);
}
.console-chip.is-selected {
    --chip-bg: linear-gradient(135deg, var(--neon-1) 0%, var(--neon-3) 100%);
    color: #fff;
    font-weight: 600;
    filter: drop-shadow(0 0 14px rgba(124, 92, 255, 0.55));
}

.console-launch {
    margin: var(--space-5) calc(-1 * var(--space-6)) calc(-1 * var(--space-6));
    padding: 1rem 1.1rem;
    border-top: 1px solid rgba(124, 92, 255, 0.18);
    background: rgba(124, 92, 255, 0.04);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    align-items: center;
    justify-content: space-between;
}
.console-launch .meta {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    color: var(--ink-muted);
    letter-spacing: 0.04em;
}
.console-launch .meta::before {
    content: "$ ";
    color: var(--neon-2);
}

.btn-launch {
    --cut: 14px;
    --btn-bg: linear-gradient(135deg, var(--neon-1) 0%, var(--neon-3) 100%);
    background: transparent;
    color: #fff;
    padding: 1.1rem 2rem;
    border-radius: 0;
    clip-path: polygon(
        0 0,
        calc(100% - var(--cut)) 0,
        100% var(--cut),
        100% 100%,
        var(--cut) 100%,
        0 calc(100% - var(--cut))
    );
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    filter: drop-shadow(0 0 14px rgba(124, 92, 255, 0.5));
    border: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: transform 240ms ease, filter 240ms ease;
    position: relative;
    isolation: isolate;
}
.btn-launch::before,
.btn-launch::after {
    content: '';
    position: absolute;
    pointer-events: none;
}
.btn-launch::before {
    inset: 0;
    background: linear-gradient(90deg,
        rgba(124, 92, 255, 0.95) 0%,
        rgba(192, 132, 252, 1) 50%,
        rgba(34, 211, 238, 0.95) 100%);
    clip-path: polygon(
        0 0,
        calc(100% - var(--cut)) 0,
        100% var(--cut),
        100% 100%,
        var(--cut) 100%,
        0 calc(100% - var(--cut))
    );
    z-index: -2;
}
.btn-launch::after {
    inset: 1.5px;
    background: var(--btn-bg);
    clip-path: polygon(
        0 0,
        calc(100% - (var(--cut) - 1.5px)) 0,
        100% calc(var(--cut) - 1.5px),
        100% 100%,
        calc(var(--cut) - 1.5px) 100%,
        0 calc(100% - (var(--cut) - 1.5px))
    );
    z-index: -1;
}
.btn-launch:hover {
    transform: translateY(-2px);
    animation: btnGradientPulse 3000ms cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@media (prefers-reduced-motion: reduce) {
    .btn-launch:hover {
        animation: none;
        filter: drop-shadow(0 0 22px rgba(124, 92, 255, 0.7)) brightness(1.06);
    }
}
.btn-launch[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-launch .arrow-launch {
    width: 18px; height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 240ms ease;
}
.btn-launch:hover .arrow-launch { transform: translateX(4px) rotate(-12deg); }

.console.is-transmitting { pointer-events: none; }
.console-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 21, 26, 0.96), rgba(15, 16, 20, 0.98));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 360ms ease;
}
.console.is-transmitting .console-overlay,
.console.is-sent .console-overlay {
    opacity: 1;
    pointer-events: auto;
}

.transmission {
    text-align: center;
    font-family: var(--font-mono);
    color: var(--ink);
    max-width: 480px;
    padding: 0 1rem;
}
.transmission .pulse-circle {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto var(--space-4);
    background: radial-gradient(circle, var(--neon-1) 0%, transparent 70%);
    position: relative;
}
.transmission .pulse-circle::before,
.transmission .pulse-circle::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid var(--neon-1);
    animation: txRing 1.6s ease-out infinite;
}
.transmission .pulse-circle::after { animation-delay: 0.6s; }
@keyframes txRing {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.6); opacity: 0; }
}
.transmission h3 {
    font-family: var(--font-display);
    margin-bottom: 0.4rem;
}
.transmission .tx-line {
    font-size: 0.85rem;
    color: var(--ink-muted);
    letter-spacing: 0.08em;
    margin: 0.2rem 0;
}
.transmission .tx-line.ok { color: var(--neon-2); }

.console.is-sent .pulse-circle { animation: none; background: radial-gradient(circle, var(--neon-2) 0%, transparent 70%); }
.console.is-sent .pulse-circle::before,
.console.is-sent .pulse-circle::after { display: none; }

/* ==========================================================================
   Reveal helpers (extend existing reveal pattern)
   ========================================================================== */

html.js-reveal-on .fx-stagger { opacity: 0; }
html.js-reveal-on .fx-stagger.is-revealed { opacity: 1; }
html.js-reveal-on .fx-stagger > * {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
html.js-reveal-on .fx-stagger.is-revealed > * {
    opacity: 1;
    transform: translateY(0);
}
html.js-reveal-on .fx-stagger.is-revealed > *:nth-child(1) { transition-delay: 0ms; }
html.js-reveal-on .fx-stagger.is-revealed > *:nth-child(2) { transition-delay: 90ms; }
html.js-reveal-on .fx-stagger.is-revealed > *:nth-child(3) { transition-delay: 180ms; }
html.js-reveal-on .fx-stagger.is-revealed > *:nth-child(4) { transition-delay: 270ms; }
html.js-reveal-on .fx-stagger.is-revealed > *:nth-child(5) { transition-delay: 360ms; }
html.js-reveal-on .fx-stagger.is-revealed > *:nth-child(6) { transition-delay: 450ms; }

@media (prefers-reduced-motion: reduce) {
    html.js-reveal-on .fx-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Parallax helpers
   ========================================================================== */
[data-parallax] { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
    [data-parallax] { transform: none !important; }
}

/* Section eyebrow with monospace tag look */
.eyebrow-fx {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.eyebrow-fx::before {
    content: '';
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--neon-1), var(--neon-2));
}

/* ==========================================================================
   Mobile polish — phones-only tightening
   ========================================================================== */
@media (max-width: 600px) {
    .container { padding-left: var(--space-3); padding-right: var(--space-3); }

    /* Hero text balance on phones */
    .hero-fx h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
    .hero-fx p { font-size: 1rem; }
    .hero-fx { padding-top: var(--space-5); padding-bottom: var(--space-6); }

    /* Stats rings smaller */
    .ring-wrap {
        --ring-size: 132px;
        --ring-thickness: 7px;
        font-size: 2.1rem;
    }

    /* CTA card on phones */
    .cta-card { padding: var(--space-5) var(--space-4); }
    .cta-card h2 { font-size: clamp(1.6rem, 6vw, 2rem); }
    .cta-actions { display: flex; flex-direction: column; gap: 0.7rem; width: 100%; }
    .cta-actions .btn { justify-content: center; width: 100%; }
    .cta-contact-row { gap: 0.6rem; }
    .cta-contact-row .item { font-size: 0.78rem; padding: 0.5rem 0.85rem; }

    /* Service blocks on phones */
    .service-block { padding: var(--space-3); }
    .service-block p { font-size: 0.92rem; }

    /* Site footer wraps & centers */
    .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }

    /* Section vertical rhythm */
    section { padding-top: var(--space-5); padding-bottom: var(--space-5); }
}
