/* ==========================================================================
   BSKL — About section (v2.1.24)
   Company Overview / History / Vision & Mission / Group / Yantai YAQI

   Only the components that do not already exist in styles.css are defined
   here. Everything else (.page-hero, .split, .grid-3, .grid-4, .list-check,
   .card, .glass-light, .media-ratio-4x3, .credit, .btn) is inherited from the
   main stylesheet so these pages stay visually identical to the rest of the
   BSKL site.
   ========================================================================== */

/* ===== ABOUT GATEWAY (/about/) ===== */
.about-gateway-intro {
  max-width: 68ch;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.about-gateway-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 2vw, 22px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-gateway-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm, 0 2px 10px rgba(7, 26, 43, 0.05));
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.about-gateway-card:hover,
.about-gateway-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: var(--shadow-md, 0 12px 30px rgba(7, 26, 43, 0.1));
}

.about-gateway-card .ag-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(0, 150, 136, 0.1);
  color: var(--teal);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.about-gateway-card h3 {
  font-size: 1.08rem;
  margin: 0;
}

.about-gateway-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  flex-grow: 1;
}

.about-gateway-card .ag-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.about-gateway-card .ag-more i {
  transition: transform 0.28s ease;
}

.about-gateway-card:hover .ag-more i {
  transform: translateX(4px);
}

/* ===== CAPABILITY / LINK CARDS ===== */
.cap-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.cap-card h4 {
  margin: 0;
}

.cap-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
}

.cap-more i {
  transition: transform 0.28s ease;
}

.cap-card:hover .cap-more i,
.cap-card:focus-visible .cap-more i {
  transform: translateX(4px);
}

/* ===== COMPANY AT A GLANCE =====
   Seven figures wrap as 4 + 3. Flexbox with a centred row keeps the second
   row visually balanced instead of leaving a ragged grid-4 gap. */
.about-glance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 1.6vw, 20px);
}

.glance-item {
  flex: 1 1 200px;
  max-width: 260px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: clamp(20px, 2.2vw, 26px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-align: center;
}

.glance-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--teal);
}

.glance-label {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-wrap: balance;
}

/* ===== TIMELINE (History) =====
   Horizontal rail on desktop, vertical rail on small screens. */
.about-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(22px, 3vw, 32px);
  position: relative;
}

.at-item {
  position: relative;
  padding-top: 46px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.at-marker {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
}

.at-marker span {
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--teal);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--teal);
}

.at-year {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--teal);
}

.at-card h3 {
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.at-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* ===== STATEMENT BLOCKS (Vision / Mission / Group) ===== */
.about-statement {
  max-width: 74ch;
  margin-inline: auto;
  padding: clamp(28px, 3.4vw, 44px);
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm, 0 2px 10px rgba(7, 26, 43, 0.05));
}

.about-statement p {
  margin: 0 0 14px;
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  line-height: 1.8;
  color: var(--text);
}

.about-statement p:last-child {
  margin-bottom: 0;
}

.about-vision .vision-statement p:first-child,
.about-vision .mission-statement p:first-child {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--navy);
}

/* Editor-only authoring prompt. bskl_about_can_edit() prevents this from ever
   being emitted for logged-out visitors, so the dashed look is a dev aid. */
.about-statement .about-placeholder,
p.about-placeholder {
  font-size: 0.92rem;
  color: var(--muted);
}

.about-statement p.about-placeholder,
.about-vision p.about-placeholder {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--muted);
  font-style: normal;
}

/* ===== PILLARS / LINK GRIDS ===== */
.about-pillars,
.about-link-grid {
  margin-top: clamp(36px, 4vw, 56px);
}

/* Pillars are short labels, so they read better centred. */
.about-pillars .card {
  text-align: center;
  align-items: center;
}

.about-pillars .card .card-icon {
  margin-inline: auto;
}

/* ===== GROUP FLAG ROW ===== */
.about-flag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 22px 0 26px;
}

.about-flag {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 100px;
  background: rgba(0, 150, 136, 0.08);
  border: 1px solid rgba(0, 150, 136, 0.22);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--teal);
}

.about-flag strong {
  font-weight: 600;
}

.about-flag-plus {
  font-size: 1.1rem;
  color: var(--muted);
}

/* ===== TEAM TEASER ===== */
.team-teaser .lead {
  margin-bottom: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-glance {
    gap: 12px;
  }

  .glance-item {
    flex: 1 1 calc(50% - 12px);
    max-width: none;
  }
}

@media (max-width: 640px) {
  /* Single-column vertical rail. */
  .about-timeline {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .at-item {
    padding: 0 0 30px 30px;
  }

  .at-marker {
    top: 0;
    bottom: 0;
    left: 7px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .at-marker span {
    top: 8px;
    left: 0;
    transform: translateY(0);
  }

  .glance-item {
    flex: 1 1 100%;
  }

  .about-gateway-list {
    grid-template-columns: 1fr;
  }

  .about-statement {
    border-left-width: 1px;
    border-top: 3px solid var(--teal);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-gateway-card,
  .cap-more i,
  .about-gateway-card .ag-more i {
    transition: none;
  }

  .about-gateway-card:hover,
  .about-gateway-card:focus-visible,
  .cap-card:hover .cap-more i {
    transform: none;
  }
}
