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

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

.about:has(+ .tech-stack) {
  padding-bottom: clamp(1.25rem, 2.5vh, 1.75rem);
}

/* Process → About: tight on desktop only */
.dev-process ~ .about {
  padding-top: clamp(0.5rem, 1vh, 0.75rem);
  margin-top: 0;
}

.dev-process ~ .about .about__visual {
  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;
}

/* ── About visual image ──────────────────────────────────────── */

.about__visual {
  margin: 0;
  justify-self: end;
  align-self: center;
  width: 100%;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  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__visual.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.about__visual-image {
  display: block;
  width: 100%;
  max-width: min(560px, 100%);
  margin-left: auto;
  margin-right: 0;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 18px 42px rgba(15, 23, 42, 0.55));
}

/* ── 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;
  }

  .dev-process ~ .about {
    padding-top: clamp(1.5rem, 4vw, 2rem);
  }

  .about__visual {
    justify-self: center;
    max-width: min(420px, 92vw);
    margin: 0.75rem auto 0;
  }

  .about__visual-image {
    max-width: 100%;
    margin-inline: auto;
  }

  .about__copy {
    text-align: center;
  }

  .about__title {
    text-align: center;
  }

  .about__eyebrow {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  .about__prose {
    max-width: 34rem;
    margin-inline: auto;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .dev-process ~ .about {
    padding-top: clamp(1.75rem, 5vw, 2.5rem);
  }

  .dev-process ~ .about::before {
    content: "";
    display: block;
    position: relative;
    z-index: 1;
    width: min(88%, 340px);
    height: 1px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(34, 211, 238, 0.45) 22%,
      rgba(59, 130, 246, 0.55) 50%,
      rgba(168, 85, 247, 0.45) 78%,
      transparent
    );
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.18);
  }

  .about__values-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about__hero {
    margin-bottom: 1rem;
  }

  .about__visual {
    max-width: min(360px, 94vw);
    margin: 0.85rem auto 0;
  }

  .about__visual-image {
    border-radius: 14px;
    filter: drop-shadow(0 12px 28px rgba(15, 23, 42, 0.45));
  }

  .about__values-heading {
    margin-top: 0.5rem;
    text-align: center;
  }
}

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

  .about__visual {
    max-width: min(320px, 94vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about__copy,
  .about__visual,
  .about__values-heading,
  .about__values-panel,
  .about__value {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
