@keyframes heroReveal {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== HERO SECTION ========== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--near);
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

#hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  transform: scale(1.15);
  filter: blur(5px) saturate(0.5) brightness(0.85);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 1000px;
  padding: 40px;
}

.hero-eyebrow {
  animation: heroReveal 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-title {
  animation: heroReveal 1s cubic-bezier(0.23, 1, 0.32, 1) 0.15s forwards;
  opacity: 0;
}

.hero-subtitle {
  animation: heroReveal 1s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
  opacity: 0;
}

.hero-content .cta-button {
  animation: heroReveal 1s cubic-bezier(0.23, 1, 0.32, 1) 0.45s forwards;
  opacity: 0;
}

.hero-brand-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-logo {
  width: clamp(80px, 15vw, 140px);
  height: clamp(80px, 15vw, 140px);
  flex-shrink: 0;
  align-self: center;
}

.hero-title-container {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.hero-eyebrow {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--cyan);
  opacity: 0.8;
  margin-bottom: 32px;
  margin-top: 80px;
  font-weight: 500;
  display: block;
  animation: heroReveal 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-title {
  font-size: clamp(44px, 8.5vw, 88px);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  margin: 0 0 24px;
  line-height: 1.0;
  padding: 0;
  animation: heroReveal 1s cubic-bezier(0.23, 1, 0.32, 1) 0.15s forwards;
  opacity: 0;
}

.hero-title .marker {
  display: inline-block;
  width: 0.18em;
  height: 0.18em;
  background-color: var(--cyan);
  margin-left: 0.05em;
}

.hero-subtitle {
  font-size: clamp(18px, 3vw, 24px);
  color: rgba(255, 255, 255, 0.8);
  margin: 0 auto 48px;
  max-width: 750px;
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  font-weight: 500;
  animation: heroReveal 1s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
  opacity: 0;
}

.hero-target {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  color: rgba(0, 217, 255, 0.9);
  margin-bottom: 48px;
  letter-spacing: 0.15em;
  font-weight: 700;
  animation: heroReveal 1s cubic-bezier(0.23, 1, 0.32, 1) 0.4s forwards;
  opacity: 0;
}

.hero-tagline {
  font-size: clamp(12px, 2vw, 16px);
  color: var(--cyan);
  margin-top: 16px;
  margin-bottom: 0;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  letter-spacing: 0.2em;
  white-space: nowrap;
}

/* Removed duplicate/unused styles */

/* ========== LOGO CLOUD ========== */
.logo-cloud {
  padding: 180px 48px 200px;
  /* Increased padding bottom for more separation */
  background: #0d0d0d;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  position: relative;
}

.logo-cloud-header {
  text-align: center;
  margin-bottom: 120px;
}

.logo-cloud-eyebrow {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 20px;
  display: block;
}

.logo-cloud-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 3.5vw, 34px);
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto 16px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.logo-cloud-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

.logo-cloud-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-top: 100px;
  opacity: 0.8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
}

.stat-label {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.2);
}


.logo-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap;
  max-width: 1200px;
  margin: 100px auto;
}

.logo-item {
  flex: 0 1 auto;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0.6;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  text-decoration: none;
  cursor: pointer;
  padding: 12px 24px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-item:hover {
  opacity: 1;
  filter: saturate(1) brightness(1.3);
  transform: scale(1.15) translateY(-5px);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Specific Brand Colors on Hover */
.logo-item:nth-child(1):hover {
  color: #00d9ff;
  border-color: rgba(0, 217, 255, 0.2);
}

.logo-item:nth-child(2):hover {
  color: #ffcc00;
  border-color: rgba(255, 204, 0, 0.2);
}

.logo-item:nth-child(3):hover {
  color: #ff3300;
  border-color: rgba(255, 51, 0, 0.2);
}

.logo-item:nth-child(4):hover {
  color: #cc00ff;
  border-color: rgba(204, 0, 255, 0.2);
}

.logo-item svg {
  height: 32px;
  /* Larger icons */
  width: auto;
  fill: rgba(255, 255, 255, 0.95);
  transition: all 0.4s ease;
}

.logo-item span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  /* Larger text */
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
  transition: all 0.4s ease;
}

/* Ensure children inherit the brand color on hover */
.logo-item:hover svg {
  fill: currentColor;
}

.logo-item:hover span {
  color: currentColor;
}

/* ========== SERVICES SECTION ========== */
.bg-services {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="g1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%230080FF" stop-opacity="0.08"/><stop offset="100%" stop-color="%2300D9FF" stop-opacity="0.05"/></linearGradient></defs><rect width="1200" height="800" fill="url(%23g1)"/><circle cx="200" cy="100" r="150" fill="%230080FF" opacity="0.03"/><circle cx="1000" cy="700" r="200" fill="%2300D9FF" opacity="0.02"/></svg>');
}

.what-we-do-layout {
  display: flex;
  gap: 64px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap-reverse;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.services-list-container {
  flex: 1;
  max-width: 1400px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 32px;
  border: 1px solid rgba(0, 128, 255, 0.3);
  background: rgba(26, 26, 26, 0.8);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: revealDown 0.6s ease forwards;
}

.service-card:hover {
  border-color: rgba(0, 217, 255, 0.6);
  transform: translateY(-4px);
  background: rgba(35, 35, 35, 0.98);
  box-shadow:
    0 15px 40px rgba(0, 0, 0, 0.6),
    0 0 15px rgba(0, 217, 255, 0.1);
}

/* Specific hover for hero card to maintain its scale and prominence */
.service-card-hero:hover {
  border-color: var(--cyan);
  transform: translateY(-10px) scale(1.01);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(0, 217, 255, 0.2);
}

.service-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  color: var(--cyan);
  filter: drop-shadow(0 0 4px rgba(0, 128, 255, 0.3));
  transition: all 0.3s ease;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

@keyframes iconPulse {

  0%,
  100% {
    transform: translateY(-4px) scale(1.05);
  }

  50% {
    transform: translateY(-8px) scale(1.1);
  }
}

.service-card:hover .service-icon {
  color: var(--cyan);
  filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.5));
  animation: iconPulse 2s ease-in-out infinite;
}

.service-card h4 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--white);
  transition: color 0.3s ease;
}

.service-card:hover h4 {
  color: var(--cyan);
}

.service-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  transition: color 0.3s ease;
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.9);
}

/* Service Card Hierarchy */
.service-hero-highlight {
  margin-bottom: 120px;
  padding: 64px 0 64px 64px;
  display: flex;
  align-items: center;
  gap: 80px;
  background: linear-gradient(90deg, rgba(0, 217, 255, 0.04) 0%, transparent 100%);
  border-left: 5px solid var(--cyan);
  position: relative;
  transition: all 0.5s ease;
  overflow: hidden;
}

.service-hero-highlight:hover {
  background: linear-gradient(90deg, rgba(0, 217, 255, 0.08) 0%, transparent 100%);
  box-shadow: -25px 0 80px -20px rgba(0, 217, 255, 0.4);
}

.service-hero-highlight .service-icon {
  width: 110px;
  height: 110px;
  margin-bottom: 0;
  flex-shrink: 0;
  color: var(--cyan);
  filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.4));
  transition: all 0.5s ease;
}

.service-hero-highlight:hover .service-icon {
  filter: drop-shadow(0 0 35px rgba(0, 217, 255, 0.7));
  transform: scale(1.08);
}

.service-hero-highlight .service-content {
  flex: 1.2;
}

.service-hero-highlight h4 {
  font-size: clamp(32px, 6vw, 56px);
  margin-bottom: 24px;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.service-hero-highlight p {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--muted);
  max-width: 450px;
  line-height: 1.4;
}

.service-hero-visual {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.visual-caption {
  font-family: 'Courier New', monospace;
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  opacity: 0.6;
  text-transform: uppercase;
}

.service-hero-highlight .what-we-do-video-container {
  flex: none;
  width: 100%;
  max-width: 500px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card-support {
  border-color: rgba(255, 255, 255, 0.08);
  border-style: dashed;
  /* Brutalist support style */
  background: rgba(18, 18, 18, 0.5);
}

.service-card-support .service-icon {
  opacity: 0.4;
}

/* Visual Asymmetry to break the template feel */
.services-grid .service-card:nth-child(1) {
  border-top-right-radius: 40px;
  /* More aggressive organic touch */
}

.services-grid .service-card:nth-child(2) {
  background: rgba(35, 35, 35, 0.9);
  border-color: rgba(0, 217, 255, 0.3);
  padding: 48px 32px;
  /* Extra vertical padding */
  transform: translateY(-15px);
  /* Base offset for tension */
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 217, 255, 0.05);
  border-bottom: 2px solid var(--cyan);
  /* Bottom accent */
}

.services-grid .service-card:nth-child(3) {
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.services-grid .service-card:nth-child(1):hover {
  transform: translateY(-8px) rotate(-2deg);
}

.services-grid .service-card:nth-child(2):hover {
  transform: translateY(-20px) scale(1.03);
  /* Enhanced prominence */
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 217, 255, 0.1);
}

.services-grid .service-card:nth-child(3):hover {
  transform: translateY(-4px) rotate(2deg);
}

@media (max-width: 768px) {
  .service-hero-highlight {
    flex-direction: column;
    align-items: flex-start;
    padding: 40px 24px;
    gap: 32px;
  }

  .service-hero-highlight .service-icon {
    width: 64px;
    height: 64px;
  }
}


.what-we-do-video-container {
  flex: 1 1 500px;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.dynamic-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 70%;
  background: var(--cyan);
  filter: blur(100px);
  opacity: 0.15;
  z-index: -1;
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

.what-we-do-video-container video {
  width: 100%;
  max-width: 650px;
  mix-blend-mode: screen;
  filter: contrast(1.2) brightness(0.7);
  opacity: 0.85;
  pointer-events: none;
  transform: scale(1.12);
}

/* ========== STACK SECTION ========== */
.bg-stack {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="g2" x1="100%" y1="0%" x2="0%" y2="100%"><stop offset="0%" stop-color="%2300D9FF" stop-opacity="0.08"/><stop offset="100%" stop-color="%230080FF" stop-opacity="0.05"/></linearGradient></defs><rect width="1200" height="800" fill="url(%23g2)"/><polygon points="100,200 300,100 400,300" fill="%230080FF" opacity="0.02"/><polygon points="1100,600 900,700 1000,500" fill="%2300D9FF" opacity="0.03"/></svg>');
}

.tech-orbit-container {
  position: relative;
  width: 100%;
  height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  perspective: 1000px;
  z-index: 1;
}

.tech-center {
  position: relative;
  width: 120px;
  height: 120px;
  background: rgba(19, 19, 19, 0.95);
  border: 1.5px solid rgba(0, 217, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 217, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 16px;
  animation: pulseCenter 3s ease-in-out infinite;
}

.tech-center::before,
.tech-center::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(0, 217, 255, 0.15);
  border-radius: 16px;
  opacity: 0.2;
  transform: rotate(10deg);
  animation: rotateStack 12s linear infinite;
  pointer-events: none;
}

.tech-center::after {
  transform: rotate(-10deg) scale(1.05);
  animation: rotateStackReverse 15s linear infinite;
  opacity: 0.3;
}

.tech-center svg {
  width: 48px;
  height: 48px;
  color: var(--cyan);
  opacity: 0.8;
}

.tech-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  z-index: 5;
  display: flex;
  justify-content: center;
}

.tech-node-inner {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  animation: orbitFloat 3.5s ease-in-out infinite alternate;
  cursor: crosshair;
}

.tech-node:hover .tech-node-inner {
  transform: scale(1.15);
  z-index: 200;
  animation-play-state: paused;
}

.tech-tooltip {
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--cyan);
  color: var(--near);
  padding: 6px 14px;
  border-radius: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  z-index: 1000;
}

.tech-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--cyan) transparent transparent transparent;
}

.tech-node:hover .tech-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.stack-summary {
  width: 100%;
  text-align: center;
  margin-top: 100px;
  padding: 0 40px;
  position: relative;
  z-index: 5;
}

.stack-summary p {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.stack-summary p::before {
  content: '/* ';
  opacity: 0.4;
}

.stack-summary p::after {
  content: ' */';
  opacity: 0.4;
}


.tech-node img {
  width: 40px;
  height: 40px;
  filter: grayscale(1) brightness(0.8) drop-shadow(0 0 5px rgba(0, 128, 255, 0.5));
  transition: all 0.4s ease;
  opacity: 0.8;
}

.tech-node:hover img {
  opacity: 1;
  filter: grayscale(0) brightness(1.2) drop-shadow(0 0 15px rgba(0, 217, 255, 0.9));
  transform: scale(1.15);
}

.tech-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  text-transform: uppercase;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tech-badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  border: none;
  padding: 0;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.4;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.tech-node:hover .tech-name {
  color: var(--cyan);
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

.tech-node:hover .tech-badge {
  color: var(--cyan);
  border-color: rgba(0, 217, 255, 0.3);
  opacity: 1;
  background: rgba(0, 217, 255, 0.05);
}

.orbit-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -300px 0 0 -300px;
  pointer-events: none;
  z-index: 0;
  width: 600px;
  height: 600px;
}

.flow-line {
  fill: none;
  stroke: rgba(0, 217, 255, 0.08);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  animation: dashFlow 20s linear infinite;
}

.arrow-head {
  fill: rgba(0, 217, 255, 0.15);
}

/* ========== WORK SECTION ========== */
.bg-work {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="g3" x1="0%" y1="100%" x2="100%" y2="0%"><stop offset="0%" stop-color="%230080FF" stop-opacity="0.07"/><stop offset="100%" stop-color="%2300D9FF" stop-opacity="0.04%"/></linearGradient></defs><rect width="1200" height="800" fill="url(%23g3)"/><rect x="150" y="150" width="200" height="200" fill="%2300D9FF" opacity="0.02"/><rect x="900" y="500" width="250" height="150" fill="%230080FF" opacity="0.025"/></svg>');
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 100px;
  position: relative;
  z-index: 1;
}

.portfolio-card {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  opacity: 0;
  animation: revealDown 0.6s ease forwards;
}

.portfolio-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 48px;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  animation: revealDown 0.6s ease forwards;
}

/* Portfolio Hover Global */
.portfolio-card:hover {
  background: #0f0f0f;
  border-color: rgba(0, 217, 255, 0.5);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.portfolio-card h5 {
  margin-bottom: 12px;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-card:hover h5 {
  transform: translateX(8px);
}

.portfolio-card:hover .metric-val {
  transform: scale(1.05);
  color: var(--cyan);
}

.portfolio-card .portfolio-link {
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-card:hover .portfolio-link {
  color: var(--cyan);
  letter-spacing: 0.22em;
  transform: translateX(2px);
}

/* Specific Hero Case (Higher Specificity through order & combined selectors) */
.portfolio-grid .hero-card {
  border-color: rgba(0, 217, 255, 0.18);
  background: #0d0d0d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(0, 217, 255, 0.03);
  transform: none;
  z-index: 10;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-grid .hero-card:hover {
  border-color: rgba(0, 217, 255, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 217, 255, 0.12), inset 0 0 20px rgba(0, 217, 255, 0.04);
  transform: translateY(-6px);
}

.portfolio-grid .hero-card .metric-val {
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.portfolio-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.portfolio-card:hover::after, 
.hero-card::after {
  transform: scaleX(1);
}

.portfolio-info {
  position: relative;
  z-index: 2;
}

.card-ui-hint {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.15;
  filter: blur(40px);
  transition: opacity 0.6s ease;
}

.portfolio-card:hover .card-ui-hint {
  opacity: 0.45;
}

/* Fintech: Chart Lines & Cards */
.ui-fintech {
  background:
    linear-gradient(90deg, var(--cyan) 2px, transparent 2px) 20% 40%/100px 2px no-repeat,
    linear-gradient(90deg, var(--cyan) 2px, transparent 2px) 25% 45%/60px 2px no-repeat,
    linear-gradient(to right, rgba(0, 217, 255, 0.2), transparent) 10% 20%/120px 80px no-repeat;
}

/* AI: Nodes & Pulse */
.ui-ai {
  background:
    radial-gradient(circle at 70% 30%, #a855f7 0%, transparent 50%),
    radial-gradient(circle at 80% 40%, #3b82f6 0%, transparent 40%);
}

/* Mobility: Paths & Points */
.ui-mobility {
  background:
    linear-gradient(135deg, transparent 45%, #f59e0b 45%, #f59e0b 55%, transparent 55%) 0 0/100% 100% no-repeat,
    radial-gradient(circle at 20% 80%, #ef4444 0%, transparent 30%);
}

.portfolio-info .tag {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--cyan);
  margin-bottom: 12px;
  opacity: 0.8;
}

.case-summary {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 18px;
  max-width: 26ch;
  line-height: 1.5;
  margin-bottom: 48px;
}

.card-metric-inline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 48px;
}

.metric-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 72px;
  font-weight: 900;
  color: var(--white);
  line-height: 0.85;
  letter-spacing: -0.05em;
  transition: all 0.3s ease;
}

.metric-desc {
  font-size: 14px;
  line-height: 1.4;
  color: var(--white);
  opacity: 0.5;
  max-width: 300px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-context {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
}

.card-outcome {
  font-size: 14px;
  line-height: 1.5;
  color: var(--white);
  opacity: 0.7;
  margin-bottom: 32px;
  max-width: 280px;
}

.portfolio-link {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--white);
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: inline-block;
  margin-top: auto;
}

.portfolio-link:hover {
  color: var(--cyan);
  gap: 16px;
}

.portfolio-card:hover .metric-val {
  color: var(--cyan);
}
}

/* ========== PROCESS SECTION ========== */
.bg-process {
  background-color: #080808;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(260px, auto);
  gap: 24px;
  max-width: 1300px;
  margin: 60px auto 0;
}

.process-card {
  position: relative;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-block {
  grid-column: span 7;
  grid-row: span 2;
}

.small-block {
  grid-column: span 5;
}

.medium-block {
  grid-column: span 6;
}

.process-visual {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  filter: grayscale(0.2) brightness(1.1);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.process-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, 
    rgba(13, 13, 13, 1) 0%, 
    rgba(13, 13, 13, 0.75) 40%, 
    rgba(13, 13, 13, 0) 100%);
  z-index: 1;
  transition: opacity 0.6s ease;
}

.process-content {
  position: relative;
  z-index: 2;
  padding: 48px;
}

.process-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.process-content p {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.48);
  max-width: 400px;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Hover States */
.process-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 217, 255, 0.25);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.process-card:hover .process-visual {
  opacity: 0.9;
  filter: grayscale(0) brightness(1.25);
}

.process-card:hover .process-overlay {
  opacity: 0.7;
}

.process-card:hover .process-content h3 {
  color: #ffffff;
  transform: translateY(-2px);
}

.process-card:hover .process-content p {
  color: rgba(255, 255, 255, 0.85);
}

/* Responsive Process */
@media (max-width: 1024px) {
  .hero-block, .small-block, .medium-block {
    grid-column: span 12;
  }
  
  .process-grid {
    grid-auto-rows: minmax(280px, auto);
  }
}

/* ========== ABOUT SECTION ========== */
.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 100px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.about-visual {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  aspect-ratio: 1/1;
}

.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.about-visual:hover img {
  transform: scale(1.05);
}

.about-content .eyebrow {
  display: block;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--cyan);
  margin-bottom: 16px;
  letter-spacing: 0.3em;
  font-weight: 700;
}

.about-content h2 {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 40px;
  font-family: 'Space Grotesk', sans-serif;
  color: #ffffff;
  font-weight: 700;
}

.about-content p {
  font-size: 20px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 32px;
}

.about-cta {
  margin-top: 60px;
  padding-top: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.about-cta h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #444444;
  margin-bottom: 36px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  max-width: 15ch;
}

/* ========== RESULTS / TESTIMONIALS SECTION ========== */
.bg-testimonials {
  background-image:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><linearGradient id="g5" x1="0%" y1="50%" x2="100%" y2="50%"><stop offset="0%" stop-color="%230080FF" stop-opacity="0.08"/><stop offset="100%" stop-color="%2300D9FF" stop-opacity="0.05"/></linearGradient></defs><rect width="1200" height="800" fill="url(%23g5)"/><circle cx="600" cy="400" r="180" fill="none" stroke="%2300D9FF" stroke-width="1" stroke-opacity="0.04"/></svg>');
  background-color: #050505;
}

/* Layout */
.results-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: start;
}

.secondary-results {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* Base card */
.testimonial-card {
  padding: 48px;
  background: rgba(18, 18, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    border-color 0.4s ease,
    box-shadow 0.4s ease,
    background 0.4s ease,
    opacity 0.4s ease;
}

/* Hero card */
.testimonial-card.hero-result {
  grid-row: span 2;
  padding: 72px 60px;
  background: rgba(22, 22, 22, 0.92);
  border-left: 2px solid var(--cyan);
}

/* Secondary cards */
.testimonial-card.secondary-result {
  padding: 40px 48px;
  opacity: 0.78;
}

/* Hover */
.testimonial-card:hover {
  opacity: 1;
  transform: translateY(-8px);
  background: rgba(28, 28, 28, 0.96);
  border-color: rgba(0, 217, 255, 0.32);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.38),
    0 0 22px rgba(0, 217, 255, 0.07);
}

/* Metric */
.result-metric {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(54px, 7vw, 84px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 12px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.hero-result .result-metric {
  font-size: clamp(72px, 9vw, 110px);
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 217, 255, 0.18);
}

.testimonial-card:hover .result-metric {
  color: var(--cyan);
  transform: scale(1.02);
}

/* Label */
.result-label {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.82;
  margin-bottom: 36px;
}

/* Quote */
.testimonial-quote {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.74);
  margin: 0 0 44px 0;
  font-style: normal;
  transition: color 0.3s ease;
}

.hero-result .testimonial-quote {
  font-size: 24px;
  line-height: 1.5;
  color: #ffffff;
  max-width: 30ch;
}

.testimonial-card:hover .testimonial-quote {
  color: rgba(255, 255, 255, 0.9);
}

/* Meta */
.testimonial-meta {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-author {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.testimonial-role {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
}




/* Footer CTA */
.results-footer {
  text-align: center;
  margin-top: 100px;
  padding-bottom: 80px;
  position: relative;
  z-index: 10;
}

.results-footer .cta-bridge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 40px;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  line-height: 1.1;
}

.results-footer .cta-button {
  padding: 24px 80px;
  font-size: 18px;
  background: var(--cyan);
  color: var(--near);
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.3);
  animation: pulseButton 2s infinite ease-in-out;
}

.results-footer .cta-button:hover {
  background: #00e5ff;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 0 60px rgba(0, 217, 255, 0.6);
}

@keyframes pulseButton {
  0%, 100% { box-shadow: 0 0 30px rgba(0, 217, 255, 0.2); }
  50% { box-shadow: 0 0 60px rgba(0, 217, 255, 0.5); }
}

/* Responsive */
@media (max-width: 980px) {
  .results-container {
    grid-template-columns: 1fr;
    padding: 0 24px;
  }

  .testimonial-card.hero-result {
    grid-row: auto;
    padding: 56px 36px;
  }

  .testimonial-card.secondary-result {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .testimonial-card,
  .testimonial-card.hero-result,
  .testimonial-card.secondary-result {
    padding: 32px 24px;
  }

  .hero-result .testimonial-quote {
    max-width: 100%;
  }

  .results-footer .cta-bridge {
    font-size: 22px;
    padding: 0 24px;
  }


}

/* ========== FAQ SECTION ========== */
.bg-faq {
  background-color: #0d0d0d;
  background-image: radial-gradient(circle at 2px 2px, rgba(0, 217, 255, 0.03) 1px, transparent 0);
  background-size: 40px 40px;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 1;
}

.faq-item {
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
  transition: all 0.3s ease;
}

.faq-question {
  display: flex;
  align-items: center;
  cursor: pointer;
  gap: 24px;
  width: 100%;
  background: none;
  border: none;
  padding: 28px 0;
  text-align: left;
  font-family: inherit;
  position: relative;
}

.faq-question::before {
  content: '';
  position: absolute;
  left: -16px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--cyan);
  transition: height 0.3s ease;
  border-radius: 2px;
}

.faq-question:hover::before,
.faq-question:focus::before,
.faq-item.active .faq-question::before {
  height: 70%;
}

.faq-question:hover h3,
.faq-question:focus h3 {
  color: var(--white);
  transform: translateX(4px);
}

.faq-item.active .faq-question h3 {
  color: var(--white);
  transform: translateX(4px);
}

.faq-question:hover .faq-icon,
.faq-question:focus .faq-icon {
  transform: scale(1.2);
}

.faq-question span {
  font-family: 'Courier New', monospace;
  color: var(--cyan);
  font-size: 12px;
  font-weight: bold;
  width: 24px;
  flex-shrink: 0;
  opacity: 0.7;
}

.faq-question h3 {
  flex: 1;
  margin: 0;
  font-size: 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  color: var(--white);
  transition: color 0.3s ease, transform 0.2s ease;
  line-height: 1.3;
}

.faq-icon {
  font-size: 20px;
  color: var(--cyan);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
  font-family: 'Courier New', monospace;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  line-height: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.faq-answer p {
  padding-top: 4px;
  padding-bottom: 28px;
  padding-left: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  border-left: 2px solid rgba(0, 217, 255, 0.15);
  padding-left: 20px;
}

.faq-item.active .faq-question h3 {
  color: var(--cyan);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
}

.faq-question:focus {
  outline: none;
}

.faq-question:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

/* ========== CONTACT SECTION ========== */
.bg-contact {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="%2300D9FF" stroke-width="1" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  padding: 120px 0 40px;
  background-color: #080808;
}

.bg-contact::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 50%, rgba(0, 217, 255, 0.02) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 10;
}

.contact-context {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-headline {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--white);
  font-weight: 800;
}

.contact-subtext {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 48px;
  max-width: 480px;
}

.next-steps-block {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.next-steps-block::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(0, 217, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.next-steps-title {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 24px;
  font-weight: 800;
}

.next-steps-list {
  list-style: none;
  padding: 0;
  position: relative;
  z-index: 1;
}

.next-steps-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 16px;
  font-size: 16px;
  color: #ffffff;
  opacity: 1;
  font-weight: 600;
}

.next-steps-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 900;
}

.trust-signal {
  border-left: 3px solid var(--cyan);
  padding-left: 24px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

/* Form Styles */
.contact-form-wrapper {
  background: rgba(20, 20, 20, 0.98);
  border: 1px solid rgba(0, 217, 255, 0.2);
  padding: 48px;
  position: relative;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 217, 255, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.contact-form .form-group {
  margin-bottom: 24px;
}

.contact-form label {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  margin-bottom: 12px;
  display: block;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.2);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px;
  color: var(--white);
  font-family: 'Work Sans', sans-serif;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  outline: none;
}

.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300D9FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 48px;
}

.contact-form select option {
  background: var(--near);
  color: var(--white);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  background: rgba(0, 217, 255, 0.04);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.15);
}

.helper-text {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 8px;
}

.contact-form .cta-button {
  width: 100%;
  margin-top: 12px;
  justify-content: center;
  font-size: 18px;
  padding: 20px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.success-message {
  text-align: center;
  padding: 40px 0;
  animation: revealDown 0.6s ease forwards;
}

.success-message h3 {
  color: var(--cyan);
  font-size: 24px;
  margin-bottom: 16px;
}

.success-message p {
  color: var(--muted);
}

@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 64px;
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-wrapper {
    padding: 32px;
  }
}

/* ========== RESPONSIVE MODIFIERS ========== */
@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-content h2 {
    font-size: 40px;
  }
}

@media (max-width: 768px) {
  .logo-grid {
    gap: 40px;
  }

  .timeline::before {
    left: 20px;
    transform: none;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    text-align: left;
    padding-left: 60px;
    padding-right: 0;
  }

  .timeline-dot {
    left: 20px;
    transform: translate(-50%, -50%);
  }

  .hero-brand-wrapper {
    gap: 16px;
  }
}

/* Services CTA */
.services-cta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 120px;
  gap: 32px;
  position: relative;
  z-index: 10;
}

.cta-bridge {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.6;
}

/* ========== SYSTEM ARCHITECTURE SECTION (Progressive) ========== */
.bg-system {
  background: radial-gradient(circle at center, #121212 0%, #080808 100%);
  padding: 60px 0 20px;
  position: relative;
  min-height: 120vh;
}

.system-container {
  position: sticky;
  top: 10vh;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.system-canvas {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.builder-mode {
  position: relative;
  width: 600px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.builder-mode .tech-node {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -40px 0 0 -40px;
  opacity: 0;
  filter: blur(10px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.builder-mode .tech-node.is-visible {
  opacity: 1;
  filter: blur(0);
  pointer-events: auto;
}

.builder-mode .flow-line {
  stroke: var(--cyan);
  stroke-width: 1;
  stroke-dashoffset: 300;
  stroke-dasharray: 4, 4;
  /* Signal pattern */
  opacity: 0;
  transition: opacity 0.8s ease, stroke-dashoffset 2s ease-out;
}

.builder-mode .flow-line.is-visible {
  opacity: 0.06;
  stroke-dashoffset: 0;
  animation: signalPulse 3s linear infinite;
}

@keyframes signalPulse {
  to {
    stroke-dashoffset: -20;
  }
}

.builder-center {
  opacity: 0;
  transform: scale(0.8);
  transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

.builder-center.is-visible {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 50px rgba(0, 217, 255, 0.12), inset 0 0 20px rgba(0, 217, 255, 0.05);
}

.core-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1.2;
}

.growth-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 4px rgba(0, 217, 255, 0.1));
  transition: all 0.3s ease;
}

/* Node Highlighting */
.node-highlight .tech-name {
  font-size: 20px !important;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  letter-spacing: 0.08em;
}

.node-highlight .tech-badge {
  opacity: 0.9 !important;
  color: var(--cyan) !important;
  font-weight: 900 !important;
}

.node-highlight .growth-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 15px rgba(0, 217, 255, 0.45));
}

.system-side-text {
  position: absolute;
  width: 280px;
  opacity: 0;
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 21px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  pointer-events: none;
  z-index: 20;
  letter-spacing: -0.01em;
}

.system-side-text.is-active {
  opacity: 1;
  transform: translate(0, 0) !important;
}

/* Specific Positions */
.left-1 {
  top: 18%;
  left: 140px;
  transform: translateX(-30px);
  border-left: 2px solid var(--cyan);
  padding-left: 20px;
}

.right-1 {
  top: 18%;
  right: 140px;
  transform: translateX(30px);
  text-align: right;
  border-right: 2px solid var(--cyan);
  padding-right: 20px;
}

.system-summary-text {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translate(-50%, 15px);
  text-align: center;
  width: 100%;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transition: all 1.5s ease;
  pointer-events: none;
}

.system-summary-text.is-active {
  opacity: 1;
  transform: translate(-50%, 0);
}

#system-architecture {
  padding-bottom: 60px;
}

.system-cta-footer {
  text-align: center;
  margin-top: -40px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease 0.2s;
  pointer-events: none;
}

#system-architecture.system-complete .system-cta-footer {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#system-architecture.system-complete .builder-center {
  animation: pulseCore 4s ease-in-out infinite;
}

.system-cta-footer p {
  font-family: 'Courier New', monospace;
  color: var(--cyan);
  font-size: 14px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.system-complete .builder-center {
  animation: pulseCore 4s ease-in-out infinite;
}

@keyframes pulseCore {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.1);
  }

  50% {
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.3);
  }
}

@media (max-width: 768px) {
  .system-container {
    height: 500px;
  }

  .system-side-text {
    display: none !important;
  }

  /* Except the final message if needed, but per request we hide lateral texts */
  /* If you want step-text-5 to be visible, we could position it differently */

  .builder-mode {
    transform: scale(0.45);
  }

  .section-head p {
    padding: 0 20px;
  }

  .system-cta-footer {
    margin-top: 60px;
    padding: 0 20px;
  }
}