/* --------------------------------------------------------------------------
   CallSuit - About-us bento (stat card + story card)
   Shared by Views/Shared/_AboutOverview.cshtml, used on the About page and in the
   home page's #about section (loaded by both views).
   -------------------------------------------------------------------------- */

.about-bento {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

@media (min-width: 900px) {
  .about-bento {
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: stretch;
  }
}

/* Dark stat card --------------------------------------------------------- */
.about-stat {
  --about-grad-on-dark: linear-gradient(120deg, #5fd0f6 0%, #8ea2ff 50%, #c29bf5 100%);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* centres the content in the space above the sphere */
  min-height: 34rem;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem);
  /* leave room for the sphere: its visible cap is min(57% of card width, 15.2rem) */
  padding-bottom: calc(min(57%, 15.2rem) + 1.5rem);
  text-align: center;
}

.about-stat__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-stat__glow {
  position: absolute;
  top: -38%;
  left: 50%;
  z-index: -1;
  width: 120%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(58, 110, 232, 0.26), rgba(138, 69, 221, 0.12) 55%, transparent 100%);
  pointer-events: none;
}

/* Dotted sphere rising from the bottom edge */
.about-stat__orbit {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: -1;
  width: min(150%, 40rem);
  aspect-ratio: 1;
  transform: translate(-50%, 62%);
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 6%, #2b3446 0%, #171a21 58%);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.28),
    0 -1px 0 rgba(142, 162, 255, 0.45),
    0 -26px 70px -20px rgba(58, 110, 232, 0.75);
  outline: 1px solid rgba(255, 255, 255, 0.06);
  outline-offset: 22px;
  pointer-events: none;
}

.about-stat__orbit::before,
.about-stat__orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

/* dot field - slowly turning */
.about-stat__orbit::before {
  background-image: radial-gradient(circle, rgba(203, 213, 255, 0.42) 1.1px, transparent 1.7px);
  background-size: 11px 11px;
  animation: about-turn 140s linear infinite;
}

/* shading: lit at the top, falling off towards the rim */
.about-stat__orbit::after {
  background: radial-gradient(circle at 50% 0%, transparent 18%, rgba(17, 19, 24, 0.55) 42%, rgba(17, 19, 24, 0.95) 64%);
}

@keyframes about-turn {
  to { transform: rotate(360deg); }
}

.about-stat__mark {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  padding: 13px;
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 0 0 7px rgba(255, 255, 255, 0.04),
    0 0 0 8px rgba(255, 255, 255, 0.07),
    0 20px 44px -14px rgba(58, 110, 232, 0.75);
}

.about-stat__mark img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.about-stat__value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 0.18em;
  margin: 1.75rem 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--on-dark);
}

.about-stat__num {
  font-size: clamp(3.5rem, 2.4rem + 3.4vw, 5.5rem);
}

.about-stat__unit {
  padding-bottom: 0.12em; /* keeps descenders inside the clipped gradient */
  font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem);
  letter-spacing: -0.02em;
  color: var(--accent-on-dark);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .about-stat__unit {
    background: var(--about-grad-on-dark);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.about-stat__label {
  max-width: 24ch;
  margin: 0.9rem 0 0;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--on-dark-muted);
}

.about-stat__cta {
  margin-top: 1.75rem;
}

/* Description card ------------------------------------------------------- */
.about-story {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  padding: clamp(1.75rem, 4vw, 3.25rem);
}

.about-story__quote {
  flex: none;
  width: 44px;
  height: 44px;
}

/* All story paragraphs share the original about-text style */
.about-story__lead,
.about-story__body p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1875rem, 0.98rem + 0.85vw, 1.55rem);
  line-height: 1.55;
  letter-spacing: -0.012em;
  color: var(--text);
  overflow-wrap: break-word;
  text-wrap: pretty;
}

/* em = paragraph size here, so every paragraph (incl. the first) is spaced the same;
   the negative margin cancels the card's larger flex gap between the first paragraph and the rest */
.about-story__body {
  display: flex;
  flex-direction: column;
  gap: 0.85em;
  margin-top: calc(0.85em - clamp(1.25rem, 2.5vw, 2rem));
  font-size: clamp(1.1875rem, 0.98rem + 0.85vw, 1.55rem);
}

.about-story__sign {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: auto 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}

.about-story__sign::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand-grad);
}

@media (max-width: 599.98px) {
  /* smaller sphere cap on phones so the description card starts sooner */
  .about-stat {
    min-height: 0;
    padding-bottom: calc(min(40%, 10rem) + 1.25rem);
  }

  .about-stat__orbit {
    transform: translate(-50%, 72%);
  }

  .about-story__lead,
  .about-story__body {
    hyphens: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-stat__orbit::before {
    animation: none;
  }
}
