/* Custom Styles & Animations */

      /* Preloader */
      #site-preloader {
        position: fixed;
        inset: 0;
        z-index: 10000;
        display: grid;
        place-items: center;
        background: rgba(0, 0, 0, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        opacity: 1;
        visibility: visible;
        transition: opacity 0.45s ease, visibility 0.45s ease;
      }

      #site-preloader.is-hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
      }

      .preloader-grid {
        position: absolute;
        inset: 0;
        background-image: linear-gradient(
            rgba(147, 51, 234, 0.07) 1px,
            transparent 1px
          ),
          linear-gradient(90deg, rgba(147, 51, 234, 0.07) 1px, transparent 1px);
        background-size: 44px 44px;
        opacity: 0.8;
        filter: blur(6px);
        transform: scale(1.02);
        transform-origin: center;
        pointer-events: none;
      }

      .preloader-panel {
        width: min(90vw, 520px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        background: rgba(5, 5, 5, 0.65);
        box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset,
          0 24px 70px -20px rgba(0, 0, 0, 0.8),
          0 0 40px -15px rgba(147, 51, 234, 0.35);
        padding: 1.5rem 1.5rem 1.8rem;
        position: relative;
        overflow: hidden;
      }

      .preloader-panel::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(
          ellipse 120% 70% at 50% -20%,
          rgba(147, 51, 234, 0.14) 0%,
          transparent 65%
        );
        pointer-events: none;
      }

      .preloader-label {
        font-family: "Space Mono", monospace;
        font-size: 0.62rem;
        letter-spacing: 0.24em;
        color: rgba(147, 51, 234, 0.9);
        margin-bottom: 0.7rem;
      }

      .preloader-brand {
        font-family: "Orbitron", sans-serif;
        font-weight: 800;
        font-size: clamp(1.8rem, 5vw, 2.4rem);
        letter-spacing: 0.1em;
        color: rgba(255, 255, 255, 0.95);
        margin-bottom: 1.15rem;
      }

      .preloader-status-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-family: "Space Mono", monospace;
        font-size: 0.66rem;
        letter-spacing: 0.16em;
        color: rgba(255, 255, 255, 0.66);
        margin-bottom: 0.5rem;
      }

      #preloader-percent {
        font-family: "Orbitron", sans-serif;
        color: #fff;
      }

      .preloader-bar-wrap {
        height: 10px;
        border: 1px solid rgba(147, 51, 234, 0.35);
        background: rgba(255, 255, 255, 0.04);
        position: relative;
        overflow: hidden;
      }

      .preloader-bar {
        height: 100%;
        width: 1%;
        background: linear-gradient(
          90deg,
          rgba(147, 51, 234, 0.75),
          rgba(255, 255, 255, 0.95)
        );
        box-shadow: 0 0 18px rgba(147, 51, 234, 0.45);
        transition: width 0.2s linear;
        will-change: width;
      }

      @media (max-width: 767px) {
        #site-preloader {
          backdrop-filter: blur(10px);
          -webkit-backdrop-filter: blur(10px);
        }

        .preloader-grid {
          filter: blur(4px);
          transform: scale(1.01);
        }

        .preloader-panel {
          width: min(92vw, 420px);
          padding: 1.15rem 1rem 1.25rem;
        }

        .preloader-brand {
          font-size: clamp(1.45rem, 7vw, 1.9rem);
          margin-bottom: 0.85rem;
        }

        .preloader-status-row {
          font-size: 0.58rem;
          letter-spacing: 0.13em;
        }

        .preloader-bar-wrap {
          height: 8px;
        }
      }

      /* Grid Background */
      .grid-bg {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: linear-gradient(
            rgba(147, 51, 234, 0.07) 1px,
            transparent 1px
          ),
          linear-gradient(90deg, rgba(147, 51, 234, 0.07) 1px, transparent 1px);
        background-size: 50px 50px;
        z-index: -1;
        pointer-events: none;
      }

      .grid-bg::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(
          ellipse 80% 60% at 50% 0%,
          rgba(147, 51, 234, 0.08) 0%,
          transparent 70%
        );
        pointer-events: none;
      }

      /* Grid Light Orbs */
      .grid-lights {
        position: fixed;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        overflow: hidden;
      }

      .grid-orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        mix-blend-mode: screen;
        animation: orb-drift 18s ease-in-out infinite alternate;
      }

      .orb-1 {
        width: 420px;
        height: 420px;
        top: -80px;
        left: 15%;
        background: radial-gradient(
          circle,
          rgba(147, 51, 234, 0.22) 0%,
          transparent 70%
        );
        animation-duration: 20s;
        animation-delay: 0s;
      }

      .orb-2 {
        width: 320px;
        height: 320px;
        top: 35%;
        right: 8%;
        background: radial-gradient(
          circle,
          rgba(168, 85, 247, 0.16) 0%,
          transparent 70%
        );
        animation-duration: 25s;
        animation-delay: -6s;
        animation-name: orb-drift-r;
      }

      .orb-3 {
        width: 260px;
        height: 260px;
        bottom: 20%;
        left: 5%;
        background: radial-gradient(
          circle,
          rgba(109, 40, 217, 0.18) 0%,
          transparent 70%
        );
        animation-duration: 22s;
        animation-delay: -10s;
      }

      .orb-4 {
        width: 200px;
        height: 200px;
        top: 60%;
        left: 50%;
        background: radial-gradient(
          circle,
          rgba(192, 132, 252, 0.1) 0%,
          transparent 70%
        );
        animation-duration: 30s;
        animation-delay: -14s;
        animation-name: orb-drift-r;
      }

      @keyframes orb-drift {
        0% {
          transform: translate(0, 0) scale(1);
        }

        33% {
          transform: translate(30px, -40px) scale(1.08);
        }

        66% {
          transform: translate(-20px, 25px) scale(0.95);
        }

        100% {
          transform: translate(15px, -20px) scale(1.04);
        }
      }

      @keyframes orb-drift-r {
        0% {
          transform: translate(0, 0) scale(1);
        }

        33% {
          transform: translate(-25px, 30px) scale(1.06);
        }

        66% {
          transform: translate(20px, -20px) scale(0.97);
        }

        100% {
          transform: translate(-10px, 15px) scale(1.03);
        }
      }

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

      ::-webkit-scrollbar-track {
        background: #000;
      }

      ::-webkit-scrollbar-thumb {
        background: #333;
        border-radius: 4px;
      }

      ::-webkit-scrollbar-thumb:hover {
        background: #555;
      }

      /* Technical Frame Corners */
      .tech-corner {
        position: absolute;
        width: 20px;
        height: 20px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 20;
      }

      .tl {
        top: 0;
        left: 0;
        border-right: none;
        border-bottom: none;
      }

      .tr {
        top: 0;
        right: 0;
        border-left: none;
        border-bottom: none;
      }

      .bl {
        bottom: 0;
        left: 0;
        border-right: none;
        border-top: none;
      }

      .br {
        bottom: 0;
        right: 0;
        border-left: none;
        border-top: none;
      }

      .group:hover .tech-corner {
        border-color: #fff;
        width: 40px;
        height: 40px;
      }

      /* HUD Tags */
      .hud-tag {
        position: absolute;
        display: flex;
        align-items: center;
        gap: 8px;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
      }

      .group:hover .hud-tag {
        opacity: 1;
      }

      .text-gradient-grey {
        color: #d7d7d7;
        text-shadow: 0 0 18px rgba(255, 255, 255, 0.14),
          0 0 2px rgba(255, 255, 255, 0.35);
        display: table;
      }

      .text-gradient-grey > span {
        color: inherit;
        background: none;
        -webkit-text-fill-color: initial;
      }

      @supports (-webkit-background-clip: text) {
        .text-gradient-grey {
          text-shadow: none;
        }

        .text-gradient-grey > span {
          background: linear-gradient(to right, #444444 0%, #ffffff 100%);
          -webkit-background-clip: text;
          -webkit-text-fill-color: transparent;
          color: transparent;
          display: inline-block;
        }
      }

      @supports (background-clip: text) {
        .text-gradient-grey {
          text-shadow: none;
        }

        .text-gradient-grey > span {
          background: linear-gradient(to right, #444444 0%, #ffffff 100%);
          background-clip: text;
          color: transparent;
          display: inline-block;
        }
      }

      .hud-dot {
        width: 6px;
        height: 6px;
        background-color: #fff;
        border-radius: 50%;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
      }

      .hud-line {
        height: 1px;
        width: 30px;
        background-color: rgba(255, 255, 255, 0.5);
      }

      .hud-text {
        font-family: "Orbitron", monospace;
        font-size: 10px;
        letter-spacing: 1px;
        color: rgba(255, 255, 255, 0.8);
        background: rgba(0, 0, 0, 0.6);
        padding: 2px 6px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(2px);
      }

      /* Fade In Up Utility */
      .fade-in-up {
        animation: fadeInUp 0.8s ease forwards;
      }

      @keyframes fadeInUp {
        from {
          opacity: 0;
          transform: translateY(30px);
        }

        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* Reveal Animations */
      .reveal-text {
        opacity: 0;
        transform: translateY(30px);
        animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      }

      @keyframes revealUp {
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      .delay-100 {
        animation-delay: 100ms;
      }

      .delay-200 {
        animation-delay: 200ms;
      }

      .delay-300 {
        animation-delay: 300ms;
      }

      .delay-500 {
        animation-delay: 500ms;
      }

      /* Glitch Button Effect */
      .btn-glitch {
        position: relative;
        overflow: hidden;
      }

      .btn-glitch::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.2),
          transparent
        );
        transition: 0.5s;
      }

      /* Liquid Glass Button */
      .btn-glass {
        position: relative;
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        transition: all 0.4s ease;
        border-radius: 0;
      }

      .btn-glass::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 60%;
        height: 100%;
        background: linear-gradient(
          120deg,
          transparent,
          rgba(147, 51, 234, 0.5),
          transparent
        );
        transform: skewX(-25deg);
        transition: 0.5s;
      }

      .btn-glass:hover {
        background: rgba(147, 51, 234, 0.1);
        border-color: rgba(147, 51, 234, 0.5);
        box-shadow: inset 0 0 10px rgba(147, 51, 234, 0.2);
        transform: translateY(-2px);
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
      }

      .btn-glass:hover::before {
        left: 150%;
        transition: 0.7s;
      }

      /* Glass Code Tag */
      .glass-code {
        position: relative;
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.4s ease;
        display: inline-block;
        overflow: hidden;
        border-radius: 0;
      }

      .glass-code::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 60%;
        height: 100%;
        background: linear-gradient(
          120deg,
          transparent,
          rgba(147, 51, 234, 0.5),
          transparent
        );
        transform: skewX(-25deg);
        transition: 0.5s;
        pointer-events: none;
      }

      .glass-code:hover {
        background: rgba(147, 51, 234, 0.1);
        border-color: rgba(147, 51, 234, 0.5);
        box-shadow: inset 0 0 10px rgba(147, 51, 234, 0.2);
      }

      .glass-code:hover::before {
        left: 150%;
        transition: 1.2s;
      }

      /* Auto-Shine Animation */
      @keyframes auto-shine {
        0% {
          left: -100%;
        }

        100% {
          left: 150%;
        }
      }

      .btn-glass.auto-shine::before {
        animation: auto-shine 1.5s ease-out;
      }

      /* Hero Typewriter */
      #typewriter-text {
        position: relative;
      }

      #typewriter-text::after {
        content: "|";
        display: inline-block;
        margin-left: 0.08em;
        color: #9333ea;
        font-weight: 500;
        animation: type-caret-blink 0.9s steps(1, end) infinite;
      }

      @keyframes type-caret-blink {
        0%,
        49% {
          opacity: 1;
        }

        50%,
        100% {
          opacity: 0;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        #typewriter-text::after {
          animation: none;
        }
      }

      /* Feature Card Enhancements */
      .feature-card {
        position: relative;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
        backdrop-filter: blur(5px);
        overflow: hidden;
      }

      .feature-card:hover {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(147, 51, 234, 0.5);
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8),
          0 0 30px -5px rgba(147, 51, 234, 0.3),
          inset 0 0 15px rgba(147, 51, 234, 0.05);
      }

      .feature-card-shine {
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          120deg,
          transparent,
          rgba(147, 51, 234, 0.3),
          transparent
        );
        transform: skewX(-25deg);
        transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
      }

      .feature-card:hover .feature-card-shine {
        left: 150%;
      }

      .feature-card::after {
        content: "";
        position: absolute;
        inset: 0;
        padding: 1px;
        background: linear-gradient(
          135deg,
          rgba(255, 255, 255, 0.15),
          transparent,
          rgba(147, 51, 234, 0.4)
        );
        -webkit-mask: linear-gradient(#fff 0 0) content-box,
          linear-gradient(#fff 0 0);
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.6s ease;
      }

      .feature-card:hover::after {
        opacity: 1;
      }

      /* Staggered Reveal Animation */
      .reveal-card {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        animation: revealCard 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      }

      @keyframes revealCard {
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }

      .delay-400 {
        animation-delay: 400ms;
      }

      .delay-600 {
        animation-delay: 600ms;
      }

      .delay-700 {
        animation-delay: 700ms;
      }

      .delay-800 {
        animation-delay: 800ms;
      }

      .delay-900 {
        animation-delay: 900ms;
      }

      .delay-1000 {
        animation-delay: 1000ms;
      }

      /* Stats Styles */
      .stat-card {
        position: relative;
        padding: 2rem;
        text-align: center;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
      }

      .stat-number {
        font-family: "Orbitron", sans-serif;
        font-size: 3.5rem;
        font-weight: 800;
        color: #fff;
        line-height: 1;
        margin-bottom: 0.5rem;
        background: linear-gradient(180deg, #fff, #9333ea);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
      }

      .stat-label {
        font-family: "Space Mono", monospace;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.2rem;
        color: rgba(255, 255, 255, 0.4);
      }

      /* Project Showcase Styles */
      .project-card {
        position: relative;
        height: 400px;
        background: #050505;
        border: 1px solid rgba(255, 255, 255, 0.05);
        overflow: hidden;
        transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
      }

      .project-card:hover {
        border-color: rgba(147, 51, 234, 0.5);
        transform: scale(1.02);
      }

      .project-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.4;
        transition: all 0.6s ease;
        filter: grayscale(100%);
      }

      .project-card:hover .project-image {
        opacity: 0.6;
        filter: grayscale(0%);
        transform: scale(1.1);
      }

      .project-content {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 2.5rem;
        background: linear-gradient(
          to top,
          rgba(0, 0, 0, 0.95) 0%,
          transparent 100%
        );
        z-index: 2;
      }

      .project-tag {
        font-family: "Space Mono", monospace;
        font-size: 0.6rem;
        color: #9333ea;
        letter-spacing: 2px;
        margin-bottom: 0.5rem;
      }

      /* Join Us Glass Container */
      .join-container {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
      }

      /* Flagship Section Styles */
      .flagship-label {
        display: inline-block;
        padding: 0.25rem 0.75rem;
        background: rgba(147, 51, 234, 0.1);
        border: 1px solid rgba(147, 51, 234, 0.3);
        color: #9333ea;
        font-family: "Space Mono", monospace;
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 2px;
        margin-bottom: 1.5rem;
      }

      .spec-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
      }

      .spec-item {
        border-left: 2px solid rgba(147, 51, 234, 0.3);
        padding-left: 1rem;
        transition: border-color 0.3s ease;
      }

      .spec-item:hover {
        border-color: #9333ea;
      }

      .spec-value {
        font-family: "Orbitron", sans-serif;
        font-size: 1.5rem;
        font-weight: 700;
        color: #fff;
        display: block;
      }

      .spec-label {
        font-family: "Space Mono", monospace;
        font-size: 0.65rem;
        color: rgba(255, 255, 255, 0.4);
        text-transform: uppercase;
        letter-spacing: 1px;
      }

      .visual-bridge {
        position: absolute;
        width: 2px;
        height: 100px;
        background: linear-gradient(to bottom, #9333ea, transparent);
        left: 50%;
        transform: translateX(-50%);
        bottom: -100px;
      }

      /* Projects Showcase Layout */
      .project-featured {
        width: 100%;
        position: relative;
      }

      .featured-glass {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
        transition: all 0.5s ease;
        border-radius: 0;
        overflow: hidden;
      }

      .featured-glass:hover {
        border-color: rgba(147, 51, 234, 0.3);
        background: rgba(147, 51, 234, 0.02);
      }

      .tech-marker {
        position: absolute;
        font-family: "Space Mono", monospace;
        font-size: 8px;
        color: rgba(255, 255, 255, 0.2);
        pointer-events: none;
        z-index: 10;
      }

      .marker-tl {
        top: 1.5rem;
        left: 1.5rem;
      }

      .marker-tr {
        top: 1.5rem;
        right: 1.5rem;
      }

      .marker-bl {
        bottom: 1.5rem;
        left: 1.5rem;
      }

      .marker-br {
        bottom: 1.5rem;
        right: 1.5rem;
      }

      .project-card {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border-radius: 0;
        overflow: hidden;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        display: flex;
        flex-direction: column;
        position: relative;
      }

      .project-card:hover {
        transform: translateY(-5px);
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(147, 51, 234, 0.4);
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6),
          0 0 20px rgba(147, 51, 234, 0.1);
      }

      /* Scanline Animation */
      .scan-line {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          to bottom,
          transparent 0%,
          rgba(147, 51, 234, 0.1) 50%,
          transparent 51%
        );
        background-size: 100% 4px;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 5;
      }

      .project-card:hover .scan-line,
      .featured-glass:hover .scan-line {
        opacity: 1;
        animation: scan 2s linear infinite;
      }

      @keyframes scan {
        from {
          transform: translateY(-100%);
        }

        to {
          transform: translateY(100%);
        }
      }

      .project-image-wrapper {
        position: relative;
        overflow: hidden;
        height: 100%;
      }

      .project-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(100%) brightness(0.6);
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .project-card:hover .project-image {
        filter: grayscale(0%) brightness(1);
        transform: scale(1.1);
      }

      /* Bento Grid Spans */
      @media (min-width: 1024px) {
        .bento-grid {
          display: grid;
          grid-template-columns: repeat(4, 1fr);
          grid-template-rows: repeat(2, 350px);
          gap: 1.5rem;
        }

        .bento-col-2 {
          grid-column: span 2;
        }

        .bento-row-2 {
          grid-row: span 2;
        }
      }

      @media (min-width: 1024px) {
        .project-featured .spec-grid {
          grid-template-columns: repeat(4, 1fr);
        }
      }

      /* System Core Visual Styles */
      .system-core-container {
        perspective: 1000px;
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: radial-gradient(
          circle at center,
          rgba(147, 51, 234, 0.05) 0%,
          transparent 70%
        );
      }

      .core-node {
        position: relative;
        width: 100px;
        height: 100px;
        background: rgba(147, 51, 234, 0.1);
        border: 1px solid rgba(147, 51, 234, 0.3);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 30px rgba(147, 51, 234, 0.2);
        animation: core-pulse 4s ease-in-out infinite;
      }

      .core-pane {
        position: absolute;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(5px);
        transition: all 0.5s ease;
      }

      .pane-1 {
        width: 200px;
        height: 200px;
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        animation: orbit-1 20s linear infinite;
      }

      .pane-2 {
        width: 160px;
        height: 160px;
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        animation: orbit-2 15s linear infinite reverse;
      }

      @keyframes orbit-1 {
        from {
          transform: rotateX(45deg) rotateY(0deg) rotateZ(0deg);
        }

        to {
          transform: rotateX(45deg) rotateY(360deg) rotateZ(360deg);
        }
      }

      @keyframes orbit-2 {
        from {
          transform: rotateX(-45deg) rotateY(0deg) rotateZ(0deg);
        }

        to {
          transform: rotateX(-45deg) rotateY(360deg) rotateZ(-360deg);
        }
      }

      @keyframes core-pulse {
        0%,
        100% {
          transform: scale(1);
          opacity: 0.8;
        }

        50% {
          transform: scale(1.1);
          opacity: 1;
          box-shadow: 0 0 50px rgba(147, 51, 234, 0.4);
        }
      }

      .about-glass {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(10px);
        border-radius: 0;
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      }

      #about .about-label {
        opacity: 0.62;
      }

      #about .about-heading {
        color: rgba(255, 255, 255, 0.9);
      }

      #about .about-text-block p.text-white\/80 {
        color: rgba(255, 255, 255, 0.72);
      }

      #about .about-text-block p.text-white\/60 {
        color: rgba(255, 255, 255, 0.52);
      }

      #about .about-text-block:hover,
      #about .about-text-block:focus-within {
        background: rgba(255, 255, 255, 0.028);
        border-color: rgba(147, 51, 234, 0.16);
        transform: translateY(-1px);
        box-shadow: 0 12px 28px -22px rgba(0, 0, 0, 0.62),
          0 0 0 1px rgba(147, 51, 234, 0.08) inset;
      }

      #about .about-text-block:hover p,
      #about .about-text-block:focus-within p {
        color: rgba(255, 255, 255, 0.8);
      }

      #about .about-img-wrap {
        transition: transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
          border-color 0.72s cubic-bezier(0.16, 1, 0.3, 1),
          box-shadow 0.72s cubic-bezier(0.16, 1, 0.3, 1),
          background 0.72s cubic-bezier(0.16, 1, 0.3, 1);
      }

      #about .about-img-wrap:hover,
      #about .about-img-wrap:focus-within {
        background: rgba(255, 255, 255, 0.028);
        border-color: rgba(147, 51, 234, 0.16);
        transform: translateY(-1px);
        box-shadow: 0 14px 32px -24px rgba(0, 0, 0, 0.64),
          0 0 0 1px rgba(147, 51, 234, 0.08) inset;
      }

      /* Footer Glass Redesign */
      .footer-glass {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-radius: 0;
        box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.5);
        transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        position: relative;
        overflow: hidden;
      }

      .footer-glass::before {
        content: "";
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(147, 51, 234, 0.05),
          transparent
        );
        transition: 0.8s;
      }

      .footer-glass:hover {
        border-color: rgba(255, 255, 255, 0.1);
        background: rgba(147, 51, 234, 0.03);
        box-shadow: 0 -20px 60px -20px rgba(147, 51, 234, 0.1);
      }

      .footer-glass:hover::before {
        left: 100%;
      }

      .dud {
        color: #9333ea;
        opacity: 0.7;
      }

      .perspective-1000 {
        perspective: 1000px;
      }

      /* Refined Join Section Frame */
      .join-frame {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        border-radius: 0;
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .join-frame:hover {
        background: rgba(255, 255, 255, 0.04);
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 30px 60px -12px rgba(147, 51, 234, 0.1);
      }

      .join-frame .tech-corner {
        border-color: rgba(255, 255, 255, 0.1);
        width: 30px;
        height: 30px;
      }

      .join-frame:hover .tech-corner {
        border-color: rgba(147, 51, 234, 0.5);
        width: 50px;
        height: 50px;
      }

      /* Background Scanline Vertical */
      .scan-line-v {
        box-shadow: 0 0 15px rgba(147, 51, 234, 0.5);
      }

      @keyframes scan-v {
        0% {
          top: -100%;
        }

        100% {
          top: 100%;
        }
      }

      /* ── Navbar Redesign ── */
      #header {
        transition: top 0.5s cubic-bezier(0.16, 1, 0.3, 1),
          width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .nav-floating {
        border-radius: 0;
        background: rgba(0, 0, 0, 0.08);
        backdrop-filter: blur(24px) saturate(150%);
        -webkit-backdrop-filter: blur(24px) saturate(150%);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 8px 32px rgba(0, 0, 0, 0.3);
        transition: background 0.5s ease, border-color 0.5s ease,
          padding 0.4s ease, box-shadow 0.5s ease;
        position: relative;
      }

      @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
        .nav-floating {
          background: rgba(4, 4, 4, 0.45);
          border: 1px solid rgba(255, 255, 255, 0.12);
          box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35),
            0 0 0 1px rgba(255, 255, 255, 0.04) inset;
        }
      }

      #header.nav-scrolled {
        top: 0.75rem;
        width: 88%;
        max-width: 960px;
      }

      #header.nav-scrolled .nav-floating {
        background: rgba(4, 4, 4, 0.45);
        backdrop-filter: blur(24px) saturate(150%);
        -webkit-backdrop-filter: blur(24px) saturate(150%);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5),
          0 0 0 1px rgba(255, 255, 255, 0.04) inset;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
      }

      @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
        #header.nav-scrolled .nav-floating {
          background: rgba(4, 4, 4, 0.55);
          border-color: rgba(255, 255, 255, 0.12);
          box-shadow: 0 8px 40px rgba(0, 0, 0, 0.42),
            0 0 0 1px rgba(255, 255, 255, 0.04) inset;
        }
      }

      .nav-floating.nav-fx-dynamic {
        background: rgba(0, 0, 0, 0.08);
        backdrop-filter: blur(24px) saturate(150%);
        -webkit-backdrop-filter: blur(24px) saturate(150%);
        border-color: rgba(255, 255, 255, 0.08);
      }

      @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
        .nav-floating.nav-fx-dynamic {
          background: rgba(4, 4, 4, 0.45);
          border-color: rgba(255, 255, 255, 0.12);
        }
      }

      #header.nav-scrolled .nav-floating.nav-fx-dynamic {
        background: rgba(4, 4, 4, 0.45);
        backdrop-filter: blur(24px) saturate(150%);
        -webkit-backdrop-filter: blur(24px) saturate(150%);
        border-color: rgba(255, 255, 255, 0.12);
      }

      @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
        #header.nav-scrolled .nav-floating.nav-fx-dynamic {
          background: rgba(4, 4, 4, 0.55);
          border-color: rgba(255, 255, 255, 0.12);
        }
      }

      .nav-floating.nav-fx-dynamic.is-low-fx {
        backdrop-filter: blur(24px) saturate(150%);
        -webkit-backdrop-filter: blur(24px) saturate(150%);
      }

      #header.nav-scrolled .nav-floating.nav-fx-dynamic.is-low-fx {
        backdrop-filter: blur(24px) saturate(150%);
        -webkit-backdrop-filter: blur(24px) saturate(150%);
      }

      /* Logo */
      .nav-logo {
        font-family: "Orbitron", sans-serif;
        font-weight: 900;
        font-size: 1.15rem;
        letter-spacing: 0.08em;
        color: #fff;
        cursor: pointer;
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
      }

      .nav-logo-bracket {
        font-size: 1.4rem;
        color: rgba(255, 255, 255, 0.5);
        opacity: 0.8;
        font-weight: 300;
        line-height: 1;
      }

      /* Nav items */
      .nav-item {
        font-family: "Space Mono", monospace;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.18em;
        color: rgba(147, 51, 234, 0.95);
        padding: 0.6rem 1rem;
        position: relative;
        transition: color 0.2s ease;
        text-transform: uppercase;
      }

      .nav-item::before {
        content: none;
      }

      .nav-item:hover {
        color: #c084fc;
      }

      /* Active nav state */
      .nav-item.is-active {
        color: #c084fc;
      }

      .nav-item:active {
        color: #c084fc;
      }

      .nav-btn-join {
        font-family: "Orbitron", sans-serif !important;
        font-size: 9px !important;
        font-weight: 800 !important;
        letter-spacing: 0.25em !important;
        color: rgba(147, 51, 234, 0.95) !important;
        background: transparent !important;
        border: 1px solid rgba(147, 51, 234, 0.55) !important;
        padding: 0.55rem 1.4rem !important;
        border-radius: 2px;
        margin-left: 0.75rem;
        transition: background 0.2s, color 0.2s, box-shadow 0.2s,
          border-color 0.2s, transform 0.2s;
        box-shadow: 0 0 0 1px rgba(147, 51, 234, 0.22);
      }

      .nav-btn-join::before,
      .nav-btn-join:hover::before {
        content: none !important;
        display: none !important;
      }

      .nav-btn-join:hover {
        background: #9333ea !important;
        border-color: #9333ea !important;
        transform: translateY(-1px);
        box-shadow: 0 4px 20px rgba(147, 51, 234, 0.45);
        color: #fff !important;
      }

      /* ── Mobile Menu (full-screen overlay) ── */
      #mobile-menu {
        position: fixed;
        inset: 0;
        background: rgba(2, 2, 2, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        z-index: 40;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 3rem 2.5rem;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-12px);
        transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
          transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
      }

      @supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
        #mobile-menu {
          background: rgba(2, 2, 2, 0.985);
        }
      }

      #mobile-menu.open {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
      }

      .mobile-menu-top {
        position: absolute;
        top: 1.75rem;
        right: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.75rem;
      }

      .mobile-menu-close {
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255, 255, 255, 0.1);
        cursor: pointer;
        transition: border-color 0.2s, background 0.2s;
      }

      .mobile-menu-close:hover {
        border-color: rgba(255, 255, 255, 0.3);
        background: rgba(255, 255, 255, 0.05);
      }

      .mobile-menu-close svg {
        width: 14px;
        height: 14px;
        stroke: rgba(255, 255, 255, 0.6);
      }

      .mobile-menu-label {
        font-family: "Space Mono", monospace;
        font-size: 8px;
        letter-spacing: 0.3em;
        color: rgba(255, 255, 255, 0.2);
      }

      .mobile-menu-divider {
        width: 40px;
        height: 1px;
        background: linear-gradient(to right, #9333ea, transparent);
        margin-bottom: 2.5rem;
        opacity: 0.6;
      }

      #mobile-menu a {
        display: block;
        font-family: "Orbitron", sans-serif;
        font-size: clamp(1.5rem, 6vw, 2.25rem);
        font-weight: 800;
        letter-spacing: 0.04em;
        color: rgba(107, 33, 168, 0.95);
        padding: 0.5rem 0;
        transition: color 0.2s ease, transform 0.2s ease;
        line-height: 1.2;
      }

      #mobile-menu a:hover {
        color: #9333ea;
        transform: translateX(8px);
      }

      #mobile-menu a.is-active {
        color: #9333ea;
      }

      #mobile-menu a.join-link {
        color: rgba(147, 51, 234, 0.7);
        margin-top: 1rem;
        font-size: clamp(1rem, 4vw, 1.4rem);
        letter-spacing: 0.2em;
        border: 1px solid rgba(147, 51, 234, 0.2);
        padding: 0.6rem 1.5rem;
        display: inline-block;
      }

      #mobile-menu a.join-link:hover {
        color: #fff;
        background: rgba(147, 51, 234, 0.1);
        transform: none;
      }

      #mobile-menu a.join-link.is-active {
        color: #fff;
        background: rgba(147, 51, 234, 0.1);
      }

      .mobile-menu-footer {
        position: absolute;
        bottom: 2rem;
        left: 2.5rem;
        font-family: "Space Mono", monospace;
        font-size: 8px;
        letter-spacing: 0.25em;
        color: rgba(255, 255, 255, 0.15);
      }

      /* Staggered link animation */
      #mobile-menu.open a {
        animation: mobileNavIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
      }

      #mobile-menu.open a:nth-child(1) {
        animation-delay: 60ms;
      }

      #mobile-menu.open a:nth-child(2) {
        animation-delay: 100ms;
      }

      #mobile-menu.open a:nth-child(3) {
        animation-delay: 140ms;
      }

      #mobile-menu.open a:nth-child(4) {
        animation-delay: 180ms;
      }

      #mobile-menu.open a:nth-child(5) {
        animation-delay: 220ms;
      }

      #mobile-menu.open a:nth-child(6) {
        animation-delay: 260ms;
      }

      #mobile-menu.open a:nth-child(7) {
        animation-delay: 300ms;
      }

      @keyframes mobileNavIn {
        from {
          opacity: 0;
          transform: translateX(-20px);
        }

        to {
          opacity: 1;
          transform: translateX(0);
        }
      }

      /* Hamburger */
      .hamburger-bar {
        display: block;
        height: 1.5px;
        background: currentColor;
        transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
        transform-origin: center;
      }

      #menu-btn {
        position: relative;
        z-index: 50;
        color: rgba(147, 51, 234, 0.95);
      }

      #menu-btn:hover,
      #menu-btn.open {
        color: #c084fc;
      }

      #menu-btn.open .hamburger-bar:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
        width: 100% !important;
      }

      #menu-btn.open .hamburger-bar:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
      }

      #menu-btn.open .hamburger-bar:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
        width: 100% !important;
      }

      /* ── Scroll-triggered reveal (replaces auto-animate) ── */
      .reveal-text,
      .reveal-card {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
          transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .reveal-card {
        transform: translateY(40px) scale(0.97);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
          transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .reveal-text.in-view,
      .reveal-card.in-view {
        opacity: 1;
        transform: translateY(0) scale(1);
      }

      .delay-100 {
        transition-delay: 100ms;
      }

      .delay-200 {
        transition-delay: 200ms;
      }

      .delay-300 {
        transition-delay: 300ms;
      }

      .delay-400 {
        transition-delay: 400ms;
      }

      .delay-500 {
        transition-delay: 500ms;
      }

      .delay-600 {
        transition-delay: 600ms;
      }

      .delay-700 {
        transition-delay: 700ms;
      }

      .delay-800 {
        transition-delay: 800ms;
      }

      /* Exception: hero elements still auto-animate */
      #home .reveal-text,
      #home .reveal-card {
        animation: revealUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        transition: none;
        opacity: 0;
        transform: translateY(30px);
      }

      #home .reveal-text.in-view,
      #home .reveal-card.in-view {
        animation: none;
        opacity: 1;
        transform: none;
      }

      /* ══════════════════════════════════════
   ENHANCED ANIMATION SYSTEM
══════════════════════════════════════ */

      /* ── Page load: body fade-in ── */
      body {
        animation: body-appear 0.6s ease forwards;
      }

      @keyframes body-appear {
        from {
          opacity: 0;
        }

        to {
          opacity: 1;
        }
      }

      /* ── Reveal from left ── */
      .reveal-left {
        opacity: 0;
        transform: translateX(-28px);
        transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
          transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .reveal-left.in-view {
        opacity: 1;
        transform: translateX(0);
      }

      /* ── Reveal from right ── */
      .reveal-right {
        opacity: 0;
        transform: translateX(28px);
        transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
          transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .reveal-right.in-view {
        opacity: 1;
        transform: translateX(0);
      }

      /* ── Reveal scale-up (for tags, pills, badges) ── */
      .reveal-pop {
        opacity: 0;
        transform: scale(0.88) translateY(10px);
        transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
          transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .reveal-pop.in-view {
        opacity: 1;
        transform: scale(1) translateY(0);
      }

      /* ── Reveal line (horizontal lines draw in) ── */
      .reveal-line {
        opacity: 0;
        transform: scaleX(0);
        transform-origin: left;
        transition: opacity 0.4s ease,
          transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .reveal-line.in-view {
        opacity: 1;
        transform: scaleX(1);
      }

      /* ── Stagger children inside a container ── */
      .stagger-children > * {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
          transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .stagger-children.in-view > *:nth-child(1) {
        opacity: 1;
        transform: none;
        transition-delay: 0ms;
      }

      .stagger-children.in-view > *:nth-child(2) {
        opacity: 1;
        transform: none;
        transition-delay: 100ms;
      }

      .stagger-children.in-view > *:nth-child(3) {
        opacity: 1;
        transform: none;
        transition-delay: 200ms;
      }

      .stagger-children.in-view > *:nth-child(4) {
        opacity: 1;
        transform: none;
        transition-delay: 300ms;
      }

      .stagger-children.in-view > *:nth-child(5) {
        opacity: 1;
        transform: none;
        transition-delay: 400ms;
      }

      .stagger-children.in-view > *:nth-child(6) {
        opacity: 1;
        transform: none;
        transition-delay: 500ms;
      }

      /* ── Floating ambient dots (background decoration) ── */
      .ambient-dot {
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
        z-index: 0;
      }

      @keyframes float-a {
        0%,
        100% {
          transform: translateY(0) translateX(0);
          opacity: 0.4;
        }

        33% {
          transform: translateY(-18px) translateX(8px);
          opacity: 0.7;
        }

        66% {
          transform: translateY(10px) translateX(-6px);
          opacity: 0.3;
        }
      }

      @keyframes float-b {
        0%,
        100% {
          transform: translateY(0) translateX(0) rotate(0deg);
          opacity: 0.3;
        }

        50% {
          transform: translateY(20px) translateX(-12px) rotate(180deg);
          opacity: 0.6;
        }
      }

      /* ── Section separator lines that draw in ── */
      .section-draw-line {
        display: block;
        height: 1px;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(255, 255, 255, 0.08),
          transparent
        );
        width: 100%;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .section-draw-line.in-view {
        transform: scaleX(1);
      }

      /* ── Nav: smooth slide-down on load ── */
      #header {
        animation: nav-drop 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
      }

      @keyframes nav-drop {
        from {
          opacity: 0;
          transform: translateX(-50%) translateY(-20px);
        }

        to {
          opacity: 1;
          transform: translateX(-50%) translateY(0);
        }
      }

      /* ── Feature cards: hover lift refinement ── */
      .feature-card {
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1),
          box-shadow 0.5s ease;
      }

      /* ── Timeline dots: pulse on scroll-in ── */
      .timeline-dot {
        transition: box-shadow 0.4s ease, transform 0.4s ease;
      }

      .timeline-item.in-view .timeline-dot {
        animation: dot-ping 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
      }

      @keyframes dot-ping {
        0% {
          transform: scale(0);
          box-shadow: 0 0 0 0 rgba(147, 51, 234, 0.6);
        }

        60% {
          transform: scale(1.3);
          box-shadow: 0 0 0 8px rgba(147, 51, 234, 0);
        }

        100% {
          transform: scale(1);
          box-shadow: 0 0 12px rgba(147, 51, 234, 0.6);
        }
      }

      /* ── Timeline cards: alternate slide directions ── */
      .timeline-left .timeline-card {
        opacity: 0;
        transform: translateX(-24px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
          transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .timeline-right .timeline-card {
        opacity: 0;
        transform: translateX(24px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
          transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .timeline-item.in-view .timeline-left .timeline-card,
      .timeline-item.in-view .timeline-right .timeline-card {
        opacity: 1;
        transform: translateX(0);
      }

      .timeline-item.in-view .timeline-card {
        transition-delay: 0.15s;
      }

      /* ── Gallery items: staggered fade in ── */
      .gallery-item {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
          transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
          filter 0.7s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
      }

      .gallery-grid.in-view .gallery-item {
        opacity: 1;
        transform: translateY(0);
      }

      .gallery-grid.in-view .gallery-item:nth-child(1) {
        transition-delay: 0ms;
      }

      .gallery-grid.in-view .gallery-item:nth-child(2) {
        transition-delay: 60ms;
      }

      .gallery-grid.in-view .gallery-item:nth-child(3) {
        transition-delay: 120ms;
      }

      .gallery-grid.in-view .gallery-item:nth-child(4) {
        transition-delay: 180ms;
      }

      .gallery-grid.in-view .gallery-item:nth-child(5) {
        transition-delay: 240ms;
      }

      .gallery-grid.in-view .gallery-item:nth-child(6) {
        transition-delay: 300ms;
      }

      .gallery-grid.in-view .gallery-item:nth-child(7) {
        transition-delay: 360ms;
      }

      .gallery-grid.in-view .gallery-item:nth-child(8) {
        transition-delay: 420ms;
      }

      /* ── Solaris card: slide in from below with glow ── */
      .solaris-card-wrap .solaris-card {
        opacity: 0;
        transform: translateY(32px);
        transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
          transform 1s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease,
          box-shadow 0.5s ease;
      }

      .solaris-card-wrap.in-view .solaris-card {
        opacity: 1;
        transform: translateY(0);
      }

      /* ── HUD corner animation on card reveal ── */
      .solaris-card-wrap.in-view .solaris-stripe {
        animation: stripe-draw 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
      }

      @keyframes stripe-draw {
        from {
          transform: scaleY(0);
          transform-origin: top;
        }

        to {
          transform: scaleY(1);
          transform-origin: top;
        }
      }

      /* ── Bento project cards: cascade ── */
      .bento-grid .project-card {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
          transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .bento-grid.in-view .project-card:nth-child(1) {
        opacity: 1;
        transform: none;
        transition-delay: 0ms;
      }

      .bento-grid.in-view .project-card:nth-child(2) {
        opacity: 1;
        transform: none;
        transition-delay: 120ms;
      }

      .bento-grid.in-view .project-card:nth-child(3) {
        opacity: 1;
        transform: none;
        transition-delay: 240ms;
      }

      /* ── About / Join section: fade + blur ── */
      .reveal-blur {
        opacity: 0;
        filter: blur(4px);
        transform: translateY(16px);
        transition: opacity 1s ease, filter 1s ease,
          transform 1s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .reveal-blur.in-view {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
      }

      /* ── Footer items stagger ── */
      .footer-glass .grid > * {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.7s ease,
          transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .footer-glass.in-view .grid > *:nth-child(1) {
        opacity: 1;
        transform: none;
        transition-delay: 0ms;
      }

      .footer-glass.in-view .grid > *:nth-child(2) {
        opacity: 1;
        transform: none;
        transition-delay: 100ms;
      }

      .footer-glass.in-view .grid > *:nth-child(3) {
        opacity: 1;
        transform: none;
        transition-delay: 200ms;
      }

      .footer-glass.in-view .grid > *:nth-child(4) {
        opacity: 1;
        transform: none;
        transition-delay: 300ms;
      }

      /* ── Subtle parallax on section background orbs ── */
      .parallax-slow {
        will-change: transform;
      }

      /* ── Orb ambient idle pulse ── */
      .orb-1 {
        animation: orb-drift 20s ease-in-out infinite alternate,
          orb-pulse 8s ease-in-out infinite;
      }

      .orb-2 {
        animation: orb-drift-r 25s ease-in-out infinite alternate,
          orb-pulse 11s ease-in-out infinite 2s;
      }

      @keyframes orb-pulse {
        0%,
        100% {
          opacity: 1;
        }

        50% {
          opacity: 0.6;
        }
      }

      /* ── Stats section: pop the numbers ── */
      .stat-block {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.7s ease,
          transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease;
      }

      .stats-grid.in-view .stat-block:nth-child(1) {
        opacity: 1;
        transform: none;
        transition-delay: 0ms;
      }

      .stats-grid.in-view .stat-block:nth-child(2) {
        opacity: 1;
        transform: none;
        transition-delay: 80ms;
      }

      .stats-grid.in-view .stat-block:nth-child(3) {
        opacity: 1;
        transform: none;
        transition-delay: 160ms;
      }

      .stats-grid.in-view .stat-block:nth-child(4) {
        opacity: 1;
        transform: none;
        transition-delay: 240ms;
      }

      /* ── Cursor glow trail (subtle) ── */
      #cursor-glow {
        position: fixed;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: radial-gradient(
          circle,
          rgba(147, 51, 234, 0.04) 0%,
          transparent 70%
        );
        pointer-events: none;
        z-index: 9998;
        transform: translate(-50%, -50%);
        transition: left 0.15s ease, top 0.15s ease;
        will-change: left, top;
      }

      /* ── Scroll-to-top button ── */
      #scroll-top-btn {
        position: fixed;
        right: clamp(0.9rem, 2vw, 1.25rem);
        bottom: max(0.9rem, env(safe-area-inset-bottom));
        width: clamp(40px, 7vw, 46px);
        aspect-ratio: 1 / 1;
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: transparent;
        backdrop-filter: blur(14px) saturate(150%);
        -webkit-backdrop-filter: blur(14px) saturate(150%);
        color: rgba(255, 255, 255, 0.92);
        font-family: "Orbitron", sans-serif;
        font-size: 1rem;
        font-weight: 700;
        line-height: 1;
        display: grid;
        place-items: center;
        overflow: hidden;
        cursor: pointer;
        box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.95),
          0 0 18px -8px rgba(147, 51, 234, 0.6);
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px) scale(0.95);
        pointer-events: none;
        transition: opacity 0.28s ease, transform 0.28s ease,
          border-color 0.28s ease, box-shadow 0.28s ease, color 0.28s ease;
        z-index: 60;
      }

      #scroll-top-btn .scroll-top-icon {
        position: relative;
        z-index: 2;
        transform: translateY(0);
      }

      #scroll-top-btn .tech-corner {
        position: absolute;
        width: 8px;
        height: 8px;
        border-width: 1px;
        border-color: rgba(255, 255, 255, 0.42);
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: none;
        z-index: 3;
      }

      #scroll-top-btn:hover .tech-corner {
        width: 12px;
        height: 12px;
        border-color: #fff;
      }

      #scroll-top-btn::before {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        background: linear-gradient(
          135deg,
          rgba(147, 51, 234, 0.35),
          rgba(255, 255, 255, 0.12)
        );
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
      }

      #scroll-top-btn.is-visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
      }

      #scroll-top-btn:hover {
        border-color: rgba(147, 51, 234, 0.7);
        background: rgba(147, 51, 234, 0.1);
        color: #fff;
        box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.95),
          0 0 24px -6px rgba(147, 51, 234, 0.9);
      }

      #scroll-top-btn:hover::before {
        opacity: 1;
      }

      #scroll-top-btn:active {
        transform: translateY(0) scale(0.95);
      }

      #scroll-top-btn:focus-visible {
        outline: 2px solid rgba(147, 51, 234, 0.8);
        outline-offset: 2px;
      }

      /* ── Stats Section ── */
      #stats {
        position: relative;
      }

      .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.05);
      }

      @media (min-width: 768px) {
        .stats-grid {
          grid-template-columns: repeat(4, 1fr);
        }
      }

      .stat-block {
        background: #000;
        padding: 3rem 2rem;
        text-align: center;
        position: relative;
        overflow: hidden;
        transition: background 0.4s ease;
      }

      .stat-block:hover {
        background: rgba(147, 51, 234, 0.04);
      }

      .stat-block::after {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(
          ellipse at center,
          rgba(147, 51, 234, 0.08) 0%,
          transparent 70%
        );
        opacity: 0;
        transition: opacity 0.4s ease;
      }

      .stat-block:hover::after {
        opacity: 1;
      }

      .stat-num {
        font-family: "Orbitron", sans-serif;
        font-size: clamp(2.5rem, 5vw, 4rem);
        font-weight: 900;
        line-height: 1;
        background: linear-gradient(180deg, #fff 40%, #9333ea 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        display: block;
        margin-bottom: 0.5rem;
      }

      .stat-suffix {
        font-family: "Orbitron", sans-serif;
        font-size: 0.7em;
        color: rgba(147, 51, 234, 0.8);
        -webkit-text-fill-color: rgba(147, 51, 234, 0.8);
      }

      .stat-desc {
        font-family: "Space Mono", monospace;
        font-size: 0.65rem;
        letter-spacing: 0.2em;
        color: rgba(255, 255, 255, 0.35);
        text-transform: uppercase;
        margin-top: 0.25rem;
      }

      /* ── Timeline Section ── */
      #timeline {
        position: relative;
      }

      /* ── Central spine line ── */
      .timeline-spine {
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 1px;
        transform: translateX(-50%);
        background: linear-gradient(
          to bottom,
          transparent,
          rgba(147, 51, 234, 0.35) 8%,
          rgba(147, 51, 234, 0.35) 92%,
          transparent
        );
        z-index: 0;
      }

      @media (max-width: 767px) {
        .timeline-spine {
          left: 20px;
        }
      }

      /* ── Each row ── */
      .timeline-item {
        --timeline-dot-outer-size: 10px;
        --timeline-dot-center-y: 1.5rem;
        display: grid;
        grid-template-columns: 1fr 48px 1fr;
        gap: 0;
        margin-bottom: 2.5rem;
        align-items: start;
        position: relative;
        z-index: 1;
      }

      @media (max-width: 767px) {
        .timeline-item {
          grid-template-columns: 48px 1fr;
          margin-bottom: 2rem;
        }
      }

      /* ── Dot ── */
      .timeline-dot {
        width: var(--timeline-dot-outer-size);
        height: var(--timeline-dot-outer-size);
        box-sizing: border-box;
        border-radius: 50%;
        background: #9333ea;
        border: 2px solid rgba(147, 51, 234, 0.4);
        box-shadow: 0 0 14px rgba(147, 51, 234, 0.7);
        margin: 0 auto;
        margin-top: calc(
          var(--timeline-dot-center-y) - (var(--timeline-dot-outer-size) / 2)
        );
        position: relative;
        z-index: 2;
        flex-shrink: 0;
        transition: box-shadow 0.62s cubic-bezier(0.16, 1, 0.3, 1),
          transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .timeline-item:hover .timeline-dot {
        box-shadow: 0 0 18px rgba(147, 51, 234, 0.75);
        transform: scale(1.14);
      }

      /* ── Cards ── */
      .timeline-card {
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid rgba(255, 255, 255, 0.06);
        padding: 1.4rem 1.6rem;
        position: relative;
        transition: border-color 0.68s cubic-bezier(0.16, 1, 0.3, 1),
          background 0.68s cubic-bezier(0.16, 1, 0.3, 1),
          transform 0.68s cubic-bezier(0.16, 1, 0.3, 1),
          box-shadow 0.68s cubic-bezier(0.16, 1, 0.3, 1);
      }

      .timeline-card:hover {
        border-color: rgba(147, 51, 234, 0.18);
        background: rgba(147, 51, 234, 0.018);
      }

      /* Restore richer timeline hover behavior on desktop pointers. */
      @media (hover: hover) and (pointer: fine) {
        .timeline-left .timeline-card:hover {
          transform: translateX(-3px);
          box-shadow: 0 12px 24px -20px rgba(0, 0, 0, 0.64),
            0 0 14px -12px rgba(147, 51, 234, 0.26);
        }

        .timeline-right .timeline-card:hover {
          transform: translateX(3px);
          box-shadow: 0 12px 24px -20px rgba(0, 0, 0, 0.64),
            0 0 14px -12px rgba(147, 51, 234, 0.26);
        }
      }

      .timeline-left .timeline-card {
        margin-right: 1.75rem;
        text-align: right;
      }

      .timeline-right .timeline-card {
        margin-left: 1.75rem;
      }

      /* Mobile: full-width cards, no left col */
      @media (max-width: 767px) {
        .timeline-left,
        .timeline-right {
          min-width: 0;
        }

        /* Keep placeholder columns out of the mobile flow. */
        .timeline-left.hidden,
        .timeline-right.hidden {
          display: none !important;
        }

        .timeline-left:not(.hidden),
        .timeline-right:not(.hidden) {
          display: block;
          grid-column: 2;
          grid-row: 1;
        }

        .timeline-left .timeline-card,
        .timeline-right .timeline-card {
          width: 100%;
          min-width: 0;
          margin-left: 1rem;
          margin-right: 0;
          text-align: left;
          opacity: 1;
          transform: none;
        }

        .timeline-dot-col {
          grid-column: 1;
          grid-row: 1;
        }

        .timeline-item {
          grid-template-columns: 40px minmax(0, 1fr);
        }

        .timeline-date,
        .timeline-title,
        .timeline-body {
          overflow-wrap: anywhere;
          word-break: break-word;
        }
      }

      /* Horizontal connector line from dot to card */
      .timeline-left .timeline-card::after,
      .timeline-right .timeline-card::after {
        content: "";
        position: absolute;
        top: var(--timeline-dot-center-y);
        width: 1.75rem;
        height: 1px;
        background: rgba(147, 51, 234, 0.25);
      }

      .timeline-left .timeline-card::after {
        right: -1.75rem;
      }

      .timeline-right .timeline-card::after {
        left: -1.75rem;
      }

      @media (max-width: 767px) {
        .timeline-left .timeline-card::after,
        .timeline-right .timeline-card::after {
          width: 1rem;
          left: -1rem;
          right: auto;
        }
      }

      .timeline-date {
        font-family: "Orbitron", monospace;
        font-size: 0.58rem;
        letter-spacing: 0.2em;
        color: #9333ea;
        margin-bottom: 0.4rem;
        text-transform: uppercase;
      }

      .timeline-title {
        font-family: "Orbitron", sans-serif;
        font-size: clamp(0.8rem, 1.5vw, 1rem);
        font-weight: 700;
        margin-bottom: 0.4rem;
        line-height: 1.3;
      }

      .timeline-body {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.45);
        line-height: 1.7;
        font-family: "Space Mono", monospace;
      }

      .timeline-tag {
        display: inline-block;
        font-family: "Space Mono", monospace;
        font-size: 0.52rem;
        letter-spacing: 0.15em;
        color: rgba(147, 51, 234, 0.8);
        border: 1px solid rgba(147, 51, 234, 0.2);
        padding: 2px 8px;
        margin-bottom: 0.65rem;
        text-transform: uppercase;
      }

      /* ── Gallery Section ── */
      #gallery {
        position: relative;
      }

      /* ── Gallery Grid ── */
      .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
        gap: 8px;
      }

      @media (min-width: 768px) {
        .gallery-grid {
          grid-template-columns: repeat(12, 1fr);
          grid-template-rows: repeat(3, 200px);
          gap: 10px;
        }

        /* Intentional asymmetric layout */
        .gallery-item:nth-child(1) {
          grid-column: span 5;
          grid-row: span 2;
        }

        .gallery-item:nth-child(2) {
          grid-column: span 4;
          grid-row: span 1;
        }

        .gallery-item:nth-child(3) {
          grid-column: span 3;
          grid-row: span 1;
        }

        .gallery-item:nth-child(4) {
          grid-column: span 3;
          grid-row: span 2;
        }

        .gallery-item:nth-child(5) {
          grid-column: span 4;
          grid-row: span 1;
        }

        .gallery-item:nth-child(6) {
          grid-column: span 5;
          grid-row: span 1;
        }

        .gallery-item:nth-child(7) {
          grid-column: span 4;
          grid-row: span 1;
        }

        .gallery-item:nth-child(8) {
          grid-column: span 3;
          grid-row: span 1;
        }

        /* Remove old span classes on desktop */
        .gallery-item.tall {
          grid-row: unset;
        }

        .gallery-item.wide {
          grid-column: unset;
        }
      }

      .gallery-item {
        position: relative;
        overflow: hidden;
        cursor: pointer;
        background: #060606;
      }

      .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(100%) brightness(0.5) contrast(1.1);
        transition: filter 0.7s cubic-bezier(0.16, 1, 0.3, 1),
          transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
        transform: scale(1.04);
      }

      .gallery-item:hover img {
        filter: grayscale(0%) brightness(0.8) contrast(1.05);
        transform: scale(1);
      }

      /* Multi-layer overlay */
      .gallery-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.1) 45%,
            transparent 70%
          ),
          linear-gradient(135deg, rgba(147, 51, 234, 0.08) 0%, transparent 50%);
        opacity: 0;
        transition: opacity 0.45s ease;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 1.25rem 1.4rem;
        z-index: 2;
      }

      .gallery-item:hover .gallery-overlay {
        opacity: 1;
      }

      .gallery-caption {
        font-family: "Orbitron", monospace;
        font-size: 0.58rem;
        letter-spacing: 0.2em;
        color: rgba(255, 255, 255, 0.9);
        text-transform: uppercase;
        display: flex;
        align-items: center;
        gap: 8px;
      }

      .gallery-caption::before {
        content: "";
        display: inline-block;
        width: 14px;
        height: 1px;
        background: #9333ea;
        flex-shrink: 0;
      }

      /* Index number top-right */
      .gallery-index {
        position: absolute;
        top: 1rem;
        right: 1rem;
        font-family: "Space Mono", monospace;
        font-size: 8px;
        letter-spacing: 0.2em;
        color: rgba(255, 255, 255, 0.25);
        z-index: 3;
        opacity: 0;
        transform: translateY(-4px);
        transition: opacity 0.35s ease, transform 0.35s ease;
      }

      .gallery-item:hover .gallery-index {
        opacity: 1;
        transform: translateY(0);
      }

      /* Hover border via outline */
      .gallery-item::after {
        content: "";
        position: absolute;
        inset: 0;
        border: 1px solid transparent;
        z-index: 4;
        transition: border-color 0.4s ease;
        pointer-events: none;
      }

      .gallery-item:hover::after {
        border-color: rgba(147, 51, 234, 0.35);
      }

      /* Scan line on hover */
      .gallery-item::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(
          90deg,
          transparent,
          rgba(147, 51, 234, 0.7),
          transparent
        );
        z-index: 5;
        transform: translateY(-2px);
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
      }

      .gallery-item:hover::before {
        opacity: 1;
        animation: gallery-sweep 1.2s ease forwards;
      }

      @keyframes gallery-sweep {
        from {
          transform: translateY(0);
          opacity: 1;
        }

        to {
          transform: translateY(300px);
          opacity: 0;
        }
      }

      /* Lightbox */
      #lightbox {
        position: fixed;
        inset: 0;
        z-index: 100;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(0, 0, 0, 0.9);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.35s ease, visibility 0.35s ease;
      }

      #lightbox.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
      }

      #lightbox img {
        max-width: 90vw;
        max-height: 85vh;
        object-fit: contain;
        border: 1px solid rgba(255, 255, 255, 0.08);
      }

      #lightbox-close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        font-family: "Orbitron", monospace;
        font-size: 0.7rem;
        letter-spacing: 0.2em;
        color: rgba(255, 255, 255, 0.5);
        cursor: pointer;
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 0.5rem 1rem;
        transition: all 0.2s ease;
      }

      #lightbox-close:hover {
        color: #fff;
        border-color: rgba(255, 255, 255, 0.3);
      }

      /* ── Section Title Word-Reveal Animation ── */
      .section-title-word {
        display: inline-block;
        overflow: hidden;
        vertical-align: top;
        margin-right: 0.25em;
      }

      .section-title-word span {
        display: inline-block;
        transform: translateY(110%);
        opacity: 0;
        transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
          opacity 0.7s ease;
      }

      .in-view .section-title-word span,
      .section-title-wrap.in-view .section-title-word span {
        transform: translateY(0);
        opacity: 1;
      }

      .section-title-word:nth-child(1) span {
        transition-delay: 0ms;
      }

      .section-title-word:nth-child(2) span {
        transition-delay: 80ms;
      }

      .section-title-word:nth-child(3) span {
        transition-delay: 160ms;
      }

      .section-title-word:nth-child(4) span {
        transition-delay: 240ms;
      }

      .section-title-word:nth-child(5) span {
        transition-delay: 320ms;
      }

      /* Thin line that draws under the title */
      .section-title-line {
        display: none;
      }


            /* ── Solaris V1 Card — Glass Edition ── */
            /* ── Solaris V1 Card — Glass Edition ── */
            .solaris-card {
              position: relative;
              background: rgba(255, 255, 255, 0.02);
              backdrop-filter: blur(40px);
              -webkit-backdrop-filter: blur(40px);
              border: 1px solid rgba(255, 255, 255, 0.1);
              box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset,
                0 40px 100px -30px rgba(0, 0, 0, 0.8),
                0 0 80px -20px rgba(147, 51, 234, 0.1);
              overflow: hidden;
              transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
            }

            .solaris-card:hover {
              border-color: rgba(147, 51, 234, 0.4);
              background: rgba(255, 255, 255, 0.03);
              box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05) inset,
                0 40px 120px -30px rgba(0, 0, 0, 0.9),
                0 0 100px -15px rgba(147, 51, 234, 0.2);
              transform: translateY(-5px);
            }

            /* Frosted glass background */
            .solaris-card::before {
              content: "";
              position: absolute;
              inset: 0;
              background: radial-gradient(
                ellipse 120% 80% at 70% 50%,
                rgba(147, 51, 234, 0.08) 0%,
                transparent 60%
              );
              pointer-events: none;
              z-index: 0;
            }

            /* Animated grid scanlines overlay */
            .solaris-grid-overlay {
              position: absolute;
              inset: 0;
              background-image: linear-gradient(
                  rgba(147, 51, 234, 0.08) 1px,
                  transparent 1px
                ),
                linear-gradient(
                  90deg,
                  rgba(147, 51, 234, 0.08) 1px,
                  transparent 1px
                );
              background-size: 40px 40px;
              z-index: 2;
              pointer-events: none;
              opacity: 0.2;
              transition: opacity 0.6s ease;
            }

            .solaris-card:hover .solaris-grid-overlay {
              opacity: 0.4;
            }

            /* NO SWEEP LINE ANIMATION */

            /* SPEC GRID */
            .solaris-spec-grid {
              display: grid;
              grid-template-columns: repeat(2, 1fr);
              gap: 1.5rem;
              border-top: 1px solid rgba(255, 255, 255, 0.05);
              border-bottom: 1px solid rgba(255, 255, 255, 0.05);
              padding: 2rem 0;
              margin: 2rem 0;
            }

            .solaris-spec-item {
              border-left: 1px solid rgba(147, 51, 234, 0.2);
              padding-left: 1rem;
            }

            .solaris-spec-label {
              font-family: "Space Mono", monospace;
              font-size: 9px;
              text-transform: uppercase;
              letter-spacing: 0.15em;
              color: rgba(255, 255, 255, 0.3);
              margin-bottom: 0.5rem;
            }

            .solaris-spec-value {
              font-family: "Orbitron", sans-serif;
              font-size: 1.1rem;
              font-weight: 700;
              color: #fff;
            }

            /* TELEMETRY SECTION */
            .solaris-telemetry {
              background: rgba(0, 0, 0, 0.2);
              border: 1px solid rgba(255, 255, 255, 0.05);
              padding: 1.25rem;
              font-family: "Space Mono", monospace;
              position: relative;
              overflow: hidden;
            }

            .solaris-telemetry::after {
              content: "";
              position: absolute;
              inset: 0;
              background: repeating-linear-gradient(
                0deg,
                transparent,
                transparent 1px,
                rgba(147, 51, 234, 0.03) 1px,
                rgba(147, 51, 234, 0.03) 2px
              );
              pointer-events: none;
            }

            .telemetry-row {
              display: flex;
              justify-content: space-between;
              font-size: 9px;
              margin-bottom: 0.5rem;
              color: rgba(255, 255, 255, 0.4);
            }

            .telemetry-bar-bg {
              height: 2px;
              background: rgba(255, 255, 255, 0.05);
              width: 100%;
              margin-top: 4px;
              position: relative;
            }

            .telemetry-bar-fill {
              position: absolute;
              height: 100%;
              background: #9333ea;
              box-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
              transition: width 0.3s ease;
            }

            /* Image cinematic tint */
            .solaris-img {
              width: 100%;
              height: 100%;
              object-fit: cover;
              filter: grayscale(80%) brightness(0.4) contrast(1.2);
              transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
              transform: scale(1.1);
            }

            .solaris-card:hover .solaris-img {
              filter: grayscale(10%) brightness(0.6) contrast(1.1);
              transform: scale(1);
            }

            /* Glass overlay on image col */
            .solaris-image-col {
              position: relative;
            }

            .solaris-image-col::after {
              content: "";
              position: absolute;
              inset: 0;
              background: linear-gradient(
                135deg,
                rgba(255, 255, 255, 0.04) 0%,
                transparent 50%
              );
              pointer-events: none;
              z-index: 3;
            }

            /* Unit record chip (image overlay) */
            .solaris-chip {
              position: absolute;
              bottom: 0;
              left: 0;
              right: 0;
              padding: 1.25rem 1.5rem;
              background: linear-gradient(
                to top,
                rgba(0, 0, 0, 0.85) 0%,
                transparent 100%
              );
              z-index: 10;
              display: flex;
              align-items: flex-end;
              justify-content: space-between;
            }

            /* Corner annotation marks */
            .solaris-annot {
              position: absolute;
              font-family: "Space Mono", monospace;
              font-size: 7.5px;
              letter-spacing: 0.25em;
              color: rgba(255, 255, 255, 0.12);
              pointer-events: none;
              z-index: 20;
            }
          

        /* ── About: word-reveal animation ── */
        .word-reveal-block {
          overflow: hidden;
          display: block;
        }

        .word-reveal {
          display: inline-block;
          overflow: hidden;
          vertical-align: top;
          margin-right: 0.28em;
          margin-bottom: 0.1em;
        }

        .word-reveal span {
          display: inline-block;
          transform: translateY(110%);
          opacity: 0;
          transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
            opacity 0.5s ease;
        }

        .about-text-block.in-view .word-reveal span {
          transform: translateY(0);
          opacity: 1;
        }

        /* heading char split */
        .char-reveal {
          display: inline-block;
          overflow: hidden;
          vertical-align: top;
        }

        .char-reveal span {
          display: inline-block;
          transform: translateY(105%) rotate(3deg);
          opacity: 0;
          transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
            opacity 0.4s ease;
        }

        .about-heading.in-view .char-reveal span {
          transform: translateY(0) rotate(0deg);
          opacity: 1;
        }

        /* about label fade */
        .about-label {
          opacity: 0;
          transform: translateX(-12px);
          transition: opacity 0.5s ease, transform 0.5s ease;
        }

        .about-label.in-view {
          opacity: 1;
          transform: translateX(0);
        }

        /* image reveal */
        .about-img-wrap {
          opacity: 0;
          transform: scale(0.97) translateY(20px);
          transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
            transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
        }

        .about-img-wrap.in-view {
          opacity: 1;
          transform: scale(1) translateY(0);
        }

        /* thin accent line that draws beside the block */
        .about-accent-line {
          position: absolute;
          left: 0;
          top: 0;
          bottom: 0;
          width: 2px;
          background: linear-gradient(
            to bottom,
            transparent,
            rgba(147, 51, 234, 0.5) 30%,
            rgba(147, 51, 234, 0.5) 70%,
            transparent
          );
          transform: scaleY(0);
          transform-origin: top;
          transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
        }

        .about-text-block.in-view .about-accent-line {
          transform: scaleY(1);
        }

      /* Mobile performance: keep visuals but reduce expensive effects. */
      @media (max-width: 767px) {
        .grid-orb {
          animation: none !important;
          filter: blur(56px);
          opacity: 0.65;
        }

        #home .text-gradient-grey {
          background: none;
          -webkit-text-fill-color: currentColor;
          color: rgba(255, 255, 255, 0.94);
        }

        #home .text-gradient-grey > span {
          opacity: 1 !important;
        }

        .nav-floating {
          backdrop-filter: blur(24px) saturate(150%) !important;
          -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
        }

        #mobile-menu {
          backdrop-filter: blur(10px);
          -webkit-backdrop-filter: blur(10px);
        }

        #cursor-glow {
          display: none !important;
        }

        #scroll-top-btn {
          right: 0.75rem;
          bottom: max(0.75rem, env(safe-area-inset-bottom));
          width: clamp(34px, 11vw, 40px);
          font-size: 0.9rem;
        }

        #scroll-top-btn .tech-corner {
          width: 7px;
          height: 7px;
        }

        #scroll-top-btn:hover .tech-corner {
          width: 10px;
          height: 10px;
        }
      }

      @supports (content-visibility: auto) {
        #projects,
        #about,
        #gallery,
        #timeline,
        #join,
        footer {
          content-visibility: auto;
          contain-intrinsic-size: 1px 900px;
        }
      }
