/* ==========================================================================
   Nexus — About Us (unified section rhythm)
   ========================================================================== */

.about-page {
  --ab-radius: var(--nx-radius-lg);
  --ab-split-gap: clamp(40px, 6vw, 72px);
  --ab-head-gap: clamp(36px, 5vw, 48px);
  background: var(--nx-white);
}

/* ---- Shared section shell (aligned with pl-section / cr-platform) ---- */
.ab-section {
  padding: 70px 0;
}

.ab-section--muted {
  background: #f4f6f9;
}

.ab-section--dark {
  background: #030c15;
  color: #f8fafc;
}

.ab-section__head {
  max-width: 40rem;
  margin-bottom: var(--ab-head-gap);
}

.ab-section__head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ab-section__head h2 {
  margin: 0 0 16px;
  font-size: var(--cr-section-title-size);
  font-weight: var(--cr-section-title-weight);
  letter-spacing: var(--cr-section-title-spacing);
  line-height: var(--cr-section-title-line);
  color: var(--nx-navy);
}

.ab-section--dark .ab-section__head h2 {
  color: #fff;
}

.ab-section__head p {
  margin: 0;
  font-size: var(--cr-lead-size);
  line-height: 1.72;
  color: var(--nx-muted);
}

.ab-section--dark .ab-section__head p {
  color: rgba(248, 250, 252, 0.72);
}

/* ---- Story (who we are) ---- */
.ab-story {
  background: #fefefe;
}

.ab-story__media {
  margin: 0;
  line-height: 0;
}

.ab-story__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.ab-philosophy__media {
  margin: 0;
  line-height: 0;
}

.ab-philosophy__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.ab-philosophy {
  background: #c4d9efc9;
}

/* ---- Risk management ---- */
.ab-risk {
  background: #00102f;
}

.ab-risk__media {
  position: relative;
  margin: 0;
  line-height: 0;
}

.ab-risk__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.ab-risk__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 95% 90% at 42% 48%, transparent 58%, #00102f 100%),
    linear-gradient(to right, transparent 62%, #00102f 100%);
}

.ab-team {
  background: #c4d9efc9;
}

/* ---- Hero (cr-hero shell + about overrides) ---- */
.ab-hero {
  background: #00102f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ab-hero .cr-hero__grid {
  align-items: start;
}

.ab-hero .cr-hero__content {
  align-items: flex-start;
  background-color: #00102f;
}

.ab-hero .cr-hero__top .breadcrumb a {
  color: rgba(255, 255, 255, 0.82);
}

.ab-hero .cr-hero__top .breadcrumb a:hover {
  color: var(--nx-orange);
}

.ab-hero .cr-hero__top .breadcrumb [aria-current="page"],
.ab-hero .cr-hero__top .breadcrumb span:not(.breadcrumb-sep) {
  color: rgba(255, 255, 255, 0.58);
}

.ab-hero .cr-hero__top .breadcrumb-sep {
  color: rgba(255, 255, 255, 0.38);
}

.ab-hero .cr-hero__lead {
  margin-bottom: 0;
}

.ab-hero__visual {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px max(45px, calc((100vw - var(--nx-container)) / 2 + 45px)) 64px 24px;
  background: transparent;
  min-height: 100%;
  align-self: stretch;
}

.ab-hero__image {
  display: block;
  width: 100%;
  max-width: min(100%, 560px);
  height: auto;
  max-height: min(520px, 68vh);
  object-fit: cover;
  object-position: center top;
  border-radius: var(--ab-radius);
}

/* ---- Split panels (aligned with cr-platform / cr-recurring) ---- */
.ab-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--ab-split-gap);
  align-items: center;
}

.ab-split--reverse .ab-split__visual {
  order: -1;
}

.ab-split__visual {
  border-radius: var(--ab-radius);
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
}

.ab-split__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ab-split__body {
  max-width: var(--cr-max-prose);
}

.ab-split__body p {
  margin: 0 0 18px;
  font-size: var(--cr-lead-size);
  line-height: 1.72;
  color: var(--nx-navy);
}

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

.ab-section--dark .ab-split__body p {
  color: rgba(248, 250, 252, 0.78);
}

.ab-split__body h2 {
  margin: 0 0 var(--cr-section-title-gap);
  font-size: var(--cr-section-title-size);
  font-weight: var(--cr-section-title-weight);
  letter-spacing: var(--cr-section-title-spacing);
  line-height: var(--cr-section-title-line);
  color: var(--nx-navy);
}

.ab-section--dark .ab-split__body h2 {
  color: #fff;
}

/* ---- Risk highlights ---- */
.ab-risk-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: var(--ab-head-gap);
}

.ab-risk-point {
  padding: 22px 20px;
  border-radius: var(--ab-radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ab-risk-point h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.ab-risk-point p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(248, 250, 252, 0.68);
}

/* ---- Team traits ---- */
.ab-traits {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.ab-traits li {
  position: relative;
  padding-left: 24px;
  font-size: var(--cr-lead-size);
  line-height: 1.55;
  color: var(--nx-navy);
  font-weight: 500;
}

.ab-traits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nx-orange);
}

/* ---- Platform ---- */
.ab-platform__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ab-platform-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px;
  border: 1px solid var(--nx-border);
  border-radius: var(--ab-radius);
  background: var(--nx-white);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ab-platform-card:hover {
  border-color: rgba(234, 88, 12, 0.35);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.ab-platform-card__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.ab-platform-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--nx-navy);
}

.ab-platform-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--nx-muted);
}

.ab-platform-card span {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--nx-orange);
}

@media (max-width: 1024px) {
  .ab-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .ab-split--reverse .ab-split__visual {
    order: 0;
  }

  #about-risk .ab-risk__media {
    order: 2;
  }

  #about-risk .ab-split__body {
    order: 1;
  }

  #about-team .ab-split__visual {
    order: 2;
  }

  #about-team .ab-split__body {
    order: 1;
  }

  .ab-split__body {
    max-width: none;
  }

  .ab-hero__visual {
    min-height: auto;
    width: auto;
    margin-left: 0;
    padding: 24px;
  }

  .ab-hero__image {
    max-width: min(100%, 520px);
    max-height: none;
    margin: 0 auto;
  }

  .ab-platform__grid,
  .ab-risk-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ab-section {
    padding: 56px 0;
  }

  .ab-platform__grid,
  .ab-risk-points {
    grid-template-columns: 1fr;
  }
}
