/* ═══════════════════════════════════════════════
   MUTEKI — Approach Section (3D Cube)
   ═══════════════════════════════════════════════ */

/* SECTION SHELL */
#approach {
  width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  background: var(--bg, #fff);
}

.approach {
  background: var(--bg, #fff);
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

/* Background blobs */
.ap-bg-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.ap-blob1 {
  width: 600px; height: 600px;
  top: -100px; right: -60px;
  background: radial-gradient(circle, rgba(91,79,232,0.07) 0%, transparent 65%);
  animation: apBlobDrift 14s ease-in-out infinite alternate;
}
.ap-blob2 {
  width: 480px; height: 480px;
  bottom: -80px; left: -60px;
  background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, transparent 65%);
  animation: apBlobDrift 18s ease-in-out infinite alternate-reverse;
}
@keyframes apBlobDrift {
  0%   { transform: scale(1)    translate(0,0); }
  100% { transform: scale(1.12) translate(20px,14px); }
}

/* Dot grid */
.ap-grid-dots {
  position: absolute; inset: 0; z-index: 0;
  background-image: radial-gradient(circle, rgba(91,79,232,0.09) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 70% 90% at 80% 50%, black 20%, transparent 75%);
  pointer-events: none;
}

/* Inner layout */
.approach-inner {
  max-width: 100%; margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 80px;
  position: relative; z-index: 2;
}

/* LEFT COLUMN */
.ap-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px; font-weight: 500;
  color: var(--indigo, #5B4FE8); letter-spacing: .5px;
  margin-bottom: 18px;
}
.ap-ew-line {
  display: inline-block;
  width: 24px; height: 1.5px;
  background: var(--indigo, #5B4FE8);
  border-radius: 2px;
}

.ap-h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(36px, 3.8vw, 56px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -1.8px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.ap-h2 span { display: block; color: var(--ink, #0F0F2D); }
.ap-h2-accent { color: var(--indigo, #5B4FE8) !important; }

.ap-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; line-height: 1.72;
  color: var(--sub, #6B7280);
  max-width: 480px;
  margin-bottom: 44px;
}

/* Service Cards */
.ap-services { display: flex; flex-direction: column; gap: 0; }

.ap-card {
  display: flex; align-items: stretch;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border, #E5E7EB);
  cursor: pointer;
  position: relative;
  transition: background .2s;
  outline: none;
}
.ap-card:first-child { border-top: 1px solid var(--border, #E5E7EB); }
.ap-card::before {
  content: '';
  position: absolute; left: -4px; top: 0; bottom: 0;
  width: 3px; border-radius: 2px;
  background: var(--indigo, #5B4FE8);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.ap-card:hover::before,
.ap-card.active::before { transform: scaleY(1); }

/* Left number col */
.ap-card-left {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  padding-top: 3px; flex-shrink: 0;
  width: 32px;
}
.ap-num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px; font-weight: 800;
  color: var(--sub2, #9CA3AF);
  letter-spacing: 1px;
  transition: color .2s;
}
.ap-card:hover .ap-num,
.ap-card.active .ap-num { color: var(--indigo, #5B4FE8); }

.ap-card-line {
  flex: 1; width: 1px;
  background: linear-gradient(to bottom, var(--border, #E5E7EB), transparent);
  transition: background .25s;
}
.ap-card:hover .ap-card-line,
.ap-card.active .ap-card-line {
  background: linear-gradient(to bottom, var(--indigo, #5B4FE8), transparent);
}

/* Card body */
.ap-card-body { flex: 1; }

.ap-card-top-row {
  display: flex; align-items: center;
  gap: 10px; margin-bottom: 8px;
}
.ap-card-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15.5px; font-weight: 700;
  color: var(--ink, #0F0F2D);
  transition: color .2s;
}
.ap-card:hover .ap-card-title,
.ap-card.active .ap-card-title { color: var(--indigo, #5B4FE8); }

.ap-card-tag {
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px; font-weight: 600;
  color: var(--indigo, #5B4FE8); letter-spacing: .6px;
  background: var(--indigo-soft, rgba(91,79,232,0.08));
  border: 1px solid rgba(91,79,232,0.12);
  border-radius: 100px;
  padding: 2px 9px;
}

.ap-card-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px; line-height: 1.65;
  color: var(--sub, #6B7280);
  max-width: 430px;
  margin-bottom: 10px;
  max-height: 0; overflow: hidden;
  opacity: 0;
  transition: max-height .4s cubic-bezier(.16,1,.3,1), opacity .3s .05s;
}
.ap-card:hover .ap-card-desc,
.ap-card.active .ap-card-desc {
  max-height: 80px;
  opacity: 1;
}

.ap-card-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px; font-weight: 600;
  color: var(--indigo, #5B4FE8);
  text-decoration: none;
  opacity: 0; transform: translateY(4px);
  transition: opacity .25s .1s, transform .25s .1s;
}
.ap-card-link:hover { text-decoration: underline; }
.ap-card-link svg { width: 13px; height: 13px; }
.ap-card:hover .ap-card-link,
.ap-card.active .ap-card-link { opacity: 1; transform: translateY(0); }

/* RIGHT COLUMN */
.ap-right {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 24px;
  min-height: 480px;
}

/* Orbit rings */
.orbit {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.orbit-1 {
  width: 360px; height: 360px;
  border: 1.5px dashed rgba(91,79,232,0.14);
  animation: apOrbitSpin 22s linear infinite;
}
.orbit-2 {
  width: 280px; height: 280px;
  border: 1px solid rgba(139,92,246,0.1);
  animation: apOrbitSpin 14s linear infinite reverse;
}
@keyframes apOrbitSpin { to { transform: rotate(360deg); } }

.orbit-1::before, .orbit-1::after {
  content: ''; position: absolute;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--indigo, #5B4FE8);
  box-shadow: 0 0 10px rgba(91,79,232,.7);
  top: -3.5px; left: calc(50% - 3.5px);
}
.orbit-1::after {
  top: auto; bottom: -3.5px;
  background: var(--violet, #7C3AED);
  box-shadow: 0 0 10px rgba(139,92,246,.7);
}

/* Central ambient glow */
.cube-ambient {
  position: absolute;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,79,232,0.14) 0%, rgba(139,92,246,0.06) 45%, transparent 70%);
  animation: apAmbiPulse 4s ease-in-out infinite;
  z-index: 0;
}
@keyframes apAmbiPulse {
  0%,100% { transform: scale(1);    opacity:.7; }
  50%     { transform: scale(1.18); opacity:1;  }
}

/* Hint label */
.cube-hint {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px; font-weight: 500;
  color: var(--sub2, #9CA3AF); letter-spacing: .5px;
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 100px;
  padding: 5px 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  z-index: 10;
  user-select: none;
  transition: opacity .4s;
}
.cube-hint svg { width: 12px; height: 12px; }
.cube-hint.hidden { opacity: 0; pointer-events: none; }

/* THE CUBE */
.cube-scene {
  width: 260px; height: 260px;
  perspective: 900px;
  perspective-origin: 50% 50%;
  position: relative; z-index: 2;
  cursor: grab;
  flex-shrink: 0;
}
.cube-scene:active { cursor: grabbing; }

.cube-track {
  width: 260px; height: 260px;
  position: relative;
  transform-style: preserve-3d;
  transform: translateZ(-130px) rotateX(-18deg) rotateY(28deg);
  animation: cubeIdle 22s linear infinite;
  will-change: transform;
}

@keyframes cubeIdle {
  0%   { transform: translateZ(-130px) rotateX(-18deg) rotateY(0deg); }
  100% { transform: translateZ(-130px) rotateX(-18deg) rotateY(360deg); }
}

/* 6 Faces */
.c-face {
  position: absolute;
  width: 260px; height: 260px;
  display: flex; align-items: center; justify-content: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.10),
    inset  1px 0 0 rgba(255,255,255,0.08),
    inset -1px 0 0 rgba(0,0,0,0.05);
}
.c-face::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.c-front  { transform: rotateY(0deg) translateZ(130px);
            background: linear-gradient(145deg, #5B4FE8 0%, #3a30c0 100%); color:#fff; }
.c-back   { transform: rotateY(180deg) translateZ(130px);
            background: linear-gradient(145deg, #1e1b4b 0%, #2d2870 100%); color:rgba(255,255,255,.75); }
.c-right  { transform: rotateY(90deg) translateZ(130px);
            background: linear-gradient(145deg, #1a1840 0%, #2d2870 100%); color:#fff; }
.c-left   { transform: rotateY(-90deg) translateZ(130px);
            background: linear-gradient(145deg, #7C3AED 0%, #5B4FE8 100%); color:#fff; }
.c-top    { transform: rotateX(90deg) translateZ(130px);
            background: linear-gradient(160deg, #EEF0FF 0%, #c7c2ff 100%); color:#3730a3; }
.c-bottom { transform: rotateX(-90deg) translateZ(130px);
            background: linear-gradient(160deg, #ddd9ff 0%, #EEF0FF 100%); color:#5B4FE8; }

/* Face content */
.face-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  padding: 20px;
  text-align: center;
}
.face-icon {
  font-size: 30px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
  animation: apIconBob 3s ease-in-out infinite;
}
@keyframes apIconBob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-5px); }
}
.face-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px; font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px; line-height: 1.2;
}

/* Active face highlight */
.c-face.f-active {
  box-shadow:
    inset 0  1px 0 rgba(255,255,255,0.22),
    inset 0 -1px 0 rgba(0,0,0,0.10),
    0 0 0 2px rgba(255,255,255,0.35),
    0 0 40px rgba(91,79,232,0.4);
}

/* Face-show transforms */
.cube-track.to-front  { transform: translateZ(-130px) rotateX(0deg)   rotateY(0deg); }
.cube-track.to-back   { transform: translateZ(-130px) rotateX(0deg)   rotateY(-180deg); }
.cube-track.to-right  { transform: translateZ(-130px) rotateX(0deg)   rotateY(-90deg); }
.cube-track.to-left   { transform: translateZ(-130px) rotateX(0deg)   rotateY(90deg); }
.cube-track.to-top    { transform: translateZ(-130px) rotateX(-90deg) rotateY(0deg); }
.cube-track.to-bottom { transform: translateZ(-130px) rotateX(90deg)  rotateY(0deg); }

.cube-track.eased {
  transition: transform .9s cubic-bezier(.16,1,.3,1);
  animation: none !important;
}

/* Active face label */
.cube-active-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px; font-weight: 600;
  color: var(--sub, #6B7280);
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 100px;
  padding: 6px 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  z-index: 10;
  transition: opacity .3s;
}
.cal-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--indigo, #5B4FE8);
  box-shadow: 0 0 6px rgba(91,79,232,.6);
  animation: apDotBlink 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes apDotBlink {
  0%,100% { opacity:1; }
  50%     { opacity:.3; }
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .approach-inner {
    grid-template-columns: 1fr;
    padding: 0 28px;
    gap: 56px;
  }
  .ap-h2 { letter-spacing: -1px; }
  .ap-right { display: none; }
}

@media (max-width: 768px) {
  .approach { padding: 72px 0 64px; }
  .approach-inner { padding: 0 20px; gap: 40px; }
}
