/* ========================================
       RESET
       ======================================== */
    *, *::before, *::after {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    /* ========================================
       THEME — LIGHT (default)
       ======================================== */
    :root,
    [data-theme="dark"] {
      --bg: #FFFFFF;
      --bg-card: #F4F4F5;
      --bg-hover: #E4E4E7;
      --accent: #2563EB;
      --accent-dim: rgba(37, 99, 235, 0.08);
      --accent-border: rgba(37, 99, 235, 0.25);
      --accent-glow: rgba(37, 99, 235, 0.15);
      --text: #18181B;
      --text-secondary: #52525B;
      --text-muted: #71717A;
      --border: rgba(0, 0, 0, 0.08);
      --border-hover: rgba(0, 0, 0, 0.15);
      --glass-bg: rgba(255, 255, 255, 0.7);
      --glass-border: rgba(0, 0, 0, 0.06);
      --code-bg: rgba(0, 0, 0, 0.04);
      --shadow-card: 0 1px 3px rgba(0,0,0,0.06);
      --shadow-card-hover: 0 12px 32px rgba(0,0,0,0.1);
      --hero-mesh-1: rgba(37, 99, 235, 0.07);
      --hero-mesh-2: rgba(139, 92, 246, 0.05);
      --hero-mesh-3: rgba(6, 182, 212, 0.05);
      --gradient-number: linear-gradient(135deg, #2563EB, #7C3AED);
      --section-divider: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.12), transparent);
      --navbar-scrolled: rgba(255, 255, 255, 0.85);

      --font-display: 'Syne', sans-serif;
      --font-body: 'DM Sans', sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      --container: 1120px;
      --section-gap: clamp(48px, 8vw, 120px);
      --radius: 12px;
      --radius-sm: 8px;
      --transition: 200ms ease;
    }

    /* ========================================
       THEME — DARK
       ======================================== */
    [data-theme="dark"] {
      --bg: #09090B;
      --bg-card: #18181B;
      --bg-hover: #27272A;
      --accent: #3B82F6;
      --accent-dim: rgba(59, 130, 246, 0.1);
      --accent-border: rgba(59, 130, 246, 0.3);
      --accent-glow: rgba(59, 130, 246, 0.2);
      --text: #FAFAFA;
      --text-secondary: #A1A1AA;
      --text-muted: #52525B;
      --border: rgba(255, 255, 255, 0.06);
      --border-hover: rgba(255, 255, 255, 0.12);
      --glass-bg: rgba(9, 9, 11, 0.8);
      --glass-border: rgba(255, 255, 255, 0.06);
      --code-bg: rgba(255, 255, 255, 0.04);
      --shadow-card: 0 1px 3px rgba(0,0,0,0.3);
      --shadow-card-hover: 0 12px 32px rgba(0,0,0,0.4);
      --hero-mesh-1: rgba(59, 130, 246, 0.08);
      --hero-mesh-2: rgba(139, 92, 246, 0.06);
      --hero-mesh-3: rgba(6, 182, 212, 0.06);
      --gradient-number: linear-gradient(135deg, #3B82F6, #A78BFA);
      --section-divider: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.15), transparent);
      --navbar-scrolled: rgba(9, 9, 11, 0.85);
    }

    /* ========================================
       BASE
       ======================================== */
    html {
      scroll-behavior: smooth;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    html {
      color-scheme: light dark;
    }

    body {
      font-family: var(--font-body);
      font-size: 16px;
      line-height: 1.6;
      color: var(--text-secondary);
      background: var(--bg);
      overflow-x: hidden;
    }

    /* Smooth theme transitions on ALL elements for theme toggle */
    /* theme transitions handled by JS */

    /* Disable transitions on initial page load to prevent flash */
    html.no-transition, html.no-transition *, html.no-transition *::before, html.no-transition *::after {
      transition: none !important;
    }

    ::selection {
      background: var(--accent);
      color: #fff;
    }

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

    img {
      max-width: 100%;
      display: block;
    }

    button, input, textarea {
      font-family: inherit;
      font-size: inherit;
      color: inherit;
      border: none;
      outline: none;
      background: none;
    }

    .container {
      max-width: var(--container);
      margin: 0 auto;
      padding: 0 24px;
    }

    /* ========================================
       TYPOGRAPHY
       ======================================== */
    h1, h2, h3, h4 {
      font-family: var(--font-display);
      color: var(--text);
      line-height: 1.15;
      font-weight: 700;
    }

    h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
    h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
    h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); }

    .section-label {
      font-family: var(--font-mono);
      font-size: 0.8125rem;
      font-weight: 500;
      color: var(--accent);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 16px;
    }

    .section-subtitle {
      font-size: clamp(1rem, 1.5vw, 1.125rem);
      color: var(--text-secondary);
      max-width: 640px;
      line-height: 1.7;
    }

    .section-header {
      margin-bottom: 56px;
    }

    .section-header h2 {
      margin-bottom: 16px;
    }

    /* ========================================
       SCROLL PROGRESS BAR
       ======================================== */
    .scroll-progress {
      position: fixed;
      top: 0;
      left: 0;
      width: 0%;
      height: 2px;
      background: linear-gradient(90deg, var(--accent), #7C3AED);
      z-index: 9999;
      pointer-events: none;
      transition: width 0.05s linear;
      will-change: width;
    }

    /* ========================================
       SECTION DIVIDERS
       ======================================== */
    .section-divider {
      height: 1px;
      background: var(--section-divider);
      border: none;
      margin: 0;
      opacity: 0;
      transition: opacity 0.6s ease, background-color 0.4s ease;
    }

    .section-divider.visible {
      opacity: 0.6;
    }

    /* ========================================
       ANIMATIONS
       ======================================== */
    .fade-in {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease, transform 0.6s ease, background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease;
    }

    .fade-in.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* Staggered children animation */
    .stagger-child {
      opacity: 0;
      transform: translateY(16px);
      transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease;
    }

    .stagger-child.visible {
      opacity: 1;
      transform: translateY(0);
    }

    /* Principle reveal with line */
    .principle {
      position: relative;
      padding-left: 20px;
    }

    .principle.fade-in {
      opacity: 0;
      transform: translateX(-20px);
      transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease;
    }

    .principle.fade-in.visible {
      opacity: 1;
      transform: translateX(0);
    }

    .principle::after {
      content: '';
      position: absolute;
      left: -20px;
      top: 0;
      width: 2px;
      height: 0;
      background: var(--accent);
      transition: height 0.8s cubic-bezier(0.16, 1, 0.3, 1);
      border-radius: 1px;
    }

    .principle.visible::after {
      height: 100%;
    }

    /* Stack tech pill scale-in */
    .stack__tech-pill {
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease;
    }

    .stack__tech-pill.pill-animate {
      opacity: 0;
      transform: scale(0.85);
    }

    .stack__tech-pill.pill-visible {
      opacity: 1;
      transform: scale(1);
    }

    /* Type card 3D tilt */
    .type-card {
      will-change: transform;
      transform-style: preserve-3d;
    }

    /* Floating career tags */
    @keyframes floatTag {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-3px); }
    }

    .careers__position-desc {
      display: inline;
    }

    /* CTA gradient border glow pulse */
    .cta-card-outer {
      will-change: background-position;
    }

    @media (prefers-reduced-motion: reduce) {
      .fade-in,
      .stagger-child {
        opacity: 1;
        transform: none;
        transition: none;
      }
      .principle::after {
        height: 100%;
        transition: none;
      }
      .stack__tech-pill.pill-animate {
        opacity: 1;
        transform: none;
      }
      .section-divider {
        opacity: 0.6;
        transition: none;
      }
      .scroll-progress {
        display: none !important;
      }
      .cta-card-outer {
        animation: none;
      }
      .hero__canvas { display: none !important; }
    }

    /* Disable hover effects on touch devices */
    @media (hover: none) {
      .type-card {
        transform: none !important;
      }
      .product-card::before,
      .type-card::before {
        display: none;
      }
    }

    /* ========================================
       NAVBAR
       ======================================== */
    .navbar {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      padding: 0 24px;
      height: 64px;
      display: flex;
      align-items: center;
      border-bottom: 1px solid transparent;
      transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, color 0.3s ease;
    }

    .navbar.scrolled {
      background: var(--navbar-scrolled);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom-color: var(--glass-border);
    }

    .navbar__inner {
      max-width: var(--container);
      margin: 0 auto;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .navbar__brand {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .navbar__logo-icon {
      width: 32px;
      height: 32px;
      flex-shrink: 0;
    }

    .navbar__logo-text {
      display: flex;
      align-items: baseline;
      gap: 0;
    }

    .navbar__logo-name {
      font-family: var(--font-display);
      font-weight: 800;
      font-size: 1.25rem;
      color: var(--text);
      letter-spacing: -0.02em;
    }

    .navbar__logo-suffix {
      font-family: var(--font-mono);
      font-size: 0.8125rem;
      font-weight: 500;
      color: var(--accent);
    }

    .navbar__links {
      display: flex;
      align-items: center;
      gap: 28px;
      list-style: none;
    }

    .navbar__links a {
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--text-secondary);
      transition: color var(--transition);
    }

    .navbar__links a:hover {
      color: var(--text);
    }

    .navbar__github {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .navbar__github i {
      width: 16px;
      height: 16px;
    }

    .navbar__right {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    /* Theme toggle */
    .theme-toggle {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: var(--radius-sm);
      cursor: pointer;
      color: var(--text-secondary);
      transition: color var(--transition), background var(--transition);
    }

    .theme-toggle:hover {
      color: var(--text);
      background: var(--bg-card);
    }

    .theme-toggle i {
      width: 18px;
      height: 18px;
    }

    .theme-toggle .icon-moon,
    [data-theme="dark"] .theme-toggle .icon-sun {
      display: none;
    }

    [data-theme="dark"] .theme-toggle .icon-moon {
      display: block;
    }

    [data-theme="dark"] .theme-toggle .icon-sun {
      display: block;
    }

    .navbar__hamburger {
      display: none;
      flex-direction: column;
      gap: 5px;
      cursor: pointer;
      padding: 4px;
    }

    .navbar__hamburger span {
      display: block;
      width: 22px;
      height: 2px;
      background: var(--text);
      border-radius: 1px;
      transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .navbar__hamburger.open span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px);
    }
    .navbar__hamburger.open span:nth-child(2) {
      opacity: 0;
    }
    .navbar__hamburger.open span:nth-child(3) {
      transform: rotate(-45deg) translate(5px, -5px);
    }

    .navbar__mobile-menu {
      display: none;
      position: fixed;
      top: 64px;
      left: 0;
      right: 0;
      bottom: 0;
      background: var(--bg);
      padding: 32px 24px;
      flex-direction: column;
      gap: 24px;
      z-index: 99;
    }

    .navbar__mobile-menu.open {
      display: flex;
    }

    .navbar__mobile-menu a {
      font-size: 1.125rem;
      font-weight: 500;
      color: var(--text-secondary);
      padding: 8px 0;
      border-bottom: 1px solid var(--border);
    }

    .navbar__mobile-menu a:last-child {
      border-bottom: none;
    }

    /* ========================================
       HERO
       ======================================== */
    

    .hero {
      padding-top: 160px;
      padding-bottom: var(--section-gap);
      position: relative;
      top: 0;
      overflow: hidden;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      background: var(--bg);
      z-index: 1;
      /* removed duplicate */
    }

    /* Particle Grid Canvas */
    .hero__canvas {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 0;
    }

    /* Gradient overlay: smooth feathered edges so canvas fades into bg */
    .hero__gradient-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 0;
      background:
        linear-gradient(to bottom, var(--bg) 0%, transparent 12%, transparent 75%, var(--bg) 100%),
        linear-gradient(to right, var(--bg) 0%, transparent 8%, transparent 92%, var(--bg) 100%);
    }

    /* Parallax scroll: hero darkens and content shifts up */
    .hero.hero--scrolled-dim {
      /* Applied dynamically via JS */
    }

    .hero__scroll-overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: var(--bg);
      opacity: 0;
      pointer-events: none;
      z-index: 2;
      transition: opacity 0.1s linear;
    }

    .hero__content {
      max-width: 780px;
      position: relative;
      z-index: 1;
    }

    .hero__title {
      margin-bottom: 24px;
      letter-spacing: -0.03em;
    }

    .hero__title .hero__morph-text {
      display: inline;
      transition: opacity 0.3s ease, filter 0.3s ease, color 0.3s ease;
      will-change: opacity, filter;
    }

    .hero__subtitle {
      font-size: clamp(1rem, 1.5vw, 1.125rem);
      color: var(--text-secondary);
      line-height: 1.75;
      max-width: 640px;
      margin-bottom: 48px;
    }

    .hero__stats {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      max-width: 600px;
      box-shadow: var(--shadow-card);
    }

    .hero__stat {
      background: var(--bg-card);
      padding: 28px 24px;
      text-align: center;
    }

    .hero__stat:hover {
      background: var(--bg-hover);
      transition: none;
    }

    .hero__stat-value {
      font-family: var(--font-display);
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 4px;
    }

    .hero__stat-label {
      font-size: 0.8125rem;
      color: var(--text-muted);
    }

    /* ========================================
       PRODUCTS
       ======================================== */
    .products {
      padding-bottom: var(--section-gap);
    }

    .products__grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2px;
      background: var(--border);
      border-radius: var(--radius);
      overflow: hidden;
    }

    .product-card {
      background: var(--bg-card);
      padding: 36px 32px;
      transition: background var(--transition), box-shadow var(--transition), color 0.3s ease, border-color 0.3s ease;
      position: relative;
    }

    .product-card::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      opacity: 0;
      transition: opacity 0.4s ease;
      background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-glow), transparent 40%);
      pointer-events: none;
      z-index: -1;
    }

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

    .product-card:hover {
      background: var(--bg-hover);
    }

    .product-card__icon {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--accent-dim);
      border-radius: var(--radius-sm);
      margin-bottom: 20px;
      color: var(--accent);
    }

    .product-card__icon i {
      width: 20px;
      height: 20px;
    }

    .product-card__name {
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 8px;
    }

    .product-card__tagline {
      font-size: 0.9375rem;
      color: var(--text-secondary);
      line-height: 1.65;
      margin-bottom: 16px;
    }

    .product-card__stack {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-bottom: 16px;
    }

    .product-card__tag {
      font-family: var(--font-mono);
      font-size: 0.6875rem;
      padding: 3px 10px;
      border-radius: 4px;
      background: var(--code-bg);
      color: var(--text-muted);
      border: 1px solid var(--border);
    }

    .product-card__highlight {
      font-size: 0.8125rem;
      color: var(--text-muted);
      line-height: 1.6;
      padding-top: 16px;
      border-top: 1px solid var(--border);
    }

    .product-card__link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.8125rem;
      font-weight: 600;
      color: var(--accent);
      margin-top: 16px;
      transition: gap var(--transition);
    }

    .product-card__link:hover {
      gap: 10px;
    }

    .product-card__link i {
      width: 14px;
      height: 14px;
    }

    /* ========================================
       TECH STACK — TABS
       ======================================== */
    .stack {
      padding-bottom: var(--section-gap);
    }

    .stack__tabs {
      display: flex;
      gap: 4px;
      margin-bottom: 40px;
      border-bottom: 1px solid var(--border);
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
    }

    .stack__tabs::-webkit-scrollbar {
      display: none;
    }

    .stack__tab {
      font-family: var(--font-mono);
      font-size: 0.8125rem;
      font-weight: 500;
      color: var(--text-muted);
      padding: 12px 20px;
      cursor: pointer;
      white-space: nowrap;
      border-bottom: 2px solid transparent;
      transition: color var(--transition), border-color var(--transition);
      margin-bottom: -1px;
      background: none;
    }

    .stack__tab:hover {
      color: var(--text-secondary);
    }

    .stack__tab.active {
      color: var(--text);
      border-bottom-color: var(--accent);
    }

    .stack__panel {
      display: none;
    }

    .stack__panel.active {
      display: block;
    }

    .stack__technologies {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 28px;
    }

    .stack__tech-pill {
      font-family: var(--font-mono);
      font-size: 0.8125rem;
      padding: 6px 14px;
      border-radius: 6px;
      background: var(--accent-dim);
      color: var(--accent);
      border: 1px solid var(--accent-border);
    }

    .stack__rationale {
      font-size: 0.9375rem;
      line-height: 1.75;
      color: var(--text-secondary);
      margin-bottom: 20px;
      max-width: 720px;
    }

    .stack__proof {
      font-size: 0.875rem;
      line-height: 1.65;
      color: var(--text-muted);
      padding-left: 16px;
      border-left: 2px solid var(--accent-border);
      max-width: 720px;
    }

    /* ========================================
       PRINCIPLES
       ======================================== */
    .principles {
      padding-bottom: var(--section-gap);
    }

    .principles__list {
      display: flex;
      flex-direction: column;
      gap: 0;
    }

    .principle {
      display: grid;
      grid-template-columns: 56px 1fr;
      gap: 24px;
      padding: 36px 0;
      border-bottom: 1px solid var(--border);
    }

    .principle:first-child {
      border-top: 1px solid var(--border);
    }

    .principle__number {
      font-family: var(--font-mono);
      font-size: 1.5rem;
      font-weight: 700;
      background: var(--gradient-number);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      padding-top: 2px;
    }

    .principle__title {
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 10px;
    }

    .principle__description {
      font-size: 0.9375rem;
      line-height: 1.7;
      color: var(--text-secondary);
      margin-bottom: 14px;
      max-width: 640px;
    }

    .principle__example {
      font-size: 0.8125rem;
      line-height: 1.6;
      color: var(--text-muted);
      font-style: italic;
    }

    /* ========================================
       STUDIO
       ======================================== */
    .studio {
      padding-bottom: var(--section-gap);
    }

    .studio__utp {
      font-size: clamp(1rem, 1.5vw, 1.125rem);
      color: var(--text-secondary);
      line-height: 1.7;
      max-width: 720px;
      margin-bottom: 48px;
    }

    /* Selling points */
    .studio__points {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--border);
      border-radius: var(--radius);
      overflow: hidden;
      margin-bottom: 64px;
    }

    .studio__point {
      background: var(--bg-card);
      padding: 32px 28px;
      transition: background var(--transition);
    }

    .studio__point:hover {
      background: var(--bg-hover);
    }

    .studio__point-icon {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 16px;
      color: var(--accent);
    }

    .studio__point-icon i {
      width: 20px;
      height: 20px;
    }

    .studio__point-title {
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 8px;
    }

    .studio__point-desc {
      font-size: 0.875rem;
      color: var(--text-secondary);
      line-height: 1.65;
    }

    /* Project type cards (replacing pricing table) */
    .studio__types-title {
      font-family: var(--font-display);
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 32px;
    }

    .studio__types-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
      margin-bottom: 64px;
    }

    .type-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 28px 24px;
      transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
      position: relative;
      overflow: hidden;
    }

    .type-card::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: inherit;
      opacity: 0;
      transition: opacity 0.4s ease;
      background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-glow), transparent 40%);
      pointer-events: none;
    }

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

    .type-card:hover {
      border-color: var(--accent-border);
      box-shadow: var(--shadow-card-hover);
    }

    .type-card__icon {
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--accent-dim);
      border-radius: var(--radius-sm);
      margin-bottom: 16px;
      color: var(--accent);
    }

    .type-card__icon i {
      width: 20px;
      height: 20px;
    }

    .type-card__name {
      font-family: var(--font-display);
      font-size: 1.0625rem;
      font-weight: 700;
      color: var(--text);
      margin-top: 0;
      margin-bottom: 8px;
    }

    .type-card__desc {
      font-size: 0.8125rem;
      color: var(--text-secondary);
      line-height: 1.6;
      margin-bottom: 12px;
    }

    .type-card__price {
      font-family: var(--font-display);
      font-size: 1.125rem;
      font-weight: 700;
      color: var(--accent);
      margin-bottom: 12px;
    }

    .type-card__stack {
      display: flex;
      flex-wrap: wrap;
      gap: 5px;
    }

    .type-card__tag {
      font-family: var(--font-mono);
      font-size: 0.6875rem;
      padding: 2px 8px;
      border-radius: 4px;
      background: var(--code-bg);
      color: var(--text-muted);
      border: 1px solid var(--border);
    }

    /* How we work — steps */
    .studio__steps {
      margin-bottom: 64px;
    }

    .studio__steps-title {
      font-family: var(--font-display);
      font-size: 1.5rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 32px;
    }

    .steps-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 1px;
      background: var(--border);
      border-radius: var(--radius);
      overflow: hidden;
    }

    .step-card {
      background: var(--bg-card);
      padding: 28px 24px;
      transition: background var(--transition);
    }

    .step-card:hover {
      background: var(--bg-hover);
    }

    .step-card__number {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--accent);
      margin-bottom: 12px;
    }

    .step-card__title {
      font-family: var(--font-display);
      font-size: 1rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 8px;
    }

    .step-card__desc {
      font-size: 0.8125rem;
      color: var(--text-secondary);
      line-height: 1.6;
      margin-bottom: 12px;
    }

    .step-card__result {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    /* ========================================
       CTA FORM — gradient border + glow
       ======================================== */
    .cta-section {
      padding-bottom: var(--section-gap);
    }

    .cta-wrapper {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
      align-items: start;
    }

    .cta-benefits {
      padding-top: 16px;
    }

    .cta-benefits__title {
      font-family: var(--font-display);
      font-size: 1.75rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 8px;
      line-height: 1.2;
    }

    .cta-benefits__subtitle {
      font-size: 0.9375rem;
      color: var(--text-secondary);
      margin-bottom: 32px;
      line-height: 1.6;
    }

    .cta-benefits__list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .cta-benefits__list li {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      font-size: 0.9375rem;
      color: var(--text-secondary);
      line-height: 1.5;
    }

    .cta-benefits__list li .check-icon {
      width: 20px;
      height: 20px;
      flex-shrink: 0;
      color: var(--accent);
      margin-top: 1px;
    }

    /* Gradient border card */
    .cta-card-outer {
      padding: 2px;
      border-radius: calc(var(--radius) + 2px);
      background: linear-gradient(135deg, var(--accent), #7C3AED, #06B6D4, var(--accent));
      background-size: 300% 300%;
      animation: gradientBorder 6s ease infinite;
    }

    @keyframes gradientBorder {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

    .cta-card {
      background: var(--bg-card);
      border-radius: var(--radius);
      padding: 40px 36px;
    }

    .cta-card__title {
      font-family: var(--font-display);
      font-size: 1.375rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 8px;
    }

    .cta-card__subtitle {
      font-size: 0.9375rem;
      color: var(--text-secondary);
      margin-bottom: 28px;
    }

    .cta-form {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .cta-form__input,
    .cta-form__textarea {
      width: 100%;
      padding: 14px 16px;
      background: var(--bg);
      border: 1px solid var(--border-hover);
      border-radius: var(--radius-sm);
      color: var(--text);
      font-size: 0.9375rem;
      transition: border-color var(--transition), box-shadow var(--transition);
    }

    .cta-form__input::placeholder,
    .cta-form__textarea::placeholder {
      color: var(--text-muted);
    }

    .cta-form__input:focus,
    .cta-form__textarea:focus {
      border-color: var(--accent);
      box-shadow: 0 0 0 3px var(--accent-dim);
    }

    .cta-form__textarea {
      resize: vertical;
      min-height: 100px;
    }

    /* Glow button */
    .cta-form__submit {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 14px 32px;
      background: var(--accent);
      color: #fff;
      font-weight: 600;
      font-size: 0.9375rem;
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: box-shadow 0.3s ease, transform var(--transition);
      position: relative;
    }

    .cta-form__submit:hover {
      box-shadow: 0 0 24px var(--accent-glow), 0 0 48px var(--accent-glow);
      transform: translateY(-1px);
    }

    .cta-form__submit:active {
      transform: translateY(0);
    }

    .cta-form__consent {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      margin-top: 4px;
      margin-bottom: 8px;
      cursor: pointer;
      font-size: 0.8125rem;
      color: var(--text-muted);
      line-height: 1.4;
    }

    .cta-form__consent input[type="checkbox"] {
      appearance: none;
      -webkit-appearance: none;
      width: 20px;
      height: 20px;
      min-width: 20px;
      border: 2px solid var(--border-hover);
      border-radius: 4px;
      background: var(--bg-card);
      cursor: pointer;
      position: relative;
      margin-top: 1px;
      transition: var(--transition);
    }

    .cta-form__consent input[type="checkbox"]:checked {
      background: var(--accent);
      border-color: var(--accent);
    }

    .cta-form__consent input[type="checkbox"]:checked::after {
      content: '';
      position: absolute;
      left: 5px;
      top: 1px;
      width: 6px;
      height: 11px;
      border: solid #fff;
      border-width: 0 2px 2px 0;
      transform: rotate(45deg);
    }

    .cta-form__consent a {
      color: var(--accent);
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .cta-form__consent a:hover {
      opacity: 0.8;
    }

    .cta-form__note {
      font-size: 0.8125rem;
      color: var(--text-muted);
      text-align: center;
    }

    /* ========================================
       FAQ
       ======================================== */
    .faq {
      padding-bottom: var(--section-gap);
    }

    .faq__list {
      max-width: 720px;
    }

    .faq__item {
      border-bottom: 1px solid var(--border);
    }

    .faq__question {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px 0;
      font-size: 0.9375rem;
      font-weight: 600;
      color: var(--text);
      cursor: pointer;
      text-align: left;
      gap: 16px;
    }

    .faq__question::after {
      content: '+';
      font-family: var(--font-mono);
      font-size: 1.25rem;
      color: var(--text-muted);
      flex-shrink: 0;
      transition: transform 0.3s ease;
    }

    .faq__item.open .faq__question::after {
      content: '\2212';
    }

    .faq__answer {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
    }

    .faq__answer-inner {
      padding-bottom: 20px;
      font-size: 0.875rem;
      line-height: 1.7;
      color: var(--text-secondary);
    }

    /* ========================================
       CAREERS
       ======================================== */
    .careers {
      padding-bottom: var(--section-gap);
    }

    .careers__grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 48px;
    }

    .careers__positions-title {
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 24px;
    }

    .careers__position-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 32px;
    }

    .careers__position {
      display: flex;
      align-items: center;
      gap: 14px;
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      padding: 16px 20px;
      transition: border-color var(--transition), box-shadow var(--transition);
    }

    .careers__position:hover {
      border-color: var(--accent-border);
      box-shadow: var(--shadow-card);
    }

    .careers__position-icon {
      width: 36px;
      height: 36px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--accent-dim);
      border-radius: var(--radius-sm);
      color: var(--accent);
      flex-shrink: 0;
    }

    .careers__position-icon i {
      width: 18px;
      height: 18px;
    }

    .careers__position-info {
      flex: 1;
    }

    .careers__position-name {
      font-family: var(--font-display);
      font-size: 0.9375rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 2px;
    }

    .careers__position-desc {
      font-size: 0.8125rem;
      color: var(--text-muted);
    }

    .careers__why-title {
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 24px;
    }

    .careers__why-list {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 16px;
      margin-bottom: 32px;
    }

    .careers__why-item {
      display: flex;
      gap: 14px;
      align-items: flex-start;
    }

    .careers__why-icon {
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--accent-dim);
      border-radius: var(--radius-sm);
      color: var(--accent);
      flex-shrink: 0;
    }

    .careers__why-icon i {
      width: 16px;
      height: 16px;
    }

    .careers__why-text h4 {
      font-size: 0.9375rem;
      font-weight: 600;
      margin-bottom: 4px;
    }

    .careers__why-text p {
      font-size: 0.8125rem;
      color: var(--text-muted);
      line-height: 1.5;
    }

    .careers__cta-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 14px 28px;
      background: var(--accent);
      color: #fff;
      font-weight: 600;
      font-size: 0.9375rem;
      border-radius: var(--radius-sm);
      transition: box-shadow 0.3s ease, transform var(--transition);
    }

    .careers__cta-btn:hover {
      box-shadow: 0 0 24px var(--accent-glow);
      transform: translateY(-1px);
    }

    .careers__cta-btn i {
      width: 18px;
      height: 18px;
    }

    /* ========================================
       FOOTER
       ======================================== */
    .footer {
      border-top: 1px solid var(--border);
      padding: 64px 0 40px;
    }

    .footer__grid {
      display: grid;
      grid-template-columns: 1.5fr repeat(3, 1fr);
      gap: 48px;
      margin-bottom: 48px;
    }

    .footer__brand-logo {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 8px;
    }

    .footer__brand-logo svg {
      width: 24px;
      height: 24px;
    }

    .footer__brand-name {
      font-family: var(--font-display);
      font-size: 1.125rem;
      font-weight: 800;
      color: var(--text);
    }

    .footer__brand-suffix {
      font-family: var(--font-mono);
      font-size: 0.75rem;
      color: var(--accent);
    }

    .footer__brand-tagline {
      font-size: 0.8125rem;
      color: var(--text-muted);
      margin-bottom: 16px;
    }

    .footer__brand-city {
      font-size: 0.8125rem;
      color: var(--text-muted);
    }

    .footer__col-title {
      font-family: var(--font-mono);
      font-size: 0.6875rem;
      font-weight: 500;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 16px;
    }

    .footer__col-links {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .footer__col-links a {
      font-size: 0.875rem;
      color: var(--text-secondary);
      transition: color var(--transition);
    }

    .footer__col-links a:hover {
      color: var(--text);
    }

    .footer__bottom {
      padding-top: 24px;
      border-top: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .footer__copyright {
      font-size: 0.75rem;
      color: var(--text-muted);
    }

    .footer__services {
      display: flex;
      gap: 16px;
    }

    .footer__services a {
      font-family: var(--font-mono);
      font-size: 0.6875rem;
      color: var(--text-muted);
      transition: color var(--transition);
    }

    .footer__services a:hover {
      color: var(--text-secondary);
    }

    /* ========================================
       RESPONSIVE
       ======================================== */
    @media (max-width: 900px) {
      .navbar__links {
        display: none;
      }

      .navbar__hamburger {
        display: flex;
      }

      .hero__stats {
        grid-template-columns: 1fr;
        max-width: 100%;
      }

      .products__grid {
        grid-template-columns: 1fr;
      }

      .studio__points {
        grid-template-columns: 1fr;
      }

      .studio__types-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .steps-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .cta-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
      }

      .careers__grid {
        grid-template-columns: 1fr;
        gap: 40px;
      }

      .footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
      }

      .principle {
        grid-template-columns: 40px 1fr;
        gap: 16px;
      }
    }

    @media (max-width: 640px) {
      .hero {
        padding-top: 96px; margin-top: 64px;
      }
      .section-divider {
        margin-top: 48px;
      }
      #careers {
        padding-bottom: 48px;
      }
      .hero canvas {
        display: none;
      }
      #careers .careers__cta {
        margin-bottom: 48px;
      }
      .dataflow-wrapper {
        overflow-x: auto; -webkit-overflow-scrolling: touch;
      }
      .dataflow-wrapper canvas {
        min-width: auto;
      }

      .studio__types-grid {
        grid-template-columns: 1fr;
      }

      .steps-grid {
        grid-template-columns: 1fr;
      }

      .cta-card {
        padding: 28px 20px;
      }

      .footer__grid {
        grid-template-columns: 1fr;
        gap: 32px;
      }

      .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
      }
    }

    @media (max-width: 480px) {
      .container {
        padding: 0 16px;
      }

      .section-header {
        margin-bottom: 40px;
      }

      
    }

    /* Reduced motion: disable morphing scroll */
    @media (prefers-reduced-motion: reduce) {
      
      .hero {
        position: relative;
      }
    }

    /* ========================================
       AI / ML CAPABILITIES
       ======================================== */
    .ai-caps-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-top: 48px;
    }

    .ai-cap-card {
      background: var(--bg-card);
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 32px;
      position: relative;
      overflow: visible;
      transition: border-color 0.3s, transform 0.3s, background-color 0.4s ease, box-shadow 0.3s ease;
    }

    .ai-cap-card::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: var(--radius);
      background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--accent-glow), transparent 40%);
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
      z-index: -1;
    }

    .ai-cap-card:hover::before {
      opacity: 1;
    }

    .ai-cap-card:hover {
      border-color: var(--accent-border);
      transform: translateY(-4px);
      box-shadow: var(--shadow-card-hover);
    }

    .ai-cap-icon {
      width: 48px;
      height: 48px;
      border-radius: 12px;
      background: var(--accent-dim);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--accent);
      margin-bottom: 20px;
    }

    .ai-cap-icon i {
      width: 22px;
      height: 22px;
    }

    .ai-cap-card h3 {
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 12px;
      line-height: 1.4;
      overflow: visible;
    }

    .ai-cap-card p {
      color: var(--text-secondary);
      font-size: 0.9rem;
      line-height: 1.7;
      margin-bottom: 20px;
    }

    .ai-cap-stack {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .ai-cap-stack span {
      font-family: var(--font-mono);
      font-size: 0.7rem;
      padding: 4px 10px;
      border-radius: 6px;
      border: 1px solid var(--border);
      color: var(--text-secondary);
      transition: border-color 0.2s ease, color 0.2s ease;
    }

    .ai-cap-stack span:hover {
      border-color: var(--accent-border);
      color: var(--accent);
    }

    .dataflow-wrapper {
      margin-top: 32px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      padding: 32px 0;
      background: var(--bg-card);
      overflow: hidden;
      transition: background-color 0.4s ease, border-color 0.3s ease;
    }

    #dataflow-canvas {
      width: 100%;
      height: 200px;
      display: block;
    }

    @media (max-width: 900px) {
      .ai-caps-grid { grid-template-columns: 1fr; }
    }
  
    @media (max-width: 640px) {
      .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
      }
      .dataflow-wrapper {
        margin-left: -4px;
        margin-right: -4px;
      }
    }

    
    /* Fix Syne font descender clipping */
    h1, h2, h3 {
      line-height: 1.35 !important;
      padding-bottom: 4px;
    }
    .ai-cap-card, .product-card, .type-card {
      overflow: visible !important;
    }
    

    
    .ai-cap-card > *, .product-card > *, .type-card > * {
      position: relative;
      z-index: 1;
    }

/* Fix Syne font descender clipping */
.ai-cap-card, .product-card, .type-card { overflow: visible !important; }
.ai-cap-card > *, .product-card > *, .type-card > * { position: relative; z-index: 1; }
.ai-cap-card::before, .product-card::before, .type-card::before { z-index: 0 !important; pointer-events: none; }
h1, h2, h3, h4 { line-height: 1.4; overflow: visible; }


@media (max-width: 640px) {
  .hero {
    padding-bottom: 48px !important;
  }
}


/* Nuclear fix: Syne descender clip */
.ai-cap-card h3,
.product-card h3,
.type-card h3,
.section-header h2 {
  padding-bottom: 6px !important;
  margin-bottom: 8px !important;
}

.ai-cap-card,
.product-card,
.type-card,
.product-card__content {
  overflow: visible !important;
  clip-path: none !important;
  -webkit-clip-path: none !important;
}


@media (max-width: 640px) {
  .hero {
    padding-bottom: 24px !important;
    margin-bottom: 0 !important;
  }
  .hero + .section-divider {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
}


/* Syne descender: force enough space */
h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  line-height: 1.5 !important;
}

/* ========================================
   HERO CTA BUTTON
   ======================================== */
.hero__cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  background: linear-gradient(135deg, var(--accent), #7C3AED);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform var(--transition);
  position: relative;
}

.btn-primary:hover {
  box-shadow: 0 0 24px var(--accent-glow), 0 0 48px var(--accent-glow);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.hero__cta-note {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ========================================
   STUDIO PRICE ANCHORS
   ======================================== */
.studio__price-anchors {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent);
  margin-top: -36px;
  margin-bottom: 48px;
}

/* ========================================
   INLINE CTA
   ======================================== */
.inline-cta {
  text-align: center;
  padding: 32px 0;
}

.inline-cta__btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 10px 24px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.inline-cta__btn:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 640px) {
  .hero__cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .btn-primary {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
