
/* Phase 5 Upgrades */

/* Testimonials */
.t-avatar { border: 2px solid rgba(255,255,255,0.1); outline: 2px solid var(--av-color); outline-offset: 2px; }
.t-stars { font-size: 14px; } /* Already accessible via aria-label */

/* FAQ */
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s ease, margin 0.4s ease; opacity: 0; }
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; margin-top: 16px; opacity: 1; }
.faq-item { border-left: 2px solid transparent; transition: border-color 0.3s; padding-left: 20px; margin-left: -22px; }
.faq-item.open { border-color: var(--neon-v); }
.faq-q { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; }
.faq-icon { transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--neon-v); }

/* Contact Mesh */
.mesh-contact-wrapper { animation: mesh-breathe 8s ease-in-out infinite alternate; }
@keyframes mesh-breathe { 0% { background-size: 100% 100%; } 100% { background-size: 150% 150%; } }

/* Footer Links & Floating CTA */
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 40px; }
.footer-links a { color: var(--muted); text-transform: uppercase; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.huge-footer { min-height: 50vh; display: flex; flex-direction: column; justify-content: center; padding-bottom: 40px; }
@media (max-width: 720px) { .huge-footer { min-height: 40vh; } .massive-text { font-size: 15vw !important; transform: none !important; } }
.float-cta { padding-bottom: env(safe-area-inset-bottom); transition: transform 0.4s ease, opacity 0.4s ease; }
.float-cta.hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }


/* Phase 3 & 4 Upgrades */

/* Header ScrollSpy & Mobile Drawer Trap */
.nav-link.active { color: var(--text); font-weight: 800; text-shadow: 0 0 10px var(--neon-v); }

/* Hero Asymmetry & Typography */
.h1 { text-wrap: balance; }
.hero-grid { grid-template-columns: 2fr 1.3fr !important; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr !important; } .console { transform: scale(0.9); transform-origin: top center; } }

.tt-proof-icon {
      position: absolute;
      top: 18px; left: 20px;
      width: 32px; height: 32px;
      display: flex; align-items: center; justify-content: center;
      background: rgba(131,46,255,0.12);
      border: 1px solid rgba(131,46,255,0.25);
      border-radius: 8px;
      color: var(--neon-p);
      font-size: 14px;
      margin: 0;
    }

/* Marquee / Tech Ticker */
.marquee-container:hover .marquee, .marquee-container:focus-within .marquee { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { 
  .marquee-container .marquee { animation: none !important; display: flex; flex-wrap: wrap; justify-content: center; } 
  .hero-visual, .console, .preloader-mark, .tt-noise { animation: none !important; transition: none !important; }
}

/* Stats */
.stat-item { position: relative; }
.stat-item:not(:last-child)::after { content: ''; position: absolute; right: -20px; top: 20px; bottom: 20px; width: 1px; background: linear-gradient(to bottom, transparent, var(--line), transparent); }
@media (max-width: 720px) { .stat-item::after { display: none; } }

/* Bento Services */
.bento-card { backdrop-filter: blur(10px); }
.bento-card::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E"); pointer-events: none; border-radius: inherit; }
.bento-icon { font-size: 28px; color: var(--neon-v); margin-bottom: 20px; display: block; }
.bento-num { display: none; } /* Remove 01, 02 text */

/* Skills */
.skills-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
@media (max-width: 720px) { .skills-grid { grid-template-columns: 1fr; } }
.skill-meta { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.skill-percent { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--neon-v); }
.skill-track { height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; }

/* Work */
.project { width: 45vw; max-width: 600px; aspect-ratio: 16/10; height: auto; }
@media (max-width: 720px) { 
  .project { width: 85vw; scroll-snap-align: center; }
}

/* Process */
.sticky-card { display: flex; gap: 40px; align-items: center; transition: transform 0.5s ease, opacity 0.5s ease; transform-origin: top center; }
.sticky-card-left { flex: 1; }
.sticky-card-right { flex: 1; min-height: 300px; border-radius: var(--radius-lg); overflow: hidden; position: relative; border: 1px solid rgba(131,46,255,0.1); }
.sticky-card-right img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) { .sticky-card { flex-direction: column; } .sticky-card-right { min-height: 200px; width: 100%; } }


/* Phase 2: Global Shell */
.tt-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 9999;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
}
.preloader-mark {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: var(--text);
  animation: mark-pulse 1.2s cubic-bezier(0.16, 1, 0.3, 1) infinite alternate;
}
@keyframes mark-pulse {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.05); opacity: 1; text-shadow: 0 0 20px var(--neon-v); }
}
@media (max-width: 720px) {
  .scroll-progress { height: 2px !important; box-shadow: 0 0 10px var(--neon-p) !important; }
  .avail-banner { padding: 8px 20px !important; font-size: 11px !important; }
}

@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
    
    :root {
      color-scheme: dark;

      --bg: #0d0518;
      --bg-2: #130822;
      --bg-card: rgba(22, 8, 42, 0.85);
      --line: rgba(200, 140, 255, .18);
      --line-soft: rgba(200, 140, 255, .09);

      --text: #f5f0ff;
      --soft: #d4c8f0;
      --muted: #9b88be;

      --cyan: #832eff;
      --blue: #a855f7;
      --violet: #c084fc;
      --pink: #ff4ff3;
      --green: #8cffc8;
      --gold: #ffd78c;

      --neon-v: #832eff;
      --neon-p: #ff4ff3;

      --radius-xl: 34px;
      --radius-lg: 24px;
      --radius-md: 18px;

      --container: 1180px;
      --shadow: 0 34px 100px rgba(0, 0, 0, .65);
      --glow: 0 0 80px rgba(131, 46, 255, .28);
      --glow-p: 0 0 80px rgba(255, 79, 243, .22);

      --font-body: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
      --font-display: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

      --banner-h: 44px;
      --header-gap: 14px;
      --site-top: calc(var(--banner-h) + var(--header-gap) + 56px);
      --site-top-compact: calc(var(--header-gap) + 56px);
    }

    * { box-sizing: border-box; }

    html {
      min-width: 320px;
      /* removed smooth scroll since GSAP scrub feels better */
      background: linear-gradient(180deg, #0d0518, #100320);
    }

    body {
      min-width: 320px;
      margin: 0;
      overflow-x: hidden;
      color: var(--text);
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.6;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
    }
    
    .page-wrapper {
      position: relative;
      z-index: 2;
      padding-top: var(--site-top);
      transition: padding-top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      background:
        radial-gradient(1200px 800px at 8% -8%, rgba(131, 46, 255, .22), transparent 60%),
        radial-gradient(900px 700px at 94% 0%, rgba(255, 79, 243, .15), transparent 58%),
        radial-gradient(800px 600px at 50% 30%, rgba(192, 132, 252, .06), transparent 65%),
        linear-gradient(160deg, #0d0518 0%, #150a28 45%, #0a0315 100%);
      background-color: var(--bg);
      margin-bottom: 95vh;
      box-shadow: 0 40px 140px rgba(0,0,0,0.95);
      border-bottom: 1px solid var(--line-soft);
    }

    /* Animated floating orbs */
    .orb {
      position: fixed;
      border-radius: 50%;
      pointer-events: none;
      z-index: 0;
      filter: blur(80px);
      animation: orb-float 18s ease-in-out infinite alternate;
      opacity: 0.45;
    }
    .orb-1 {
      width: 700px; height: 700px;
      left: -200px; top: -100px;
      background: radial-gradient(circle, rgba(131,46,255,0.6), rgba(131,46,255,0) 70%);
      animation-duration: 22s;
    }
    .orb-2 {
      width: 600px; height: 600px;
      right: -150px; top: 20%;
      background: radial-gradient(circle, rgba(255,79,243,0.5), rgba(255,79,243,0) 70%);
      animation-duration: 18s;
      animation-delay: -9s;
    }
    .orb-3 {
      width: 500px; height: 500px;
      left: 30%; bottom: 10%;
      background: radial-gradient(circle, rgba(192,132,252,0.4), rgba(192,132,252,0) 70%);
      animation-duration: 26s;
      animation-delay: -5s;
    }
    @keyframes orb-float {
      0%   { transform: translate(0, 0) scale(1); }
      33%  { transform: translate(60px, -80px) scale(1.08); }
      66%  { transform: translate(-40px, 60px) scale(0.95); }
      100% { transform: translate(30px, -40px) scale(1.04); }
    }

    .page-wrapper::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -2;
      pointer-events: none;
      background:
        linear-gradient(rgba(180,100,255,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180,100,255,.04) 1px, transparent 1px);
      background-size: 80px 80px;
      mask-image: radial-gradient(ellipse at top, #000 10%, transparent 80%);
    }

    .cursor-glow {
      position: fixed;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      background: radial-gradient(520px 520px at var(--mx, 50%) var(--my, -20%), rgba(131, 46, 255, .12), transparent 62%);
      opacity: .8;
      transition: opacity .3s ease;
    }

    a { color: inherit; text-decoration: none; }
    img, svg { max-width: 100%; display: block; }
    button { font: inherit; cursor: pointer; }
    
    .container {
      position: relative;
      z-index: 10;
      width: min(var(--container), calc(100% - clamp(24px, 6vw, 88px)));
      margin-inline: auto;
    }

    .section {
      position: relative;
      padding: clamp(72px, 8vw, 100px) 0;
    }

    .section::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: .55;
      background: radial-gradient(900px 420px at 8% 0%, rgba(131,46,255,.06), transparent 62%);
    }

    .section > .container {
      position: relative;
      z-index: 1;
    }

    #services { background: linear-gradient(180deg, rgba(131,46,255,.04) 0%, transparent 28%); }
    #skills { background: linear-gradient(180deg, transparent, rgba(255,79,243,.03) 50%, transparent); }
    #social-proof { background: linear-gradient(180deg, rgba(131,46,255,.05) 0%, transparent 40%); }

    /* Typography */
    .h1, .h2, .h3 {
      margin: 0;
      min-width: 0;
      overflow-wrap: anywhere;
      font-family: var(--font-display);
      font-weight: 900;
      letter-spacing: -.05em;
    }

    .h1 {
      max-width: 900px;
      margin-top: 24px;
      font-size: clamp(46px, 6.5vw, 90px);
      line-height: 1.0;
      text-shadow: 0 0 80px rgba(131,46,255,.15);
    }

    .h2 {
      max-width: 880px;
      margin-top: 16px;
      font-size: clamp(32px, 4.1vw, 55px);
      line-height: 1.12;
    }

    .h3 {
      font-size: clamp(21px, 2vw, 27px);
      line-height: 1.18;
    }

    .lead {
      max-width: 720px;
      margin: 24px 0 0;
      color: var(--muted);
      font-size: clamp(16px, 1.35vw, 19px);
      line-height: 1.75;
      font-weight: 500;
    }

    .text {
      margin: 0;
      color: var(--muted);
      font-size: 15px;
      line-height: 1.72;
    }

    .gradient-text {
      color: transparent;
      background: linear-gradient(110deg, #ffffff 0%, #e8ccff 30%, #832eff 65%, #ff4ff3 100%);
      background-clip: text;
      -webkit-background-clip: text;
    }

    .label {
      color: var(--cyan);
      font-size: 12px;
      line-height: 1.3;
      font-weight: 900;
      letter-spacing: .14em;
      text-transform: uppercase;
    }

    .eyebrow {
      width: fit-content;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 9px 18px;
      border: 1px solid rgba(131,46,255,.35);
      border-radius: 999px;
      color: var(--violet);
      background: rgba(131,46,255,.10);
      box-shadow: inset 0 1px 0 rgba(200,150,255,.12), 0 0 20px rgba(131,46,255,.15);
      backdrop-filter: blur(18px);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .10em;
      text-transform: uppercase;
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--pink);
      box-shadow: 0 0 20px rgba(255, 79, 243, .85);
    }

    /* Buttons */
    .btn-row {
      display: flex;
      flex-wrap: wrap;
      align-items: stretch;
      gap: 14px;
      margin-top: 36px;
    }

    .btn,
    .btn-ultra,
    .float-cta-btn {
      position: relative;
      min-height: 52px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      padding: 14px 28px;
      box-sizing: border-box;
      border: 1px solid rgba(255,79,243,.35);
      border-radius: 999px;
      color: #fff;
      background: linear-gradient(135deg, #832eff 0%, #a855f7 48%, #ff4ff3 100%);
      box-shadow:
        0 14px 40px rgba(131, 46, 255, .38),
        inset 0 1px 0 rgba(255, 255, 255, .22);
      font-size: 14px;
      font-weight: 800;
      line-height: 1.2;
      text-align: center;
      white-space: nowrap;
      letter-spacing: .03em;
      text-decoration: none;
      transition:
        transform .25s cubic-bezier(.16, 1, .3, 1),
        box-shadow .25s ease,
        border-color .25s ease,
        background .25s ease,
        color .25s ease;
    }

    .btn::after,
    .btn-ultra::after {
      content: "→";
      font-size: 1.05em;
      line-height: 1;
      opacity: .92;
      transition: transform .25s ease;
    }

    .btn:hover,
    .btn-ultra:hover {
      transform: translateY(-2px);
      box-shadow:
        0 22px 56px rgba(131, 46, 255, .5),
        0 0 32px rgba(255, 79, 243, .22),
        inset 0 1px 0 rgba(255, 255, 255, .28);
    }

    .btn:hover::after,
    .btn-ultra:hover::after {
      transform: translateX(3px);
    }

    .btn:active,
    .btn-ultra:active {
      transform: translateY(0) scale(0.99);
    }

    .btn--ghost {
      color: var(--soft);
      border-color: rgba(131,46,255,.4);
      background: rgba(131,46,255,.1);
      box-shadow: inset 0 1px 0 rgba(200,150,255,.14);
      backdrop-filter: blur(14px);
    }

    .btn--ghost::after {
      content: none;
    }

    .btn--ghost:hover {
      color: #fff;
      border-color: rgba(255,79,243,.55);
      background: rgba(131,46,255,.2);
      box-shadow:
        inset 0 1px 0 rgba(200,150,255,.2),
        0 12px 36px rgba(131,46,255,.25);
    }

    /* Nav */
    .header { position: sticky; top: 14px; z-index: 50; padding-top: 14px; }
    .nav {
      width: min(var(--container), calc(100% - clamp(20px, 5vw, 76px)));
      min-height: 68px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin: 0 auto;
      padding: 10px 12px 10px 18px;
      border: 1px solid rgba(131,46,255,.25);
      border-radius: 999px;
      background: linear-gradient(180deg, rgba(20, 8, 40, .88), rgba(12, 4, 24, .80));
      box-shadow: 0 24px 70px rgba(0,0,0,.5), inset 0 1px 0 rgba(200,150,255,.10), 0 0 30px rgba(131,46,255,.08);
      backdrop-filter: blur(32px);
      -webkit-backdrop-filter: blur(32px);
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      font-family: var(--font-display);
      font-size: 15px;
      font-weight: 800;
      letter-spacing: -.02em;
    }
    .brand-mark {
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      border-radius: 16px;
      color: #061016;
      background:
        radial-gradient(circle at 30% 18%, rgba(255,255,255,.94), transparent 22%),
        conic-gradient(from var(--spin), var(--neon-v), var(--violet), var(--neon-p), var(--neon-v));
      box-shadow: 0 14px 36px rgba(131, 46, 255, .45);
      font-size: 13px;
      font-weight: 900;
      animation: spin 8s linear infinite;
    }
    @keyframes spin { 100% { --spin: 360deg; } }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 4px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 800;
    }
    .nav-links a {
      padding: 10px 14px;
      border-radius: 999px;
      transition: color .2s ease, background .2s ease;
    }
    .nav-links a:hover { color: var(--text); background: rgba(255,255,255,.08); }

    /* Hero */
    .hero {
      position: relative;
      padding: clamp(32px, 5vw, 64px) 0 clamp(90px, 10vw, 150px);
    }
    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
      gap: clamp(40px, 6vw, 80px);
      align-items: center;
    }

    .proof-grid {
      max-width: 680px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin-top: 36px;
    }
    .proof {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 24px;
      min-height: 140px;
      border: 1px solid var(--line-soft);
      border-radius: var(--radius-md);
      background:
        radial-gradient(160px 90px at 12% 0%, rgba(131,46,255,.18), transparent 70%),
        linear-gradient(160deg, rgba(131,46,255,.08), rgba(255,79,243,.04));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 12px 32px rgba(0,0,0,.22);
      transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    }
    .proof:hover {
      transform: translateY(-4px);
      border-color: rgba(131,46,255,.35);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 18px 40px rgba(131,46,255,.18);
    }
    .proof > span:not(.tt-proof-icon) {
      display: block;
      margin-top: auto; /* Pushes text to bottom perfectly */
      color: var(--muted);
      font-size: 11px;
      font-weight: 900;
      letter-spacing: .09em;
      text-transform: uppercase;
    }
    .proof strong {
      display: block;
      margin-top: 14px;
      font-family: var(--font-display);
      font-size: clamp(24px, 2.5vw, 32px);
      line-height: 1.05;
      letter-spacing: -.035em;
    }

    /* Console Graphic */
    .console {
      position: relative;
      min-height: 560px;
      padding: 20px;
      border: 1px solid rgba(131,46,255,.35);
      border-radius: var(--radius-xl);
      background:
        radial-gradient(500px 320px at 30% 0%, rgba(131,46,255,.18), transparent 65%),
        radial-gradient(400px 280px at 95% 30%, rgba(255,79,243,.14), transparent 60%),
        linear-gradient(180deg, rgba(30,10,60,.92), rgba(15,5,30,.95));
      box-shadow: var(--shadow), var(--glow), 0 0 0 1px rgba(200,150,255,.05);
      overflow: hidden;
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      transform-style: preserve-3d;
      transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
      transition: transform .1s ease;
    }
    .console::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(to right, rgba(180,100,255,.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(180,100,255,.05) 1px, transparent 1px);
      background-size: 40px 40px;
      mask-image: radial-gradient(circle at 50% 40%, #000, transparent 70%);
    }

    .console-inner { position: relative; z-index: 1; display: grid; gap: 16px; }
    .console-top { display: flex; align-items: center; justify-content: space-between; }
    .traffic { display: flex; gap: 7px; }
    .traffic span { width: 10px; height: 10px; border-radius: 50%; }
    .traffic span:nth-child(1) { background: #ff6179; }
    .traffic span:nth-child(2) { background: var(--gold); }
    .traffic span:nth-child(3) { background: var(--green); }
    
    .status {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border: 1px solid var(--line-soft);
      border-radius: 999px;
      color: var(--soft);
      background: rgba(0,0,0,.28);
      font-size: 12px;
      font-weight: 850;
    }

    .screen-title {
      padding: 24px;
      border: 1px solid var(--line-soft);
      border-radius: var(--radius-lg);
      background: radial-gradient(280px 180px at 18% 0%, rgba(131,46,255,.14), transparent 70%), rgba(0,0,0,.30);
    }
    .screen-title small { color: var(--cyan); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
    .screen-title strong { display: block; margin-top: 12px; font-family: var(--font-display); font-size: clamp(26px, 3vw, 38px); line-height: 1.08; letter-spacing: -.04em; }

    .metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .metric { padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .05); }
    .metric span { color: var(--muted); font-size: 12px; font-weight: 850; }
    .metric strong { display: block; margin-top: 10px; font-family: var(--font-display); font-size: 34px; line-height: 1; }
    .metric-line { height: 6px; margin-top: 18px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
    .metric-line i { display: block; width: var(--w); height: 100%; background: linear-gradient(90deg, var(--neon-v), var(--violet), var(--neon-p)); }

    /* Infinite Marquee Block */
    .marquee-container {
      position: relative;
      padding: 40px 0;
      border-top: 1px solid var(--line-soft);
      border-bottom: 1px solid var(--line-soft);
      background: rgba(0,0,0,.3);
      overflow: hidden;
      display: flex;
      white-space: nowrap;
    }
    .marquee-container::before, .marquee-container::after {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      width: 150px;
      z-index: 2;
    }
    .marquee-container::before { left: 0; background: linear-gradient(90deg, #0d0518, transparent); }
    .marquee-container::after { right: 0; background: linear-gradient(-90deg, #0d0518, transparent); }
    .marquee {
      display: inline-flex;
      gap: 40px;
      padding-right: 40px;
      animation: marquee 30s linear infinite;
    }
    .marquee-item {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      font-family: var(--font-display);
      font-size: 24px;
      font-weight: 800;
      color: var(--soft);
      opacity: 0.6;
      transition: opacity 0.3s ease;
    }
    .marquee-item:hover { opacity: 1; }
    .marquee-item::after {
      content: "✦";
      color: var(--pink);
      font-size: 18px;
    }
    @keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }

    /* Section Head */
    

    /* Bento Grid (Capabilities) */
    .bento-grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      grid-auto-rows: minmax(280px, auto);
      gap: 18px;
    }

    .bento-grid:has(.bento-card:hover) .bento-card:not(:hover) {
      opacity: 0.5;
      filter: grayscale(40%) blur(1px);
    }

    .bento-card {
      position: relative;
      border: 1px solid var(--line);
      border-radius: var(--radius-xl);
      background:
        radial-gradient(400px 200px at 10% 0%, rgba(131,46,255,.12), transparent 70%),
        linear-gradient(180deg, rgba(25,8,50,.85), rgba(13,5,25,.90));
      box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
      padding: 0;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease, border-color .3s ease, opacity .35s ease, filter .35s ease;
    }

    .bento-card:hover {
      transform: translateY(-6px);
      border-color: rgba(131,46,255,.5);
      box-shadow: var(--shadow), 0 0 30px rgba(131,46,255,.25);
      z-index: 10;
      animation: neon-border-pulse 2.4s ease-in-out infinite;
    }

    .bento-card.span-8 { grid-column: span 8; }
    .bento-card.span-4 { grid-column: span 4; }
    .bento-card.span-6 { grid-column: span 6; }

    .bento-visual {
      width: 100%;
      height: 200px;
      background-size: cover;
      background-position: center;
      border-radius: var(--radius-xl) var(--radius-xl) 0 0;
      flex-shrink: 0;
      position: relative;
      overflow: hidden;
    }
    .bento-visual::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 30%, rgba(13,5,26,0.75) 100%);
    }

    .bento-content {
      padding: 28px 32px 32px;
      display: flex;
      flex-direction: column;
      flex: 1;
    }

    .bento-icon {
      width: 48px;
      height: 48px;
      display: grid;
      place-items: center;
      margin-bottom: 20px;
      border: 1px solid rgba(131, 46, 255, 0.4);
      border-radius: 12px;
      color: var(--neon-v);
      background: rgba(131, 46, 255, 0.1);
      box-shadow: inset 0 0 10px rgba(131, 46, 255, 0.2), 0 4px 12px rgba(131, 46, 255, 0.15);
      font-size: 15px;
      font-weight: 900;
    }

    .bento-card h3 {
      font-family: var(--font-display);
      font-size: 24px;
      line-height: 1.15;
      margin: 0 0 10px;
      letter-spacing: -.03em;
    }

    .bento-card p {
      color: var(--muted);
      font-size: 15px;
      line-height: 1.65;
      margin: 0;
      max-width: 480px;
    }


    .project {
      position: relative;
      width: 440px;
      flex: 0 0 auto;
      display: flex;
      flex-direction: column;
      border: 1px solid rgba(131,46,255,.2);
      border-radius: 28px;
      background: linear-gradient(160deg, rgba(25,8,50,.95) 0%, rgba(12,4,22,.98) 100%);
      box-shadow: 0 20px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(200,150,255,.08);
      backdrop-filter: blur(20px);
      transition: transform .5s cubic-bezier(.16,1,.3,1), box-shadow .5s ease, border-color .5s ease, opacity .4s ease, filter .4s ease;
      overflow: hidden;
      cursor: pointer;
    }
    .project::after {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 28px;
      background: linear-gradient(135deg, rgba(131,46,255,.12) 0%, transparent 60%, rgba(255,79,243,.08) 100%);
      opacity: 0;
      transition: opacity .4s ease;
      pointer-events: none;
    }
    .project:hover::after { opacity: 1; }
    .project:hover {
      transform: translateY(-12px) scale(1.02);
      border-color: rgba(131,46,255,.55);
      box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 50px rgba(131,46,255,.25), inset 0 1px 0 rgba(200,150,255,.15);
      z-index: 10;
    }
    .project-visual {
      position: relative;
      aspect-ratio: 4/3;
      height: auto;
      min-height: 280px;
      margin: 14px 14px 0;
      border-radius: 20px;
      border: 1px solid rgba(131,46,255,.15);
      background-color: #110220;
      background-position: center top;
      background-size: cover;
      overflow: hidden;
      transition: border-color .4s ease;
    }
    .project:hover .project-visual { border-color: rgba(131,46,255,.35); }
    .project-visual::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, transparent 40%, rgba(10,2,22,.8) 100%);
      pointer-events: none;
    }
    .project-visual::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, transparent 40%);
      pointer-events: none;
      z-index: 1;
    }
    .domain {
      position: absolute;
      right: 12px;
      bottom: 12px;
      z-index: 3;
      padding: 7px 14px;
      border: 1px solid rgba(131,46,255,.4);
      border-radius: 999px;
      color: var(--violet);
      background: rgba(13,5,26,.90);
      backdrop-filter: blur(16px);
      font-size: 11px;
      font-weight: 850;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      box-shadow: 0 4px 12px rgba(0,0,0,.4), 0 0 10px rgba(131,46,255,.15);
    }
    .project-body {
      padding: 24px 28px 28px;
      flex-grow: 1;
      display: flex;
      flex-direction: column;
      gap: 0;
    }
    .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
    .tag {
      padding: 5px 12px;
      border: 1px solid rgba(131,46,255,.25);
      border-radius: 999px;
      color: var(--violet);
      background: rgba(131,46,255,.08);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .04em;
      text-transform: uppercase;
      transition: background .2s, border-color .2s;
    }
    .project:hover .tag { background: rgba(131,46,255,.15); border-color: rgba(131,46,255,.4); }
    .project h3 {
      font-family: var(--font-display);
      font-size: 22px;
      line-height: 1.2;
      margin: 0 0 10px;
      letter-spacing: -.03em;
    }
    .project p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0 0 20px; }
    .project-link {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin-top: auto;
      color: var(--violet);
      font-size: 12px;
      font-weight: 900;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      transition: color .2s, gap .2s;
    }
    .project:hover .project-link { color: var(--neon-p); gap: 14px; }
    .project-link::after {
      content: '';
      width: 7px;
      height: 7px;
      border-top: 2px solid currentColor;
      border-right: 2px solid currentColor;
      transform: rotate(45deg);
      flex-shrink: 0;
    }
    /* Scroll hint arrow */
    .projects-scroll-hint {
      position: absolute;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: .12em;
      text-transform: uppercase;
      color: var(--muted);
      opacity: 0.7;
      animation: hint-pulse 2.5s ease-in-out infinite;
      pointer-events: none;
      z-index: 20;
    }
    .projects-scroll-hint svg { width: 20px; height: 20px; stroke: var(--violet); }
    @keyframes hint-pulse {
      0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
      50% { opacity: 1; transform: translateX(-50%) translateY(-6px); }
    }

    /* Sticky Stacking Cards (Process) */
    .stack-container {
      position: relative;
      padding-bottom: 60px;
    }
    
    .sticky-card {
      position: sticky;
      top: calc(100px + var(--offset, 0px));
      border: 1px solid var(--line);
      border-radius: var(--radius-xl);
      background: linear-gradient(160deg, rgba(22, 8, 42, 0.98) 0%, rgba(10, 3, 20, 0.98) 100%);
      box-shadow: 0 -24px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,.07);
      backdrop-filter: blur(24px);
      margin-bottom: 32px;
      overflow: hidden;
      display: grid;
      grid-template-columns: 1fr 380px;
      min-height: 280px;
      transition: border-color 0.4s ease;
    }

    .sticky-card:hover {
      border-color: rgba(131,46,255,.35);
    }

    /* coloured left accent bar */
    .sticky-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 3px;
      height: 100%;
      background: linear-gradient(180deg, var(--neon-v), var(--neon-p));
      border-radius: 3px 0 0 3px;
    }
    
    .sticky-card-left {
      padding: 48px 48px 48px 56px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 20px;
    }

    .sticky-card-step {
      display: inline-flex;
      align-items: center;
      gap: 12px;
    }
    .sticky-card-step .step-num {
      font-family: var(--font-display);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: .12em;
      color: var(--violet);
      text-transform: uppercase;
    }
    .sticky-card-step .step-tag {
      padding: 5px 12px;
      border: 1px solid rgba(131,46,255,.35);
      border-radius: 999px;
      font-size: 11px;
      font-weight: 800;
      color: var(--violet);
      background: rgba(131,46,255,.10);
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .sticky-card-content h3 {
      font-family: var(--font-display);
      font-size: clamp(28px, 3vw, 40px);
      margin: 0 0 14px;
      letter-spacing: -0.035em;
      line-height: 1.1;
    }
    .sticky-card-content p {
      color: var(--muted);
      font-size: 17px;
      margin: 0;
      line-height: 1.75;
      max-width: 520px;
    }

    .sticky-card-right {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, rgba(131,46,255,.10) 0%, rgba(255,79,243,.06) 100%);
      border-left: 1px solid var(--line-soft);
      overflow: hidden;
    }
    .sticky-card-right::before {
      content: '';
      position: absolute;
      inset: -40%;
      background:
        radial-gradient(circle at 40% 40%, rgba(131,46,255,.22), transparent 55%),
        radial-gradient(circle at 70% 70%, rgba(255,79,243,.15), transparent 55%);
      pointer-events: none;
    }
    .sticky-card-num {
      font-family: var(--font-display);
      font-size: 120px;
      font-weight: 900;
      line-height: 1;
      letter-spacing: -0.06em;
      color: transparent;
      background: linear-gradient(135deg, rgba(131,46,255,.35), rgba(255,79,243,.20));
      -webkit-background-clip: text;
      background-clip: text;
      user-select: none;
      position: relative;
      z-index: 1;
    }

    /* Mesh Gradient CTA */
    .mesh-cta {
      position: relative;
      overflow: hidden;
      padding: clamp(80px, 12vw, 140px) 40px;
      border-radius: var(--radius-xl);
      text-align: center;
      border: 1px solid rgba(131,46,255,.35);
      box-shadow: var(--shadow), 0 0 80px rgba(131,46,255,.12);
      background: rgba(15,5,30,0.72);
      backdrop-filter: blur(40px);
      z-index: 10;
    }
    .mesh-cta::after {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      border-radius: inherit;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    }
    
    .mesh-bg {
      position: absolute;
      inset: -50%;
      z-index: -1;
      background:
        radial-gradient(circle at 25% 30%, rgba(131, 46, 255, 0.55), transparent 40%),
        radial-gradient(circle at 75% 65%, rgba(255, 79, 243, 0.50), transparent 40%),
        radial-gradient(circle at 45% 80%, rgba(192, 132, 252, 0.40), transparent 40%);
      filter: blur(60px);
      animation: mesh-morph 15s ease-in-out infinite alternate;
      pointer-events: none;
    }
    
    @keyframes mesh-morph {
      0% { transform: rotate(0deg) scale(1); }
      100% { transform: rotate(45deg) scale(1.2); }
    }

    .mesh-cta .label { margin-inline: auto; font-size: 14px; letter-spacing: 0.2em; }
    .mesh-cta .h2 { margin-inline: auto; max-width: 800px; font-size: clamp(36px, 5vw, 64px); line-height: 1.05; }
    .mesh-cta .lead { margin-inline: auto; max-width: 600px; font-size: 18px; }
    .mesh-cta .btn-row { justify-content: center; margin-top: 40px; }

    /* Massive Parallax Footer */
    .huge-footer {
      position: fixed;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 95vh;
      z-index: -10;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 40px;
      background: #080212;
      overflow: hidden;
    }
    
    .huge-footer-top {
      display: flex;
      justify-content: space-between;
      color: var(--muted);
      font-size: 15px;
      font-weight: 500;
      text-transform: uppercase;
      letter-spacing: 0.1em;
      border-bottom: 1px solid rgba(255,255,255,0.05);
      padding-bottom: 20px;
    }
    
    .massive-text {
      font-family: var(--font-display);
      font-weight: 900;
      font-size: 26vw;
      line-height: 0.75;
      letter-spacing: -0.06em;
      text-align: center;
      margin: 0;
      background: linear-gradient(180deg, rgba(131,46,255,0.22) 0%, rgba(255,79,243,0.08) 50%, rgba(131,46,255,0) 100%);
      -webkit-background-clip: text;
      color: transparent;
      transform: translateY(10%);
    }

    /* Media Queries */
    @media (max-width: 1080px) {
      .hero-grid, 
      .bento-card.span-8, .bento-card.span-4, .bento-card.span-6 { grid-column: span 12; }
      .nav-links { display: none; }
      .sticky-card { grid-template-columns: 1fr; gap: 20px; text-align: center; }
      .sticky-card::before { margin: 0 auto; }
      .project { width: 340px; }
    }

    @media (max-width: 720px) {
      .container { width: min(var(--container), calc(100% - 24px)); }
      .header { top: 0; padding-top: 10px; }
      .nav { width: calc(100% - 20px); min-height: 62px; border-radius: 22px; }
      .brand { font-size: 14px; }
      .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
      .nav .btn { padding: 0 16px; font-size: 13px; min-height: 44px; }
      
      .h1 { font-size: clamp(38px, 11vw, 56px); }
      .h2 { font-size: clamp(30px, 9vw, 42px); }
      .hero { padding-top: 60px; }
      
      .btn-row, .huge-footer-top { flex-direction: column; gap: 10px; text-align: center; }
      .btn { width: 100%; }
      .proof-grid, .metric-grid { grid-template-columns: 1fr; }
      
      .console { min-height: auto; padding: 16px; border-radius: 26px; }
      .console-top { align-items: flex-start; }
      .status { text-align: center; }
      .section { padding: 70px 0; }
      .bento-card { padding: 24px; }
      .bento-content { padding: 20px 0 0; }
      .bento-visual { margin: -24px -24px 0 -24px; width: calc(100% + 48px); }
      
      .mesh-cta { border-radius: 28px; padding: 60px 20px; }
      .page-wrapper { margin-bottom: 70vh; }
      .huge-footer { height: 70vh; padding: 20px; }
      .massive-text { font-size: 32vw; }
      
      .sticky-card { position: static; margin-bottom: 20px; min-height: auto; padding: 30px 20px; }
      
      .project { width: 100%; }
    }
    
    .gsap-reveal { visibility: hidden; }

    /* ── Stats Section ── */
    .stats-section {
      padding: clamp(60px,8vw,100px) 0;
      border-top: 1px solid var(--line-soft);
      border-bottom: 1px solid var(--line-soft);
      background: linear-gradient(180deg, rgba(131,46,255,.06), transparent 55%);
    }
    .stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
    .stat-item { display: flex; flex-direction: column; gap: 12px; }
    .stat-num { font-family: var(--font-display); font-size: clamp(52px,6vw,80px); font-weight: 900; line-height: 1; letter-spacing: -.05em; background: linear-gradient(135deg, #fff 0%, var(--violet) 50%, var(--neon-p) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .stat-label { font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
    @media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2,1fr); gap: 32px; } }

    /* ── Testimonials ── */
    .testimonials-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-top: 0;
    }
    .testimonial-card {
      position: relative;
      padding: 36px;
      border: 1px solid rgba(131,46,255,.2);
      border-radius: 28px;
      background: linear-gradient(160deg, rgba(25,8,50,.85) 0%, rgba(12,4,22,.90) 100%);
      box-shadow: inset 0 1px 0 rgba(200,150,255,.08);
      display: flex;
      flex-direction: column;
      gap: 20px;
      transition: transform .3s cubic-bezier(.16,1,.3,1), border-color .3s ease, box-shadow .3s ease;
      overflow: hidden;
    }
    .testimonial-card::before {
      content: '\201C';
      position: absolute;
      top: 16px;
      right: 28px;
      font-size: 120px;
      line-height: 1;
      color: rgba(131,46,255,.12);
      font-family: var(--font-display);
      font-weight: 900;
      pointer-events: none;
    }
    .testimonial-card:hover {
      transform: translateY(-8px);
      border-color: rgba(131,46,255,.45);
      box-shadow: 0 30px 80px rgba(0,0,0,.4), 0 0 40px rgba(131,46,255,.20), inset 0 1px 0 rgba(200,150,255,.12);
    }
    .t-stars { color: #ffcc00; font-size: 18px; letter-spacing: 3px; }
    .t-quote {
      margin: 0;
      color: var(--soft);
      font-size: 15px;
      line-height: 1.75;
      font-style: italic;
      flex: 1;
    }
    .t-author {
      display: flex;
      align-items: center;
      gap: 14px;
      padding-top: 20px;
      border-top: 1px solid var(--line-soft);
    }
    .t-avatar {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, var(--av-color), rgba(255,79,243,0.7));
      font-size: 13px;
      font-weight: 900;
      color: #fff;
      flex-shrink: 0;
      box-shadow: 0 6px 20px rgba(0,0,0,.3);
    }
    .t-name { display: block; font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
    .t-role { display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 3px; }
    @media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }

    /* Scanline animation on hero visual */
    .console::after {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 2px;
      background: linear-gradient(90deg, transparent, rgba(131,46,255,.8), transparent);
      animation: scanline 4s linear infinite;
      pointer-events: none;
      z-index: 10;
    }
    @keyframes scanline {
      0% { top: 0; opacity: 1; }
      90% { opacity: 0.8; }
      100% { top: 100%; opacity: 0; }
    }

    /* Pulsing neon border on bento-card hover */
    @keyframes neon-border-pulse {
      0%, 100% { box-shadow: 0 0 15px rgba(131,46,255,.3), inset 0 1px 0 rgba(200,150,255,.08); }
      50% { box-shadow: 0 0 35px rgba(131,46,255,.5), 0 0 15px rgba(255,79,243,.2), inset 0 1px 0 rgba(200,150,255,.12); }
    }
    /* Project number badge */
    .project-num {
      position: absolute;
      top: 24px;
      left: 24px;
      z-index: 5;
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      border-radius: 10px;
      background: rgba(13,5,26,.85);
      border: 1px solid rgba(131,46,255,.35);
      font-size: 12px;
      font-weight: 900;
      color: var(--violet);
      backdrop-filter: blur(8px);
    }

  
    /* ── PRELOADER & LENIS ── */
    html.lenis, html.lenis body { height: auto; width: 100vw; overflow-x: hidden; }
    .lenis.lenis-smooth { scroll-behavior: auto !important; }
    .lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
    .lenis.lenis-stopped { overflow: hidden; }
    .lenis.lenis-smooth iframe { pointer-events: none; }
    
    .preloader {
      position: fixed; inset: 0; z-index: 99999;
      background: #0d0518;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      transition: opacity 0.8s ease, visibility 0.8s ease;
    }
    .preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
    
    
    
    /* ── BLOCK 1: AVAIL BANNER ── */
    .avail-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px; background: linear-gradient(90deg, rgba(131,46,255,.15), rgba(255,79,243,.12), rgba(131,46,255,.15)); border-bottom: 1px solid rgba(131,46,255,.25); backdrop-filter: blur(20px); font-size: 13px; font-weight: 700; color: var(--soft); letter-spacing: .03em; animation: banner-slide-in .6s cubic-bezier(.16,1,.3,1) both; }
    .avail-banner.hidden { display: none; }
    .avail-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 12px rgba(74,222,128,.8); animation: pulse-green 2s ease-in-out infinite; flex-shrink: 0; }
    .avail-link { color: var(--violet); font-weight: 900; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
    .avail-link:hover { color: var(--neon-p); }
    .avail-close { position: absolute; right: 16px; background: none; border: none; color: var(--muted); font-size: 14px; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: color .2s, background .2s; }
    .avail-close:hover { color: var(--text); background: rgba(255,255,255,.08); }
    @keyframes banner-slide-in { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
    @keyframes pulse-green { 0%, 100% { box-shadow: 0 0 8px rgba(74,222,128,.6); } 50% { box-shadow: 0 0 20px rgba(74,222,128,1); } }

    /* ── BLOCK 2: TECH TICKER ── */
    .tech-ticker-section { padding: 40px 0; overflow: hidden; border-top: 1px solid var(--line-soft); }
    .ticker-label-row { text-align: center; margin-bottom: 24px; }
    .ticker-wrapper { overflow: hidden; position: relative; }
    .ticker-wrapper::before, .ticker-wrapper::after { content: ''; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; }
    .ticker-wrapper::before { left: 0; background: linear-gradient(90deg, #0d0518, transparent); }
    .ticker-wrapper::after { right: 0; background: linear-gradient(-90deg, #0d0518, transparent); }
    .ticker-track { display: flex; gap: 0; width: max-content; animation: ticker-scroll 35s linear infinite; }
    .ticker-track:hover { animation-play-state: paused; }
    .ticker-item { display: inline-flex; align-items: center; gap: 10px; padding: 12px 32px; border-right: 1px solid var(--line-soft); font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--muted); white-space: nowrap; transition: color .2s, background .2s; cursor: default; }
    .ticker-item:hover { color: var(--text); background: rgba(131,46,255,.06); }
    .ticker-icon { font-size: 20px; }
    @keyframes ticker-scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

    /* ── BLOCK 3: FAQ ── */
    .faq-list { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
    .faq-item { border-bottom: 1px solid var(--line-soft); overflow: hidden; }
    .faq-item:first-child { border-top: 1px solid var(--line-soft); }
    .faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; background: none; border: none; color: var(--text); font-family: var(--font-display); font-size: clamp(17px,2vw,22px); font-weight: 700; letter-spacing: -.02em; text-align: left; cursor: pointer; transition: color .2s; }
    .faq-q:hover { color: var(--violet); }
    .faq-icon { font-size: 24px; font-weight: 300; color: var(--neon-v); flex-shrink: 0; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(131,46,255,.3); border-radius: 50%; transition: transform .35s cubic-bezier(.16,1,.3,1), background .2s; line-height: 1; }
    .faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: rgba(131,46,255,.15); }
    .faq-a { max-height: 0; overflow: hidden; transition: max-height .45s cubic-bezier(.16,1,.3,1); }
    .faq-a p { margin: 0; padding: 0 0 28px; color: var(--muted); font-size: 16px; line-height: 1.75; max-width: 700px; }
    .faq-item.open .faq-a { max-height: 300px; }

    /* ── BLOCK 4: CURSOR TRAILER ── */
    .cursor-trailer { position: fixed; width: 14px; height: 14px; border-radius: 50%; background: var(--neon-v); pointer-events: none; z-index: 9999; mix-blend-mode: screen; transform: translate(-50%, -50%); transition: width .2s, height .2s, opacity .2s; opacity: 0; box-shadow: 0 0 20px rgba(131,46,255,.9), 0 0 40px rgba(131,46,255,.4); }
    .cursor-trailer.visible { opacity: 1; }
    .cursor-trailer.expanded { width: 40px; height: 40px; opacity: .6; }

    /* ── BLOCK 5: FLOATING CTA ── */
    .float-cta { position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(120px); z-index: 900; display: flex; align-items: center; gap: 20px; padding: 14px 20px 14px 28px; border: 1px solid rgba(131,46,255,.4); border-radius: 999px; background: linear-gradient(135deg, rgba(20,6,40,.95), rgba(12,3,24,.98)); backdrop-filter: blur(30px); box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 40px rgba(131,46,255,.2); transition: transform .5s cubic-bezier(.16,1,.3,1), opacity .5s ease; opacity: 0; pointer-events: none; white-space: nowrap; }
    .float-cta.visible { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
    .float-cta-text { font-size: 14px; font-weight: 600; color: var(--soft); }
    .float-cta-btn {
      min-height: 44px;
      padding: 0 22px;
      font-size: 13px;
    }
    @media (max-width: 600px) { .float-cta { flex-direction: column; gap: 10px; bottom: 16px; padding: 16px 20px; border-radius: 24px; } }

    /* ── BLOCK 6: SKILLS BARS ── */
    .skills-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 60px; margin-top: 20px; }
    .skills-col { display: flex; flex-direction: column; gap: 28px; }
    .skill-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 14px; font-weight: 700; color: var(--soft); }
    .skill-pct { color: var(--violet); font-weight: 900; font-family: var(--font-display); }
    .skill-track { height: 6px; border-radius: 999px; background: rgba(131,46,255,.12); overflow: hidden; }
    @media (max-width: 720px) { .skills-layout { grid-template-columns: 1fr; gap: 24px; } }

    /* ── BLOCK 8: NEON DIVIDERS & TEXT ANIM ── */
    .neon-divider { width: 100%; height: 1px; position: relative; background: linear-gradient(90deg, transparent, var(--neon-v), var(--neon-p), transparent); opacity: .4; margin: 0; overflow: hidden; }
    .neon-divider::after { content: ''; position: absolute; top: 0; left: -50%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, #fff, transparent); animation: divider-sweep 4s linear infinite; }
    @keyframes divider-sweep { 0% { left: -50%; } 100% { left: 150%; } }
    
    .anim-text { opacity: 0; transform: translateY(20px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
    .anim-text.in-view { opacity: 1; transform: translateY(0); }


    /* ── CINEMATIC OPTIMIZATIONS & NOISE ── */
    body {
      text-rendering: geometricPrecision;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }


    /* Hardware acceleration hints */
    .bento-card, .testimonial-card, .project, .anim-text, .gsap-reveal {
      will-change: transform, opacity, box-shadow;
    }

    /* Enhanced Glassmorphism */
    .bento-card, .testimonial-card, .project {
      backdrop-filter: blur(24px) saturate(150%);
      -webkit-backdrop-filter: blur(24px) saturate(150%);
    }

    /* Glowing selection text */
    ::selection {
      background: var(--neon-v);
      color: #fff;
      text-shadow: 0 0 8px rgba(255,255,255,0.8);
    }
    
    /* Better Scrollbar */
    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: #0a0315; }
    ::-webkit-scrollbar-thumb { background: rgba(131,46,255,0.4); border-radius: 10px; }
    ::-webkit-scrollbar-thumb:hover { background: rgba(131,46,255,0.8); }




    /* ── REFINED BENTO GRID (SERVICES) ── */
    .bento-card {
      position: relative;
      background: linear-gradient(145deg, rgba(20,5,40,0.8), rgba(10,2,20,0.95));
      border: 1px solid rgba(131,46,255,0.1);
      box-shadow: inset 0 1px 1px rgba(255,255,255,0.05), 0 10px 30px rgba(13,5,24,0.8);
      overflow: hidden;
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    }
    .bento-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; height: 1px;
      background: linear-gradient(90deg, transparent, rgba(131,46,255,0.5), transparent);
      opacity: 0;
      transition: opacity 0.4s ease;
    }
    .bento-card:hover {
      transform: translateY(-4px);
      border-color: rgba(255,79,243,0.3);
      box-shadow: 0 20px 40px rgba(131,46,255,0.12), inset 0 0 0 1px rgba(131,46,255,0.3), inset 0 1px 1px rgba(255,255,255,0.1);
      z-index: 2;
    }
    .bento-card:hover::before { opacity: 1; }
    .bento-card .b-icon {
      background: linear-gradient(135deg, rgba(131,46,255,0.2), rgba(255,79,243,0.1));
      box-shadow: inset 0 0 0 1px rgba(131,46,255,0.3);
    }

    /* ── REFINED PROCESS (STICKY CARDS) ── */
    .process-card {
      background: linear-gradient(160deg, rgba(15,4,30,0.95), rgba(5,1,10,0.98));
      border: 1px solid rgba(131,46,255,0.2);
      box-shadow: 0 -10px 40px rgba(13,5,24,0.95), inset 0 1px 0 rgba(200,150,255,0.1);
      position: relative;
      overflow: hidden;
    }
    .process-card::after {
      content: attr(data-step);
      position: absolute;
      right: -20px;
      bottom: -40px;
      font-size: 200px;
      font-family: var(--font-display);
      font-weight: 900;
      color: rgba(131,46,255,0.03);
      line-height: 1;
      pointer-events: none;
      z-index: 0;
    }
    .process-card > * { position: relative; z-index: 1; }

    /* ── REFINED TESTIMONIALS ── */
    .testimonial-card {
      background: linear-gradient(135deg, rgba(20,5,40,0.6), rgba(10,2,20,0.8));
      border: 1px solid rgba(131,46,255,0.15);
      box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
      position: relative;
    }
    .testimonial-card::before {
      content: '“';
      position: absolute;
      top: 10px;
      right: 20px;
      font-family: serif;
      font-size: 120px;
      color: rgba(131,46,255,0.05);
      line-height: 1;
      pointer-events: none;
    }
    .t-stars { color: var(--neon-p); letter-spacing: 2px; text-shadow: 0 0 10px rgba(255,79,243,0.5); }
    .t-avatar { box-shadow: 0 0 0 2px rgba(131,46,255,0.3), 0 0 15px rgba(131,46,255,0.2); }

    /* ── REFINED FAQ ── */
    .faq-item { transition: background 0.3s ease; }
    .faq-item.open {
      background: linear-gradient(90deg, rgba(131,46,255,0.05), transparent);
      border-left: 2px solid var(--neon-v);
      padding-left: 18px;
    }
    .faq-q { padding: 28px 20px; }
    .faq-a p { padding: 0 20px 28px; }



    /* ── ULTRA PREMIUM MICRO-INTERACTIONS ── */
    /* Top Scroll Progress Bar */
    .scroll-progress {
      position: fixed;
      top: 0; left: 0; right: 0; height: 3px;
      background: linear-gradient(90deg, var(--neon-v), var(--neon-p));
      transform-origin: 0 50%;
      transform: scaleX(0);
      z-index: 99999;
      box-shadow: 0 0 10px rgba(255,79,243,0.5);
    }

    /* Hero Mouse Flashlight */
    .hero-flashlight {
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: radial-gradient(circle 600px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(131,46,255,0.08), transparent 80%);
      z-index: 0;
      transition: opacity 0.3s ease;
      opacity: 0;
    }
    .hero { position: relative; } /* Ensure flashlight is contained */
    .hero:hover .hero-flashlight { opacity: 1; }

    /* ── ULTRA MENU CSS ── */
    .header-ultra {
      position: fixed;
      top: calc(var(--banner-h) + var(--header-gap));
      left: 0;
      right: 0;
      z-index: 1001;
      display: flex;
      justify-content: center;
      padding: 0 clamp(12px, 3vw, 24px);
      pointer-events: none;
      transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .header-ultra.banner-closed {
      top: var(--header-gap);
    }
    .page-wrapper.banner-closed {
      padding-top: var(--site-top-compact);
    }
    .nav-ultra {
      pointer-events: auto;
      width: min(var(--container), 100%);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 8px 10px 8px 18px;
      background: rgba(15, 5, 30, 0.72);
      backdrop-filter: blur(24px) saturate(180%);
      -webkit-backdrop-filter: blur(24px) saturate(180%);
      border: 1px solid rgba(131, 46, 255, 0.28);
      border-radius: 999px;
      box-shadow: 0 20px 40px rgba(13,5,24,0.8), inset 0 1px 1px rgba(255,255,255,0.1), 0 0 20px rgba(131, 46, 255, 0.15);
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    }
    .nav-brand-ultra {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-family: var(--font-display);
      font-size: 15px;
      font-weight: 900;
      letter-spacing: -.03em;
      color: #fff;
      text-decoration: none;
      flex-shrink: 0;
      z-index: 10;
    }
    .nav-brand-ultra::before {
      content: "";
      width: 34px;
      height: 34px;
      border-radius: 12px;
      background: linear-gradient(135deg, var(--neon-v), var(--neon-p));
      box-shadow: 0 8px 24px rgba(131,46,255,.45);
    }
    .nav-ultra:hover {
      box-shadow: 0 24px 50px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.15), 0 0 30px rgba(131, 46, 255, 0.25);
    }
    .nav-links-ultra {
      display: flex;
      align-items: center;
      gap: 6px;
      background: rgba(255,255,255,0.02);
      padding: 4px;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,0.05);
    }
    .nav-links-ultra a {
      color: var(--muted);
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      letter-spacing: 0.02em;
      padding: 10px 20px;
      border-radius: 999px;
      transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .nav-links-ultra a:hover, .nav-links-ultra a.is-active {
      color: #fff;
      background: rgba(131, 46, 255, 0.15);
      text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
      box-shadow: inset 0 0 15px rgba(255, 79, 243, 0.2), 0 0 15px rgba(131, 46, 255, 0.3);
    }
    .btn-ultra {
      min-height: 46px;
      padding: 12px 22px;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      flex-shrink: 0;
    }
    @media (max-width: 600px) {
      :root { --site-top: calc(var(--banner-h) + var(--header-gap) + 52px); }
      .nav-links-ultra { display: none; }
      .nav-ultra { padding: 8px 10px 8px 14px; gap: 10px; }
      .btn-ultra { min-height: 44px; padding: 0 18px; font-size: 11px; }
      .nav-brand-ultra { font-size: 14px; }
      .nav-brand-ultra::before { width: 30px; height: 30px; }
    }


    /* ── MEGA UPGRADE: SPOTLIGHT BENTO ── */
    .bento-card {
      --mouse-x: 50%;
      --mouse-y: 50%;
    }
    .bento-card::after {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(131,46,255,0.12), transparent 40%);
      z-index: 3;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.5s ease;
      mix-blend-mode: screen;
    }
    .bento-card:hover::after { opacity: 1; }

    /* ── MEGA UPGRADE: 3D PARALLAX PORTFOLIO ── */
    .project {
      transform-style: preserve-3d;
      will-change: transform;
    }
    .project-inner-glare {
      position: absolute;
      top: -50%; left: -50%; width: 200%; height: 200%;
      background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.15), transparent 60%);
      pointer-events: none;
      opacity: 0;
      z-index: 20;
      transition: opacity 0.3s ease;
      mix-blend-mode: overlay;
    }
    .project:hover .project-inner-glare { opacity: 1; }


    /* ── PHASE 3 MEGA UPGRADE ── */
    /* Stats Glass Pedestals */
    .stat-item {
      padding: 30px;
      background: linear-gradient(145deg, rgba(20,5,40,0.4), rgba(10,2,20,0.6));
      border: 1px solid rgba(131,46,255,0.1);
      border-radius: 20px;
      box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
    }
    .stat-item:hover {
      transform: translateY(-8px);
      border-color: rgba(131,46,255,0.4);
    }

    /* Marquee 3D Skew & Velocity */
    .marquee-container {
      transform: skewY(-2deg) scale(1.02);
      box-shadow: 0 20px 50px rgba(13,5,24,0.8);
      z-index: 10;
      position: relative;
    }

    /* Premium Shining Headers */
    .h2 {
      font-family: var(--font-display); 
      font-size: clamp(32px, 5vw, 64px); 
      line-height: 1.05; 
      font-weight: 900; 
      letter-spacing: -.03em; 
      margin-bottom: 24px;
      
      background: linear-gradient(90deg, #fff 0%, #fff 40%, var(--neon-v) 50%, var(--neon-p) 60%, #fff 70%, #fff 100%);
      background-size: 200% auto;
      color: transparent;
      -webkit-background-clip: text;
      background-clip: text;
      animation: text-shine 6s linear infinite;
    }
    @keyframes text-shine {
      to { background-position: -200% center; }
    }


    /* ── PHASE 4 MEGA AUDIT ── */
    
    /* 1. Hardware Acceleration (Audit) */
    .hero-visual, .console, .testimonial-card, .faq-item, .stat-item {
      will-change: transform, opacity;
    }

    /* 2. Hero 3D Parallax Layers */
    .hero-visual {
      perspective: 1500px;
      transform-style: preserve-3d;
    }
    .console {
      transition: transform 0.1s linear;
      transform-style: preserve-3d;
    }
    .console-inner { transform: translateZ(20px); }
    .screen-title { transform: translateZ(50px); text-shadow: 0 10px 20px rgba(13,5,24,0.95); }
    .metric-grid { transform: translateZ(80px); }

    /* 3. Testimonials Carousel */
    .testimonials-grid {
      display: flex !important;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scroll-behavior: smooth;
      gap: 30px;
      padding-bottom: 40px;
      -ms-overflow-style: none;
      scrollbar-width: none;
      cursor: grab;
    }
    .testimonials-grid::-webkit-scrollbar { display: none; }
    .testimonials-grid:active { cursor: grabbing; }
    .testimonial-card {
      min-width: 400px;
      flex: 0 0 auto;
      scroll-snap-align: center;
    }
    @media (max-width: 720px) {
      .testimonial-card { min-width: 85vw; }
    }

    /* 4. Split-Text Cascading Headers */
    .word-split {
      display: inline-block;
      overflow: hidden;
      vertical-align: top;
      margin-right: 0.2em; /* space between words */
    }
    .char-split {
      display: inline-block;
      opacity: 0;
      transform: translateY(100%) rotateX(-90deg);
      transform-origin: bottom center;
      transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .char-split.visible {
      opacity: 1;
      transform: translateY(0) rotateX(0deg);
    }

    /* 5. Terminal Footer / Contact Block */
    .footer-terminal {
      background: #05010a;
      border: 1px solid rgba(131,46,255,0.3);
      border-radius: 12px;
      padding: 40px;
      font-family: monospace;
      color: var(--soft);
      box-shadow: 0 30px 100px rgba(13,5,24,0.95), inset 0 0 20px rgba(131,46,255,0.05);
      position: relative;
      overflow: hidden;
    }
    .footer-terminal::before {
      content: ''; position: absolute; top: 0; left: 0; right: 0; height: 30px;
      background: #0d0518; border-bottom: 1px solid rgba(131,46,255,0.2);
    }
    .footer-terminal::after {
      content: '● ● ●'; position: absolute; top: 8px; left: 16px;
      color: rgba(255,255,255,0.2); letter-spacing: 4px; font-size: 10px;
    }
    .term-line {
      display: block; margin-bottom: 12px; font-size: 14px;
    }
    .term-prompt::before { content: 'tatar-os:~$ '; color: var(--neon-v); font-weight: 900; }
    .term-success { color: #4ade80; }
    .term-cursor {
      display: inline-block; width: 10px; height: 16px; background: var(--neon-p);
      vertical-align: middle; animation: blink 1s step-end infinite;
    }
    @keyframes blink { 50% { opacity: 0; } }

    .mesh-contact-wrapper {
      position: relative;
      padding: 100px 0;
      background: radial-gradient(circle at 50% 50%, rgba(131,46,255,0.05), transparent 70%);
    }

    /* Premium Testimonials Grid */
    .testimonials-grid {
      display: grid !important;
      grid-template-columns: repeat(3, 1fr);
      gap: 30px;
      padding-bottom: 0;
      overflow: visible;
      scroll-snap-type: none;
      cursor: auto;
    }
    @media (max-width: 1000px) {
      .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    }
    @media (max-width: 600px) {
      .testimonials-grid { grid-template-columns: 1fr; }
    }
    .testimonial-card {
      min-width: 0;
      background: linear-gradient(160deg, rgba(20,5,40,0.6) 0%, rgba(10,2,20,0.8) 100%);
      border: 1px solid rgba(131,46,255,0.2);
      border-radius: 20px;
      padding: 32px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.05);
      transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 20px;
    }
    .testimonial-card:hover {
      transform: translateY(-8px);
      border-color: rgba(131,46,255,0.5);
      box-shadow: 0 30px 60px rgba(0,0,0,0.6), 0 0 30px rgba(131,46,255,0.2);
    }
    .t-stars {
      color: var(--gold);
      font-size: 18px;
      letter-spacing: 2px;
    }
    .t-quote {
      font-size: 16px;
      line-height: 1.6;
      color: var(--text);
      font-style: italic;
      margin: 0;
    }
    .t-author {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-top: auto;
      border-top: 1px solid rgba(255,255,255,0.05);
      padding-top: 20px;
    }
    .t-avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: var(--av-color);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 18px;
      box-shadow: 0 4px 10px rgba(13,5,24,0.8);
    }
    .t-name {
      display: block;
      font-weight: 700;
      font-size: 16px;
      color: #fff;
    }
    .t-role {
      display: block;
      font-size: 13px;
      color: var(--muted);
    }

/* --- Portfolio Grid Rewrite --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 60px;
  padding-bottom: 80px;
}
@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: 1fr; gap: 30px; }
}
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, rgba(25,8,50,.8) 0%, rgba(12,4,22,.9) 100%);
  border: 1px solid rgba(131,46,255,.2);
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}
.project-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(131,46,255,.5);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 40px rgba(131,46,255,.2);
}

.project-visual {
  width: 100%;
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center top;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

/* Ensure opacity is visible if JS fails */
.gsap-reveal, .anim-scramble { opacity: 1; }
/* The JS will animate the child elements or fromTo will override inline */


/* --- PREMIUM HEADERS & TRANSITIONS --- */
.section-head {
  display: flex;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: left;
  gap: 16px;
  max-width: 800px;
  margin-bottom: 60px;
}
.section-head--center {
  align-items: center !important;
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
}
.section-head > div {
  width: 100%;
}
.section-head .text {
  max-width: 600px;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--neon-v);
  margin-bottom: 24px;
}
.label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--neon-v);
  box-shadow: 0 0 10px var(--neon-v);
}

.section-head .h2, .h2 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #c084fc 60%, #832eff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0;
}

/* Neon Divider Upgrade */
.neon-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(131,46,255,0.5), transparent);
  margin: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.neon-divider.active {
  transform: scaleX(1);
}

/* Failsafe Section Reveal Base */
.section.will-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.section.will-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Strip broken anim-scramble and gsap-reveal inline overrides */
.gsap-reveal { opacity: 1 !important; visibility: visible !important; transform: none !important; }
.anim-scramble { opacity: 1 !important; visibility: visible !important; transform: none !important; }


/* --- Rich Animated Dividers --- */
.rich-divider {
  position: relative;
  width: 100%;
  height: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.rich-divider-glow {
  position: absolute;
  width: 100%;
  max-width: 1400px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(131,46,255,0.8), rgba(255,79,243,0.8), transparent);
  box-shadow: 0 0 80px 10px rgba(131, 46, 255, 0.4), 0 0 160px 40px rgba(255, 79, 243, 0.25);
  transform: scaleX(0);
  transition: transform 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.rich-divider.active .rich-divider-glow {
  transform: scaleX(1);
}

.rich-divider-orb {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(131, 46, 255, 0.12) 0%, transparent 60%);
  filter: blur(50px);
  opacity: 0;
  transform: translateY(80px) scale(0.8);
  transition: opacity 2.5s ease, transform 3.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rich-divider.active .rich-divider-orb {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: breathe-orb 10s infinite alternate ease-in-out;
}

@keyframes breathe-orb {
  0% { transform: scale(1) translateY(0); opacity: 0.8; }
  100% { transform: scale(1.15) translateY(-30px); opacity: 1; }
}

.rich-divider-particles {
  position: absolute;
  width: 100vw;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.12'/%3E%3C/svg%3E");
  mask-image: radial-gradient(ellipse at center, black 15%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 15%, transparent 65%);
  opacity: 0;
  transition: opacity 2.5s ease;
}

.rich-divider.active .rich-divider-particles {
  opacity: 1;
}

    .stat-suffix {
      font-size: 0.45em;
      font-weight: 800;
      letter-spacing: -0.02em;
      color: var(--neon-p);
    }

    .tt-stat-icon {
      margin: 0 auto 4px auto;
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(131,46,255,0.12);
      border: 1px solid rgba(131,46,255,0.25);
      border-radius: 12px;
      color: var(--neon-p);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 16px rgba(0,0,0,0.2);
    }

    /* Premium Stack Grid Replacement */
    .stack-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 32px;
      margin-top: 48px;
    }
    @media (max-width: 720px) {
      .stack-grid { grid-template-columns: 1fr; gap: 24px; }
    }
    .stack-group {
      position: relative;
      overflow: hidden;
      padding: 32px;
      padding-top: 140px;
      border: 1px solid rgba(131,46,255,0.15);
      border-radius: var(--radius-lg);
      background: linear-gradient(145deg, rgba(20,5,40,0.4), rgba(10,2,20,0.6));
      box-shadow: inset 0 1px 1px rgba(255,255,255,0.05);
      transition: border-color 0.3s ease, transform 0.3s ease;
    }
    .stack-group:hover {
      border-color: rgba(131,46,255,0.4);
      transform: translateY(-4px);
    }
    .stack-title {
      font-family: var(--font-display);
      font-size: clamp(20px, 2vw, 24px);
      font-weight: 800;
      color: #fff;
      margin-bottom: 24px;
      letter-spacing: -0.02em;
    }
    .stack-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    .stack-tag {
      padding: 8px 16px;
      background: rgba(131,46,255,0.08);
      border: 1px solid rgba(131,46,255,0.2);
      border-radius: 8px;
      font-size: 13px;
      font-weight: 700;
      color: var(--neon-v);
      letter-spacing: 0.03em;
      transition: background 0.3s ease, color 0.3s ease;
    }
    .stack-tag:hover {
      background: var(--neon-v);
      color: #000;
    }

    .stack-visual {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 200px;
      background-size: cover;
      background-position: center;
      mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
      -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 100%);
      opacity: 0.5;
      z-index: 0;
      transition: opacity 0.5s ease, transform 0.5s ease;
    }
    .stack-group:hover .stack-visual {
      opacity: 0.9;
      transform: scale(1.05);
    }
    .stack-title, .stack-tags {
      position: relative;
      z-index: 1;
    }


/* ---- PREMIUM OVERHAUL OVERRIDES ---- */

/* Hero & Console Animation */
.console { animation: float-console 6s ease-in-out infinite; }
@keyframes float-console { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* Stats Refinement */
.stat-item::after { background: linear-gradient(to bottom, transparent, rgba(131,46,255,0.15), transparent) !important; width: 1px !important; right: -40px !important; }
.stats-section .container { padding-top: 40px; padding-bottom: 40px; }

/* Services Bento Hover & Typography */
.bento-content p { color: #a195b5; font-size: 15px; } 

/* Skills Stack Hover */
.stack-group { transition: transform 0.3s ease; }
.stack-group:hover { transform: translateY(-4px); }
.stack-tag { transition: all 0.3s ease; border: 1px solid rgba(131,46,255,0.2); }
.stack-tag:hover { background: rgba(131,46,255,0.2); border-color: var(--neon-p); color: #fff; box-shadow: 0 0 15px rgba(255,79,243,0.2); transform: scale(1.05); }

/* Process Sticky Cards */
.sticky-card-right { box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1); border-color: rgba(131,46,255,0.2); }
.sticky-card-left h3 { font-size: 28px; font-weight: 800; color: var(--text); }
.sticky-card-left p { color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Testimonials / Social Proof */
.t-avatar { 
  border: 2px solid #0d0518; 
  outline: 2px solid var(--av-color); 
  outline-offset: 2px;
  box-shadow: 0 0 15px var(--av-color);
}
.testimonial { position: relative; overflow: hidden; }
.testimonial::before { content: '"'; position: absolute; top: -20px; left: 20px; font-size: 120px; font-family: var(--font-display); color: rgba(255,255,255,0.03); line-height: 1; pointer-events: none; }

/* FAQ Glow */
.faq-item.open { border-color: var(--neon-v); box-shadow: -10px 0 20px -10px rgba(131,46,255,0.4); background: linear-gradient(90deg, rgba(131,46,255,0.05), transparent); }
.faq-a { transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1), margin 0.5s ease, opacity 0.4s ease; }

/* Footer Floating CTA Focus */
.float-cta-btn { animation: pulse-cta 2.5s infinite; }
@keyframes pulse-cta { 0% { box-shadow: 0 0 0 0 rgba(255,79,243,0.4); } 70% { box-shadow: 0 0 0 15px rgba(255,79,243,0); } 100% { box-shadow: 0 0 0 0 rgba(255,79,243,0); } }

/* Global Focus */
:focus-visible { outline: 2px solid var(--neon-p); outline-offset: 4px; border-radius: 4px; }


/* ---- PROCESS OVERHAUL ---- */
#process {
  padding-top: clamp(20px, 4vw, 40px);
  padding-bottom: clamp(20px, 4vw, 40px);
  margin-top: -20px;
}

.sticky-card {
  transform-origin: top center;
  transition: transform 0.1s linear, opacity 0.1s linear, filter 0.1s linear, border-color 0.4s ease !important;
  will-change: transform, opacity, filter;
}

.sticky-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: inherit;
  pointer-events: none;
}

/* ---- AUDIT SECTION (MAXIMALLY BEAUTIFUL) ---- */
.audit-bento {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: stretch;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}
.audit-bento::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(131, 46, 255, 0.15) 0%, transparent 60%);
  transform: translate(-50%, -50%);
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 900px) {
  .audit-bento { grid-template-columns: 1fr; }
}

.audit-bento-left {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 79, 243, 0.2);
  box-shadow: 
    inset 0 0 80px rgba(131, 46, 255, 0.15), 
    0 30px 60px rgba(0,0,0,0.5),
    0 0 30px rgba(131, 46, 255, 0.2);
}
.audit-bento-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: subtle-pan 20s ease-in-out infinite alternate;
}
@keyframes subtle-pan {
  0% { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.1) translate(-2%, -2%); }
}

.audit-bento-right {
  display: flex;
  flex-direction: column;
}
.audit-container {
  flex: 1;
  background: linear-gradient(135deg, rgba(20, 8, 40, 0.5), rgba(10, 4, 20, 0.8));
  border: 1px solid rgba(131, 46, 255, 0.2);
  border-radius: 24px;
  padding: clamp(30px, 5vw, 50px);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 0 60px rgba(131, 46, 255, 0.05), 
    0 24px 50px rgba(0,0,0,0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audit-state {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.audit-state.hidden {
  display: none;
  opacity: 0;
  transform: translateY(15px) scale(0.98);
}
.audit-state.active {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.audit-form {
  display: flex;
  gap: 16px;
  width: 100%;
  max-width: 600px;
}
@media (max-width: 600px) {
  .audit-form { flex-direction: column; }
}
.audit-form input {
  flex: 1;
  padding: 18px 28px;
  border-radius: 999px;
  border: 1px solid rgba(131, 46, 255, 0.3);
  background: rgba(0, 0, 0, 0.4);
  color: var(--text);
  font-family: monospace;
  font-size: 16px;
  letter-spacing: 0.05em;
  box-shadow: inset 0 4px 15px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}
.audit-form input::placeholder { color: rgba(255,255,255,0.2); }
.audit-form input:focus {
  outline: none;
  border-color: var(--neon-p);
  background: rgba(131, 46, 255, 0.05);
  box-shadow: 
    inset 0 4px 15px rgba(0,0,0,0.5), 
    0 0 25px rgba(255, 79, 243, 0.25),
    inset 0 0 0 1px var(--neon-p);
}
.audit-form .btn {
  padding: 18px 36px;
  font-size: 16px;
}

.audit-error { color: #ff4f4f; margin-top: 16px; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; }

/* Loader */
.audit-loader { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.audit-spinner {
  width: 64px; height: 64px;
  border: 3px solid rgba(131, 46, 255, 0.15);
  border-top-color: var(--neon-p);
  border-left-color: var(--neon-v);
  border-radius: 50%;
  animation: spin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
  box-shadow: 0 0 30px rgba(255, 79, 243, 0.2);
}
.audit-loading-text {
  color: var(--text); 
  font-family: var(--font-display); 
  font-size: 16px; 
  font-weight: 800;
  letter-spacing: 0.1em; 
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Results Grid */
.audit-results-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; width: 100%; margin-bottom: 40px;
}
@media (max-width: 768px) {
  .audit-results-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

.audit-metric { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.metric-label { font-weight: 900; font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }

/* SVG Circular Chart */
.circular-chart { display: block; margin: 0 auto; max-width: 90px; max-height: 90px; }
.circle-bg { fill: none; stroke: rgba(255, 255, 255, 0.06); stroke-width: 3.5; }
.circle { fill: none; stroke-width: 3.5; stroke-linecap: round; transition: stroke-dasharray 2s cubic-bezier(0.16, 1, 0.3, 1); }
.percentage { fill: #fff; font-family: var(--font-display); font-size: 10px; font-weight: 900; text-anchor: middle; }

.score-red .circle { stroke: #ff4f4f; filter: drop-shadow(0 0 8px rgba(255,79,79,0.7)); }
.score-orange .circle { stroke: #ffaa00; filter: drop-shadow(0 0 8px rgba(255,170,0,0.7)); }
.score-green .circle { stroke: #00ff88; filter: drop-shadow(0 0 8px rgba(0,255,136,0.7)); }
.score-red .percentage { fill: #ff4f4f; text-shadow: 0 0 10px rgba(255,79,79,0.5); }
.score-orange .percentage { fill: #ffaa00; text-shadow: 0 0 10px rgba(255,170,0,0.5); }
.score-green .percentage { fill: #00ff88; text-shadow: 0 0 10px rgba(0,255,136,0.5); }

.audit-cta {
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding-top: 36px; border-top: 1px solid rgba(255,255,255,0.06); width: 100%;
}
.audit-cta p { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }


/* ---- OVERLAY MENU OVERHAUL ---- */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.btn-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(131, 46, 255, 0.1);
  border: 1px solid rgba(131, 46, 255, 0.4);
  color: #fff;
  padding: 10px 24px;
  border-radius: 99px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 13px;
}
.btn-menu-trigger svg {
  width: 18px;
  height: 18px;
}
.btn-menu-trigger:hover {
  background: var(--neon-p);
  color: #000;
  box-shadow: 0 0 20px rgba(131, 46, 255, 0.6);
}

@media (max-width: 768px) {
  .btn-desktop-only { display: none; }
  .btn-menu-trigger { padding: 10px 16px; }
  .btn-menu-trigger .menu-text { display: none; }
}

/* Overlay Menu Container */
.tt-overlay-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  pointer-events: none;
}
.tt-overlay-menu.is-open {
  pointer-events: auto;
}

.tt-overlay-bg {
  position: absolute;
  inset: 0;
  background: rgba(8, 2, 15, 0.85);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.tt-overlay-menu.is-open .tt-overlay-bg {
  opacity: 1;
}

.tt-overlay-content {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(60px, 10vw, 120px) clamp(20px, 5vw, 60px);
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.tt-overlay-menu.is-open .tt-overlay-content {
  opacity: 1;
  transform: translateY(0);
}

.tt-overlay-close {
  position: absolute;
  top: clamp(20px, 4vw, 40px);
  right: clamp(20px, 4vw, 40px);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.tt-overlay-close:hover {
  background: rgba(255,255,255,0.1);
  transform: rotate(90deg);
}

/* Grid Layout */
.overlay-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 8vw, 80px);
  height: 100%;
}
@media (max-width: 900px) {
  .overlay-grid { grid-template-columns: 1fr; gap: 40px; }
}

.overlay-label {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--neon-v);
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Menu Links */
.overlay-nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.overlay-link {
  display: block;
  padding: 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.overlay-link:hover, .overlay-link.is-active {
  background: rgba(131, 46, 255, 0.1);
  border-color: rgba(131, 46, 255, 0.4);
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.overlay-link-title {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.overlay-link-desc {
  display: block;
  font-size: 15px;
  color: var(--muted);
}

/* Info Column */
.overlay-contact-box {
  background: rgba(10, 3, 20, 0.6);
  padding: 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 79, 243, 0.15);
  margin-bottom: 40px;
}
.overlay-contact-box p {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 24px;
}
.mt-3 { margin-top: 12px; }

.overlay-socials {
  display: flex;
  gap: 20px;
}
.overlay-socials a {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}
.overlay-socials a:hover { color: var(--neon-v); }

/* Inline Nav Specifics */
.btn-ghost-ultra {
  background: transparent;
  border: 1px solid rgba(131, 46, 255, 0.4);
  color: var(--neon-v);
}
.btn-ghost-ultra:hover {
  background: rgba(131, 46, 255, 0.1);
  color: #fff;
  border-color: var(--neon-p);
  box-shadow: 0 0 15px rgba(131, 46, 255, 0.4);
}

@media (max-width: 900px) {
  .nav-links-ultra { display: none; }
  .btn-ghost-ultra { display: none; }
}

/* ---- MASONRY REVIEWS UPGRADE ---- */
.masonry-reviews {
  column-count: 3;
  column-gap: 24px;
  width: 100%;
}
@media (max-width: 1024px) {
  .masonry-reviews { column-count: 2; }
}
@media (max-width: 650px) {
  .masonry-reviews { column-count: 1; }
}

.masonry-card {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 24px;
  position: relative;
  background: rgba(10, 3, 20, 0.6);
  border: 1px solid rgba(131, 46, 255, 0.15);
  border-radius: 20px;
  padding: 36px 32px;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(131, 46, 255, 0.05), 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.masonry-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 79, 243, 0.4);
  box-shadow: inset 0 0 50px rgba(131, 46, 255, 0.1), 0 20px 40px rgba(0,0,0,0.7), 0 0 20px rgba(255, 79, 243, 0.15);
}

.card-glow {
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-p), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.masonry-card:hover .card-glow { opacity: 1; }

.quote-mark {
  position: absolute;
  top: 10px;
  right: 20px;
  font-family: serif;
  font-size: 140px;
  color: rgba(255, 255, 255, 0.03);
  line-height: 1;
  pointer-events: none;
  font-weight: 900;
  transform: rotate(10deg);
  transition: color 0.4s ease, transform 0.4s ease;
}
.masonry-card:hover .quote-mark {
  color: rgba(131, 46, 255, 0.1);
  transform: rotate(0deg) scale(1.1);
}

.t-stars {
  color: var(--neon-v);
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 10px rgba(131, 46, 255, 0.5);
}

.masonry-card .t-quote {
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.6;
  color: #fff;
  font-weight: 500;
  margin: 0 0 32px 0;
  position: relative;
  z-index: 2;
}

.masonry-card .t-author {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 24px;
}

.masonry-card .t-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.masonry-card .t-name {
  display: block;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  margin-bottom: 4px;
}

.masonry-card .t-role {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* ---- BULLETPROOF FLEX MASONRY ---- */
.masonry-reviews-flex {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}
.masonry-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

@media (max-width: 1024px) {
  .masonry-reviews-flex {
    flex-wrap: wrap;
  }
  .masonry-col {
    flex: 1 1 calc(50% - 12px);
  }
}

@media (max-width: 650px) {
  .masonry-col {
    flex: 1 1 100%;
  }
}

/* Reset masonry-card to block so it naturally fills column */
.masonry-col .masonry-card {
  display: block;
  width: auto;
  margin-bottom: 0;
}

/* ---- PROCESS PAGE: LASER TIMELINE ---- */
.laser-timeline-container {
  position: relative;
  margin-top: 80px;
  padding-bottom: 80px;
}

/* The Wire & Laser */
.laser-wire {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  z-index: 1;
}
.laser-beam {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 0%; /* Animated via GSAP */
  background: var(--neon-v);
  box-shadow: 0 0 20px var(--neon-v), 0 0 40px var(--neon-p);
  border-radius: 4px;
  z-index: 2;
}

/* Individual Steps */
.laser-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 120px;
  position: relative;
  z-index: 3;
}
.laser-step:last-child {
  margin-bottom: 0;
}

/* Reverse layout for alternating sides */
.laser-step--reverse {
  flex-direction: row-reverse;
}

/* The Glowing Node */
.laser-node {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  background: #0d0518;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  z-index: 4;
  transition: all 0.4s ease;
}
.laser-step.is-active .laser-node {
  background: var(--neon-v);
  border-color: #fff;
  box-shadow: 0 0 30px var(--neon-p);
  transform: translate(-50%, -50%) scale(1.3);
}

/* Left & Right Columns */
.laser-content-left, .laser-content-right {
  width: calc(50% - 60px);
  position: relative;
}

/* The Glassmorphism Card */
.laser-card {
  position: relative;
  background: rgba(10, 3, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 48px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.laser-card:hover {
  transform: translateY(-5px);
  border-color: rgba(131, 46, 255, 0.3);
}
.laser-bg-num {
  position: absolute;
  top: -20px;
  right: -10px;
  font-family: var(--font-display);
  font-size: 180px;
  font-weight: 900;
  color: rgba(255,255,255,0.02);
  line-height: 1;
  pointer-events: none;
  z-index: 0;
}
.laser-card-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  color: var(--neon-v);
  background: rgba(131, 46, 255, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.laser-card-title {
  font-size: clamp(28px, 4vw, 36px);
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.laser-card-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Image Box */
.laser-image-box {
  width: 100%;
  aspect-ratio: 4/3;
  background-color: rgba(255,255,255,0.02);
  background-size: cover;
  background-position: center;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: inset 0 0 30px rgba(131, 46, 255, 0.1);
}

/* Mobile Adjustments */
@media (max-width: 900px) {
  .laser-wire { left: 30px; }
  .laser-beam { left: 30px; }
  .laser-step {
    flex-direction: column !important;
    align-items: flex-start;
    padding-left: 80px;
    margin-bottom: 60px;
  }
  .laser-node {
    left: 30px;
  }
  .laser-content-left, .laser-content-right {
    width: 100%;
  }
  .laser-content-right {
    margin-top: 20px;
  }
}

/* ---- PREMIUM SPLIT-SCREEN FAQ OVERHAUL ---- */
.premium-faq-container {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  max-width: 1400px;
}
.faq-left-panel {
  flex: 0 0 40%;
  position: sticky;
  top: 140px;
}
.faq-right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Glassmorphism Item overrides */
.premium-faq-container .faq-item {
  background: rgba(10, 3, 20, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 20px;
  padding: 32px 40px;
  margin: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden;
}
.premium-faq-container .faq-item:hover {
  border-color: rgba(131, 46, 255, 0.3) !important;
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5) !important;
}
.premium-faq-container .faq-item.open {
  background: rgba(20, 5, 40, 0.8);
  border-color: var(--neon-p) !important;
  box-shadow: inset 0 0 40px rgba(131, 46, 255, 0.1), 0 20px 50px rgba(0,0,0,0.6) !important;
  transform: translateY(-4px);
}

.premium-faq-container .faq-q {
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: #fff;
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  gap: 20px;
}
.premium-faq-container .faq-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 300;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.premium-faq-container .faq-item:hover .faq-icon {
  background: rgba(255,255,255,0.08);
}
.premium-faq-container .faq-item.open .faq-icon {
  background: var(--neon-v);
  color: #fff;
  border-color: transparent;
  transform: rotate(45deg);
  box-shadow: 0 0 20px var(--neon-p);
}

/* Fluid CSS Grid Animation */
.premium-faq-container .faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, margin 0.4s ease;
  opacity: 0;
  margin-top: 0;
  max-height: none !important; /* override old CSS */
}
.premium-faq-container .faq-item.open .faq-a {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 24px;
}
.premium-faq-container .faq-a > div {
  overflow: hidden;
}
.premium-faq-container .faq-a p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

@media (max-width: 1024px) {
  .premium-faq-container { flex-direction: column; gap: 60px; }
  .faq-left-panel { position: static; width: 100%; max-width: 700px; margin: 0 auto; text-align: center; }
  .faq-left-panel .contact-box { display: inline-block; text-align: left; max-width: 400px; }
  .premium-faq-container .faq-item { padding: 24px; }
}

/* ---- CINEMATIC EDITORIAL GALLERY ---- */
.editorial-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  width: 100%;
}

/* Card Base */
.ed-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #0a0314;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  transform: translateZ(0); /* Hardware accel */
}

/* Grid Sizing */
.ed-featured {
  grid-column: span 12;
  height: 600px;
}
.ed-wide {
  grid-column: span 7;
  height: 480px;
}
.ed-narrow {
  grid-column: span 5;
  height: 480px;
}

/* Mobile Fallback */
@media (max-width: 900px) {
  .ed-featured, .ed-wide, .ed-narrow {
    grid-column: span 12;
    height: auto;
    min-height: 400px;
    justify-content: flex-end;
  }
  .ed-card:hover .ed-content {
    transform: none;
  }
  .ed-content {
    padding: 30px 24px;
  }
  .ed-tech-stack {
    position: static;
    opacity: 1;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .ed-view-btn {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }
}

/* Background Image & Effects */
.ed-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(0.4);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
  z-index: 1;
}
.ed-card:hover .ed-bg {
  transform: scale(1.05);
  filter: grayscale(0) brightness(0.8);
}

/* Gradient Overlay */
.ed-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(5, 1, 15, 1) 0%, rgba(5, 1, 15, 0.6) 40%, transparent 100%);
  z-index: 2;
  transition: opacity 0.5s ease;
}
.ed-card:hover .ed-overlay {
  opacity: 0.8;
}

/* Typography & Content */
.ed-content {
  position: relative;
  z-index: 3;
  padding: 40px;
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ed-card:hover .ed-content {
  transform: translateY(-20px);
}

.ed-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.ed-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  line-height: 1.6;
  margin: 0;
}

/* Tags */
.ed-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.ed-tags .tag {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Tech Stack Slide-Up */
.ed-tech-stack {
  position: absolute;
  bottom: -60px;
  left: 40px;
  right: 40px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ed-card:hover .ed-tech-stack {
  bottom: 30px;
  opacity: 1;
}

.ed-tech-stack span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--neon-v);
  background: rgba(131, 46, 255, 0.1);
  border: 1px solid rgba(131, 46, 255, 0.3);
  padding: 4px 10px;
  border-radius: 6px;
}

.ed-view-btn {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--neon-p);
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(255, 79, 243, 0.4);
}

/* ---- APPLE-STYLE 3D ASSEMBLY ---- */
#assembly-zone {
  position: relative;
  transform-style: preserve-3d;
  width: 100%;
  height: 100%;
}

.floating-part {
  position: absolute;
  background: rgba(10, 3, 20, 0.8);
  border: 1px solid rgba(131, 46, 255, 0.3);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(131, 46, 255, 0.1);
  z-index: 0;
  opacity: 0; /* JS will handle visibility */
}

.part-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--neon-v);
  letter-spacing: 0.1em;
}

.cylinder-mesh {
  margin-top: 10px;
  width: 80px;
  height: 40px;
  border-radius: 50%;
  background: repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(255,79,243,0.2) 10px, rgba(255,79,243,0.2) 20px);
  border: 1px solid var(--neon-p);
  box-shadow: 0 0 15px var(--neon-p);
}

.grid-mesh {
  margin-top: 10px;
  width: 100px;
  height: 60px;
  background-image: linear-gradient(rgba(0, 255, 136, 0.2) 1px, transparent 1px),
  linear-gradient(90deg, rgba(0, 255, 136, 0.2) 1px, transparent 1px);
  background-size: 10px 10px;
  border: 1px solid var(--neon-g);
}

.part-db { top: -50px; left: -50px; }
.part-ai { bottom: -50px; right: -50px; }
.part-api { top: 40%; right: -80px; }

/* Enhance the main console to accept 3D transforms */
.console, .console-inner {
  transform-style: preserve-3d;
}
.part-piece {
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* ---- MEGA SKILLS BENTO GRID ---- */
.mega-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

.mega-skill-card {
  cursor: pointer;
  position: relative;
  border-radius: 24px;
  background: rgba(10, 3, 20, 0.6);
  border: 1px solid rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease;
}

.mega-wide { grid-column: span 2; }
.mega-square { grid-column: span 1; }

@media (max-width: 900px) {
  .mega-wide, .mega-square { grid-column: span 3; min-height: 350px; }
}

.mega-skill-card:hover {
  transform: translateY(-8px);
  border-color: rgba(131, 46, 255, 0.4);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 0 30px rgba(131, 46, 255, 0.1);
}

/* Background Effects */
.ms-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(1) opacity(0.3);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
  z-index: 1;
}
.mega-skill-card:hover .ms-bg {
  transform: scale(1.08);
  filter: grayscale(0) opacity(0.6);
}

.ms-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(10, 3, 20, 1) 0%, rgba(10, 3, 20, 0.4) 60%, transparent 100%);
  z-index: 2;
}

/* Content */
.ms-content {
  position: relative;
  z-index: 3;
  padding: 32px;
}

.ms-icon {
  font-size: 24px;
  color: var(--neon-v);
  margin-bottom: 16px;
  background: rgba(131, 46, 255, 0.1);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(131, 46, 255, 0.2);
  transition: all 0.4s ease;
}
.mega-skill-card:hover .ms-icon {
  background: var(--neon-v);
  color: #fff;
  box-shadow: 0 0 20px var(--neon-p);
  transform: rotate(15deg);
}

.ms-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.ms-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.mega-skill-card:hover .ms-desc {
  opacity: 0;
  transform: translateY(-10px);
}

/* Hover Stagger Tags */
.ms-tags {
  position: absolute;
  bottom: 32px;
  left: 32px;
  right: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ms-tags .stack-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stagger Delays */
.ms-tags .stack-tag:nth-child(1) { transition-delay: 0.0s; }
.ms-tags .stack-tag:nth-child(2) { transition-delay: 0.05s; }
.ms-tags .stack-tag:nth-child(3) { transition-delay: 0.1s; }
.ms-tags .stack-tag:nth-child(4) { transition-delay: 0.15s; }

.mega-skill-card:hover .ms-tags .stack-tag {
  opacity: 1;
  transform: translateY(0);
}

@media (hover: none), (max-width: 900px) {
  .mega-skill-card { cursor: default; justify-content: flex-end; }
  .mega-skill-card:hover .ms-desc { opacity: 1; transform: none; }
  .ms-tags { position: static; opacity: 1; margin-top: 16px; }
  .ms-tags .stack-tag { opacity: 1; transform: none; }
}

/* ---- AMBIENT FLYING PARTICLES ---- */
#ambient-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-particle {
  position: absolute;
  opacity: 0.15;
  will-change: transform, opacity;
}

/* Shapes */
.particle-plus::before, .particle-plus::after {
  content: '';
  position: absolute;
  background: var(--neon-v);
}
.particle-plus::before { width: 14px; height: 2px; top: 6px; left: 0; }
.particle-plus::after { width: 2px; height: 14px; top: 0; left: 6px; }

.particle-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--neon-p);
  box-shadow: 0 0 10px var(--neon-p);
}

.particle-square {
  width: 12px;
  height: 12px;
  border: 1px solid var(--neon-g);
  box-shadow: 0 0 8px var(--neon-g);
}


/* ==========================================================================
   HOMEPAGE FINAL UPGRADE: Horizontal Scroll, Marquee, Super CTA
   ========================================================================== */

/* 1. HORIZONTAL SCROLL FEATURED WORK */
.horizontal-scroll-wrapper {
  overflow: hidden;
  padding: 80px 0;
  width: 100%;
}
.horizontal-scroll-container {
  display: flex;
  gap: 40px;
  padding-left: 5%;
  width: max-content; /* Critical for GSAP x scroll */
}
.horizontal-card {
  width: 600px;
  height: 700px;
  border-radius: 24px;
  background: rgba(20,20,30,0.6);
  border: 1px solid rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
@media (max-width: 900px) {
  .horizontal-scroll-container {
    flex-direction: column;
    padding: 0 20px;
    width: 100%;
  }
  .horizontal-card {
    width: 100%;
    height: 500px;
  }
}
.hc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease;
  z-index: 1;
}
.horizontal-card:hover .hc-bg {
  transform: scale(1.05);
}
.horizontal-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,3,20,1) 0%, rgba(10,3,20,0) 60%);
  z-index: 2;
}
.hc-content {
  position: relative;
  z-index: 3;
  padding: 40px;
  transform: translateY(20px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.horizontal-card:hover .hc-content {
  transform: translateY(0);
}
.hc-tags { margin-bottom: 16px; display: flex; gap: 10px; }
.hc-title {
  font-family: var(--font-display);
  font-size: 32px;
  color: #fff;
  margin-bottom: 8px;
}
.hc-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
}


/* 2. INFINITE SOCIAL PROOF MARQUEE */
.marquee-wrapper {
  display: flex;
  flex-direction: column;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 40px 0 100px 0;
}

/* Gradient fades on left and right edges */
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15vw;
  z-index: 10;
  pointer-events: none;
}
.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-base), transparent);
}
.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-base), transparent);
}

.marquee {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 24px;
}

.marquee-content {
  flex-shrink: 0;
  display: flex;
  gap: 24px;
  min-width: 100%;
  animation: scroll-left 40s linear infinite;
}

.marquee-reverse {
  animation: scroll-right 40s linear infinite;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 24px)); }
}

@keyframes scroll-right {
  from { transform: translateX(calc(-100% - 24px)); }
  to { transform: translateX(0); }
}

.review-card {
  width: 450px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 20px;
  padding: 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
}
.review-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-5px);
}
.stars {
  color: var(--neon-v);
  font-size: 20px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.rc-text {
  font-size: 16px;
  line-height: 1.6;
  color: #fff;
  font-style: italic;
  margin-bottom: 24px;
  flex-grow: 1;
}
.rc-author {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* 3. THE ULTIMATE CINEMATIC CTA */
.super-cta {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.super-cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(131,46,255,0.15) 0%, #000 70%);
  opacity: 0; /* Will fade in via GSAP */
}
.super-cta-label {
  font-family: var(--font-display);
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(20px);
}
.super-cta-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 10vw, 150px);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 60px;
  opacity: 0;
  transform: scale(0.8);
}
.magnetic-btn {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: border-color 0.4s ease;
}
.mb-text {
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mb-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--neon-v) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
.magnetic-btn:hover {
  border-color: rgba(255,255,255,0.5);
}
.magnetic-btn:hover .mb-glow {
  opacity: 0.5;
  transform: scale(1.5);
}
.magnetic-btn:hover .mb-text {
  transform: scale(1.1);
}

/* ==========================================================================
   i18n SPLASH AND SWITCHER
   ========================================================================== */
.lang-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.lang-splash-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(131,46,255,0.15) 0%, #000 70%);
}
.lang-splash-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.lang-splash-title {
  font-family: var(--font-display);
  font-size: 32px;
  color: #fff;
  margin-bottom: 40px;
  letter-spacing: 2px;
}
.lang-options form {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.lang-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 16px 32px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.lang-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--neon-v);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(131,46,255,0.2);
}

/* Navbar Switcher */
.lang-switcher {
  position: relative;
  margin-right: 16px;
  display: inline-block;
}
.lang-current {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.lang-switcher:hover .lang-current {
  border-color: rgba(255,255,255,0.3);
}
.lang-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(10,3,20,0.9);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 8px;
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  min-width: 60px;
  text-align: center;
}
.lang-switcher:hover .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}
.lang-dropdown form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lang-dropdown button {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.7);
  padding: 8px;
  width: 100%;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}
.lang-dropdown button:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

/* HIDE GOOGLE TRANSLATE BANNER AND TOOLTIPS */
body {
    top: 0 !important;
}
.skiptranslate iframe,
.goog-te-banner-frame {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* ==========================================================================
   CODARA TOP TOOLS: language + theme
   ========================================================================== */
.codara-top-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(217, 224, 227, 0.78);
  border: 1px solid rgba(12, 16, 22, 0.06);
  box-shadow: 0 18px 45px rgba(83, 51, 140, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.codara-tool-btn {
  min-width: 3rem;
  height: 2.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(240, 246, 248, 0.86);
  color: #0c1016;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(.22,.68,0,1), background-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease;
}

.codara-tool-btn:hover,
.codara-tool-btn:focus-visible {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(83, 51, 140, 0.12);
  outline: none;
}

.codara-tool-btn[aria-pressed="true"] {
  background: #0c1016;
  color: #f0f6f8;
}

html.codara-theme-dark,
html.codara-theme-dark body {
  background: #0d0518 !important;
  color: #f6f1fc !important;
}

html.codara-theme-dark body,
html.codara-theme-dark .bg-sohub-white,
html.codara-theme-dark main,
html.codara-theme-dark .home-bottom-band,
html.codara-theme-dark .home-footer {
  background-color: #0d0518 !important;
}

html.codara-theme-dark .sohub-header {
  background: rgba(13, 5, 24, 0.62) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
}

html.codara-theme-dark .header-logo,
html.codara-theme-dark .text-sohub-black,
html.codara-theme-dark .home-footer-nav a,
html.codara-theme-dark .home-footer-meta,
html.codara-theme-dark .home-footer-tagline {
  color: #f6f1fc !important;
}

html.codara-theme-dark .text-sohub-grey {
  color: rgba(246, 241, 252, 0.68) !important;
}

html.codara-theme-dark .codara-top-tools {
  background: rgba(31, 13, 58, 0.78);
  border-color: rgba(255, 255, 255, 0.08);
}

html.codara-theme-dark .codara-tool-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #f6f1fc;
}

html.codara-theme-dark .codara-tool-btn[aria-pressed="true"] {
  background: #f6f1fc;
  color: #0d0518;
}

html.codara-theme-dark .home-footer-brand {
  background: linear-gradient(180deg, rgba(246, 241, 252, 0.82) 0%, rgba(192, 132, 252, 0.35) 62%, rgba(192, 132, 252, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

@media (max-width: 1023px) {
  .codara-top-tools {
    display: none;
  }
}
