/* GLOBAL RESET & VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root {
    --base-black: #0b0b0b;
    --charcoal: #1a1a1a;
    --graphite: #2a2a2a;
    --white: #f5f5f5;
    --soft-white: #e8e8e8;
    --muted-gray: #9a9a9a;
    --accent: #3b82f6;
    --accent-dim: rgba(59, 130, 246, 0.12);
    --accent-glow: rgba(59, 130, 246, 0.06);
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --nav-height: 72px;
    --max-width: 1400px;
    --section-spacing: 120px;
}
html {
    scroll-behavior: smooth;
    background: var(--base-black);
}
body {
    font-family: var(--font-sans);
    background: var(--base-black);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    display: block;
    max-width: 100%;
}
.p-0{
    padding: 0;
}

/* BASE LAYOUT */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}
h1,
h2,
h3,
h4 {
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.eyebrow {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted-gray);
    font-weight: 500;
    margin-bottom: 1.2rem;
}
.section-headline {
    font-size: clamp(2.8rem, 8vw, 5.2rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}
.section-sub {
    font-size: 1.25rem;
    color: var(--muted-gray);
    max-width: 600px;
    line-height: 1.7;
}
.text-accent {
    color: var(--accent);
}
section {
    padding: var(--section-spacing) 0;
    position: relative;
}
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
}

/* BUTTONS */
.btn-primary {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px 36px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}
.btn-primary:hover::after {
    opacity: 1;
}
.btn-primary:hover {
    background: #2563eb;
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(59, 130, 246, 0.35);
}
.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 36px;
    border-radius: 60px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
}
.btn-secondary:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
}
.btn-ghost {
    color: var(--muted-gray);
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
    padding-bottom: 2px;
    display: inline-block;
}
.btn-ghost:hover {
    color: var(--white);
    border-bottom-color: var(--accent);
}

/* HEADER & NAV */
 .site-header {
      position: fixed;
      top: 0; left: 0; width: 100%;
      z-index: 1000;
      padding: 0 40px;
      height: var(--nav-height);
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      background: transparent;
      backdrop-filter: blur(0px);
    }
    .site-header.scrolled {
      background: rgba(11, 11, 11, 0.85);
      backdrop-filter: blur(16px);
      height: 64px;
      border-bottom: 1px solid rgba(255,255,255,0.03);
    }
    .logo {
      font-weight: 700;
      font-size: 1.3rem;
      letter-spacing: -0.02em;
      color: var(--white);
      z-index: 1001;
      position: relative;
    }
    .logo span { color: var(--accent); }
    .nav-links {
      display: flex;
      gap: 2.5rem;
      align-items: center;
      list-style: none;
    }
    .nav-links a {
      font-size: 0.9rem;
      font-weight: 500;
      color: var(--muted-gray);
      transition: color 0.3s ease;
      position: relative;
    }
    .nav-links a::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 0;
      height: 1px;
      background: var(--accent);
      transition: width 0.3s ease;
    }
    .nav-links a:hover { color: var(--white); }
    .nav-links a:hover::after { width: 100%; }
    .nav-links a.active { color: var(--white); }
    .nav-links a.active::after { width: 100%; }
    .nav-cta {
      background: var(--accent);
      padding: 8px 22px;
      border-radius: 40px;
      color: #fff !important;
      font-weight: 600;
      font-size: 0.85rem;
    }
    .nav-cta::after { display: none !important; }
    .nav-cta:hover { background: #2563eb; }
    .nav-links a:last-child {
    color: var(--white);
    }
    .hamburger { 
      display: none; 
      flex-direction: column; 
      gap: 5px; 
      cursor: pointer;
      z-index: 1001;
      position: relative;
      background: none;
      border: none;
      padding: 8px;
    }
    .hamburger span { 
      width: 26px; 
      height: 2px; 
      background: var(--white); 
      transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      display: block;
    }

    /* MOBILE RESPONSIVE - NAV MENU */
    @media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  /* 1. Added full screen overlay blur behind the drawer */
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: rgba(15, 17, 23, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start; /* Left-aligned items look much cleaner */
    gap: 0;
    padding: 100px 32px 40px 32px;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.6);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  /* 2. Removed harsh lines, added modern typography & hover pills */
  .nav-links li {
    width: 100%;
    border-bottom: none; /* Removed ugly dividers */
    padding: 0;
  }

  .nav-links a {
    font-size: 1.15rem;
    font-weight: 500;
    color: #94a3b8;
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
  }

  /* 3. Sleek full-width CTA Button */
  .nav-cta {
    display: block;
    text-align: center;
    margin-top: 24px;
    width: 100%;
    padding: 14px 20px !important;
    background: var(--accent);
    border-radius: 12px; /* Modern subtle rounding instead of pill-shape */
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  }

  /* Hamburger to 'X' animation fixes */
  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}


/* BG EFFECTS */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    transition: transform 0.1s ease-out;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 70% 50%, rgba(59, 130, 246, 0.04) 0%, transparent 60%);
}
#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.hero-content, 
.hero-visual {
  position: relative;
  z-index: 2; /* Ensures hero content sits above the canvas */
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content {
    z-index: 2;
}
.hero-content .eyebrow {
    opacity: 0;
}
.hero-content h1 {
    font-size: clamp(3.2rem, 8vw, 5.6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}
.hero-content h1 .line {
    display: block;
    overflow: hidden;
}
.hero-content h1 .line-inner {
    display: block;
    transform: translateY(100%);
}
.hero-content p {
    font-size: 1.25rem;
    color: var(--muted-gray);
    max-width: 520px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 450px;
}
.ecosystem {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1/1;
    position: relative;
    opacity: 0;
}

/* Eyebrow Tag Formatting */
.eyebrow-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 20px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}

/* Glassmorphism backdrop for the right side diagram */
.ecosystem-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: transparent; /* Removes the heavy dark box */
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}
/* Node Core Styling */
.node-core {
  fill: #3b82f6;
  filter: drop-shadow(0 0 16px rgba(59, 130, 246, 0.8));
}

.node-text-core {
  fill: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.ecosystem svg {
    width: 100%;
    height: 100%;
    display: block;
}
.ecosystem .node-circle {
    fill: rgba(59, 130, 246, 0.12);
    stroke: var(--accent);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.15));
}
.ecosystem .node-text {
    fill: var(--white);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.ecosystem .connect-line {
    stroke: var(--accent);
    stroke-width: 1.2;
    stroke-dasharray: 6 6;
    opacity: 0.3;
}
.ecosystem .glow-ring {
    fill: none;
    stroke: var(--accent);
    stroke-width: 0.5;
    opacity: 0.05;
}
/* Re-orient hero-visual as the 3D scene stage */
.hero-visual {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1200px; /* Essential for 3D effect */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2; /* Keeps nodes above canvas */
}

.visual-scene {
  width: 100%;
  max-width: 580px;
  position: relative;
  transform-style: preserve-3d;
}

/* Main Dark Application Panel */
.main-preview-panel {
  width: 100%;
  background: rgba(13, 17, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  transform: translateZ(0); /* Base depth */
}

/* Window Chrome */
.preview-header {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.window-controls {
  display: flex;
  gap: 8px;
  margin-right: 20px;
}

.window-controls .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title {
  color: #94a3b8;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 13px;
  opacity: 0.8;
}

/* Interface Mockup */
.preview-body { padding: 30px; }
.mock-ui-skeleton { display: flex; flex-direction: column; gap: 16px; }
.line-sm, .line-md, .line-lg { height: 10px; border-radius: 5px; }
.line-sm { background: #3b82f6; width: 25%; } /* Action Blue */
.line-lg { background: rgba(255,255,255,0.06); width: 100%; height: 20px; } /* Main text area */
.line-md { background: rgba(255,255,255,0.04); width: 60%; }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.mock-card { background: rgba(255,255,255,0.02); height: 80px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.03); }

/* Common Floating Card Style */
.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px; /* Perfect circle pill */
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none; /* Let clicks pass to wave background if needed */
}

/* Base positions mirroring reference composition */
.active-projects { top: 35%; left: -60px; }
.web-design { bottom: 15%; left: -10px; }
.user-rating { top: 60%; right: -50px; }
.business-growth { top: -40px; right: 60px; }

/* Icon Wrappers with Specific Accent Colors */
.icon-wrap {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.icon-wrap.blue { background: #3b82f6; }
.icon-wrap.green { background: #10b981; }
.icon-wrap.gold { background: #f59e0b; color: #fff; }
.icon-wrap.gold svg { width: 14px; height: 14px; }
.icon-wrap.orange { background: #f97316; }



/* Smooth CSS Floating Keyframes */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

@keyframes floatReverse {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(10px); }
}

/* Assign Animations with Staggered Delays */
.active-projects {
  animation: floatSlow 4s ease-in-out infinite;
}

.web-design {
  animation: floatReverse 3.8s ease-in-out infinite 0.5s;
}

.user-rating {
  animation: floatSlow 4.5s ease-in-out infinite 1s;
}

.business-growth {
  animation: floatReverse 4.2s ease-in-out infinite 0.3s;
}


/* PAGE HERO */
.page-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(ellipse at 70% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
}
.page-hero .container {
    position: relative;
    z-index: 2;
}
.page-hero .eyebrow {
    opacity: 0;
}
.page-hero h1 {
    font-size: clamp(3.5rem, 9vw, 6rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    max-width: 800px;
}
.page-hero h1 .line {
    display: block;
    overflow: hidden;
}
.page-hero h1 .line-inner {
    display: block;
    transform: translateY(100%);
}
.page-hero p {
    font-size: 1.25rem;
    color: var(--muted-gray);
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

/* PROBLEM SECTION */
.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.problem-visual {
    background: var(--charcoal);
    border-radius: 24px;
    padding: 40px;
    min-height: 320px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
}
.problem-visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
    pointer-events: none;
}
.fragment-item {
    background: rgba(255, 255, 255, 0.04);
    padding: 12px 24px;
    border-radius: 40px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--muted-gray);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}
.fragment-item.active {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent);
    color: var(--white);
}

/* OUTCOMES */
.outcomes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px 80px;
    margin-top: 50px;
}
.outcome-item {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 30px;
    position: relative;
}
.outcome-item .num {
    font-size: 3rem;
    font-weight: 300;
    color: var(--accent);
    opacity: 0.4;
    margin-bottom: 0.5rem;
}
.outcome-item h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.outcome-item p {
    color: var(--muted-gray);
    max-width: 400px;
}
.outcome-item .mini-flow {
    margin-top: 1rem;
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--muted-gray);
    align-items: center;
}
.outcome-item .mini-flow span {
    opacity: 0.5;
}
.outcome-item .mini-flow .highlight {
    color: var(--accent);
    opacity: 1;
}

/* SOLUTION CARDS */
.solution-levels {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
}
.solution-card {
    background: var(--charcoal);
    border-radius: 24px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: default;
}
.solution-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.solution-card:hover {
    border-color: var(--accent);
    background: #1f1f1f;
    transform: translateY(-6px);
}
.solution-card:hover::before {
    transform: scaleX(1);
}
.solution-card .label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 600;
}
.solution-card h3 {
    font-size: 1.8rem;
    margin: 0.5rem 0 1rem;
}
.solution-card p {
    color: var(--muted-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}
.solution-card .card-flow {
    margin-top: 1.2rem;
    display: flex;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--muted-gray);
    flex-wrap: wrap;
}
.solution-card .card-flow .arrow {
    color: var(--accent);
    opacity: 0.5;
}

/* SIGNATURE SECTION */
.signature-wrapper {
    position: relative;
    padding: 0;
    margin: 0;
}
.signature-pin-wrap {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: var(--charcoal);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.signature-pin-wrap::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}
.signature-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    z-index: 1;
}
.signature-stage-label {
    position: absolute;
    top: 40px;
    left: 50px;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted-gray);
    font-weight: 500;
    opacity: 0.4;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 5;
}
.signature-stage-label.active {
    opacity: 1;
    color: var(--accent);
}
.signature-headline {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    text-align: center;
    z-index: 5;
    width: 100%;
    padding: 0 20px;
}
.signature-headline .highlight {
    color: var(--accent);
}
.signature-system {
    position: relative;
    width: 100%;
    max-width: 820px;
    height: 400px;
    margin: 0 auto;
}
.signature-system svg {
    width: 100%;
    height: 100%;
    display: block;
}
.browser-frame {
    fill: rgba(20, 20, 20, 0.6);
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 1;
    rx: 12;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.browser-frame.expanded {
    fill: rgba(20, 20, 20, 0.8);
    stroke: rgba(59, 130, 246, 0.15);
}
.browser-dot {
    fill: rgba(255, 255, 255, 0.1);
    rx: 50%;
}
.browser-dot.active-dot {
    fill: rgba(255, 255, 255, 0.2);
}
.browser-url {
    fill: var(--muted-gray);
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.02em;
    opacity: 0.3;
    transition: opacity 0.6s;
}
.browser-url.lit {
    opacity: 0.6;
}
.website-hero {
    fill: rgba(255, 255, 255, 0.04);
    rx: 6;
    transition: all 0.8s;
}
.website-hero.active-hero {
    fill: rgba(59, 130, 246, 0.04);
}
.website-text {
    fill: var(--muted-gray);
    font-size: 9px;
    font-weight: 400;
    opacity: 0.4;
    transition: all 0.6s;
}
.website-text.lit-text {
    opacity: 0.7;
    fill: var(--white);
}
.website-cta {
    fill: var(--accent);
    rx: 20;
    opacity: 0.3;
    transition: all 0.6s;
}
.website-cta.lit-cta {
    opacity: 0.6;
}
.website-nav {
    fill: rgba(255, 255, 255, 0.03);
    rx: 4;
    transition: all 0.6s;
}
.website-nav.lit-nav {
    fill: rgba(255, 255, 255, 0.06);
}
.app-panel {
    fill: rgba(20, 20, 20, 0.5);
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 1;
    rx: 8;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.app-panel.visible {
    opacity: 1;
}
.app-panel.highlight {
    stroke: rgba(59, 130, 246, 0.12);
    fill: rgba(59, 130, 246, 0.03);
}
.app-label {
    fill: var(--muted-gray);
    font-size: 7px;
    font-weight: 500;
    letter-spacing: 0.05em;
    opacity: 0;
    transition: all 0.6s;
}
.app-label.visible {
    opacity: 0.6;
}
.app-label.highlight-label {
    fill: var(--white);
    opacity: 0.8;
}
.app-icon {
    font-size: 12px;
    opacity: 0;
    transition: all 0.6s;
}
.app-icon.visible {
    opacity: 0.7;
}
.ui-preview {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ui-preview.visible {
    opacity: 1;
}
.ui-row {
    fill: rgba(255, 255, 255, 0.06);
    rx: 2;
}
.ui-row-subtle {
    fill: rgba(255, 255, 255, 0.03);
    rx: 2;
}
.ui-dot {
    fill: rgba(255, 255, 255, 0.1);
    rx: 50%;
}
.ui-dot.accent {
    fill: var(--accent);
    opacity: 0.4;
}
.ui-bar {
    fill: rgba(255, 255, 255, 0.04);
    rx: 1;
}
.ui-bar.fill {
    fill: var(--accent);
    opacity: 0.2;
}
.ui-text {
    fill: var(--muted-gray);
    font-size: 5px;
    font-weight: 400;
    opacity: 0.4;
}
.ui-text.light {
    opacity: 0.6;
}
.ui-metric {
    fill: var(--white);
    font-size: 6px;
    font-weight: 500;
    opacity: 0.3;
}
.ui-metric.light {
    opacity: 0.5;
}
.ui-chart-line {
    fill: none;
    stroke: var(--accent);
    stroke-width: 0.8;
    opacity: 0.15;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.ui-chart-line.light {
    opacity: 0.3;
}
.ui-progress {
    fill: rgba(255, 255, 255, 0.03);
    rx: 1;
}
.ui-progress.fill {
    fill: var(--accent);
    opacity: 0.15;
}
.connect-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 1.2;
    stroke-linecap: round;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    transition: stroke 0.6s;
}
.connect-path.active {
    stroke: var(--accent);
    stroke-opacity: 0.3;
}
.connect-path.drawn {
    stroke-dashoffset: 0;
}
.glow-dot {
    fill: var(--accent);
    opacity: 0;
    r: 3;
    transition: opacity 0.6s;
}
.glow-dot.active {
    opacity: 0.5;
}
.signature-final {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 5;
}
.signature-final.visible {
    opacity: 1;
}
.signature-final h3 {
    font-size: clamp(1.4rem, 2.5vw, 2.4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}
.signature-final h3 .hl {
    color: var(--accent);
}
.stage-dots {
    position: absolute;
    bottom: 30px;
    right: 40px;
    display: flex;
    gap: 10px;
    z-index: 5;
}
.stage-dot-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.stage-dot-indicator.active {
    background: var(--accent);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.3);
    width: 8px;
    height: 8px;
}

/* SERVICES */
.service-list {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 12px;
    position: relative;
}
.service-item:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 32px;
}
.service-item .idx {
    font-weight: 300;
    color: var(--muted-gray);
    margin-right: 30px;
    min-width: 40px;
    transition: color 0.4s;
}
.service-item:hover .idx {
    color: var(--accent);
}
.service-item .title {
    font-size: 1.3rem;
    font-weight: 500;
    transition: color 0.4s;
}
.service-item:hover .title {
    color: var(--white);
}
.service-item .desc {
    color: var(--muted-gray);
    font-size: 0.95rem;
    max-width: 400px;
    margin-left: auto;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(10px);
}
.service-item:hover .desc {
    opacity: 1;
    transform: translateX(0);
}
.service-item .arrow-icon {
    color: var(--muted-gray);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-size: 1.2rem;
    margin-left: 16px;
}
.service-item:hover .arrow-icon {
    color: var(--accent);
    transform: translateX(4px);
}

/* CASE STUDIES */
.case-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}
.case-card {
    background: var(--charcoal);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}
.case-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 60%);
    pointer-events: none;
}
.case-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.case-card .tag {
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.case-card h4 {
    font-size: 1.6rem;
    margin: 0.5rem 0;
}
.case-card p {
    color: var(--muted-gray);
}
.case-card .case-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}
.case-card .case-link {
    margin-top: 1.2rem;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}
.case-card:hover .case-link {
    gap: 12px;
}

/* EXAMPLES GRID */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.example-item {
    background: var(--charcoal);
    padding: 28px 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
}
.example-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    background: #1f1f1f;
}
.example-item .icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
    display: block;
}
.example-item .name {
    font-weight: 500;
    margin-bottom: 4px;
}
.example-item .flow {
    font-size: 0.7rem;
    color: var(--muted-gray);
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.example-item .flow .hl {
    color: var(--accent);
}

/* PROCESS */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 50px;
    position: relative;
}
.process-timeline::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
}
.process-step {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
}
.process-step .num {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.4rem;
    transition: all 0.4s;
}
.process-step .num.active {
    color: var(--white);
}
.process-step h4 {
    font-size: 1.3rem;
    font-weight: 500;
}
.process-step p {
    color: var(--muted-gray);
}
.process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}
.process-card {
    background: var(--charcoal);
    border-radius: 24px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}
.process-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    background: #1f1f1f;
}
.process-card .num {
    font-size: 3rem;
    font-weight: 300;
    color: var(--accent);
    opacity: 0.3;
    margin-bottom: 0.5rem;
}
.process-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.process-card p {
    color: var(--muted-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* TRUST VISUAL */
.trust-visual {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 2rem;
    max-width: 500px;
}
.trust-step {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s;
}
.trust-step .label {
    font-weight: 500;
    color: var(--muted-gray);
    min-width: 120px;
}
.trust-step .value {
    color: var(--white);
}
.trust-step .arrow {
    color: var(--accent);
    opacity: 0.3;
}

/* ABOUT SECTION */
.about-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-story .visual {
    background: var(--charcoal);
    border-radius: 24px;
    padding: 40px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}
.about-story .visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
    pointer-events: none;
}
.about-story .visual svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    position: relative;
    z-index: 1;
}
.about-story h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.about-story p {
    color: var(--muted-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* VALUES */
.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}
.value-card {
    background: var(--charcoal);
    border-radius: 24px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
}
.value-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    background: #1f1f1f;
}
.value-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}
.value-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.value-card p {
    color: var(--muted-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* TEAM */
.team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}
.team-member {
    background: var(--charcoal);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
}
.team-member:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.team-member .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.08);
    border: 2px solid rgba(59, 130, 246, 0.1);
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.team-member h4 {
    font-size: 1.2rem;
    font-weight: 600;
}
.team-member .role {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}
.team-member p {
    color: var(--muted-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* PHILOSOPHY SECTION */
.philosophy-section {
    background: var(--charcoal);
    border-radius: 32px;
    padding: 80px 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.philosophy-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
    position: relative;
    z-index: 1;
}

.philosophy-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: left;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.philosophy-item:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 0.04);
}

/* Horizontal process connector line between cards */
.philosophy-item:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.2rem;
    opacity: 0.5;
    z-index: 2;
}

.philosophy-item .step-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 1.2rem;
}

.philosophy-item h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.philosophy-item p {
    color: var(--muted-gray);
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .philosophy-item:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    .philosophy-section {
        padding: 50px 20px;
    }
}
/* SOLUTION DETAIL */
.solution-detail {
    padding: var(--section-spacing) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}
.solution-detail:first-of-type {
    border-top: none;
}
.solution-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.solution-detail-grid.reverse {
    direction: rtl;
}
.solution-detail-grid.reverse > * {
    direction: ltr;
}
.solution-detail .label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.solution-detail h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}
.solution-detail p {
    color: var(--muted-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.solution-detail .feature-list {
    list-style: none;
    padding: 0;
}
.solution-detail .feature-list li {
    padding: 8px 0;
    color: var(--soft-white);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}
.solution-detail .feature-list li::before {
    content: "→";
    color: var(--accent);
    font-weight: 300;
}
.solution-detail .visual {
    background: var(--charcoal);
    border-radius: 24px;
    padding: 40px;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}
.solution-detail .visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.04) 0%, transparent 70%);
    pointer-events: none;
}
.solution-detail .visual svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    position: relative;
    z-index: 1;
}

/* COMPARISON */
.comparison-section {
    background: var(--charcoal);
    border-radius: 32px;
    padding: 80px 60px;
    margin: 40px 0;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}
.comparison-item {
    text-align: center;
    padding: 30px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.comparison-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    background: rgba(59, 130, 246, 0.04);
}
.comparison-item .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}
.comparison-item h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.comparison-item p {
    color: var(--muted-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CONTACT FORM */
/* Ensure inputs account for padding in total width calculation */
.contact-form input,
.contact-form select,
.contact-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 16px 20px;
    background: var(--charcoal);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 18px;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 4px var(--accent-dim);
}

.contact-form label {
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
    color: var(--soft-white);
}

/* Base Responsive Layout (Mobile-first default) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
}

/* Desktop & Tablet Breakpoint */
@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        margin-top: 40px;
    }
}
/* WORK PAGE - FILTER BAR */
.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px 0 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 40px;
}
.filter-btn {
    background: transparent;
    color: var(--muted-gray);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: var(--font-sans);
}
.filter-btn:hover {
    border-color: var(--accent);
    color: var(--white);
}
.filter-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* PORTFOLIO GRID */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 20px;
}
.portfolio-item {
    background: var(--charcoal);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}
.portfolio-item:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.portfolio-item .visual {
    padding: 30px 30px 20px;
    background: rgba(0, 0, 0, 0.2);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.portfolio-item .visual svg {
    width: 100%;
    max-width: 400px;
    height: auto;
    position: relative;
    z-index: 1;
}
.portfolio-item .visual .tag {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(59, 130, 246, 0.1);
    z-index: 2;
}
.portfolio-item .info {
    padding: 30px;
}
.portfolio-item .info .category {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}
.portfolio-item .info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0.5rem 0;
}
.portfolio-item .info p {
    color: var(--muted-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}
.portfolio-item .info .case-link {
    margin-top: 1rem;
    color: var(--accent);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s;
}
.portfolio-item:hover .info .case-link {
    gap: 12px;
}

/* CASE STUDY DETAIL */
.case-study-detail {
    display: none;
    background: var(--charcoal);
    border-radius: 24px;
    padding: 60px;
    margin-top: 40px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
}
.case-study-detail.active {
    display: block;
    animation: fadeSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.case-study-detail .close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--muted-gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
    font-family: var(--font-sans);
}
.case-study-detail .close-btn:hover {
    color: var(--white);
}
.case-study-detail .cs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 20px;
}
.case-study-detail .cs-grid .label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.case-study-detail .cs-grid h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.case-study-detail .cs-grid p {
    color: var(--muted-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}
.case-study-detail .cs-grid .result {
    background: rgba(59, 130, 246, 0.04);
    border-radius: 16px;
    padding: 20px 24px;
    border: 1px solid rgba(59, 130, 246, 0.06);
    margin-top: 1rem;
}
.case-study-detail .cs-grid .result .highlight {
    color: var(--accent);
    font-weight: 600;
    font-size: 1.1rem;
}

/* BUILD GRID */
.build-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.build-item {
    background: var(--charcoal);
    padding: 28px 24px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.build-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    background: #1f1f1f;
}
.build-item .icon {
    font-size: 2.2rem;
    margin-bottom: 8px;
    display: block;
}
.build-item .name {
    font-weight: 500;
    margin-bottom: 4px;
}
.build-item .flow {
    font-size: 0.7rem;
    color: var(--muted-gray);
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
    flex-wrap: wrap;
}
.build-item .flow .hl {
    color: var(--accent);
}

/* CTA SECTIONS */
.cta-final,
.cta-section {
    background: var(--charcoal);
    border-radius: 32px;
    padding: 80px 60px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
}
.cta-final::before,
.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}
.cta-final h2,
.cta-section h2 {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    position: relative;
    z-index: 1;
}
.cta-final .actions,
.cta-section .actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* FOOTER */
.site-footer {
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 40px;
    background-color: var(--base-black);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-brand {
    max-width: 320px;
}

.footer-brand p {
    color: var(--muted-gray);
    font-size: 0.9rem;
    margin-top: 8px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links a {
    color: var(--muted-gray);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-grid,
    .problem-grid,
    .about-story,
    .solution-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .solution-detail-grid.reverse {
        direction: ltr;
    }
    .solution-levels,
    .values-grid,
    .team-grid,
    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }
    .outcomes-grid,
    .case-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .comparison-grid,
    .process-grid {
        grid-template-columns: 1fr 1fr;
    }
    .philosophy-grid {
        grid-template-columns: 1fr 1fr;
    }
    .case-study-detail .cs-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .container {
        padding: 0 24px;
    }
    .site-header {
        padding: 0 24px;
    }
    .bg-glow {
        display: none;
    }
    .signature-system {
        height: 320px;
    }
    .signature-content {
        padding: 40px 20px;
    }
    .signature-stage-label {
        left: 24px;
        top: 24px;
        font-size: 0.6rem;
    }
    .stage-dots {
        right: 20px;
        bottom: 20px;
    }
    .signature-final {
        bottom: 40px;
    }
    .philosophy-section,
    .comparison-section,
    .cta-final,
    .cta-section,
    .case-study-detail {
        padding: 40px 30px;
    }
}
@media (max-width: 720px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .hero-content h1,
    .page-hero h1 {
        font-size: 2.8rem;
    }
    .solution-levels,
    .values-grid,
    .team-grid,
    .philosophy-grid,
    .comparison-grid,
    .process-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .signature-pin-wrap {
        border-radius: 16px;
        height: 90vh;
    }
    .signature-system {
        height: 260px;
    }
    .signature-headline {
        font-size: 1.4rem;
        top: 20px;
    }
    .signature-stage-label {
        left: 16px;
        top: 16px;
        font-size: 0.55rem;
    }
    .stage-dots {
        right: 16px;
        bottom: 16px;
        gap: 6px;
    }
    .stage-dot-indicator {
        width: 4px;
        height: 4px;
    }
    .stage-dot-indicator.active {
        width: 6px;
        height: 6px;
    }
    .signature-final {
        bottom: 30px;
    }
    .signature-final h3 {
        font-size: 1.2rem;
    }
    .service-item .desc {
        display: none;
    }
    .service-item {
        flex-wrap: wrap;
    }
    .page-hero {
        min-height: 50vh;
        padding: 100px 0 60px;
    }
    .philosophy-section,
    .comparison-section,
    .cta-final,
    .cta-section {
        padding: 30px 20px;
        border-radius: 16px;
    }
    .about-story .visual,
    .solution-detail .visual {
        min-height: 200px;
        padding: 20px;
    }
    .filter-bar {
        gap: 8px;
    }
    .filter-btn {
        padding: 6px 16px;
        font-size: 0.75rem;
    }
    .case-study-detail {
        padding: 30px 20px;
        border-radius: 16px;
    }
    .case-study-detail .cs-grid {
        gap: 20px;
    }
    .portfolio-item .visual {
        min-height: 150px;
        padding: 20px;
    }
    .portfolio-item .info {
        padding: 20px;
    }
    .portfolio-item .info h3 {
        font-size: 1.2rem;
    }
    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
    }
     .site-footer {
        padding: 40px 0 24px;
    }

    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    /* Wrap links smoothly across lines on smaller screens */
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        gap: 16px 20px; /* Reduced gap so all links fit mobile viewports */
        width: 100%;
    }

    .footer-links a {
        font-size: 0.85rem;
    }
}

/***========
* Blog 
*============
*/
/* Featured Post */
    .featured-post {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      background: var(--charcoal);
      border-radius: 24px;
      padding: 50px;
      border: 1px solid rgba(255,255,255,0.04);
      margin-top: 20px;
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .featured-post:hover {
      border-color: var(--accent);
    }
    .featured-post .featured-tag {
      font-size: 0.6rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--accent);
      font-weight: 600;
      margin-bottom: 0.5rem;
    }
    .featured-post .category {
      font-size: 0.7rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--muted-gray);
      margin-bottom: 0.5rem;
    }
    .featured-post h3 {
      font-size: 1.8rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
      line-height: 1.2;
    }
    .featured-post p {
      color: var(--muted-gray);
      font-size: 0.95rem;
      line-height: 1.7;
      margin-bottom: 1.5rem;
    }
    .featured-post .meta {
      display: flex;
      gap: 20px;
      font-size: 0.8rem;
      color: var(--muted-gray);
    }
    .featured-post .visual {
      background: rgba(0,0,0,0.2);
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 200px;
      border: 1px solid rgba(255,255,255,0.04);
    }
    .featured-post .visual svg {
      width: 100%;
      max-width: 300px;
      height: auto;
    }
    .featured-post .read-link {
      color: var(--accent);
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: gap 0.3s;
    }
    .featured-post:hover .read-link { gap: 12px; }
    
    /* Blog Grid */
    .blog-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 40px;
      margin-top: 50px;
    }
    .blog-card {
      background: var(--charcoal);
      border-radius: 24px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.04);
      transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      cursor: pointer;
    }
    .blog-card:hover {
      border-color: var(--accent);
      transform: translateY(-6px);
      box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    }
    .blog-card .visual {
      padding: 30px 30px 20px;
      background: rgba(0,0,0,0.2);
      min-height: 160px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-bottom: 1px solid rgba(255,255,255,0.03);
    }
    .blog-card .visual svg {
      width: 100%;
      max-width: 250px;
      height: auto;
    }
    .blog-card .info {
      padding: 24px 28px;
    }
    .blog-card .info .category {
      font-size: 0.65rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      font-weight: 600;
    }
    .blog-card .info h4 {
      font-size: 1.2rem;
      font-weight: 600;
      margin: 0.5rem 0 0.5rem;
      line-height: 1.3;
    }
    .blog-card .info p {
      color: var(--muted-gray);
      font-size: 0.9rem;
      line-height: 1.7;
    }
    .blog-card .info .meta {
      display: flex;
      gap: 16px;
      font-size: 0.75rem;
      color: var(--muted-gray);
      margin-top: 1rem;
    }
    .blog-card .info .read-link {
      color: var(--accent);
      font-weight: 500;
      font-size: 0.85rem;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: gap 0.3s;
      margin-top: 0.8rem;
    }
    .blog-card:hover .info .read-link { gap: 12px; }
    @media (max-width: 1024px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 720px) { .blog-grid { grid-template-columns: 1fr; } }
    /* Category Filter */
    .filter-bar {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      padding: 20px 0 30px;
      border-bottom: 1px solid rgba(255,255,255,0.04);
      margin-bottom: 10px;
    }
    .filter-btn {
      background: transparent;
      color: var(--muted-gray);
      border: 1px solid rgba(255,255,255,0.06);
      padding: 8px 24px;
      border-radius: 30px;
      font-size: 0.85rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      font-family: var(--font-sans);
    }
    .filter-btn:hover {
      border-color: var(--accent);
      color: var(--white);
    }
    .filter-btn.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }
    
    /* Categories Section */
    .categories-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
      margin-top: 40px;
    }
    .category-item {
      background: var(--charcoal);
      padding: 28px 24px;
      border-radius: 16px;
      text-align: center;
      border: 1px solid rgba(255,255,255,0.04);
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .category-item:hover {
      border-color: var(--accent);
      transform: translateY(-4px);
      background: #1f1f1f;
    }
    .category-item .icon { font-size: 2rem; margin-bottom: 8px; display: block; }
    .category-item .name { font-weight: 500; margin-bottom: 4px; }
    .category-item .count { color: var(--muted-gray); font-size: 0.8rem; }

    /* Post Hero */
    .post-hero {
      padding: 120px 0 60px;
      position: relative;
      overflow: hidden;
      background: radial-gradient(ellipse at 70% 30%, rgba(59,130,246,0.05) 0%, transparent 60%);
    }
    .post-hero .content-container { position: relative; z-index: 2; }
    .post-hero .eyebrow { opacity: 0; }
    .post-hero .category-tag {
      display: inline-block;
      font-size: 0.7rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      font-weight: 600;
      background: rgba(59,130,246,0.1);
      padding: 4px 16px;
      border-radius: 20px;
      border: 1px solid rgba(59,130,246,0.1);
      margin-bottom: 1rem;
    }
    .post-hero h1 {
      font-size: clamp(2.8rem, 6vw, 4.5rem);
      font-weight: 700;
      letter-spacing: -0.03em;
      line-height: 1.08;
      margin-bottom: 1.5rem;
    }
    .post-hero h1 .line { display: block; overflow: hidden; }
    .post-hero h1 .line-inner { display: block; transform: translateY(100%); }
    .post-hero .meta {
      display: flex;
      gap: 24px;
      flex-wrap: wrap;
      color: var(--muted-gray);
      font-size: 0.9rem;
      margin-bottom: 2rem;
      padding-bottom: 2rem;
      border-bottom: 1px solid rgba(255,255,255,0.04);
    }
    .post-hero .meta span { display: flex; align-items: center; gap: 6px; }
    .post-hero .featured-image {
      border-radius: 16px;
      overflow: hidden;
      background: var(--charcoal);
      border: 1px solid rgba(255,255,255,0.04);
      margin-top: 1rem;
    }
    .post-hero .featured-image svg {
      width: 100%;
      height: auto;
      display: block;
    }
    
    /* Post Content */
    .post-content {
      padding: 60px 0;
    }
    section#postHero .content-container ,#post-content .content-container {
      max-width: 720px;
      margin: 0 auto;
    }
    .post-content h2 {
      font-size: 2rem;
      font-weight: 600;
      margin: 2.5rem 0 1rem;
      letter-spacing: -0.02em;
    }
    .post-content h3 {
      font-size: 1.5rem;
      font-weight: 600;
      margin: 2rem 0 0.8rem;
    }
    .post-content p {
      color: var(--soft-white);
      font-size: 1.05rem;
      line-height: 1.9;
      margin-bottom: 1.5rem;
    }
    .post-content p strong {
      color: var(--white);
    }
    .post-content ul, .post-content ol {
      color: var(--soft-white);
      font-size: 1.05rem;
      line-height: 1.9;
      margin: 1rem 0 1.5rem 1.5rem;
    }
    .post-content ul li, .post-content ol li {
      margin-bottom: 0.5rem;
    }
    .post-content blockquote {
      border-left: 3px solid var(--accent);
      padding: 1.5rem 2rem;
      margin: 2rem 0;
      background: rgba(59,130,246,0.04);
      border-radius: 0 12px 12px 0;
    }
    .post-content blockquote p {
      font-size: 1.2rem;
      font-weight: 400;
      color: var(--white);
      margin-bottom: 0;
      font-style: italic;
    }
    .post-content blockquote cite {
      display: block;
      color: var(--muted-gray);
      font-size: 0.9rem;
      font-style: normal;
      margin-top: 0.5rem;
    }
    .post-content .callout {
      background: rgba(59,130,246,0.04);
      border: 1px solid rgba(59,130,246,0.06);
      border-radius: 16px;
      padding: 24px 30px;
      margin: 2rem 0;
    }
    .post-content .callout p {
      margin-bottom: 0;
      color: var(--white);
    }
    .post-content .callout .highlight {
      color: var(--accent);
      font-weight: 600;
    }
    .post-content hr {
      border: none;
      border-top: 1px solid rgba(255,255,255,0.04);
      margin: 3rem 0;
    }
    .post-content .author-bio {
      display: flex;
      gap: 20px;
      align-items: center;
      padding: 30px;
      background: var(--charcoal);
      border-radius: 16px;
      border: 1px solid rgba(255,255,255,0.04);
      margin: 3rem 0 2rem;
    }
    .post-content .author-bio .avatar {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background: rgba(59,130,246,0.08);
      border: 2px solid rgba(59,130,246,0.1);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      flex-shrink: 0;
    }
    .post-content .author-bio .info h4 {
      font-weight: 600;
      font-size: 1.1rem;
    }
    .post-content .author-bio .info p {
      font-size: 0.9rem;
      color: var(--muted-gray);
      margin-bottom: 0;
    }
    
    /* Share Section */
    .share-section {
      padding: 20px 0 40px;
      border-top: 1px solid rgba(255,255,255,0.04);
      margin-top: 20px;
    }
    .share-section .share-links {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
    }
    .share-section .share-links a {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 20px;
      background: var(--charcoal);
      border-radius: 30px;
      border: 1px solid rgba(255,255,255,0.04);
      font-size: 0.85rem;
      color: var(--muted-gray);
      transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .share-section .share-links a:hover {
      border-color: var(--accent);
      color: var(--white);
      transform: translateY(-2px);
    }
    
    /* Related Posts */
    .related-posts {
      padding: 60px 0;
      border-top: 1px solid rgba(255,255,255,0.04);
    }
    .related-posts .related-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 30px;
      margin-top: 40px;
    }
    .related-posts .related-card {
      background: var(--charcoal);
      border-radius: 16px;
      padding: 24px;
      border: 1px solid rgba(255,255,255,0.04);
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .related-posts .related-card:hover {
      border-color: var(--accent);
      transform: translateY(-4px);
    }
    .related-posts .related-card .category {
      font-size: 0.6rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      font-weight: 600;
    }
    .related-posts .related-card h4 {
      font-size: 1.1rem;
      font-weight: 600;
      margin: 0.5rem 0;
      line-height: 1.3;
    }
    .related-posts .related-card p {
      color: var(--muted-gray);
      font-size: 0.9rem;
      line-height: 1.6;
    }
    .related-posts .related-card .read-link {
      color: var(--accent);
      font-weight: 500;
      font-size: 0.85rem;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: gap 0.3s;
      margin-top: 0.8rem;
    }
    .related-posts .related-card:hover .read-link { gap: 12px; }


    /* Work css */

    
    /* Filter Bar */
    .filter-bar {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      padding: 20px 0 40px;
      border-bottom: 1px solid rgba(255,255,255,0.04);
      margin-bottom: 40px;
    }
    .filter-btn {
      background: transparent;
      color: var(--muted-gray);
      border: 1px solid rgba(255,255,255,0.06);
      padding: 8px 24px;
      border-radius: 30px;
      font-size: 0.85rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      font-family: var(--font-sans);
    }
    .filter-btn:hover {
      border-color: var(--accent);
      color: var(--white);
    }
    .filter-btn.active {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }
    
    /* Portfolio Grid */
    .portfolio-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      margin-top: 20px;
    }
    .portfolio-item {
      background: var(--charcoal);
      border-radius: 24px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.04);
      transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      cursor: pointer;
    }
    .portfolio-item:hover {
      border-color: var(--accent);
      transform: translateY(-6px);
      box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    }
    .portfolio-item .visual {
      padding: 30px 30px 20px;
      background: rgba(0,0,0,0.2);
      min-height: 200px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
    }
    .portfolio-item .visual svg {
      width: 100%;
      max-width: 400px;
      height: auto;
      position: relative;
      z-index: 1;
    }
    .portfolio-item .visual .tag {
      position: absolute;
      top: 16px;
      right: 16px;
      font-size: 0.6rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      background: rgba(59,130,246,0.1);
      padding: 4px 12px;
      border-radius: 20px;
      border: 1px solid rgba(59,130,246,0.1);
      z-index: 2;
    }
    .portfolio-item .info {
      padding: 30px;
    }
    .portfolio-item .info .category {
      font-size: 0.7rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--accent);
      font-weight: 600;
    }
    .portfolio-item .info h3 {
      font-size: 1.5rem;
      font-weight: 600;
      margin: 0.5rem 0 0.5rem;
    }
    .portfolio-item .info p {
      color: var(--muted-gray);
      font-size: 0.95rem;
      line-height: 1.7;
    }
    .portfolio-item .info .case-link {
      margin-top: 1rem;
      color: var(--accent);
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: gap 0.3s;
    }
    .portfolio-item:hover .info .case-link { gap: 12px; }
    
    /* Case Study Detail (expanded view) */
    .case-study-detail {
      display: none;
      background: var(--charcoal);
      border-radius: 24px;
      padding: 60px;
      margin-top: 40px;
      border: 1px solid rgba(255,255,255,0.04);
      position: relative;
    }
    .case-study-detail.active {
      display: block;
      animation: fadeSlideIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    @keyframes fadeSlideIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .case-study-detail .close-btn {
      position: absolute;
      top: 20px;
      right: 24px;
      background: none;
      border: none;
      color: var(--muted-gray);
      font-size: 1.5rem;
      cursor: pointer;
      transition: color 0.3s;
      font-family: var(--font-sans);
    }
    .case-study-detail .close-btn:hover { color: var(--white); }
    .case-study-detail .cs-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 50px;
      margin-top: 20px;
    }
    .case-study-detail .cs-grid .label {
      font-size: 0.7rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--accent);
      font-weight: 600;
      margin-bottom: 0.5rem;
    }
    .case-study-detail .cs-grid h4 {
      font-size: 1.3rem;
      font-weight: 600;
      margin-bottom: 0.5rem;
    }
    .case-study-detail .cs-grid p {
      color: var(--muted-gray);
      font-size: 0.95rem;
      line-height: 1.7;
    }
    .case-study-detail .cs-grid .result {
      background: rgba(59,130,246,0.04);
      border-radius: 16px;
      padding: 20px 24px;
      border: 1px solid rgba(59,130,246,0.06);
      margin-top: 1rem;
    }
    .case-study-detail .cs-grid .result .highlight {
      color: var(--accent);
      font-weight: 600;
      font-size: 1.1rem;
    }
    
    /* What We Build Section */
    .build-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
      margin-top: 40px;
    }
    .build-item {
      background: var(--charcoal);
      padding: 28px 24px;
      border-radius: 16px;
      text-align: center;
      border: 1px solid rgba(255,255,255,0.04);
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .build-item:hover {
      border-color: var(--accent);
      transform: translateY(-4px);
      background: #1f1f1f;
    }
    .build-item .icon { font-size: 2.2rem; margin-bottom: 8px; display: block; }
    .build-item .name { font-weight: 500; margin-bottom: 4px; }
    .build-item .flow {
      font-size: 0.7rem;
      color: var(--muted-gray);
      display: flex;
      justify-content: center;
      gap: 4px;
      margin-top: 8px;
      flex-wrap: wrap;
    }
    .build-item .flow .hl { color: var(--accent); }
    
    /* CTA Section */
    .cta-section {
      background: var(--charcoal);
      border-radius: 32px;
      padding: 80px 60px;
      text-align: center;
      border: 1px solid rgba(255,255,255,0.04);
      position: relative;
      overflow: hidden;
    }
    .cta-section::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse at center, rgba(59,130,246,0.05) 0%, transparent 70%);
      pointer-events: none;
    }
    .cta-section h2 {
      font-size: clamp(2.8rem, 6vw, 4.2rem);
      position: relative;
      z-index: 1;
    }
    .cta-section .actions {
      display: flex;
      justify-content: center;
      gap: 20px;
      margin-top: 30px;
      flex-wrap: wrap;
      position: relative;
      z-index: 1;
    }
    

    
    @media (max-width: 1024px) {
      .portfolio-grid { grid-template-columns: 1fr 1fr; }
      .case-study-detail .cs-grid { grid-template-columns: 1fr; gap: 30px; }
      .container { padding: 0 24px; }
      .site-header { padding: 0 24px; }
      .cta-section { padding: 40px 30px; }
      .case-study-detail { padding: 40px 30px; }
      .bg-glow { display: none; }
    }
    @media (max-width: 720px) {
      .nav-links { display: none; }
      .hamburger { display: flex; }
      .portfolio-grid { grid-template-columns: 1fr; }
      .page-hero h1 { font-size: 2.8rem; }
      .page-hero { min-height: 50vh; padding: 100px 0 60px; }
      .filter-bar { gap: 8px; }
      .filter-btn { padding: 6px 16px; font-size: 0.75rem; }
      .case-study-detail { padding: 30px 20px; border-radius: 16px; }
      .case-study-detail .cs-grid { gap: 20px; }
      .cta-section { padding: 30px 20px; border-radius: 16px; }
      .footer-grid { flex-direction: column; align-items: flex-start; }
      .portfolio-item .visual { min-height: 150px; padding: 20px; }
      .portfolio-item .info { padding: 20px; }
      .portfolio-item .info h3 { font-size: 1.2rem; }
    }
    .text-accent { color: var(--accent); }

    /* Contact Grid */
    .contact-page-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 60px;
      margin-top: 20px;
    }
    .contact-info {
      padding-right: 20px;
    }
    .contact-info h2 {
      font-size: clamp(1.8rem, 3vw, 2.8rem);
      font-weight: 600;
      margin-bottom: 1rem;
    }
    .contact-info p {
      color: var(--muted-gray);
      font-size: 1.05rem;
      line-height: 1.8;
      margin-bottom: 2rem;
    }
    .contact-info .info-item {
      display: flex;
      gap: 16px;
      align-items: flex-start;
      margin-bottom: 1.5rem;
    }
    .contact-info .info-item .icon {
      font-size: 1.5rem;
      min-width: 40px;
      color: var(--accent);
    }
    .contact-info .info-item .label {
      font-size: 0.8rem;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      color: var(--muted-gray);
      font-weight: 500;
    }
    .contact-info .info-item .value {
      font-size: 1.05rem;
      color: var(--white);
      margin-top: 2px;
    }
    .contact-info .info-item .value a {
      color: var(--white);
      transition: color 0.3s;
    }
    .contact-info .info-item .value a:hover {
      color: var(--accent);
    }
    .contact-info .social-links {
      display: flex;
      gap: 16px;
      margin-top: 2rem;
    }
    .contact-info .social-links a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: var(--charcoal);
      border: 1px solid rgba(255,255,255,0.04);
      font-size: 1.2rem;
      color: var(--muted-gray);
      transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .contact-info .social-links a:hover {
      border-color: var(--accent);
      color: var(--white);
      transform: translateY(-3px);
      box-shadow: 0 8px 30px rgba(59,130,246,0.15);
    }
    
    /* Contact Form */
    .contact-form-wrapper {
      background: var(--charcoal);
      border-radius: 24px;
      padding: 40px;
      border: 1px solid rgba(255,255,255,0.04);
    }
    .contact-form-wrapper .form-group {
      margin-bottom: 20px;
    }
    .contact-form-wrapper label {
      display: block;
      font-weight: 500;
      color: var(--soft-white);
      margin-bottom: 6px;
      font-size: 0.95rem;
    }
    .contact-form-wrapper input,
    .contact-form-wrapper select,
    .contact-form-wrapper textarea {
      width: 100%;
      padding: 14px 18px;
      background: var(--base-black);
      border: 1px solid rgba(255,255,255,0.06);
      border-radius: 12px;
      color: var(--white);
      font-size: 1rem;
      font-family: var(--font-sans);
      transition: all 0.3s;
    }
    .contact-form-wrapper input:focus,
    .contact-form-wrapper select:focus,
    .contact-form-wrapper textarea:focus {
      border-color: var(--accent);
      outline: none;
      box-shadow: 0 0 0 4px var(--accent-dim);
    }
    .contact-form-wrapper input::placeholder,
    .contact-form-wrapper textarea::placeholder {
      color: var(--muted-gray);
      opacity: 0.5;
    }
    .contact-form-wrapper .form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }
    .contact-form-wrapper .btn-primary {
      width: 100%;
      text-align: center;
      margin-top: 10px;
    }
    
    /* Map / Location Section */
    .location-section {
      margin-top: 40px;
    }
    .location-section .location-grid {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
      gap: 30px;
      margin-top: 40px;
    }
    .location-item {
      background: var(--charcoal);
      border-radius: 16px;
      padding: 30px 24px;
      text-align: center;
      border: 1px solid rgba(255,255,255,0.04);
      transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    .location-item:hover {
      border-color: var(--accent);
      transform: translateY(-4px);
      background: #1f1f1f;
    }
    .location-item .icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
    .location-item h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.3rem; }
    .location-item p { color: var(--muted-gray); font-size: 0.9rem; line-height: 1.6; }
    
  /* FAQ Section */
.faq-section {
    margin-top: 40px;
}

/* Mobile-first: Default to 1 full-width column */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
}

.faq-item {
    background: var(--charcoal);
    border-radius: 16px;
    padding: 24px 28px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.faq-item:hover {
    border-color: var(--accent);
}

.faq-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start; /* Keeps the 'Q.' aligned to the top if text wraps */
    gap: 12px;
}

.faq-item h4 .q {
    color: var(--accent);
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 2px;
}

.faq-item p {
    color: var(--muted-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Tablet & Desktop: Expand to 2 columns */
@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

 .error-404-section {
    min-height: calc(100vh - var(--nav-height, 72px));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--section-spacing, 80px) 20px;
    background-color: var(--base-black, #0b0b0b);
    color: var(--white, #f5f5f5);
    font-family: var(--font-sans);
    text-align: center;
  }

  .error-404-container {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
  }

  .error-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--accent-dim);
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
    text-transform: uppercase;
  }

  .error-code {
    font-size: clamp(5rem, 12vw, 8rem);
    font-weight: 800;
    line-height: 1;
    margin: 0 0 16px 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--muted-gray) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .error-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--soft-white);
    margin-bottom: 16px;
  }

  .error-description {
    color: var(--muted-gray);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 32px;
  }

  .error-search-form {
    margin-bottom: 32px;
  }

  .error-search-form .search-form {
    display: flex;
    gap: 10px;
    max-width: 460px;
    margin: 0 auto;
  }

  .error-search-form input[type="search"] {
    flex: 1;
    padding: 14px 20px;
    background: var(--charcoal);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--white);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
  }

  .error-search-form input[type="search"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
  }

  .error-search-form input[type="submit"] {
    padding: 14px 24px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
  }

  .error-search-form input[type="submit"]:hover {
    opacity: 0.9;
  }

  .btn-home {
    display: inline-block;
    padding: 14px 28px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .btn-home:hover {
    box-shadow: 0 0 20px var(--accent-dim);
    transform: translateY(-2px);
  }

   .search-results-section {
    padding: var(--section-spacing, 80px) 20px;
    background-color: var(--base-black, #0b0b0b);
    color: var(--white, #f5f5f5);
    min-height: calc(100vh - var(--nav-height, 72px));
    font-family: var(--font-sans);
  }

  .search-header {
    max-width: var(--max-width, 1400px);
    margin: 0 auto 40px auto;
    text-align: center;
  }

  .search-header .eyebrow {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  .search-header .section-headline {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    font-weight: 700;
    margin-bottom: 20px;
  }

  .search-header .search-term {
    color: var(--accent);
  }

  .search-box-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }

  .search-box-wrapper .search-form {
    display: flex;
    gap: 10px;
  }

  .search-box-wrapper input[type="search"] {
    flex: 1;
    padding: 14px 20px;
    background: var(--charcoal);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--white);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
  }

  .search-box-wrapper input[type="search"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
  }

  .search-box-wrapper input[type="submit"] {
    padding: 14px 24px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
  }

  /* Search Results Grid Layout */
  .blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    max-width: var(--max-width, 1400px);
    margin: 0 auto;
  }

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

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

  .blog-card {
    background: var(--charcoal);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
  }

  .blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
  }

  .blog-card .visual {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
  }

  .blog-card .visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .blog-card .visual svg {
    width: 100%;
    height: 100%;
  }

  .blog-card .info {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .blog-card .category {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 8px;
  }

  .blog-card h4 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 12px;
    font-weight: 600;
  }

  .blog-card p {
    color: var(--muted-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
  }

  .blog-card .meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--muted-gray);
    margin-bottom: 16px;
  }

  .blog-card .read-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
  }

  /* Pagination Styling */
  .pagination-wrapper {
    max-width: var(--max-width, 1400px);
    margin: 50px auto 0 auto;
    text-align: center;
  }

  .pagination-wrapper .page-numbers {
    display: inline-flex;
    gap: 8px;
    list-style: none;
    padding: 0;
  }

  .pagination-wrapper .page-numbers a,
  .pagination-wrapper .page-numbers .current {
    padding: 10px 18px;
    border-radius: 8px;
    background: var(--charcoal);
    color: var(--white);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  .pagination-wrapper .page-numbers .current {
    background: var(--accent);
    border-color: var(--accent);
  }

  .no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted-gray);
  }
.page-template-section {
    padding: var(--section-spacing, 80px) 0;
    background-color: var(--base-black, #0b0b0b);
    color: var(--white, #f5f5f5);
    min-height: calc(100vh - var(--nav-height, 72px));
    font-family: var(--font-sans);
  }

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

  .page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
  }

  /* WordPress Content Styling */
  .entry-content {
    color: var(--soft-white, #e8e8e8);
    font-size: 1.05rem;
    line-height: 1.8;
  }

  .entry-content p {
    margin-bottom: 24px;
    color: var(--muted-gray);
  }

  .entry-content h2, 
  .entry-content h3, 
  .entry-content h4 {
    color: var(--white);
    font-weight: 600;
    margin: 40px 0 16px 0;
  }

  .entry-content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
  .entry-content h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
  .entry-content h4 { font-size: 1.2rem; }

  .entry-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s;
  }

  .entry-content a:hover {
    color: var(--white);
  }

  .entry-content ul, 
  .entry-content ol {
    margin: 0 0 24px 24px;
    color: var(--muted-gray);
  }

  .entry-content li {
    margin-bottom: 8px;
  }

  .entry-content blockquote {
    border-left: 3px solid var(--accent);
    background: var(--charcoal);
    padding: 20px 24px;
    border-radius: 0 12px 12px 0;
    margin: 30px 0;
    font-style: italic;
    color: var(--soft-white);
  }

  .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
  }

  .page-featured-image {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
  }