/* ── About — premium split + hub visual + hex values ───────── */

.about {
  position: relative;
  padding: clamp(2rem, 4vh, 3rem) 0 clamp(3rem, 6vh, 4.5rem);
  overflow: hidden;
}

/* Process → About: no dead space (use ~ because Razor may insert text nodes between sections) */
.dev-process ~ .about {
  padding-top: clamp(0.5rem, 1vh, 0.75rem);
  margin-top: 0;
}

.dev-process ~ .about .about__hub {
  margin-top: 0.25rem;
}

.about__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 12% 30%, rgba(59, 130, 246, 0.1), transparent 58%),
    radial-gradient(ellipse 50% 40% at 88% 55%, rgba(168, 85, 247, 0.08), transparent 55%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(34, 211, 238, 0.05), transparent 50%);
}

.about__grid-floor {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: min(920px, 95%);
  height: 220px;
  transform: translateX(-50%) perspective(600px) rotateX(68deg);
  background:
    linear-gradient(rgba(59, 130, 246, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.14) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, #000 20%, transparent 72%);
  opacity: 0.45;
  pointer-events: none;
}

.about__inner {
  position: relative;
  z-index: 1;
}

/* ── Hero split ──────────────────────────────────────────────── */

.about__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.about__copy {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.about.is-visible .about__copy.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
  font-size: clamp(0.88rem, 1.2vw, 0.98rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.about__eyebrow-line {
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #22d3ee, #3b82f6);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}

.about__title {
  margin: 0 0 1.35rem;
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.about__prose p {
  margin: 0 0 1.1rem;
  font-size: var(--type-body);
  line-height: 1.8;
  color: var(--text-secondary);
}

.about__prose p:last-child {
  margin-bottom: 0;
}

.about__highlight {
  font-weight: 600;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Hub visual ──────────────────────────────────────────────── */

.about__hub {
  position: relative;
  min-height: clamp(320px, 36vw, 400px);
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s,
    transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}

.about.is-visible .about__hub.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.about__hub-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72%;
  height: 72%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 68%);
  filter: blur(24px);
  animation: aboutHubPulse 4s ease-in-out infinite;
}

@keyframes aboutHubPulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.about__hub-platform {
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(140px, 18vw, 180px);
  height: clamp(140px, 18vw, 180px);
  display: grid;
  place-items: center;
}

.about__hub-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.about__hub-ring--outer {
  inset: -18%;
  animation: aboutRingSpin 18s linear infinite;
}

.about__hub-ring--mid {
  inset: -4%;
  border-color: rgba(34, 211, 238, 0.4);
  animation: aboutRingSpin 12s linear infinite reverse;
}

.about__hub-ring--inner {
  inset: 10%;
  border-color: rgba(168, 85, 247, 0.35);
}

@keyframes aboutRingSpin {
  to { transform: rotate(360deg); }
}

.about__hub-logo {
  position: relative;
  z-index: 2;
  width: clamp(72px, 9vw, 96px);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(59, 130, 246, 0.65));
  animation: aboutLogoFloat 5s ease-in-out infinite;
}

@keyframes aboutLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.about__hub-circuits {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  margin: auto;
  pointer-events: none;
}

.about__hub-card {
  position: absolute;
  width: clamp(148px, 17vw, 178px);
  padding: 0.85rem 0.8rem 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background:
    linear-gradient(155deg, rgba(14, 22, 44, 0.92) 0%, rgba(8, 14, 30, 0.82) 100%);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  transform: translateY(16px) scale(0.94);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  transition-delay: var(--hub-delay, 0s);
}

.about.is-visible .about__hub-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.about__hub-card:hover {
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.2);
}

.about__hub-card--strategy { top: 4%; left: 2%; --hub-float: -6px; }
.about__hub-card--innovate { top: 6%; right: 0; --hub-float: -8px; }
.about__hub-card--develop  { bottom: 8%; right: 2%; --hub-float: -5px; }
.about__hub-card--deliver  { bottom: 10%; left: 0; --hub-float: -7px; }

.about.is-visible .about__hub-card.is-visible {
  animation: aboutCardFloat 4.5s ease-in-out infinite;
  animation-delay: var(--hub-float-delay, 0s);
}

.about__hub-card--strategy { --hub-float-delay: 0s; }
.about__hub-card--innovate { --hub-float-delay: 0.6s; }
.about__hub-card--develop  { --hub-float-delay: 1.2s; }
.about__hub-card--deliver  { --hub-float-delay: 0.3s; }

@keyframes aboutCardFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(var(--hub-float, -6px)); }
}

.about__hub-card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.about__hub-card-icon svg {
  width: 18px;
  height: 18px;
}

.about__hub-card-icon--blue   { color: #60a5fa; background: rgba(59, 130, 246, 0.15); }
.about__hub-card-icon--cyan   { color: #22d3ee; background: rgba(34, 211, 238, 0.12); }
.about__hub-card-icon--purple { color: #c084fc; background: rgba(168, 85, 247, 0.14); }
.about__hub-card-icon--violet { color: #a78bfa; background: rgba(139, 92, 246, 0.14); }

.about__hub-card-title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e2e8f0;
}

.about__hub-card-desc {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

/* ── Our Values ──────────────────────────────────────────────── */

.about__values-heading {
  margin: 0 0 1.25rem;
  font-size: var(--type-subsection-title);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.about.is-visible .about__values-heading.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about__values-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.5vw, 1.25rem);
  padding: clamp(1.35rem, 2.5vw, 1.75rem) clamp(1.25rem, 2vw, 1.5rem);
  border-radius: 18px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background:
    linear-gradient(155deg, rgba(12, 20, 40, 0.88) 0%, rgba(8, 14, 30, 0.75) 100%);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.about.is-visible .about__values-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about__value {
  min-width: 0;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.about.is-visible .about__value.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.about__value-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.about__value-title {
  margin: 0;
  font-size: var(--type-card-title-sm);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.about__value-desc {
  margin: 0;
  font-size: var(--type-body-sm);
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ── Hexagon icons ───────────────────────────────────────────── */

.about__hex {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 50px;
  display: grid;
  place-items: center;
}

.about__hex-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px currentColor);
}

.about__hex-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: #f8fafc;
}

.about__hex-icon svg {
  width: 18px;
  height: 18px;
}

.about__hex--blue   { color: #3b82f6; }
.about__hex--purple { color: #a855f7; }
.about__hex--cyan   { color: #22d3ee; }
.about__hex--orange { color: #f97316; }
.about__hex--indigo { color: #6366f1; }

.about__hex--blue   .about__hex-shape { fill: rgba(59, 130, 246, 0.08); }
.about__hex--purple .about__hex-shape { fill: rgba(168, 85, 247, 0.08); }
.about__hex--cyan   .about__hex-shape { fill: rgba(34, 211, 238, 0.08); }
.about__hex--orange .about__hex-shape { fill: rgba(249, 115, 22, 0.08); }
.about__hex--indigo .about__hex-shape { fill: rgba(99, 102, 241, 0.08); }

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .about__values-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .about__hero {
    grid-template-columns: 1fr;
  }

  .about__hub {
    min-height: 400px;
    max-width: 520px;
    margin: 0 auto;
  }

  .about__title {
    text-align: center;
  }

  .about__eyebrow {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .about__values-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about__hub-card {
    width: clamp(130px, 38vw, 160px);
  }
}

@media (max-width: 540px) {
  .about__values-panel {
    grid-template-columns: 1fr;
  }

  .about__hub-card--strategy { top: 2%; left: 0; }
  .about__hub-card--innovate { top: 2%; right: 0; }
  .about__hub-card--develop  { bottom: 4%; right: 0; }
  .about__hub-card--deliver  { bottom: 4%; left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .about__hub-glow,
  .about__hub-logo,
  .about__hub-ring--outer,
  .about__hub-ring--mid,
  .about__hub-card.is-visible {
    animation: none;
  }

  .about__copy,
  .about__hub,
  .about__hub-card,
  .about__values-heading,
  .about__values-panel,
  .about__value {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
