/* ==========================================================================
   About us (aboutUs.html)
   Builds on home.css and prophet.css: <main class="home about">.
   ========================================================================== */

/* ---------- hero: press clipping collage ---------- */
.a-collage {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  aspect-ratio: 1 / 0.92;
  animation: h-rise 1s var(--ease) 0.15s both;
}

.a-clip {
  position: absolute;
  width: 52%;
  padding: 8px 8px 30px;
  margin: 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s var(--ease), z-index 0s;
}

.a-clip img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

.a-clip figcaption {
  position: absolute;
  right: 8px;
  bottom: 7px;
  left: 8px;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}

.a-clip:nth-of-type(1) {
  top: 4%;
  left: 0;
  transform: rotate(-7deg);
}

.a-clip:nth-of-type(2) {
  top: 0;
  left: 26%;
  z-index: 2;
  transform: rotate(2deg);
}

.a-clip:nth-of-type(3) {
  bottom: 0;
  left: 44%;
  z-index: 3;
  width: 48%;
  transform: rotate(6deg);
}

.a-clip:hover {
  z-index: 5;
  transform: rotate(0) scale(1.04);
}

.a-thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  cursor: zoom-in;
}

.a-thumb-btn:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 3px;
}

.a-collage .h-since {
  top: auto;
  right: auto;
  bottom: 4%;
  left: 4%;
  z-index: 4;
}

/* ---------- mission ---------- */
.a-mission {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 3.5rem;
  align-items: start;
}

.home .a-mission .h-head {
  margin: 0;
  text-align: left;
}

.a-mission .h-head p + p {
  margin-top: 1rem;
}

.a-place {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.5rem;
  padding: 0.45rem 0.9rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.a-place .bi {
  color: #e11d48;
}

.a-values {
  display: grid;
  gap: 1rem;
}

.a-value {
  display: flex;
  gap: 1.1rem;
  padding: 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.a-value .p-ico {
  flex-shrink: 0;
}

.home .a-value h3 {
  margin-bottom: 0.35rem !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

.a-value p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text);
}

/* ---------- team ---------- */
.a-team {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin-inline: auto;
}

.a-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 2.25rem 1.5rem 2rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.a-member:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.a-photo {
  width: 148px;
  height: 148px;
  margin-bottom: 1.1rem;
  padding: 5px;
  background: var(--grad-wide);
  border-radius: 50%;
  box-shadow: 0 18px 34px -18px rgba(102, 126, 234, 0.9);
}

.a-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  background: #f1f5f9;
  border: 4px solid #fff;
  border-radius: 50%;
}

.home .a-member h3 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0.02em !important;
}

.a-role {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
}

.a-member p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
}

/* recognised by */
.a-recog {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  max-width: 1000px;
  margin: 2.5rem auto 0;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.a-recog-label {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.a-recog figure {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0;
}

/* chip tinted to match the off-white backgrounds of the two logo JPEGs */
.a-recog-logo {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  height: 64px;
  padding: 0 0.85rem;
  background: #f7f6f4;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.a-recog img {
  width: auto;
  height: 48px;
  mix-blend-mode: darken;
}

.a-recog figcaption {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

/* ---------- CEO & awards ---------- */
.a-ceo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: center;
}

.home .a-ceo .h-head {
  margin: 0;
  text-align: left;
}

.a-ceo .h-head p + p {
  margin-top: 1rem;
}

.a-ceo .h-head strong {
  color: #fff;
}

.a-honours {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.75rem !important;
}

.a-honours li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.a-honours .bi {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  color: #fde68a;
  background: rgba(253, 230, 138, 0.12);
  border: 1px solid rgba(253, 230, 138, 0.25);
  border-radius: 11px;
}

.a-awards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.a-award {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  text-align: left;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  cursor: zoom-in;
  aspect-ratio: 1 / 1;
}

.a-award--wide {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 8.3;
}

.a-award img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), opacity 0.3s ease;
}

.a-award:hover img {
  transform: scale(1.05);
}

.a-award span {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2.25rem 0.85rem 0.7rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  background: linear-gradient(transparent, rgba(8, 11, 24, 0.85));
}

.a-award--wide span {
  font-size: 0.92rem;
}

.a-award:focus-visible,
.a-news:focus-visible,
.a-thumb:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 3px;
}

/* ---------- timeline ---------- */
.a-decades {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: -1rem 0 2.75rem;
}

.a-decades a,
.a-decades a:visited {
  padding: 0.45rem 1rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.a-decades a:hover {
  color: var(--accent);
  border-color: rgba(79, 70, 229, 0.3);
  transform: translateY(-2px);
}

.a-decades small {
  margin-left: 0.3rem;
  font-weight: 500;
  color: var(--muted);
}

.a-timeline {
  --rail: 9rem;
  position: relative;
  max-width: 980px;
  margin-inline: auto;
}

/* the vertical line */
.a-timeline::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: var(--rail);
  width: 2px;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #f5576c 100%);
  opacity: 0.35;
}

.a-decade {
  position: relative;
  display: flex;
  padding: 1.25rem 0 1.25rem calc(var(--rail) - 2.6rem);
}

.a-decade:first-child {
  padding-top: 0;
}

.a-decade span {
  position: relative;
  z-index: 1;
  padding: 0.4rem 1rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad);
  border-radius: 999px;
  box-shadow: 0 0 0 6px var(--soft), 0 12px 24px -12px rgba(102, 126, 234, 0.9);
}

.a-event {
  position: relative;
  display: grid;
  grid-template-columns: calc(var(--rail) - 1.5rem) minmax(0, 1fr);
  gap: 3rem;
  padding: 0.6rem 0;
}

/* the dot on the line */
.a-event::before {
  content: "";
  position: absolute;
  top: 1.85rem;
  left: calc(var(--rail) - 6px);
  width: 14px;
  height: 14px;
  background: #fff;
  border: 3px solid #667eea;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--soft);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.a-event:hover::before {
  background: #667eea;
  transform: scale(1.15);
}

.a-when {
  padding-top: 1.1rem;
  text-align: right;
}

.a-when strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.a-when span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.a-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.15rem 1.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s var(--ease), border-color 0.3s ease, transform 0.3s var(--ease);
}

.a-event:hover .a-card {
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.a-card-text {
  flex: 1;
  min-width: 0;
}

.home .a-card h3 {
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

.a-sub {
  margin-top: 0.15rem !important;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
}

.a-card-text > p:not(.a-sub) {
  margin-top: 0.45rem !important;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text);
}

.a-thumb {
  flex-shrink: 0;
  width: 92px;
  height: 92px;
  padding: 4px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: zoom-in;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.a-thumb:hover {
  transform: scale(1.05) rotate(-1deg);
  box-shadow: var(--shadow-md);
}

.a-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 10px;
}

.a-mark {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
  color: #e11d48;
  background: #ffe4e8;
  border-radius: 16px;
}

.a-card .h-app-title {
  gap: 0.7rem;
  margin-bottom: 0.15rem;
}

.a-card .h-app-icon {
  width: 40px;
  height: 40px;
}

.a-cta-section {
  padding-top: 0;
}

/* ---------- in the news ---------- */
.a-press {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.a-news {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.a-news:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.a-news-img {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.a-news-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.6s var(--ease);
}

.a-news:hover .a-news-img img {
  transform: scale(1.06);
}

.a-news-img::after {
  content: "\F52A";
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  font-family: bootstrap-icons;
  font-size: 0.85rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.a-news:hover .a-news-img::after {
  opacity: 1;
  transform: none;
}

.a-news-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 1rem 1rem;
}

.a-news-text strong {
  font-family: var(--font-head);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.a-news-text span {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- Facebook series ---------- */
.a-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.a-post,
.a-post:visited {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  color: var(--text);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
}

.a-post:hover {
  color: var(--text);
  border-color: rgba(24, 119, 242, 0.35);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.a-post-num {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: #1877f2;
  background: #e7f0fe;
  border-radius: 12px;
}

.a-post-text {
  flex: 1;
  min-width: 0;
}

.a-post-text small {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.a-post-text span {
  display: block;
  font-size: 0.93rem;
  line-height: 1.55;
}

.a-post > .bi {
  flex-shrink: 0;
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.a-post:hover > .bi {
  color: #1877f2;
  transform: translate(2px, -2px);
}

.home .a-fb-title {
  font-size: clamp(1.4rem, 2.6vw, 2rem) !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199.98px) {
  .a-press {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .a-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .a-collage {
    max-width: 440px;
  }

  .a-mission,
  .a-ceo {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  /* long paragraphs stay left-aligned; only the heading block centres */
  .home .a-mission .h-head,
  .home .a-ceo .h-head {
    max-width: 46rem;
    margin-inline: auto;
  }

  .a-team {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .a-team {
    grid-template-columns: 1fr;
    max-width: 380px;
  }

  .a-press {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .a-posts {
    grid-template-columns: 1fr;
  }

  /* timeline: line on the left, date above each card */
  .a-timeline {
    --rail: 0.55rem;
  }

  .a-decade {
    padding-left: 0;
  }

  .a-event {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 0.5rem 0 0.75rem 2rem;
  }

  .a-event::before {
    top: 0.95rem;
  }

  .a-when {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    padding-top: 0.35rem;
    text-align: left;
  }

  .a-when strong {
    font-size: 1.2rem;
  }

  .a-when span {
    margin-top: 0;
  }

  .a-event:hover .a-card {
    transform: none;
  }
}

@media (max-width: 575.98px) {
  .a-card {
    flex-direction: column-reverse;
    gap: 0.85rem;
  }

  .a-thumb {
    width: 100%;
    height: 150px;
  }

  .a-awards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .a-award:not(.a-award--wide):last-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }

  .a-recog figure {
    flex-direction: column;
    text-align: center;
  }
}
