/* ==========================================================================
   about.css — About page (loaded after base.css and case-study.css, which
   supplies the .cs-flow / .prose reading layout)
   ========================================================================== */

/* --- Hero: introduction beside the portrait --------------------------------- */
.about-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(70% 60% at 85% 20%, rgb(139 92 246 / 0.16), transparent 70%),
    radial-gradient(50% 40% at 10% 75%, rgb(255 63 164 / 0.08), transparent 70%),
    var(--bg);
}

.about-hero__inner {
  display: grid;
  gap: var(--space-5);
  align-items: center;
}

@media (min-width: 60rem) {
  .about-hero__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(3rem, 7vw, 6rem);
  }
}

.about-hero h1 {
  font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.25rem);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.about-hero h1 > span {
  display: block;
}

.about-hero h1 .text-gradient {
  font-weight: 600;
}

.about-hero__lead {
  max-width: 40ch;
  margin-top: var(--space-4);
  color: var(--text);
}

.about-hero__body {
  max-width: 56ch;
  margin-top: var(--space-3);
  color: var(--text-soft);
  line-height: 1.75;
}

/* Portrait: 280 to 360px wide, on a violet and magenta glow */
.portrait {
  position: relative;
  isolation: isolate;
  width: clamp(17.5rem, 26vw, 22.5rem);
  max-width: 100%;
  aspect-ratio: 800 / 1000;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) * 1.5);
  background:
    radial-gradient(75% 55% at 50% 100%, rgb(255 63 164 / 0.55), transparent 72%),
    radial-gradient(90% 60% at 15% 5%, rgb(139 92 246 / 0.55), transparent 70%),
    radial-gradient(60% 45% at 95% 35%, rgb(139 92 246 / 0.3), transparent 70%),
    var(--bg-raised);
  box-shadow: 0 0 5rem -1.5rem rgb(139 92 246 / 0.6);
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 59.99rem) {
  .portrait {
    margin-inline: auto;
  }
}

/* --- Reading sections (headings unnumbered here) ------------------------------ */
.about-section {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.about-section .cs-head h2::before {
  display: none;
}

/* --- Closing call to action ---------------------------------------------------- */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14rem;
  z-index: -1;
  width: min(80rem, 140%);
  height: 28rem;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 50% 50% at 50% 50%,
    rgb(255 63 164 / 0.32),
    rgb(139 92 246 / 0.12) 45%,
    transparent 70%
  );
}

.cta__inner {
  max-width: 40rem;
  margin-inline: auto;
}

.cta__body {
  margin-top: var(--space-3);
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* Plain-text address under the buttons, for visitors without a mail app */
.cta__address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  margin-top: var(--space-3);
  color: var(--text-muted);
  font-size: var(--step-0);
  overflow-wrap: anywhere;
}

/* Animated monogram above the closing heading. The box is larger than the
   resting mark because the loop blooms outward from the center. */
.motion--connect {
  width: clamp(11rem, 22vw, 14rem);
  aspect-ratio: 1;
  margin: calc(var(--space-3) * -1) auto var(--space-2);
}
