/* ==========================================================================
   The Clarity Story — About · Leadership · Featured in Outlook
   No animation yet (deferred to the final animation pass).
   ========================================================================== */

.story {
  padding-block: clamp(48px, 6vw, 88px) clamp(56px, 7vw, 104px);
  background: var(--c-bg);
  scroll-margin-top: var(--header-h);
}

/* Desktop: About 4 · Leadership 5 · Feature 3 (12-column) */
.story-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
  align-items: stretch;
}

.story-about { grid-column: span 4; }
.story-leaders { grid-column: span 5; }
.feature { grid-column: span 3; }

/* --------------------------------------------------------------------------
   1. About
   -------------------------------------------------------------------------- */

.story-about {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 4px;
}

.story-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--c-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.story-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--c-red);
}

.story-title {
  margin: 0;
  color: var(--c-ink);
  font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.story-title .accent {
  margin-left: -0.04em;
  color: var(--c-red);
}

.story-lede {
  max-width: 28em;
  margin: 16px 0 24px;
  color: var(--c-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.story-cta {
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   2. Leadership
   -------------------------------------------------------------------------- */

.story-leaders {
  padding-left: clamp(0px, 2.6vw, 40px);
  border-left: 1px solid var(--c-line);
}

.story-subhead {
  margin: 0 0 18px;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.leaders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 16px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.leader {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.leader-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 30% 10%, #ffffff 0%, transparent 60%),
    linear-gradient(180deg, #f3f3f5, #e6e7ea);
}

.leader-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Per-portrait framing. Photos are square; the 4:5 frame trims the sides only,
   so each crop is centred on the face (measured from the originals). */
.leader--sanjay img { object-position: 51% 50%; }
.leader--bharti img { object-position: 49% 50%; }
.leader--tamanna img { object-position: 46% 50%; }

/* Fallback monogram (sits under the photo; visible only if a photo fails to load) */
.leader-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #b9bcc3;
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.leader-name {
  display: block;
  margin-top: 12px;
  color: var(--c-ink);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.25;
}

.leader-role {
  display: block;
  margin-top: 2px;
  color: var(--c-muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   3. Featured in Outlook — dark editorial card, typographic only
   -------------------------------------------------------------------------- */

.feature {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  padding: clamp(22px, 2.2vw, 30px);
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(216, 38, 26, 0.35), transparent 60%),
    linear-gradient(160deg, #1d1d1f 0%, #111112 100%);
  color: #fff;
  isolation: isolate;
}

/* thin red rule along the top edge */
.feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(22px, 2.2vw, 30px);
  width: 48px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--c-red);
}

/* oversized issue numerals as a quiet typographic backdrop */
.feature-mark {
  position: absolute;
  right: -0.06em;
  bottom: -0.2em;
  z-index: -1;
  color: transparent;
  font-size: clamp(5.5rem, 4rem + 4vw, 8rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.06em;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
  user-select: none;
}

.feature-mark span {
  -webkit-text-stroke-color: rgba(216, 38, 26, 0.6);
}

.feature-tag {
  margin: 6px 0 0;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-title {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
}

.feature-title span {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: clamp(2.2rem, 1.6rem + 1.8vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.feature-text {
  margin: 12px 0 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.55;
}

.feature-cta {
  margin-top: auto;
}

/* the global focus ring is dark — switch to white on the dark card */
.feature :focus-visible {
  outline-color: #fff;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Tablet: About + Feature side by side, Leadership full width below */
@media (max-width: 1099.98px) {
  .story-about { grid-column: span 7; }
  .feature { grid-column: span 5; }

  .story-leaders {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: clamp(24px, 3vw, 32px);
    padding-left: 0;
    border-top: 1px solid var(--c-line);
    border-left: 0;
  }

  .leaders {
    max-width: 520px;
  }
}

/* Mobile: single column — About, Leadership, Feature */
@media (max-width: 639.98px) {
  .story-about,
  .feature,
  .story-leaders {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .leader-photo {
    border-radius: 14px;
  }

  .leader-name {
    margin-top: 10px;
    font-size: 0.9rem;
  }

  .leader-role {
    font-size: 0.78rem;
  }
}
