  :root {
      --background: #ffffff;
      --foreground: #0d0d10;
      --muted-foreground: #6b6b75;
      --glass-bg: rgba(255, 255, 255, 0.6);
      --glass-border: rgba(0, 0, 0, 0.07);
      --orb-a: rgba(139, 92, 246, 0.14);
      --orb-b: rgba(99, 102, 241, 0.10);
      --orb-c: rgba(232, 121, 249, 0.08);
      --muted: #ececf0;
      --font-sans: 'Figtree', sans-serif;
      --font-display: 'Bricolage Grotesque', sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
  }

  .dark {
      --background: #0a0a0d;
      --foreground: #f3f2ee;
      --muted-foreground: #9a9aa4;
      --glass-bg: rgba(255, 255, 255, 0.05);
      --glass-border: rgba(255, 255, 255, 0.09);
      --orb-a: rgba(139, 92, 246, 0.22);
      --orb-b: rgba(99, 102, 241, 0.16);
      --orb-c: rgba(232, 121, 249, 0.10);
      --muted: #1c1c22;
  }

  * {
      box-sizing: border-box;
  }

  html,
  body {
      margin: 0;
      padding: 0;
  }

  body {
      background: var(--background);
      color: var(--foreground);
      font-family: var(--font-sans);
      -webkit-font-smoothing: antialiased;
      transition: background .4s, color .4s;
      min-height: 100vh;
      position: relative;
      overflow-x: hidden;
  }

  /* One continuous atmosphere spanning the full page height, so hero, about,
     projects, research, contact and footer all share the same light instead
     of each section carrying its own boxed-in glow. */
  body::before {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      transition: background .4s;
      background:
          radial-gradient(50vw 50vw at 18% 3%, var(--orb-a), transparent 62%),
          radial-gradient(42vw 42vw at 88% 14%, var(--orb-c), transparent 60%),
          radial-gradient(46vw 46vw at 10% 42%, var(--orb-b), transparent 62%),
          radial-gradient(44vw 44vw at 92% 60%, var(--orb-a), transparent 60%),
          radial-gradient(52vw 52vw at 18% 88%, var(--orb-c), transparent 60%),
          radial-gradient(50vw 50vw at 84% 100%, var(--orb-b), transparent 58%);
  }

  ::-webkit-scrollbar {
      width: 0;
      height: 0;
  }

  a {
      color: inherit;
      text-decoration: none;
  }

  @keyframes revealUp {
      from {
          opacity: 0;
          transform: translateY(28px)
      }

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

  @keyframes scaleIn {
      from {
          opacity: 0;
          transform: scale(.88)
      }

      to {
          opacity: 1;
          transform: scale(1)
      }
  }

  @keyframes slideRight {
      from {
          opacity: 0;
          transform: translateX(-24px)
      }

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

  @keyframes orbDrift {

      0%,
      100% {
          transform: translateY(0) scale(1)
      }

      50% {
          transform: translateY(-24px) scale(1.04)
      }
  }

  @keyframes orbDriftB {

      0%,
      100% {
          transform: translateY(0) scale(1)
      }

      50% {
          transform: translateY(18px) scale(.97)
      }
  }

  @keyframes gradShift {

      0%,
      100% {
          background-position: 0% 50%
      }

      50% {
          background-position: 100% 50%
      }
  }

  .grad-text {
      background: linear-gradient(135deg, #e879f9 0%, #a78bfa 45%, #818cf8 100%);
      background-size: 200% 200%;
      animation: gradShift 6s ease infinite;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
  }

  .orbs {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      overflow: hidden;
  }

  .orb {
      position: absolute;
      border-radius: 50%;
  }

  .orb-a {
      top: -18%;
      right: -12%;
      width: 55vw;
      height: 55vw;
      background: radial-gradient(circle, var(--orb-a), transparent 70%);
      animation: orbDrift 9s ease-in-out infinite;
  }

  .orb-b {
      bottom: -20%;
      left: -12%;
      width: 48vw;
      height: 48vw;
      background: radial-gradient(circle, var(--orb-b), transparent 70%);
      animation: orbDriftB 11s ease-in-out 1.5s infinite;
  }

  .orb-c {
      top: 42%;
      left: 30%;
      width: 32vw;
      height: 32vw;
      background: radial-gradient(circle, var(--orb-c), transparent 70%);
      animation: orbDrift 13s ease-in-out 4s infinite;
  }

  /* ===== full-width sticky nav ===== */
  .navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      background: transparent;
      border-bottom: 1px solid transparent;
      transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
      animation: revealUp 600ms cubic-bezier(.25, .1, .25, 1) 100ms both;
  }

  .navbar.scrolled {
      background: var(--glass-bg);
      border-bottom: 1px solid var(--glass-border);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
  }

  .nav-inner {
      max-width: 1080px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 68px;
      padding: 0 clamp(20px, 4vw, 40px);
  }

  .navlogo {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 38px;
      height: 38px;
      padding: 0;
      border: none;
      background: none;
      cursor: pointer;
      border-radius: 10px;
      flex-shrink: 0;
      transition: transform .3s cubic-bezier(.25,.1,.25,1), filter .3s ease;
  }

  .navlogo svg {
      display: block;
      width: 32px;
      height: 32px;
  }

  .navlogo:hover {
      transform: scale(1.07) rotate(-4deg);
      filter: drop-shadow(0 0 10px rgba(139, 92, 246, .45));
  }

  .navlogo:active {
      transform: scale(.96);
  }

  .navlinks {
      display: flex;
      align-items: center;
      gap: 4px;
  }

  .navlinks button.link {
      background: none;
      border: none;
      padding: 8px 16px;
      border-radius: 999px;
      cursor: pointer;
      font-family: var(--font-mono);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .1em;
      color: var(--muted-foreground);
      transition: all .2s;
  }

  .navlinks button.link:hover {
      color: var(--foreground);
      background: rgba(139, 92, 246, 0.1);
  }

  .nav-right {
      display: flex;
      align-items: center;
      gap: 14px;
  }

  .navdivider {
      width: 1px;
      height: 16px;
      background: var(--glass-border);
      margin: 0 4px;
  }

  .themebtn {
      width: 32px;
      height: 32px;
      border-radius: 999px;
      border: none;
      background: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--muted-foreground);
      transition: all .3s;
      flex-shrink: 0;
  }

  .themebtn:hover {
      color: var(--foreground);
      background: rgba(139, 92, 246, .1);
      transform: rotate(180deg);
  }

  /* language switch */
  .lang-switch {
      display: flex;
      gap: 2px;
      border: 1px solid var(--glass-border);
      border-radius: 999px;
      padding: 2px;
  }

  .lang-btn {
      background: none;
      border: none;
      padding: 5px 10px;
      border-radius: 999px;
      cursor: pointer;
      font-family: var(--font-mono);
      font-size: 10.5px;
      letter-spacing: .05em;
      color: var(--muted-foreground);
      transition: all .2s;
  }

  .lang-btn.active {
      background: linear-gradient(135deg, #8b5cf6, #6366f1);
      color: #fff;
  }

  .lang-btn:hover:not(.active) {
      color: var(--foreground);
  }

  /* hamburger + mobile menu */
  .hamburger {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 34px;
      height: 34px;
      background: none;
      border: none;
      cursor: pointer;
      z-index: 210;
      flex-shrink: 0;
  }

  .hamburger span {
      width: 20px;
      height: 2px;
      background: var(--foreground);
      transition: all .3s;
  }

  @media (max-width: 860px) {
      .navlinks, .nav-right .lang-switch.desktop-only {
          display: none;
      }
      .hamburger {
          display: flex;
      }
  }

  #mobileMenu {
      position: fixed;
      inset: 0;
      z-index: 200;
      background: var(--background);
      transform: translateY(-100%);
      transition: transform .45s cubic-bezier(.65, 0, .35, 1);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 30px;
  }

  #mobileMenu.open {
      transform: translateY(0);
  }

  .mobile-links {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 22px;
  }

  .mobile-links button {
      background: none;
      border: none;
      font-family: var(--font-display);
      font-size: 28px;
      font-weight: 700;
      color: var(--foreground);
      cursor: pointer;
  }

  #closeMenu {
      position: absolute;
      top: 20px;
      right: clamp(20px, 4vw, 40px);
      background: none;
      border: none;
      font-size: 30px;
      color: var(--foreground);
      cursor: pointer;
      line-height: 1;
  }

  .lang-switch.mobile {
      margin-top: 4px;
  }

  .lang-switch.mobile .lang-btn {
      padding: 8px 14px;
      font-size: 12px;
  }

  /* ===== scroll-triggered pop-in ===== */
  .reveal {
      opacity: 0;
      transform: translateY(26px) scale(.98);
      transition: opacity .65s cubic-bezier(.16,1,.3,1), transform .65s cubic-bezier(.16,1,.3,1);
  }

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

  /* RTL tweaks */
  html[dir="rtl"] .xp-head { flex-direction: row-reverse; }
  html[dir="rtl"] .facts { direction: rtl; }

  main {
      position: relative;
      z-index: 10;
      max-width: 1080px;
      margin: 0 auto;
      padding: 24px 20px 64px;
  }

  .grid {
      display: grid;
      grid-template-columns: repeat(12, 1fr);
      gap: 12px;
  }

  .glass {
      border-radius: 16px;
      border: 1px solid var(--glass-border);
      background: var(--glass-bg);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      position: relative;
      overflow: hidden;
      height: 100%;
      transition: border-color .3s, box-shadow .3s, transform .5s ease-out;
  }

  .glass.tilt:hover {
      box-shadow: 0 0 48px rgba(139, 92, 246, .12);
      border-color: rgba(167, 139, 250, .3);
  }

  .glow:hover {
      box-shadow: 0 0 48px rgba(139, 92, 246, .12);
      border-color: rgba(167, 139, 250, .3);
  }

  .gradborder {
      padding: 1px;
      border-radius: 16px;
      background: linear-gradient(135deg, rgba(232, 121, 249, .45), rgba(139, 92, 246, .45), rgba(99, 102, 241, .45));
  }

  .gradborder>.glass {
      border-radius: 15px;
  }

  .eyebrow {
      font-family: var(--font-mono);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .2em;
      color: var(--muted-foreground);
  }

  .fdisplay {
      font-family: var(--font-display);
  }

  .fmono {
      font-family: var(--font-mono);
  }

  .muted {
      color: var(--muted-foreground);
  }

  /* hero - full-bleed, no card chrome */
  .hero-full {
      position: relative;
      overflow: hidden;
      min-height: 100vh;
      min-height: 100svh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 128px 20px 64px;
      z-index: 1;
      animation: revealUp 700ms cubic-bezier(.25, .1, .25, 1) 100ms both;
  }

  .bg-marquee {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      overflow: hidden;
      z-index: 1;
      pointer-events: none;
      -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
      mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }

  .marquee-track {
      display: flex;
      align-items: center;
      white-space: nowrap;
      animation: marqueeScroll 22s linear infinite;
      will-change: transform;
  }

  .marquee-track span {
      font-family: var(--font-display);
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: -.01em;
      font-size: clamp(2.6rem, 9vw, 6.5rem);
      color: transparent;
      -webkit-text-stroke: 1.5px rgba(167, 139, 250, .3);
      padding-right: 48px;
      flex-shrink: 0;
  }

  @keyframes marqueeScroll {
      from {
          transform: translateX(0);
      }

      to {
          transform: translateX(-50%);
      }
  }

  .hero-content {
      position: relative;
      z-index: 2;
      width: 100%;
      max-width: 1080px;
      margin: 0 auto;
  }

  .hero-content .eyebrow,
  .hero-content h1,
  .hero-content .sub,
  .hero-content .hero-actions {
      max-width: 480px;
  }

  .hero-content h1 {
      color: #f3f2ee;
  }

  .hero-content .eyebrow {
      color: #c4b5fd;
  }

  .hero-content .sub {
      color: rgba(243, 242, 238, .72);
  }

  .scroll-cue {
      position: absolute;
      left: 50%;
      bottom: 36px;
      transform: translateX(-50%);
      z-index: 2;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      font-family: var(--font-mono);
      font-size: 11px;
      letter-spacing: .2em;
      text-transform: uppercase;
      color: var(--muted-foreground);
      animation: fadeInSlow 1.2s ease 900ms both;
  }

  .scroll-line {
      width: 1px;
      height: 40px;
      background: linear-gradient(to bottom, rgba(167, 139, 250, .7), transparent);
      animation: scrollLineMove 2s ease-in-out infinite;
  }

  @keyframes scrollLineMove {

      0%,
      100% {
          transform: scaleY(1);
          transform-origin: top;
      }

      50% {
          transform: scaleY(.4);
          transform-origin: top;
      }
  }

  @keyframes fadeInSlow {
      from {
          opacity: 0;
      }

      to {
          opacity: 1;
      }
  }

  @media (max-width: 900px) {
      .scroll-cue {
          display: none;
      }
  }

  /* ===== right-side vertical scroll indicator (simple, like most sites) ===== */
  .side-nav {
      position: fixed;
      right: 18px;
      left: auto;
      top: 50%;
      transform: translateY(-50%);
      z-index: 90;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      padding: 0;
      background: none;
      border: none;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
      animation: revealUp 700ms cubic-bezier(.25, .1, .25, 1) 300ms both;
  }

  .side-nav-arrow {
      display: none;
  }

  .scroll-hit {
      width: 24px;
      height: 130px;
      display: flex;
      align-items: stretch;
      justify-content: center;
      cursor: pointer;
      touch-action: none;
  }

  .scroll-track-visual {
      width: 3px;
      height: 100%;
      border-radius: 3px;
      background: rgba(139, 92, 246, .18);
      position: relative;
      overflow: hidden;
  }

  .scroll-fill {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 0%;
      border-radius: 3px;
      background: linear-gradient(180deg, #a78bfa, #6366f1);
      box-shadow: 0 0 8px rgba(139, 92, 246, .55);
  }

  .scroll-hit:hover .scroll-track-visual,
  .scroll-hit:active .scroll-track-visual {
      background: rgba(139, 92, 246, .3);
  }

  /* Back-to-top floating button */
  .back-to-top {
      position: fixed;
      right: 20px;
      bottom: 24px;
      z-index: 90;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      color: var(--foreground);
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      transform: translateY(8px);
      transition: opacity .25s ease, transform .25s ease, background .2s;
  }

  .back-to-top.visible {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
  }

  .back-to-top:hover {
      background: rgba(139, 92, 246, .16);
      border-color: rgba(139, 92, 246, .3);
  }

  html[dir="rtl"] .back-to-top {
      right: auto;
      left: 20px;
  }

  @media (max-width: 900px) {
      .back-to-top {
          right: 14px;
          bottom: 18px;
      }

      html[dir="rtl"] .back-to-top {
          left: 14px;
      }
  }

  html[dir="rtl"] .side-nav {
      right: auto;
      left: 18px;
  }

  @media (max-width: 900px) {
      .side-nav {
          right: 8px;
      }

      .scroll-hit {
          height: 110px;
      }
  }

  .hero-illustration {
      position: absolute;
      left: 50%;
      bottom: 0;
      transform: translateX(-50%);
      height: 94%;
      max-height: 440px;
      width: auto;
      z-index: 2;
      object-fit: contain;
      pointer-events: none;
      filter: drop-shadow(0 20px 60px rgba(139, 92, 246, .35));
      animation: heroFloat 6s ease-in-out infinite;
  }

  @keyframes heroFloat {

      0%,
      100% {
          transform: translateX(-50%) translateY(0);
      }

      50% {
          transform: translateX(-50%) translateY(-14px);
      }
  }

  @media (max-width: 900px) {
      .hero-full {
          min-height: 100vh;
          min-height: 100svh;
          padding-top: 110px;
      }

      .hero-illustration {
          height: auto;
          width: 68%;
          max-width: 320px;
          bottom: 20px;
      }
  }

  .hero-content h1 {
      font-size: clamp(2.6rem, 7vw, 5.5rem);
      line-height: .92;
      letter-spacing: -.02em;
      font-weight: 800;
      margin: 20px 0;
  }

  .hero-content p.sub {
      font-size: 16px;
      line-height: 1.6;
  }

  .hero-signature {
      font-family: var(--font-mono);
      font-size: 12.5px;
      color: rgba(243, 242, 238, .6);
      margin-top: -6px;
  }

  .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      margin-top: 32px;
  }

  .btn-primary {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 13px 26px;
      border-radius: 999px;
      color: #fff;
      font-weight: 600;
      font-size: 14px;
      background: linear-gradient(135deg, #8b5cf6, #6366f1);
      box-shadow: 0 4px 24px rgba(139, 92, 246, .35);
      border: none;
      cursor: pointer;
      transition: transform .2s;
  }

  .btn-primary:hover {
      transform: scale(1.05);
  }

  .btn-ghost {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 13px 26px;
      border-radius: 999px;
      font-weight: 600;
      font-size: 14px;
      background: var(--glass-bg);
      border: 1px solid var(--glass-border);
      transition: transform .2s;
  }

  .btn-ghost:hover {
      transform: scale(1.05);
  }

  .status-card {
      grid-column: span 6;
      padding: 24px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 160px;
  }

  .loc-card {
      grid-column: span 6;
      padding: 24px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 160px;
  }

  @media(min-width:1024px) {
      .status-card {
          grid-column: span 4;
      }

      .loc-card {
          grid-column: span 4;
      }
  }

  .chip {
      padding: 5px 10px;
      border-radius: 999px;
      font-family: var(--font-mono);
      font-size: 11px;
      background: rgba(139, 92, 246, .12);
      color: #a78bfa;
      border: 1px solid rgba(139, 92, 246, .2);
  }

  .about-card {
      grid-column: span 12;
      padding: 28px;
  }

  .skills-card {
      grid-column: span 12;
      padding: 28px;
  }

  @media(min-width:1024px) {
      .about-card {
          grid-column: span 5;
      }

      .skills-card {
          grid-column: span 7;
      }
  }

  .about-card p {
      font-size: 14px;
      line-height: 1.7;
      color: var(--muted-foreground);
      margin: 0 0 12px;
  }

  .about-card p.lead {
      color: var(--foreground);
      opacity: .85;
  }

  .skillchip {
      padding: 7px 14px;
      border-radius: 999px;
      font-family: var(--font-mono);
      font-size: 12px;
      font-weight: 500;
      transition: transform .2s;
      cursor: default;
  }

  .skillchip:hover {
      transform: scale(1.05);
  }

  .skillwrap {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
  }

  .divider {
      border-top: 1px solid var(--glass-border);
      margin-top: 24px;
      padding-top: 20px;
  }

  .svc-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
  }

  @media(min-width:640px) {
      .svc-grid {
          grid-template-columns: repeat(3, 1fr);
      }
  }

  .svc-item {
      padding: 12px;
      border-radius: 12px;
      background: rgba(139, 92, 246, .06);
      border: 1px solid rgba(139, 92, 246, .1);
      transition: transform .2s;
  }

  .svc-item:hover {
      transform: scale(1.02);
  }

  .svc-item .title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 12px;
      margin: 8px 0 2px;
  }

  .svc-item .desc {
      font-size: 11px;
      line-height: 1.4;
      color: var(--muted-foreground);
  }

  .ach-card {
      grid-column: span 6;
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-height: 160px;
  }

  @media(min-width:1024px) {
      .ach-card {
          grid-column: span 3;
      }
  }

  .ach-big {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 30px;
  }

  .ach-body {
      font-size: 12px;
      color: var(--muted-foreground);
      line-height: 1.5;
      margin-top: auto;
  }

  .exp-card {
      grid-column: span 12;
      padding: 28px;
  }

  .qf-stack {
      grid-column: span 12;
      display: flex;
      flex-direction: column;
      gap: 12px;
  }

  @media(min-width:1024px) {
      .exp-card {
          grid-column: span 7;
      }

      .qf-stack {
          grid-column: span 5;
      }
  }

  .qf-inner {
      padding: 24px;
      flex: 1;
  }

  .xp-row {
      padding: 20px 0;
      border-bottom: 1px solid var(--glass-border);
  }

  .xp-row:last-child {
      border-bottom: none;
      padding-bottom: 0;
  }

  .xp-row:first-child {
      padding-top: 0;
  }

  .xp-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      margin-bottom: 10px;
      gap: 10px;
  }

  .xp-role {
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 14px;
  }

  .xp-org {
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--muted-foreground);
  }

  .xp-period {
      font-family: var(--font-mono);
      font-size: 11px;
      padding: 2px 10px;
      border-radius: 999px;
      background: var(--muted);
      border: 1px solid var(--glass-border);
      white-space: nowrap;
      color: var(--muted-foreground);
  }

  .xp-points {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 6px;
  }

  .xp-points li {
      display: flex;
      gap: 8px;
      font-size: 12px;
      color: var(--muted-foreground);
      align-items: flex-start;
  }

  .xp-points li svg {
      color: #a78bfa;
      margin-top: 2px;
      flex-shrink: 0;
  }

  .contact-card {
      grid-column: span 12;
      padding: 32px;
  }

  @media(min-width:768px) {
      .contact-card {
          padding: 48px;
      }
  }

  .contact-grid {
      display: grid;
      gap: 36px;
      position: relative;
      z-index: 2;
  }

  @media(min-width:1024px) {
      .contact-grid {
          grid-template-columns: 1fr 1fr;
          align-items: center;
      }
  }

  .contact-grid h2 {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: clamp(2rem, 5vw, 3rem);
      letter-spacing: -.02em;
      margin: 0 0 16px;
  }

  .contact-grid p {
      max-width: 340px;
      color: var(--muted-foreground);
      font-size: 14px;
      line-height: 1.6;
      margin-bottom: 28px;
  }

  .facts {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 14px;
  }

  .fact {
      padding: 16px;
      border-radius: 12px;
      background: rgba(139, 92, 246, .07);
      border: 1px solid rgba(139, 92, 246, .12);
  }

  .fact .flabel {
      font-family: var(--font-mono);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .1em;
      color: var(--muted-foreground);
      margin-bottom: 8px;
  }

  .fact .fvalue {
      font-weight: 600;
      font-size: 14px;
      white-space: pre-line;
      line-height: 1.35;
  }

  footer {
      position: relative;
      z-index: 10;
      max-width: 1080px;
      margin: 0 auto;
      padding: 0 20px 40px;
      display: flex;
      justify-content: space-between;
      font-family: var(--font-mono);
      font-size: 11px;
      color: var(--muted-foreground);
  }

  #about,
  #services,
  #work,
  #projects,
  #research,
  #process,
  #faq,
  #contact {
      scroll-margin-top: 92px;
  }

  footer span:last-child {
      opacity: .4;
  }

  /* ================= GENERIC LABEL/VALUE (reused by modal + contact facts) ================= */
  .flabel {
      font-family: var(--font-mono);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .1em;
      color: var(--muted-foreground);
      margin-right: 6px;
  }

  .fvalue {
      font-weight: 600;
  }

  /* ================= SHOWCASE CARDS (Projects + Research, matched sizing) ================= */
  .showcase-card {
      grid-column: span 12;
  }

  .showcase-title {
      font-weight: 700;
      font-size: clamp(1.2rem, 2.6vw, 1.6rem);
      line-height: 1.25;
      margin: 0 0 12px;
  }

  .showcase-desc {
      font-size: 13.5px;
      line-height: 1.7;
      margin: 0 0 18px;
      max-width: 620px;
  }

  .showcase-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 24px;
  }

  .showcase-cta {
      display: inline-flex;
      margin-top: 24px;
  }

  /* Challenge / Approach / Result mini case-study, used in Projects */
  .case-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      margin: 4px 0 24px;
      padding: 18px 0 22px;
      border-top: 1px solid var(--glass-border);
      border-bottom: 1px solid var(--glass-border);
  }

  .case-item .eyebrow {
      margin-bottom: 8px;
      display: block;
  }

  .case-item p {
      font-size: 12.5px;
      line-height: 1.6;
      margin: 0;
      color: var(--foreground);
  }

  @media (max-width: 700px) {
      .case-grid {
          grid-template-columns: 1fr;
          gap: 16px;
      }
  }

  /* Scrollable 3-image gallery, shared by Projects & Research */
  .gallery-wrap {
      position: relative;
  }

  .gallery-track {
      display: flex;
      gap: 16px;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scrollbar-width: thin;
      scrollbar-color: rgba(167, 139, 250, .4) transparent;
      padding-bottom: 6px;
      margin: 0 -4px;
      padding-left: 4px;
      padding-right: 4px;
  }

  .gallery-track::-webkit-scrollbar {
      height: 6px;
  }

  .gallery-track::-webkit-scrollbar-thumb {
      background: rgba(167, 139, 250, .35);
      border-radius: 999px;
  }

  .gallery-img {
      scroll-snap-align: start;
      flex: 0 0 auto;
      height: 230px;
      width: auto;
      max-width: min(420px, 82vw);
      border-radius: 14px;
      object-fit: contain;
      border: 1px solid var(--glass-border);
      background: #0d0c14;
      cursor: zoom-in;
      transition: transform .3s ease, border-color .3s ease;
  }

  .gallery-img:hover {
      transform: translateY(-3px);
      border-color: rgba(167, 139, 250, .4);
  }

  @media (max-width: 640px) {
      .gallery-img {
          height: 200px;
      }
  }

  .gallery-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 2;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      background: rgba(13, 12, 20, .85);
      border: 1px solid var(--glass-border);
      color: var(--foreground);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: background .2s, border-color .2s;
  }

  .gallery-arrow:hover {
      background: rgba(139, 92, 246, .3);
      border-color: rgba(167, 139, 250, .5);
  }

  .gallery-prev {
      left: -6px;
  }

  .gallery-next {
      right: -6px;
  }

  @media(max-width:640px) {
      .gallery-arrow {
          display: none;
      }
  }

  /* ================= IMAGE LIGHTBOX (Projects + Research galleries) ================= */
  .lightbox-overlay {
      position: fixed;
      inset: 0;
      z-index: 300;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 40px;
      background: rgba(4, 3, 8, .86);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      opacity: 0;
      pointer-events: none;
      transition: opacity .25s ease;
  }

  .lightbox-overlay.open {
      opacity: 1;
      pointer-events: auto;
  }

  .lightbox-img {
      max-width: min(92vw, 1100px);
      max-height: 86vh;
      object-fit: contain;
      border-radius: 12px;
      box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
      transform: scale(.96);
      transition: transform .3s cubic-bezier(.25, .1, .25, 1);
  }

  .lightbox-overlay.open .lightbox-img {
      transform: scale(1);
  }

  .lightbox-close {
      position: absolute;
      top: 22px;
      right: 26px;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, .18);
      background: rgba(255, 255, 255, .06);
      color: #f3f2ee;
      font-size: 22px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background .2s, transform .2s;
  }

  .lightbox-close:hover {
      background: rgba(255, 255, 255, .14);
      transform: rotate(90deg);
  }

  .lightbox-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 44px;
      height: 44px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, .16);
      background: rgba(255, 255, 255, .06);
      color: #f3f2ee;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background .2s;
  }

  .lightbox-arrow:hover {
      background: rgba(139, 92, 246, .35);
  }

  .lightbox-prev {
      left: 26px;
  }

  .lightbox-next {
      right: 26px;
  }

  @media (max-width: 640px) {
      .lightbox-overlay {
          padding: 16px;
      }

      .lightbox-arrow {
          width: 36px;
          height: 36px;
      }

      .lightbox-prev {
          left: 8px;
      }

      .lightbox-next {
          right: 8px;
      }

      .lightbox-close {
          top: 14px;
          right: 14px;
      }
  }

  /* ================= RESEARCH MODAL ================= */
  .research-modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 200;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      padding: 60px 20px;
      overflow-y: auto;
      background: rgba(6, 5, 10, .72);
      backdrop-filter: blur(6px);
      -webkit-backdrop-filter: blur(6px);
      opacity: 0;
      pointer-events: none;
      transition: opacity .25s ease;
  }

  .research-modal-overlay.open {
      opacity: 1;
      pointer-events: auto;
  }

  .research-modal {
      position: relative;
      width: 100%;
      max-width: 720px;
      background: #0d0c14;
      border: 1px solid var(--glass-border);
      border-radius: 20px;
      padding: 40px;
      transform: translateY(18px);
      transition: transform .3s cubic-bezier(.25, .1, .25, 1);
      box-shadow: 0 30px 90px rgba(0, 0, 0, .5);
  }

  .research-modal-overlay.open .research-modal {
      transform: translateY(0);
  }

  @media(max-width:600px) {
      .research-modal {
          padding: 28px 22px;
      }
  }

  .research-modal-close {
      position: absolute;
      top: 18px;
      right: 18px;
      width: 34px;
      height: 34px;
      border-radius: 50%;
      border: 1px solid var(--glass-border);
      background: rgba(255, 255, 255, .04);
      color: var(--foreground);
      font-size: 20px;
      line-height: 1;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background .2s, transform .2s;
  }

  html[dir="rtl"] .research-modal-close {
      right: auto;
      left: 18px;
  }

  .research-modal-close:hover {
      background: rgba(255, 255, 255, .1);
      transform: rotate(90deg);
  }

  .research-modal-eyebrow {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .18em;
      color: #a78bfa;
      margin-bottom: 14px;
  }

  .research-modal-title {
      font-weight: 800;
      font-size: clamp(1.5rem, 4vw, 2.1rem);
      line-height: 1.1;
      margin: 0 0 8px;
  }

  .research-modal-subtitle {
      font-style: italic;
      color: var(--muted-foreground);
      font-size: 15px;
      margin: 0 0 22px;
  }

  .research-modal-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 10px 26px;
      padding: 16px 0;
      border-top: 1px solid var(--glass-border);
      border-bottom: 1px solid var(--glass-border);
      margin-bottom: 24px;
      font-size: 13px;
  }

  .research-modal-abstract {
      font-size: 13.5px;
      line-height: 1.8;
      color: var(--muted-foreground);
      margin-bottom: 30px;
  }

  .research-modal-plan-title {
      font-family: var(--font-mono);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .18em;
      color: var(--muted-foreground);
      margin-bottom: 14px;
  }

  .research-modal-plan {
      margin-bottom: 30px;
  }

  .plan-row {
      display: flex;
      gap: 16px;
      align-items: baseline;
      padding: 12px 0;
      border-bottom: 1px solid var(--glass-border);
  }

  .plan-row:last-child {
      border-bottom: none;
  }

  .plan-num {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 18px;
      color: #a78bfa;
      flex-shrink: 0;
      width: 28px;
  }

  .plan-item-title {
      display: block;
      font-weight: 600;
      font-size: 13.5px;
  }

  .plan-item-sub {
      display: block;
      font-size: 11.5px;
      color: var(--muted-foreground);
      margin-top: 2px;
  }

  .research-modal-downloads {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
  }

  /* ================= CONTACT - full bleed (no card) ================= */
  .contact-full {
      position: relative;
      overflow: hidden;
      padding: 100px 20px;
      text-align: center;
      z-index: 1;
  }

  .contact-full .bg-marquee .marquee-track span {
      -webkit-text-stroke: 1.5px rgba(167, 139, 250, .16);
  }

  .contact-content {
      position: relative;
      z-index: 2;
      max-width: 720px;
      margin: 0 auto;
  }

  .contact-num {
      margin-bottom: 18px;
      color: #a78bfa;
  }

  .contact-heading {
      font-weight: 800;
      font-size: clamp(2.6rem, 7vw, 4.6rem);
      line-height: 1.05;
      letter-spacing: -.02em;
      margin: 0 0 22px;
  }

  .script-accent {
      font-family: 'Instrument Serif', serif;
      font-style: italic;
      font-weight: 400;
      display: inline-block;
  }

  .contact-sub {
      max-width: 480px;
      margin: 0 auto 32px;
      color: var(--muted-foreground);
      font-size: 15px;
      line-height: 1.7;
  }

  .contact-cta {
      margin: 0 auto 48px;
  }

  .contact-facts-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: center;
      gap: 10px;
      font-size: 12.5px;
      color: var(--muted-foreground);
  }

  .contact-facts-row .flabel {
      margin-right: 4px;
  }

  .cf-dot {
      opacity: .4;
  }

  @media(max-width:600px) {
      .contact-full {
          padding: 72px 16px;
      }

      .contact-facts-row {
          flex-direction: column;
          gap: 8px;
      }

      .cf-dot {
          display: none;
      }
  }
  /* ================= REPOSITIONING ADD-ONS (why-us, packages, process, faq, contact form) ================= */

  .whyus-card {
      grid-column: span 6;
      padding: 24px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      min-height: 150px;
  }

  @media(min-width:1024px) {
      .whyus-card {
          grid-column: span 3;
      }
  }

  .whyus-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(139, 92, 246, .12);
      border: 1px solid rgba(139, 92, 246, .2);
      color: #a78bfa;
  }

  .whyus-title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 14px;
  }

  .whyus-body {
      font-size: 12px;
      line-height: 1.6;
      color: var(--muted-foreground);
  }

  /* Single landing-page offer */
  .landing-package {
      grid-column: span 12;
      padding: 32px;
  }

  .lp-top {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: flex-start;
      gap: 20px;
      margin-bottom: 22px;
  }

  .lp-name {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: clamp(1.3rem, 3vw, 1.7rem);
      margin: 6px 0 8px;
  }

  .lp-tagline {
      font-size: 13.5px;
      color: var(--muted-foreground);
      max-width: 440px;
      line-height: 1.6;
  }

  .lp-price-block {
      text-align: right;
      flex-shrink: 0;
  }

  .lp-price {
      font-family: var(--font-mono);
      font-size: 20px;
      font-weight: 700;
      color: var(--foreground);
  }

  .lp-price-label {
      font-size: 11px;
      color: var(--muted-foreground);
      text-transform: uppercase;
      letter-spacing: .06em;
      margin-bottom: 2px;
  }

  .lp-price-old {
      font-family: var(--font-mono);
      font-size: 13px;
      font-weight: 500;
      color: var(--muted-foreground);
      text-decoration: line-through;
      margin-inline-start: 8px;
  }

  .lp-price-badge {
      display: inline-block;
      margin-top: 6px;
      font-size: 10.5px;
      font-weight: 700;
      letter-spacing: .04em;
      color: #34d399;
      background: rgba(52, 211, 153, .1);
      border: 1px solid rgba(52, 211, 153, .22);
      padding: 3px 9px;
      border-radius: 999px;
  }

  .lp-perfect-row {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 26px;
      padding-bottom: 26px;
      border-bottom: 1px solid var(--glass-border);
  }

  .lp-categories {
      display: grid;
      grid-template-columns: 1fr;
      gap: 22px;
      margin-bottom: 26px;
  }

  @media(min-width:768px) {
      .lp-categories {
          grid-template-columns: repeat(2, 1fr);
          gap: 26px 32px;
      }
  }

  .lp-cat-title {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 12.5px;
      text-transform: uppercase;
      letter-spacing: .05em;
      color: #a78bfa;
      margin-bottom: 10px;
  }

  .lp-cat-list {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 7px;
  }

  .lp-cat-list li {
      display: flex;
      gap: 8px;
      align-items: flex-start;
      font-size: 12.5px;
      color: var(--foreground);
  }

  .lp-cat-list li i {
      color: #34d399;
      margin-top: 2px;
      flex-shrink: 0;
  }

  .lp-bottom-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
  }

  .lp-custom-note {
      font-size: 12px;
      color: var(--muted-foreground);
      max-width: 320px;
      line-height: 1.5;
  }

  .coming-soon-card {
      grid-column: span 12;
      padding: 20px 22px;
      opacity: .68;
  }

  @media(min-width:1024px) {
      .coming-soon-card {
          grid-column: span 4;
      }
  }

  .cs-badge {
      display: inline-block;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: .06em;
      text-transform: uppercase;
      color: #a78bfa;
      background: rgba(139, 92, 246, .1);
      border: 1px solid rgba(139, 92, 246, .18);
      padding: 3px 9px;
      border-radius: 999px;
      margin-bottom: 10px;
  }

  .cs-name {
      font-family: var(--font-display);
      font-weight: 700;
      font-size: 13.5px;
  }

  /* Process */
  .process-card {
      grid-column: span 12;
      padding: 28px;
  }

  .process-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 0;
  }

  @media(min-width:768px) {
      .process-grid {
          grid-template-columns: repeat(2, 1fr);
          gap: 0 32px;
      }
  }

  /* FAQ */
  .faq-card {
      grid-column: span 12;
      padding: 12px 28px;
  }

  .faq-item {
      border-bottom: 1px solid var(--glass-border);
      padding: 18px 0;
  }

  .faq-item:last-child {
      border-bottom: none;
  }

  .faq-item summary {
      cursor: pointer;
      list-style: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      font-family: var(--font-display);
      font-weight: 600;
      font-size: 14px;
  }

  .faq-item summary::-webkit-details-marker {
      display: none;
  }

  .faq-item summary .faq-plus {
      flex-shrink: 0;
      color: #a78bfa;
      transition: transform .25s;
  }

  .faq-item[open] summary .faq-plus {
      transform: rotate(45deg);
  }

  .faq-item p {
      font-size: 13px;
      line-height: 1.7;
      color: var(--muted-foreground);
      margin: 12px 0 0;
  }

  /* Research - sits next to About, sized to fill the remaining grid row */
  .research-compact {
      grid-column: span 12;
      padding: 28px;
  }

  @media(min-width:1024px) {
      .research-compact {
          grid-column: span 7;
      }
  }

  .research-compact .rc-text {
      max-width: 460px;
  }

  .research-compact p {
      font-size: 12.5px;
      color: var(--muted-foreground);
      line-height: 1.6;
      margin: 6px 0 0;
  }

  .rc-top {
      display: flex;
      flex-direction: column;
      gap: 16px;
  }

  .rc-gallery .gallery-img {
      height: 190px;
      max-width: min(300px, 78vw);
  }

  /* Contact form (mailto-assisted) */
  .contact-form {
      width: 100%;
      max-width: 460px;
      margin: 28px 0;
      display: flex;
      flex-direction: column;
      gap: 12px;
      position: relative;
      z-index: 2;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
      width: 100%;
      padding: 13px 16px;
      border-radius: 12px;
      background: rgba(255, 255, 255, .06);
      border: 1px solid rgba(255, 255, 255, .14);
      color: #f3f2ee;
      font-family: var(--font-body, inherit);
      font-size: 13.5px;
  }

  .contact-form input::placeholder,
  .contact-form textarea::placeholder {
      color: rgba(243, 242, 238, .45);
  }

  .contact-form textarea {
      resize: vertical;
      min-height: 84px;
  }

  .contact-form select option {
      color: #111;
  }

  /* Honeypot - visually hidden, still reachable by bots that fill everything */
  .cf-hp {
      position: absolute;
      left: -9999px;
      width: 1px;
      height: 1px;
      overflow: hidden;
  }

  .cf-row {
      display: flex;
      gap: 12px;
  }

  .cf-row input {
      flex: 1;
      min-width: 0;
  }

  @media (max-width: 560px) {
      .cf-row {
          flex-direction: column;
      }
  }

  .cf-field-group {
      display: flex;
      flex-direction: column;
      gap: 8px;
      padding: 4px 2px;
  }

  .cf-label {
      font-size: 12.5px;
      color: rgba(243, 242, 238, .65);
  }

  .cf-radio-row {
      display: flex;
      gap: 18px;
  }

  .cf-radio-col {
      display: flex;
      flex-direction: column;
      gap: 8px;
  }

  .cf-radio {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 13.5px;
      color: #f3f2ee;
      cursor: pointer;
  }

  .cf-radio input {
      accent-color: #a78bfa;
      width: 15px;
      height: 15px;
      cursor: pointer;
  }

  .cf-status {
      font-size: 13px;
      min-height: 18px;
      margin: 0;
  }

  .cf-status.success {
      color: #6ee7b7;
  }

  .cf-status.error {
      color: #fca5a5;
  }

  .contact-form button[disabled] {
      opacity: .6;
      cursor: not-allowed;
  }
