/* Final visual layer: one clear Tahiru photo per selected workflow tab. */

.tahiru-workflow {
  position: relative;
  isolation: isolate;
}

.tahiru-workflow::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 26%, rgba(255, 135, 68, 0.16), transparent 28%),
    radial-gradient(circle at 78% 12%, rgba(96, 166, 255, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,0.018), transparent 44%);
  opacity: 0.88;
}

.workflow-stage {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
}

.workflow-visuals {
  position: relative;
  min-height: clamp(470px, 44vw, 650px) !important;
  isolation: isolate;
  perspective: none !important;
}

.workflow-visuals::before {
  position: absolute;
  inset: 9% 4% 8%;
  z-index: 0;
  content: "";
  pointer-events: none;
  border-radius: 42px;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 136, 62, 0.24), transparent 30%),
    radial-gradient(circle at 70% 18%, rgba(102, 166, 255, 0.24), transparent 34%),
    radial-gradient(circle at 55% 78%, rgba(211, 83, 230, 0.14), transparent 35%);
  filter: blur(34px) saturate(1.2);
  opacity: 0.8;
}

.workflow-art,
.workflow-art-one,
.workflow-art-two,
.workflow-art-three,
.workflow-art-four {
  position: absolute !important;
  inset: 8% 5% 9% !important;
  width: auto !important;
  height: auto !important;
  aspect-ratio: auto !important;
  z-index: 1;
  overflow: hidden;
  display: block !important;
  visibility: hidden;
  pointer-events: none;
  background-color: transparent !important;
  background-image: var(--art-image) !important;
  background-size: cover !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  border-radius: 30px !important;
  opacity: 0 !important;
  filter: saturate(1.18) contrast(1.08) brightness(1.02) !important;
  transform: translateY(18px) scale(0.985) !important;
  transition: opacity 260ms ease, transform 320ms ease, visibility 0s linear 320ms;
  backdrop-filter: blur(12px) saturate(1.22);
  -webkit-backdrop-filter: blur(12px) saturate(1.22);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.40),
    inset 0 -24px 52px rgba(0,0,0,0.22),
    0 32px 92px rgba(0,0,0,0.55) !important;
}

.workflow-art-one { background-position: 72% 10% !important; }
.workflow-art-two { background-position: 34% 12% !important; }
.workflow-art-three { background-position: 80% 42% !important; }
.workflow-art-four { background-position: 48% 58% !important; }

.workflow-art.is-active {
  z-index: 4;
  visibility: visible;
  opacity: 1 !important;
  transform: translateY(0) scale(1) !important;
  transition-delay: 0s;
  filter: saturate(1.48) contrast(1.12) brightness(1.08) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.48),
    inset 0 -28px 56px rgba(0,0,0,0.20),
    0 38px 100px rgba(0,0,0,0.58),
    0 0 70px rgba(255, 140, 66, 0.14),
    0 0 88px rgba(98, 168, 255, 0.10) !important;
}

.workflow-art::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  opacity: 0.13 !important;
  background:
    linear-gradient(115deg, rgba(255,255,255,0.22), rgba(255,255,255,0.02) 26%, transparent 48%),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 36%, rgba(0,0,0,0.10));
}

.workflow-art::after {
  position: absolute;
  inset: 1px;
  z-index: 3;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.16), transparent 16%, transparent 84%, rgba(255,255,255,0.08)),
    linear-gradient(180deg, rgba(255,255,255,0.08), transparent 24%, rgba(0,0,0,0.04) 100%) !important;
  mix-blend-mode: screen;
  opacity: 0.28;
}

.workflow-copy {
  border-color: rgba(255,255,255,0.20) !important;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025) 38%, rgba(255,255,255,0.04)),
    rgba(9, 14, 21, 0.72) !important;
  backdrop-filter: blur(22px) saturate(1.38);
  -webkit-backdrop-filter: blur(22px) saturate(1.38);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 26px 80px rgba(0,0,0,0.40),
    0 0 80px rgba(102,166,255,0.05) !important;
}

.workflow-tab-line {
  position: relative !important;
  height: 2px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(255, 146, 68, 0), rgba(255, 146, 68, 0.46) 18%, rgba(210, 83, 230, 0.32) 50%, rgba(98, 168, 255, 0.42) 82%, rgba(98, 168, 255, 0)) !important;
}

.workflow-tab-line::before,
.workflow-tab-line::after {
  display: none !important;
}

.workflow-tab-line span {
  position: absolute !important;
  top: 50% !important;
  left: calc((var(--active-index, 0) * 25%) + 12.5%) !important;
  width: min(260px, calc(25% - 30px)) !important;
  height: 8px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #ff8f42, #d75df0, #62a8ff) !important;
  box-shadow: 0 0 18px rgba(255, 146, 68, 0.34), 0 0 18px rgba(104, 164, 255, 0.20) !important;
  transform: translate(-50%, -50%) !important;
  transition: left 260ms ease !important;
}

.site-footer {
  --footer-radius: 72px;
  --footer-line-y: 18px;
  --footer-line-blur: 5px;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 34px;
  padding: 92px max(24px, calc((100vw - 1200px) / 2)) 40px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 30px 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 146, 68, 0.12), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(98, 168, 255, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(21, 27, 34, 0.96), #070a0e 72%);
  border-top-left-radius: var(--footer-radius);
  border-top-right-radius: var(--footer-radius);
}

.site-footer::before {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(1200px, calc(100% - 48px));
  height: 1px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 146, 68, 0.85), rgba(211, 83, 230, 0.46), rgba(98, 168, 255, 0.70), transparent);
  border-radius: 999px;
  filter: blur(var(--footer-line-blur));
  transform: translate(-50%, var(--footer-line-y));
  opacity: 0.92;
}

.site-footer::after {
  position: absolute;
  inset: 1px 0 auto;
  height: 92px;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.055), transparent);
  opacity: 0.8;
}

.footer-line {
  position: absolute;
  left: 50%;
  top: 32px;
  width: min(1080px, calc(100% - 96px));
  height: 8px;
  content: "";
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8f42, #d75df0, #62a8ff);
  box-shadow: 0 0 24px rgba(255, 146, 68, 0.24), 0 0 34px rgba(98, 168, 255, 0.16);
  transform: translateX(-50%) translateY(calc(var(--footer-line-y) * -0.25)) scaleX(var(--footer-scale, 0.90));
  transform-origin: center;
}

.footer-brand,
.footer-links,
.footer-meta {
  position: relative;
  z-index: 1;
}

.footer-brand {
  display: grid;
  gap: 16px;
}

.footer-brand p {
  max-width: 480px;
  margin: 0;
  color: rgba(220, 226, 235, 0.74);
  font-size: 0.98rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: start;
  gap: 12px;
}

.footer-links a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
  color: rgba(235, 239, 245, 0.82);
  text-decoration: none;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.footer-links a:hover {
  border-color: rgba(255, 146, 68, 0.34);
  color: #fff;
  background: rgba(255, 146, 68, 0.075);
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: rgba(170, 178, 194, 0.74);
  font-size: 0.88rem;
}

@media (max-width: 1040px) {
  .workflow-visuals {
    min-height: 430px !important;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .workflow-stage {
    border-radius: 0 0 24px 24px;
  }

  .workflow-visuals {
    min-height: 320px !important;
  }

  .workflow-art,
  .workflow-art-one,
  .workflow-art-two,
  .workflow-art-three,
  .workflow-art-four {
    inset: 8% 2% 10% !important;
    border-radius: 22px !important;
  }

  .workflow-tab-line span {
    width: calc(25% - 8px) !important;
  }

  .site-footer {
    padding: 76px 18px 34px;
  }

  .footer-line {
    width: calc(100% - 44px);
  }

  .footer-meta {
    display: grid;
  }
}
