body {
    background-color: #09090b;
    /* zinc-950 */
    color: #f4f4f5;
    /* zinc-100 */
    cursor: none;
    overflow-x: hidden;
}

/* Abstract Dark Mesh Background */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    background:
        radial-gradient(circle at 15% 50%, rgba(29, 78, 216, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(147, 51, 234, 0.15), transparent 25%);
    filter: blur(60px);
}

/* Ambient Grid */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -9;
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Premium Dark Cursor */
#cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

#cursor-ring {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s, height 0.3s, border-color 0.3s, transform 0.1s ease-out;
}

/* Glassmorphism Premium Card */
.premium-card {
    background: rgba(24, 24, 27, 0.4);
    /* zinc-900/40 */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05), 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: relative;
    overflow: hidden;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.5s ease;
}

.premium-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.premium-card:hover::before {
    opacity: 1;
}

.premium-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1), 0 20px 40px -10px rgba(0, 0, 0, 0.7);
}

.card-content {
    position: relative;
    z-index: 2;
}

/* Let translated profile copy define the first row height instead of clipping inside a fixed 240px track. */
.profile-grid {
    grid-auto-rows: auto;
}

@media (min-width: 768px) {
    .profile-grid {
        grid-auto-rows: minmax(15rem, auto);
    }

    .profile-summary-card {
        min-height: 21rem;
        padding: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .profile-summary-card {
        min-height: 20rem;
        padding: 2rem;
    }
}

/* Scroll Reveal Utility */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar Dark */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #09090b;
}

::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3f3f46;
}

/* Text Gradients */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #ffffff, #a1a1aa);
}

.text-gradient-blue {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(to right, #60a5fa, #c084fc);
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, #3b82f6, #a855f7);
    width: 0%;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
    transition: width 0.1s ease-out;
}

/* Typing Effect Cursor */
.typing-slot {
    display: block;
    width: 100%;
    min-height: 2.2em;
    overflow: hidden;
    contain: layout;
}

#typing-text {
    overflow-wrap: normal;
    word-break: normal;
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: #a855f7;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Marquee Animation */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 24s linear infinite;
    will-change: transform;
}
.marquee-group {
    display: flex;
    flex-shrink: 0;
    gap: 0.75rem;
    padding-right: 0.75rem;
}
.marquee-group > span {
    flex-shrink: 0;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Project cards */
.project-description {
    display: -webkit-box;
    min-height: 4.5em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.project-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.045);
    color: #d4d4d8;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.project-status {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.18);
    background: rgba(59, 130, 246, 0.08);
    color: #93c5fd;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

/* Mobile navigation */
.mobile-menu {
    display: none;
    transform-origin: top;
}

.mobile-menu.is-open {
    display: block;
    animation: mobileMenuIn 0.22s ease-out both;
}

.nav-section-link.is-active {
    color: #ffffff;
}

.mobile-menu-link.is-active {
    color: #93c5fd !important;
    background: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
}

@media (min-width: 1024px) {
    .nav-section-link {
        position: relative;
    }

    .nav-section-link::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: -0.65rem;
        height: 2px;
        border-radius: 999px;
        background: linear-gradient(to right, #3b82f6, #a855f7);
        transform: scaleX(0);
        transition: transform 0.25s ease;
    }

    .nav-section-link.is-active::after {
        transform: scaleX(1);
    }
}

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

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid #60a5fa;
    outline-offset: 4px;
}

/* Award Modal */
#award-modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}
#award-modal-overlay.is-open #award-modal-panel {
    transform: translateY(0);
}
body.modal-open {
    overflow: hidden;
}

#award-modal-panel::-webkit-scrollbar {
    width: 6px;
}
#award-modal-panel::-webkit-scrollbar-track {
    background: transparent;
}
#award-modal-panel::-webkit-scrollbar-thumb {
    background: #27272a;
    border-radius: 10px;
}

/* Award Gallery Photos */
#award-modal-badge {
    background: rgba(9, 9, 11, 0.76) !important;
    border-width: 1px;
    padding: 0.6rem 1rem;
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    backdrop-filter: blur(14px) saturate(135%);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-shadow: 0 1px 10px currentColor;
}

.award-photo {
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 1rem;
    width: 100%;
    border: 1px solid rgba(255,255,255,0.06);
    cursor: zoom-in;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}
.award-photo:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}
.award-photo-placeholder {
    aspect-ratio: 4/3;
    border-radius: 1rem;
    width: 100%;
    border: 1px dashed rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: rgba(255,255,255,0.2);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.fact-chip {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    padding: 1rem;
}
.fact-chip .fact-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #52525b;
    margin-bottom: 4px;
}
.fact-chip .fact-value {
    font-size: 15px;
    font-weight: 700;
    color: #e4e4e7;
}

/* Atureen product preview */
.atureen-visual {
    isolation: isolate;
    background:
        radial-gradient(circle at 78% 18%, rgba(152, 220, 42, 0.22), transparent 27%),
        radial-gradient(circle at 18% 82%, rgba(52, 211, 153, 0.12), transparent 30%),
        linear-gradient(145deg, #101611 0%, #050706 68%);
}

.atureen-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.16;
    background-image:
        linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom right, transparent, #000 32%, #000);
}

.atureen-dashboard-mockup {
    position: absolute;
    top: 11%;
    left: 6%;
    width: 78%;
    height: 76%;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 1.25rem;
    color: #f4f4f5;
    background: rgba(18, 24, 19, 0.96);
    box-shadow: 0 30px 70px rgba(0,0,0,0.48), 0 0 45px rgba(152,220,42,0.08);
    transform: perspective(1000px) rotateY(-5deg) rotateZ(-1.2deg);
    transform-origin: center;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.7s ease;
}

.startup-card:hover .atureen-dashboard-mockup {
    transform: perspective(1000px) rotateY(-2deg) rotateZ(-0.4deg) translateY(-4px);
    box-shadow: 0 36px 85px rgba(0,0,0,0.56), 0 0 60px rgba(152,220,42,0.12);
}

.atureen-mockup-topbar {
    height: 14%;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.025);
    font-size: 0.58rem;
}

.atureen-mockup-topbar strong {
    font-size: 0.74rem;
    letter-spacing: -0.03em;
}

.atureen-mockup-topbar strong span { color: #98dc2a; }
.atureen-window-dots { display: flex; gap: 0.22rem; }
.atureen-window-dots i { width: 4px; height: 4px; border-radius: 999px; background: #52525b; }
.atureen-window-dots i:first-child { background: #98dc2a; }

.atureen-cloud-status {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    margin-left: auto;
    color: #a1a1aa;
}

.atureen-cloud-status i,
.atureen-feature-pill i {
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #98dc2a;
    box-shadow: 0 0 10px rgba(152,220,42,0.8);
}

.atureen-dashboard-layout {
    display: grid;
    grid-template-columns: 23% 1fr;
    height: 86%;
}

.atureen-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.36rem;
    padding: 0.7rem 0.5rem;
    border-right: 1px solid rgba(255,255,255,0.06);
    color: #71717a;
    font-size: 0.48rem;
}

.atureen-sidebar span { padding: 0.4rem 0.45rem; border-radius: 0.42rem; }
.atureen-sidebar .is-active { color: #dfffa9; background: rgba(152,220,42,0.12); }
.atureen-dashboard-main { min-width: 0; padding: 0.7rem; }

.atureen-dashboard-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 0.6rem;
}

.atureen-dashboard-heading div { display: flex; flex-direction: column; }
.atureen-dashboard-heading small, .atureen-kpi-grid small, .atureen-chart-card small { color: #71717a; font-size: 0.45rem; }
.atureen-dashboard-heading strong { font-size: 0.72rem; }
.atureen-dashboard-heading > span { color: #a1a1aa; font-size: 0.42rem; padding: 0.25rem 0.4rem; border: 1px solid rgba(255,255,255,0.08); border-radius: 999px; }

.atureen-kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0.4rem; }
.atureen-kpi-grid > div { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; padding: 0.52rem; border: 1px solid rgba(255,255,255,0.07); border-radius: 0.58rem; background: rgba(255,255,255,0.035); }
.atureen-kpi-grid strong { font-size: 0.66rem; white-space: nowrap; }
.atureen-kpi-grid em { color: #98dc2a; font-size: 0.4rem; font-style: normal; }

.atureen-chart-card { margin-top: 0.45rem; padding: 0.52rem; border: 1px solid rgba(255,255,255,0.07); border-radius: 0.65rem; background: rgba(255,255,255,0.025); }
.atureen-chart-card > div:first-child { display: flex; justify-content: space-between; }
.atureen-chart-card span { color: #71717a; font-size: 0.4rem; }
.atureen-bars { height: 4.2rem; display: flex; align-items: flex-end; gap: 6%; padding: 0.65rem 0.25rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.atureen-bars i { flex: 1; min-width: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(to top, #4d7417, #b8f45d); box-shadow: 0 0 9px rgba(152,220,42,0.12); }
.atureen-bars i:nth-child(1) { height: 35%; } .atureen-bars i:nth-child(2) { height: 54%; } .atureen-bars i:nth-child(3) { height: 44%; }
.atureen-bars i:nth-child(4) { height: 72%; } .atureen-bars i:nth-child(5) { height: 62%; } .atureen-bars i:nth-child(6) { height: 86%; }
.atureen-bars i:nth-child(7) { height: 70%; } .atureen-bars i:nth-child(8) { height: 94%; } .atureen-bars i:nth-child(9) { height: 82%; }

.atureen-phone-mockup {
    position: absolute;
    z-index: 3;
    right: 5%;
    bottom: 7%;
    width: 29%;
    height: 66%;
    overflow: hidden;
    padding: 1.15rem 0.55rem 0.55rem;
    border: 3px solid #272b28;
    border-radius: 1.45rem;
    color: #f4f4f5;
    background: #111612;
    box-shadow: 0 28px 55px rgba(0,0,0,0.62), 0 0 30px rgba(152,220,42,0.08);
    transform: rotate(3.5deg);
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.startup-card:hover .atureen-phone-mockup { transform: rotate(1.5deg) translate(-4px, -5px); }
.atureen-phone-notch { position: absolute; top: 0.35rem; left: 50%; width: 35%; height: 0.32rem; border-radius: 999px; background: #050706; transform: translateX(-50%); }
.atureen-phone-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.38rem; margin-bottom: 0.45rem; }
.atureen-phone-head strong { color: #c9fa78; font-size: 0.48rem; }
.atureen-phone-head span { color: #71717a; }
.atureen-phone-search { color: #71717a; font-size: 0.36rem; padding: 0.34rem 0.4rem; border: 1px solid rgba(255,255,255,0.07); border-radius: 0.38rem; background: rgba(255,255,255,0.035); }
.atureen-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; margin-top: 0.4rem; }
.atureen-menu-grid span { display: flex; flex-direction: column; min-width: 0; padding: 0.35rem; border: 1px solid rgba(255,255,255,0.06); border-radius: 0.42rem; font-size: 0.32rem; background: rgba(255,255,255,0.03); }
.atureen-menu-grid i { font-size: 0.7rem; font-style: normal; margin-bottom: 0.12rem; }
.atureen-menu-grid small { color: #a1a1aa; font-size: 0.29rem; }
.atureen-phone-total { display: flex; justify-content: space-between; margin: 0.5rem 0 0.35rem; font-size: 0.35rem; }
.atureen-phone-total span { color: #71717a; }
.atureen-phone-total strong { color: #e4e4e7; }
.atureen-phone-pay { padding: 0.4rem; border-radius: 0.42rem; color: #172006; background: #98dc2a; text-align: center; font-size: 0.35rem; font-weight: 800; }

.atureen-feature-pill {
    position: absolute;
    z-index: 4;
    left: 8%;
    bottom: 5%;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.72rem;
    border: 1px solid rgba(152,220,42,0.18);
    border-radius: 999px;
    color: #dfffa9;
    background: rgba(8,12,9,0.82);
    box-shadow: 0 12px 25px rgba(0,0,0,0.28);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    font-size: 0.58rem;
    font-weight: 700;
}

@media (max-width: 767px) {
    .atureen-dashboard-mockup { left: 4%; width: 83%; height: 73%; }
    .atureen-phone-mockup { right: 4%; width: 30%; height: 64%; }
    .atureen-feature-pill { left: 6%; bottom: 4%; }
}

/* Tanya Anas AI */
.ai-chat-toggle {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 8400;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3.25rem;
    padding: 0.65rem 1rem 0.65rem 0.7rem;
    border: 1px solid rgba(147, 197, 253, 0.24);
    border-radius: 999px;
    color: #f4f4f5;
    background: rgba(17, 17, 22, 0.88);
    box-shadow: 0 18px 45px rgba(0,0,0,0.42), 0 0 28px rgba(99,102,241,0.12);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    font-size: 0.78rem;
    font-weight: 800;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease, opacity 0.25s ease;
}

.ai-chat-toggle:hover {
    transform: translateY(-3px);
    border-color: rgba(167,139,250,0.52);
    background: rgba(25, 25, 32, 0.96);
}

.ai-chat-toggle.is-panel-open {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.96);
}

.ai-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6 58%, #d946ef);
    box-shadow: 0 8px 20px rgba(99,102,241,0.3);
    font-size: 1rem;
}

.ai-toggle-status {
    width: 0.43rem;
    height: 0.43rem;
    margin-left: 0.05rem;
    border-radius: 999px;
    background: #34d399;
    box-shadow: 0 0 10px rgba(52,211,153,0.8);
}

.ai-chat-panel {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 8500;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    width: min(25rem, calc(100vw - 2rem));
    height: min(39rem, calc(100vh - 3rem));
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1.75rem;
    color: #f4f4f5;
    background:
        radial-gradient(circle at 100% 0, rgba(124,58,237,0.12), transparent 32%),
        rgba(14,14,18,0.96);
    box-shadow: 0 32px 90px rgba(0,0,0,0.58), 0 0 40px rgba(59,130,246,0.08);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    backdrop-filter: blur(24px) saturate(140%);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.96);
    transform-origin: bottom right;
    transition: opacity 0.28s ease, transform 0.36s cubic-bezier(0.16,1,0.3,1);
}

.ai-chat-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.ai-chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    background: rgba(255,255,255,0.025);
}

.ai-avatar {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    height: 2.65rem;
    border: 1px solid rgba(147,197,253,0.24);
    border-radius: 0.9rem;
    color: #ffffff;
    background: linear-gradient(145deg, rgba(59,130,246,0.9), rgba(139,92,246,0.9));
    box-shadow: 0 10px 24px rgba(59,130,246,0.2);
    font-size: 0.9rem;
    font-weight: 900;
}

.ai-avatar span {
    position: absolute;
    right: -0.2rem;
    top: -0.28rem;
    color: #c4b5fd;
    font-size: 0.62rem;
}

.ai-chat-heading { min-width: 0; flex: 1; }
.ai-chat-heading h2 { color: #ffffff; font-size: 0.92rem; font-weight: 800; line-height: 1.2; }
.ai-chat-heading p { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.25rem; color: #71717a; font-size: 0.66rem; font-weight: 600; }
.ai-online-dot { width: 0.4rem; height: 0.4rem; border-radius: 999px; background: #34d399; box-shadow: 0 0 8px rgba(52,211,153,0.7); }

.ai-icon-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 0.75rem;
    color: #a1a1aa;
    background: rgba(255,255,255,0.035);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.ai-icon-button:hover { color: #ffffff; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.14); }
.ai-icon-button svg, .ai-send-button svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ai-chat-messages {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 0.8rem;
    overflow-y: auto;
    padding: 1.1rem 1rem;
    scroll-behavior: smooth;
}

.ai-chat-messages::-webkit-scrollbar { width: 5px; }
.ai-chat-messages::-webkit-scrollbar-track { background: transparent; }
.ai-chat-messages::-webkit-scrollbar-thumb { border-radius: 999px; background: #27272a; }

.ai-message {
    max-width: 88%;
    padding: 0.78rem 0.9rem;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 1rem;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.58;
    animation: aiMessageIn 0.28s ease both;
}

.ai-message.is-assistant {
    align-self: flex-start;
    border-top-left-radius: 0.35rem;
    color: #d4d4d8;
    background: rgba(255,255,255,0.045);
}

.ai-message.is-user {
    align-self: flex-end;
    border-color: rgba(96,165,250,0.2);
    border-top-right-radius: 0.35rem;
    color: #eff6ff;
    background: linear-gradient(135deg, rgba(37,99,235,0.82), rgba(109,40,217,0.75));
}

.ai-message.is-system {
    align-self: center;
    max-width: 95%;
    padding: 0.55rem 0.75rem;
    border-style: dashed;
    color: #a1a1aa;
    background: transparent;
    text-align: center;
    font-size: 0.66rem;
}

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

.ai-typing { display: inline-flex; align-items: center; gap: 0.25rem; min-width: 3.5rem; }
.ai-typing i { width: 0.36rem; height: 0.36rem; border-radius: 999px; background: #a78bfa; animation: aiTyping 1.1s ease-in-out infinite; }
.ai-typing i:nth-child(2) { animation-delay: 0.14s; }
.ai-typing i:nth-child(3) { animation-delay: 0.28s; }
@keyframes aiTyping { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-4px); opacity: 1; } }

.ai-chat-suggestions {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.15rem 1rem 0.8rem;
    scrollbar-width: none;
}

.ai-chat-suggestions::-webkit-scrollbar { display: none; }
.ai-suggestion {
    flex: 0 0 auto;
    padding: 0.48rem 0.68rem;
    border: 1px solid rgba(139,92,246,0.18);
    border-radius: 999px;
    color: #c4b5fd;
    background: rgba(139,92,246,0.07);
    font-size: 0.64rem;
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ai-suggestion:hover { border-color: rgba(167,139,250,0.38); background: rgba(139,92,246,0.13); transform: translateY(-1px); }
.ai-suggestion:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.ai-chat-form {
    padding: 0.85rem 1rem 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: rgba(0,0,0,0.12);
}

.ai-input-wrap {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
    padding: 0.42rem 0.42rem 0.42rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 1rem;
    background: rgba(255,255,255,0.045);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ai-input-wrap:focus-within { border-color: rgba(96,165,250,0.42); box-shadow: 0 0 0 3px rgba(59,130,246,0.08); }
.ai-input-wrap textarea { width: 100%; max-height: 6rem; min-height: 2rem; resize: none; border: 0; outline: 0; color: #f4f4f5; background: transparent; font-family: inherit; font-size: 0.75rem; line-height: 1.45; }
.ai-input-wrap textarea::placeholder { color: #71717a; }
.ai-input-wrap textarea:disabled { cursor: not-allowed; opacity: 0.55; }

.ai-send-button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    color: #ffffff;
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    box-shadow: 0 8px 18px rgba(79,70,229,0.24);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.ai-send-button:hover { transform: translateY(-1px); }
.ai-send-button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.ai-chat-meta { display: flex; justify-content: space-between; gap: 0.75rem; margin-top: 0.48rem; color: #52525b; font-size: 0.54rem; font-weight: 600; }

html[data-theme="light"] .ai-chat-toggle {
    color: #18181b;
    border-color: rgba(59,130,246,0.16);
    background: rgba(255,255,255,0.9);
    box-shadow: 0 18px 45px rgba(24,24,27,0.13), 0 0 28px rgba(99,102,241,0.08);
}

html[data-theme="light"] .ai-chat-panel {
    color: #18181b;
    border-color: rgba(24,24,27,0.1);
    background: radial-gradient(circle at 100% 0, rgba(124,58,237,0.08), transparent 32%), rgba(250,250,252,0.97);
    box-shadow: 0 32px 90px rgba(24,24,27,0.2);
}

html[data-theme="light"] .ai-chat-header,
html[data-theme="light"] .ai-chat-form { border-color: rgba(24,24,27,0.08); background: rgba(24,24,27,0.015); }
html[data-theme="light"] .ai-chat-heading h2 { color: #18181b; }
html[data-theme="light"] .ai-icon-button { color: #52525b; border-color: rgba(24,24,27,0.08); background: rgba(24,24,27,0.035); }
html[data-theme="light"] .ai-icon-button:hover { color: #18181b; background: rgba(24,24,27,0.07); }
html[data-theme="light"] .ai-message.is-assistant { color: #3f3f46; border-color: rgba(24,24,27,0.07); background: rgba(24,24,27,0.045); }
html[data-theme="light"] .ai-message.is-user { color: #ffffff; }
html[data-theme="light"] .ai-message.is-system { color: #71717a; background: transparent; }
html[data-theme="light"] .ai-input-wrap { border-color: rgba(24,24,27,0.1); background: rgba(24,24,27,0.035); }
html[data-theme="light"] .ai-input-wrap textarea { color: #18181b; }

@media (max-width: 640px) {
    .ai-chat-toggle { right: 1rem; bottom: 1rem; }
    .ai-chat-panel {
        right: 0;
        bottom: 0;
        width: 100%;
        height: min(78vh, 42rem);
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 1.5rem 1.5rem 0 0;
        transform-origin: bottom center;
    }
    .ai-chat-meta span:last-child { display: none; }
}

/* Theme system */
html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="light"] {
    color-scheme: light;
}

body,
nav,
.control-button,
.fact-chip,
.award-photo-placeholder {
    transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.premium-card {
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.35s ease,
        color 0.35s ease,
        border-color 0.5s ease,
        box-shadow 0.5s ease;
}

.premium-card.reveal.active:hover {
    transform: translateY(-5px);
}

html[data-theme="light"] body {
    background-color: #f7f8fc;
    color: #18181b;
}

html[data-theme="light"] nav {
    background: rgba(255, 255, 255, 0.82) !important;
    border-color: rgba(24, 24, 27, 0.08) !important;
    box-shadow: 0 10px 35px rgba(24, 24, 27, 0.05);
}

html[data-theme="light"] .mobile-menu {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: rgba(24, 24, 27, 0.08) !important;
}

html[data-theme="light"] .nav-section-link.is-active {
    color: #18181b !important;
}

html[data-theme="light"] .mobile-menu-link.is-active {
    color: #1d4ed8 !important;
}

html[data-theme="light"] .bg-mesh {
    background:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.13), transparent 28%),
        radial-gradient(circle at 85% 30%, rgba(168, 85, 247, 0.11), transparent 28%);
}

html[data-theme="light"] .bg-grid {
    background-image:
        linear-gradient(to right, rgba(24, 24, 27, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(24, 24, 27, 0.045) 1px, transparent 1px);
}

html[data-theme="light"] .premium-card {
    background: rgba(255, 255, 255, 0.76);
    border-color: rgba(24, 24, 27, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 45px -18px rgba(24, 24, 27, 0.2);
}

html[data-theme="light"] .premium-card:hover {
    border-color: rgba(24, 24, 27, 0.16);
    box-shadow: inset 0 1px 0 #fff, 0 22px 55px -18px rgba(24, 24, 27, 0.25);
}

html[data-theme="light"] .premium-card::before {
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(59, 130, 246, 0.08), transparent 40%);
}

html[data-theme="light"] .project-chip {
    color: #3f3f46;
    background: rgba(24, 24, 27, 0.04);
    border-color: rgba(24, 24, 27, 0.08);
}

html[data-theme="light"] .project-status {
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.18);
}

html[data-theme="light"] .text-white {
    color: #18181b !important;
}

html[data-theme="light"] .text-zinc-300 {
    color: #3f3f46 !important;
}

html[data-theme="light"] .text-zinc-400 {
    color: #52525b !important;
}

html[data-theme="light"] .text-zinc-500 {
    color: #71717a !important;
}

html[data-theme="light"] [class*="bg-white/"] {
    background-color: rgba(24, 24, 27, 0.045) !important;
}

html[data-theme="light"] [class*="border-white/"] {
    border-color: rgba(24, 24, 27, 0.1) !important;
}

html[data-theme="light"] [class*="bg-zinc-950"] {
    background-color: #ffffff !important;
}

html[data-theme="light"] [class*="bg-zinc-900"] {
    background-color: #f4f4f5 !important;
}

html[data-theme="light"] [class*="hover:bg-zinc-800"]:hover {
    background-color: #e4e4e7 !important;
}

html[data-theme="light"] a.bg-white {
    background-color: #18181b !important;
    color: #ffffff !important;
}

html[data-theme="light"] a.bg-white:hover {
    background-color: #27272a !important;
}

html[data-theme="light"] .text-gradient {
    background-image: linear-gradient(to right, #18181b, #52525b);
}

html[data-theme="light"] .startup-card {
    background: rgba(255, 255, 255, 0.82) !important;
    background-image: none !important;
}

html[data-theme="light"] .award-photo-card {
    background: #09090b;
}

html[data-theme="light"] .award-photo-card .text-white {
    color: #ffffff !important;
}

html[data-theme="light"] .award-photo-card .text-zinc-300 {
    color: #e4e4e7 !important;
}

html[data-theme="light"] #award-modal-backdrop {
    background: rgba(228, 228, 231, 0.8) !important;
}

html[data-theme="light"] .fact-chip {
    background: rgba(24, 24, 27, 0.035);
    border-color: rgba(24, 24, 27, 0.09);
}

html[data-theme="light"] .fact-chip .fact-value {
    color: #27272a;
}

html[data-theme="light"] .award-photo-placeholder {
    color: rgba(24, 24, 27, 0.35);
    background: rgba(24, 24, 27, 0.035);
    border-color: rgba(24, 24, 27, 0.12);
}

html[data-theme="light"] #cursor-dot {
    background-color: #18181b !important;
}

html[data-theme="light"] #cursor-ring {
    border-color: rgba(24, 24, 27, 0.45) !important;
}

html[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f7f8fc;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #d4d4d8;
}

@media (pointer: coarse) {
    body {
        cursor: auto;
    }

    #cursor-dot,
    #cursor-ring {
        display: none;
    }
}

/* =====================================================
   2026 EDITORIAL SYSTEM
   One focused hero, restrained depth, and usable motion.
   ===================================================== */
:root {
    --page: #08090c;
    --surface: #111319;
    --surface-2: #171a21;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.18);
    --ink: #f7f8fb;
    --muted: #979ba6;
    --signal: #a3ff5f;
    --electric: #6ea8ff;
    --violet: #9b7cff;
    --amber: #ffc86a;
    --cyan: #66d9ef;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

html[data-theme="light"] {
    --page: #f4f6fa;
    --surface: #ffffff;
    --surface-2: #edf1f7;
    --line: rgba(17, 24, 39, 0.1);
    --line-strong: rgba(17, 24, 39, 0.2);
    --ink: #17191f;
    --muted: #606776;
    --signal: #4c9d18;
    --electric: #276be8;
    --violet: #7153db;
    --amber: #a96100;
    --cyan: #087f9b;
}

body {
    background-color: var(--page);
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10000;
    transform: translateY(-160%);
    border: 1px solid var(--line-strong);
    border-radius: 0.75rem;
    background: var(--ink);
    color: var(--page);
    padding: 0.75rem 1rem;
    font-size: 0.8rem;
    font-weight: 800;
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

section[id] {
    scroll-margin-top: 6rem;
}

.premium-card {
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-color: var(--line);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-editorial {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 6rem);
    min-height: min(790px, calc(100svh - 7rem));
    padding: clamp(2rem, 5vw, 4.5rem) 0 5rem;
    position: relative;
}

.hero-editorial::before {
    content: "";
    position: absolute;
    width: 46rem;
    height: 46rem;
    right: -24rem;
    top: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110, 168, 255, 0.1), transparent 66%);
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.hero-eyebrow,
.section-index,
.hero-lab-caption span,
.identity-card-meta span,
.hero-node i {
    font-family: var(--mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: max-content;
    margin-bottom: 1.65rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
}

.hero-kicker > span {
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 1rem color-mix(in srgb, var(--signal) 70%, transparent);
}

.hero-eyebrow {
    margin-bottom: 1rem;
    color: var(--electric);
    font-size: 0.72rem;
    font-weight: 800;
}

.hero-editorial h1 {
    max-width: 680px;
    color: var(--ink);
    font-size: clamp(2.8rem, 5.25vw, 5.2rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1;
}

.hero-title-visual,
.hero-intro-line,
.hero-role-slot {
    display: block;
}

.hero-intro-line {
    color: var(--ink);
}

.hero-role-slot {
    width: 100%;
    height: 2.05em;
    min-height: 2.05em;
    overflow: hidden;
    contain: layout paint;
}

.hero-role-text {
    width: fit-content;
    max-width: 100%;
    color: transparent;
    background: linear-gradient(110deg, var(--electric), var(--violet) 62%, var(--signal));
    background-clip: text;
    -webkit-background-clip: text;
    overflow-wrap: normal;
    word-break: normal;
}

.hero-summary {
    max-width: 640px;
    margin-top: 1.65rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.6vw, 1.22rem);
    font-weight: 500;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.hero-primary-action,
.hero-secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3.35rem;
    border-radius: 999px;
    padding: 0 1.4rem;
    font-size: 0.86rem;
    font-weight: 800;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.hero-primary-action {
    background: var(--ink);
    color: var(--page);
}

.hero-secondary-action {
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
}

.hero-secondary-action svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-primary-action:hover,
.hero-secondary-action:hover {
    transform: translateY(-2px);
}

.hero-proof-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 660px;
    margin-top: 2.25rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--line);
}

.hero-proof-rail span {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 4.5rem;
    padding: 0.9rem 1rem;
    background: var(--surface);
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.35;
}

.hero-proof-rail strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.96rem;
}

.hero-lab {
    width: 100%;
    perspective: 1200px;
    position: relative;
    z-index: 1;
}

.hero-stage {
    --rx: 4deg;
    --ry: -7deg;
    aspect-ratio: 1 / 1.08;
    position: relative;
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    animation: heroDrift 9s ease-in-out infinite;
}

.hero-stage::before,
.hero-stage::after {
    content: "";
    position: absolute;
    inset: 4% 3%;
    border: 1px solid var(--line);
    border-radius: 2.2rem;
    background:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px),
        radial-gradient(circle at 50% 42%, rgba(110, 168, 255, 0.12), transparent 55%),
        color-mix(in srgb, var(--surface) 88%, transparent);
    background-size: 38px 38px, 38px 38px, auto, auto;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.34), inset 0 1px rgba(255, 255, 255, 0.05);
}

.hero-stage::after {
    inset: 8% 0 0 8%;
    z-index: -1;
    transform: translateZ(-55px);
    background: linear-gradient(135deg, rgba(155, 124, 255, 0.16), rgba(110, 168, 255, 0.02));
    filter: blur(2px);
}

.hero-blueprint {
    position: absolute;
    inset: 3%;
    z-index: 1;
    width: 94%;
    height: 94%;
    overflow: visible;
    transform: translateZ(10px);
}

.blueprint-orbit {
    fill: none;
    stroke: var(--line);
    stroke-width: 1;
    stroke-dasharray: 3 10;
}

.orbit-small {
    stroke: color-mix(in srgb, var(--electric) 22%, transparent);
}

.blueprint-line {
    fill: none;
    stroke: url(#circuit-gradient);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 8 12;
    animation: circuitFlow 3.2s linear infinite;
}

.hero-identity-card {
    position: absolute;
    z-index: 4;
    top: 17%;
    left: 19%;
    width: 62%;
    padding: 0.6rem;
    border: 1px solid var(--line-strong);
    border-radius: 1.6rem;
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: 0 30px 65px rgba(0, 0, 0, 0.38);
    transform: translateZ(62px);
}

.hero-photo-wrap {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 1.15rem;
    background: var(--surface-2);
}

.hero-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.86) contrast(1.02);
}

.identity-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0.35rem 0.15rem;
}

.identity-card-meta > div {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.identity-card-meta span {
    color: var(--muted);
    font-size: 0.52rem;
}

.identity-card-meta strong {
    color: var(--ink);
    font-size: 0.73rem;
}

.identity-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.identity-status i {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 0.7rem var(--signal);
}

.hero-node {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
    padding: 0.55rem 0.75rem;
    color: var(--ink);
    font-size: 0.62rem;
    font-weight: 800;
    transform: translateZ(90px);
}

.hero-node i {
    color: var(--electric);
    font-size: 0.48rem;
    font-style: normal;
}

.node-rnd { top: 11%; left: -2%; }
.node-ai { top: 8%; right: -1%; }
.node-iot { bottom: 14%; left: -3%; }
.node-qa { right: -5%; bottom: 16%; }

.hero-lab-caption {
    position: absolute;
    z-index: 6;
    right: 4%;
    bottom: 3%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 17rem;
    border-left: 1px solid var(--signal);
    padding: 0.35rem 0 0.35rem 0.75rem;
    transform: translateZ(35px);
}

.hero-lab-caption span {
    color: var(--signal);
    font-size: 0.52rem;
}

.hero-lab-caption strong {
    color: var(--ink);
    font-family: var(--mono);
    font-size: 0.58rem;
    line-height: 1.5;
}

@keyframes circuitFlow {
    to { stroke-dashoffset: -40; }
}

@keyframes heroDrift {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

.capability-lens {
    display: grid;
    grid-template-columns: minmax(230px, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(2rem, 5vw, 5rem);
    margin: 1.5rem 0 8rem;
    padding: clamp(1.25rem, 3vw, 2rem) 0;
}

.section-index {
    margin-bottom: 1rem;
    color: var(--electric);
    font-size: 0.65rem;
    font-weight: 800;
}

.capability-intro h2 {
    max-width: 24rem;
    color: var(--ink);
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.capability-intro > p:last-child {
    max-width: 27rem;
    margin-top: 1.1rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.capability-workbench {
    min-width: 0;
}

.capability-tabs {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding: 0 0 0.7rem;
    scrollbar-width: none;
}

.capability-tabs::-webkit-scrollbar { display: none; }

.capability-tab {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    padding: 0.75rem 1rem;
    font-size: 0.74rem;
    font-weight: 800;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.capability-tab[aria-pressed="true"] {
    border-color: color-mix(in srgb, var(--electric) 55%, transparent);
    background: color-mix(in srgb, var(--electric) 12%, var(--surface));
    color: var(--ink);
}

.capability-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
    gap: 2rem;
    min-height: 17rem;
    margin-top: 0.5rem;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background:
        linear-gradient(145deg, color-mix(in srgb, var(--electric) 9%, transparent), transparent 45%),
        var(--surface);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    position: relative;
    overflow: hidden;
}

.capability-panel::after {
    content: attr(data-code);
    position: absolute;
    right: 1.5rem;
    bottom: 1rem;
    color: color-mix(in srgb, var(--muted) 18%, transparent);
    font-family: var(--mono);
    font-size: clamp(4rem, 9vw, 7rem);
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

#capability-kicker {
    display: inline-flex;
    border: 1px solid color-mix(in srgb, var(--signal) 32%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--signal) 8%, transparent);
    color: var(--signal);
    padding: 0.42rem 0.68rem;
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#capability-title {
    max-width: 33rem;
    margin-top: 1rem;
    color: var(--ink);
    font-size: clamp(1.75rem, 3.4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

#capability-copy {
    max-width: 36rem;
    margin-top: 1rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

.capability-proofs {
    display: flex;
    flex-direction: column;
    align-self: center;
    gap: 0.65rem;
    position: relative;
    z-index: 1;
}

.capability-proof {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 0;
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.5;
}

.capability-proof::before {
    content: "";
    flex: 0 0 auto;
    width: 0.46rem;
    height: 0.46rem;
    margin-top: 0.32rem;
    border: 1px solid var(--electric);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px var(--surface);
    background: var(--electric);
}

html[data-theme="light"] .hero-stage::before,
html[data-theme="light"] .hero-stage::after,
html[data-theme="light"] .hero-identity-card,
html[data-theme="light"] .hero-node,
html[data-theme="light"] .capability-panel,
html[data-theme="light"] .capability-tab,
html[data-theme="light"] .hero-proof-rail span {
    box-shadow: 0 24px 70px rgba(36, 48, 74, 0.11);
}

.career-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0 0 2.5rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: var(--line);
}

.startup-role {
    width: max-content;
    max-width: 100%;
    margin: -0.15rem 0 1.1rem;
    border: 1px solid rgba(152, 220, 42, 0.3);
    border-radius: 999px;
    background: rgba(152, 220, 42, 0.08);
    color: #9fe53a;
    padding: 0.48rem 0.72rem;
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.35;
}

.premium-card[data-award-id="ksn"]::after {
    content: "08";
    position: absolute;
    right: -0.25rem;
    top: 1.25rem;
    z-index: 0;
    color: rgba(168, 85, 247, 0.07);
    font-family: var(--mono);
    font-size: clamp(7rem, 14vw, 11rem);
    font-weight: 900;
    letter-spacing: -0.12em;
    line-height: 0.8;
    pointer-events: none;
}

html[data-theme="light"] .startup-role {
    color: #46780f;
}

.career-progress > div {
    display: flex;
    min-height: 6.4rem;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.7rem;
    padding: 1rem 1.1rem;
    background: var(--surface-2);
    position: relative;
}

.career-progress > div::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border: 1px solid var(--muted);
    border-radius: 50%;
}

.career-progress > div.is-current::before {
    border-color: var(--signal);
    background: var(--signal);
    box-shadow: 0 0 0.8rem color-mix(in srgb, var(--signal) 60%, transparent);
}

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

.career-progress strong {
    color: var(--ink);
    font-size: 0.76rem;
    line-height: 1.45;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.25rem;
}

.project-card {
    grid-column: span 6;
    border-color: var(--line);
    transform: translateZ(0);
}

.project-card.reveal:not(.active) {
    transform: translateY(40px) translateZ(0);
}

.project-card.reveal.active {
    transform: translateY(0) translateZ(0);
}

.project-card.reveal.active:hover {
    transform: translateY(-5px) translateZ(0);
}

.project-card:nth-child(1),
.project-card:nth-child(4) {
    grid-column: span 7;
}

.project-card:nth-child(2),
.project-card:nth-child(3) {
    grid-column: span 5;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    z-index: 3;
    width: 2px;
    background: var(--project-accent);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.project-card.is-lens-match {
    border-color: color-mix(in srgb, var(--project-accent) 35%, var(--line));
    box-shadow: 0 24px 70px -45px color-mix(in srgb, var(--project-accent) 80%, transparent);
}

.project-card.is-lens-match::after {
    opacity: 1;
}

.project-open {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    flex: 0 0 auto;
    border: 1px solid color-mix(in srgb, var(--project-accent) 32%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--project-accent) 8%, transparent);
    color: color-mix(in srgb, var(--project-accent) 85%, var(--ink));
    padding: 0.58rem 0.78rem;
    font-size: 0.64rem;
    font-weight: 800;
    white-space: nowrap;
    transition: gap 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.project-open:hover,
.project-open:focus-visible {
    gap: 0.7rem;
    background: color-mix(in srgb, var(--project-accent) 15%, transparent);
    transform: translateY(-1px);
}

.project-dialog {
    width: min(980px, calc(100% - 2rem));
    max-height: min(900px, calc(100svh - 2rem));
    margin: auto;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 1.75rem;
    background: var(--surface);
    color: var(--ink);
    padding: 0;
    box-shadow: 0 50px 130px rgba(0, 0, 0, 0.55);
}

.project-dialog::backdrop {
    background: rgba(5, 6, 9, 0.82);
    backdrop-filter: blur(12px);
}

.project-dialog[open] {
    animation: dialogEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-dialog-shell {
    max-height: inherit;
    overflow-y: auto;
    position: relative;
}

.project-dialog-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 5;
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(9, 9, 11, 0.72);
    color: #fff;
    backdrop-filter: blur(12px);
}

.project-dialog-close svg {
    width: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.project-dialog-visual {
    min-height: 23rem;
    overflow: hidden;
    position: relative;
    background: #09090b;
}

.project-dialog-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 9, 11, 0.94), rgba(9, 9, 11, 0.08) 68%);
}

.project-dialog-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-dialog-visual > div {
    position: absolute;
    z-index: 2;
    left: clamp(1.4rem, 5vw, 3.5rem);
    right: clamp(1.4rem, 5vw, 3.5rem);
    bottom: clamp(1.4rem, 5vw, 3rem);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

#project-dialog-role {
    color: #9dc1ff;
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

#project-dialog-title {
    max-width: 42rem;
    color: #fff;
    font-size: clamp(2.25rem, 6vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 0.95;
}

.project-dialog-content {
    padding: clamp(1.5rem, 5vw, 3.5rem);
}

.project-dialog-summary {
    max-width: 52rem;
    color: var(--ink);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 650;
    line-height: 1.65;
}

.case-study-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 2rem;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 1.15rem;
    background: var(--line);
}

.case-study-grid section {
    min-height: 12.5rem;
    padding: 1.35rem;
    background: var(--surface-2);
}

.case-study-grid span {
    color: var(--electric);
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-study-grid p {
    margin-top: 1.15rem;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.7;
}

.project-dialog-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.5rem;
}

.project-dialog-stack span {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--ink);
    padding: 0.5rem 0.72rem;
    font-family: var(--mono);
    font-size: 0.6rem;
    font-weight: 700;
}

.project-dialog-note {
    margin-top: 1.5rem;
    border-left: 1px solid var(--amber);
    padding-left: 0.8rem;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .hero-editorial {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        min-height: auto;
        padding-top: 2rem;
    }

    .hero-copy { max-width: 760px; }
    .hero-lab { max-width: 560px; margin-inline: auto; }
    .capability-lens { grid-template-columns: 1fr; gap: 2rem; }
    .capability-intro h2 { max-width: 36rem; }
    .project-card,
    .project-card:nth-child(n) { grid-column: span 6; }
}

@media (max-width: 640px) {
    .hero-editorial { padding-bottom: 3rem; }
    .hero-editorial h1 { font-size: clamp(2.35rem, 10vw, 3.1rem); }
    .hero-proof-rail { grid-template-columns: 1fr; }
    .hero-proof-rail span { min-height: auto; flex-direction: row; align-items: center; }
    .hero-stage { aspect-ratio: 1 / 1.02; transform: none; }
    .hero-stage::before { inset: 3% 0; }
    .hero-stage::after { display: none; }
    .hero-identity-card { top: 14%; left: 21%; width: 58%; transform: none; }
    .hero-node { transform: none; padding: 0.45rem 0.6rem; font-size: 0.54rem; }
    .node-rnd { top: 7%; left: 0; }
    .node-ai { top: 8%; right: 0; }
    .node-iot { bottom: 12%; left: 0; }
    .node-qa { bottom: 14%; right: 0; }
    .hero-lab-caption { display: none; }
    .identity-status { display: none; }
    .capability-panel { grid-template-columns: 1fr; gap: 1rem; min-height: auto; }
    .capability-panel::after { font-size: 4.4rem; }
    .capability-tabs { scroll-snap-type: x proximity; }
    .capability-tab { scroll-snap-align: start; }
    .career-progress { grid-template-columns: 1fr; }
    .career-progress > div { min-height: 5.2rem; }
    .project-grid { grid-template-columns: 1fr; }
    .project-card,
    .project-card:nth-child(n) { grid-column: 1; }
    .project-dialog {
        width: 100%;
        max-height: 92svh;
        margin: auto 0 0;
        border-radius: 1.5rem 1.5rem 0 0;
    }
    .project-dialog-visual { min-height: 19rem; }
    .case-study-grid { grid-template-columns: 1fr; }
    .case-study-grid section { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html:not([data-motion="full"]) { scroll-behavior: auto !important; }
    html:not([data-motion="full"]) *,
    html:not([data-motion="full"]) *::before,
    html:not([data-motion="full"]) *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html:not([data-motion="full"]) body { cursor: auto; }
    html:not([data-motion="full"]) #cursor-dot,
    html:not([data-motion="full"]) #cursor-ring { display: none !important; }
    html:not([data-motion="full"]) .reveal { opacity: 1 !important; transform: none !important; }
    html:not([data-motion="full"]) .marquee-track { transform: none !important; }
    html:not([data-motion="full"]) .marquee-group[aria-hidden="true"] { display: none; }
    html:not([data-motion="full"]) .hero-stage { transform: none !important; translate: none !important; }
}
