/* About Us — FIPS official web copy */

.about-hero {
  background-image: linear-gradient(135deg, rgba(10, 56, 20, 0.88), rgba(10, 46, 19, 0.78)),
    url('../images/study-group-african-people.jpg');
}

.about-opening-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--landing-text, #343a40);
  margin-bottom: 1rem;
}

.about-opening-meta {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--landing-text-light, #6c757d);
}

/* Stats band styles live in landing.css (.fips-stats-band) */

/* Story — editorial panel */
.about-story-section {
  background: linear-gradient(180deg, #f4f7f2 0%, #eef3eb 100%);
  padding: 4.5rem 0;
}

.about-story-section .about-story-container {
  max-width: 1320px;
}

.about-story-panel {
  background: #fff;
  border: 1px solid rgba(10, 56, 20, 0.08);
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 3rem);
  box-shadow: 0 24px 60px rgba(10, 56, 20, 0.08);
}

.about-story-body::after {
  content: '';
  display: table;
  clear: both;
}

.about-story-body .page-section-heading {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.2;
  margin-bottom: 1.15rem;
}

.about-story-figure,
.about-founder-figure {
  float: right;
  shape-margin: 0.65rem;
}

.about-story-figure {
  width: min(44%, 420px);
  margin: 0.15rem 0 1.5rem 2rem;
}

.about-founder-figure {
  width: min(44%, 420px);
  margin: 0.15rem 0 1.5rem 2rem;
}

@supports (shape-outside: circle()) {
  .about-story-media-frame,
  .about-founder-photo-frame {
    shape-outside: inset(0 round 20px);
    shape-margin: 0.75rem;
  }
}

.about-founder-bio::after {
  content: '';
  display: table;
  clear: both;
}

.about-story-media-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  min-height: 320px;
  background: linear-gradient(145deg, #0a3814 0%, #1a5c2e 100%);
  box-shadow: 0 20px 48px rgba(10, 56, 20, 0.18);
}

.about-story-media-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(10, 56, 20, 0.4) 100%);
  pointer-events: none;
  z-index: 1;
}

.about-story-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
  display: block;
}

.about-story-badge {
  display: block;
  margin-top: 0.65rem;
  margin-bottom: 0;
  text-align: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(10, 56, 20, 0.06);
  color: #0a3814;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.35;
}

.about-vision-band {
  background: linear-gradient(135deg, #0a3814 0%, #1a5c2e 55%, #2d7040 100%);
  color: #fff;
  padding: 4rem 0;
}

.about-vision-quote {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.55;
  font-weight: 600;
  margin: 0;
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}

.about-mission-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.about-mission-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--landing-text, #343a40);
}

.about-mission-list i {
  color: var(--landing-accent, #d4af37);
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Values — horizontal scroll on small screens, grid on large */
.about-values-scroll {
  overflow: visible;
}

.about-values-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.about-values-track .about-value-card:nth-child(4) {
  grid-column: 1 / span 2;
}

.about-values-track .about-value-card:nth-child(5) {
  grid-column: 3;
}

.about-value-card {
  background: #fff;
  border: 1px solid rgba(10, 56, 20, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
  box-shadow: 0 4px 18px rgba(10, 56, 20, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(10, 56, 20, 0.1);
}

.about-value-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0a3814;
  margin-bottom: 0.65rem;
}

.about-value-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #5c6670;
}

/* Crest — side by side */
.about-crest-layout {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.about-crest-image {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  border: 1px solid rgba(10, 56, 20, 0.1);
  box-shadow: 0 8px 24px rgba(10, 56, 20, 0.08);
  text-align: center;
}

.about-crest-image img {
  max-width: 100%;
  height: auto;
}

.about-crest-legend {
  display: grid;
  gap: 0.5rem;
}

.about-crest-item {
  display: grid;
  grid-template-columns: minmax(96px, 130px) minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(10, 56, 20, 0.08);
  align-items: start;
}

.about-crest-item:last-child {
  border-bottom: none;
}

.about-crest-item strong {
  color: #0a3814;
  font-size: 0.88rem;
  line-height: 1.35;
}

.about-crest-item span {
  color: #5c6670;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Partners — horizontal scroll */
#partnerships {
  scroll-margin-top: 100px;
}

.about-partners-scroll {
  overflow: visible;
}

.about-partners-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.about-partner-card {
  background: #fff;
  border: 1px solid rgba(10, 56, 20, 0.1);
  border-radius: 16px;
  padding: 1.35rem;
  height: 100%;
  box-shadow: 0 4px 16px rgba(10, 56, 20, 0.05);
}

.about-partner-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #0a3814;
  margin: 0.75rem 0 0.5rem;
}

.about-partner-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #5c6670;
}

.about-partner-logo {
  height: 52px;
  display: flex;
  align-items: center;
}

.about-partner-logo img {
  max-height: 48px;
  max-width: 140px;
  object-fit: contain;
}

.about-partner-logo--text {
  font-weight: 800;
  font-size: 1.1rem;
  color: #0a3814;
  letter-spacing: 0.02em;
}

/* Founder — text wraps around portrait */
.about-founder-section .about-founder-container {
  max-width: 1320px;
}

.about-founder-panel {
  background: #fff;
  border: 1px solid rgba(10, 56, 20, 0.08);
  border-radius: 24px;
  padding: clamp(1.5rem, 3vw, 3rem);
  box-shadow: 0 20px 50px rgba(10, 56, 20, 0.07);
}

.about-founder-photo-frame {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  min-height: 320px;
  background: #0a0a0a;
  box-shadow: 0 16px 40px rgba(10, 56, 20, 0.15);
}

.about-founder-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.about-founder-quote {
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid var(--landing-accent, #d4af37);
  background: rgba(212, 175, 55, 0.08);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #0a3814;
}

.about-founder-bio p {
  font-size: 1rem;
  line-height: 1.75;
  color: #5c6670;
  margin-bottom: 1rem;
}

.about-founder-bio h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0a3814;
  margin-bottom: 0.25rem;
}

.about-founder-role {
  color: var(--landing-accent, #d4af37);
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Festari Group — logo beside copy */
.about-festari-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.about-festari-logo {
  flex-shrink: 0;
}

.about-festari-logo img {
  max-height: 72px;
  width: auto;
}

.about-ecosystem-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
}

.about-ecosystem-pill {
  background: rgba(10, 56, 20, 0.08);
  color: #0a3814;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

/* About page mobile polish — keep layouts horizontal */
@media (max-width: 991px) {
  .about-page .page-section {
    padding: 3rem 0;
  }

  .about-page .page-hero {
    padding-top: 5.5rem;
    padding-bottom: 3rem;
  }

  .about-page .page-section-heading {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .about-story-section {
    padding: 2.5rem 0;
  }

  .about-story-section .about-story-container {
    max-width: 100%;
  }

  .about-story-panel {
    padding: 1.15rem;
    border-radius: 18px;
  }

  .about-story-figure {
    width: min(48%, 300px);
    margin: 0.1rem 0 1.15rem 1.15rem;
  }

  .about-story-media-frame {
    min-height: 260px;
  }

  .about-founder-figure {
    width: min(48%, 300px);
    margin: 0.1rem 0 1.15rem 1.15rem;
  }

  .about-founder-section .about-founder-container {
    max-width: 100%;
  }

  .about-founder-panel {
    padding: 1.15rem;
    border-radius: 18px;
  }

  .about-founder-photo-frame {
    min-height: 260px;
  }

  .about-story-body .page-section-heading {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }

  .about-opening-lead {
    font-size: 1rem;
  }

  .about-opening-meta {
    font-size: 0.92rem;
  }

  .about-founder-bio h3 {
    font-size: 1.15rem;
  }

  .about-founder-bio p {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .about-founder-quote {
    font-size: 0.92rem;
    padding: 0.85rem 1rem;
    margin-top: 1rem;
  }

  .about-vision-band {
    padding: 2.5rem 0;
  }

  .about-crest-layout {
    grid-template-columns: minmax(108px, 30%) minmax(0, 1fr);
    gap: 0.85rem;
  }

  .about-crest-image {
    padding: 0.85rem;
  }

  .about-crest-image .small {
    display: none;
  }

  .about-crest-item {
    grid-template-columns: minmax(84px, 108px) minmax(0, 1fr);
    gap: 0.5rem;
    padding: 0.4rem 0;
  }

  .about-crest-item strong,
  .about-crest-item span {
    font-size: 0.8rem;
  }

  .about-festari-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem;
  }

  .about-festari-logo img {
    max-height: 52px;
  }

  .about-values-scroll,
  .about-partners-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 -0.75rem;
    padding: 0 0.75rem 0.35rem;
  }

  .about-values-scroll::-webkit-scrollbar,
  .about-partners-scroll::-webkit-scrollbar {
    display: none;
  }

  .about-values-track,
  .about-partners-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.75rem;
    width: max-content;
    min-width: 100%;
  }

  .about-values-track .about-value-card,
  .about-partners-track .about-partner-card {
    flex: 0 0 min(78vw, 280px);
    scroll-snap-align: start;
  }

  .about-values-track .about-value-card:nth-child(4),
  .about-values-track .about-value-card:nth-child(5) {
    grid-column: auto;
  }

  .about-value-card {
    padding: 1.1rem;
  }

  .about-value-card h4 {
    font-size: 0.95rem;
  }

  .about-value-card p {
    font-size: 0.85rem;
  }

  .about-partner-card {
    padding: 1rem;
  }

  .about-partner-card h4 {
    font-size: 0.92rem;
  }

  .about-partner-card p {
    font-size: 0.82rem;
    line-height: 1.55;
  }

  .about-page .page-hero-ctas .landing-btn-outline {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff !important;
  }
}

@media (max-width: 575.98px) {
  .about-story-figure {
    width: min(46%, 240px);
    margin: 0 0 1rem 1rem;
  }

  .about-story-media-frame {
    min-height: 220px;
  }

  .about-founder-figure {
    width: min(46%, 240px);
    margin: 0 0 1rem 1rem;
  }

  .about-founder-photo-frame {
    min-height: 220px;
  }

  .about-story-badge {
    font-size: 0.62rem;
    padding: 0.4rem 0.55rem;
  }

  .about-crest-layout {
    grid-template-columns: minmax(88px, 26%) minmax(0, 1fr);
  }

  .about-ecosystem-pill {
    font-size: 0.72rem;
    padding: 0.3rem 0.65rem;
  }
}
