/* ==========================================================================
   About Us page (Figma "Web Agency Design-About", page 12)
   Shared parts (header, footer, team slider, awards, contact picker) use
   style.css; this file only holds what is new on this page.
   ========================================================================== */

.about-wrap { width: 1346px; margin: 0 auto; }          /* 287px → 1633px on a 1920 screen */

.about-heading {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 46px;
  line-height: 56px;
  color: var(--color-heading);
}
.about-heading--center { text-align: center; }

.about-subtitle {
  margin-top: 12px;
  font-family: var(--font-dm-sans);
  font-size: 16px;
  line-height: 26px;
  color: var(--color-body);
}
.about-subtitle--center { width: 640px; margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Banner ---------- */
.about-hero {
  --banner-h: var(--hero-height, 1080px);
  --banner-pb: 52px;
  --banner-x: 34px;
  --banner-shade: linear-gradient(90deg, rgba(6, 7, 27, .92) 0%, rgba(6, 7, 27, .55) 60%, rgba(6, 7, 27, .35) 100%);
}
.about-hero__title {
  width: 1100px;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 68px;
  line-height: 78px;
  color: var(--color-white);
}
.about-hero__text {
  width: 1015px;
  margin-top: 40px;
  font-family: var(--font-dm-sans);
  font-size: 20px;
  line-height: 30px;
  color: var(--color-white);
}

/* ---------- Our Purpose ---------- */
.about-purpose { padding: var(--section-space) 0; background: var(--color-soft-bg); }
.about-purpose__body { width: 1145px; margin-top: 32px; }
.about-purpose__text {
  font-family: var(--font-dm-sans);
  font-size: 16px;
  line-height: 29.44px;
  color: var(--color-body);
}
.about-purpose__text + .about-purpose__text { margin-top: 29.44px; }

/* ---------- Core values ---------- */
.about-values { padding: var(--section-space) 0; background: var(--color-white); }

.value-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  margin: var(--head-gap) 0 0;
  padding: 0;
  list-style: none;
}
.value-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;     /* icon, title and text start at the same height in every card */
  min-height: 326px;
  padding: 32px 24px;
  border-radius: 8px;
  background: #F5F6FF;
}
.value-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--color-primary);
  color: var(--color-white);
}
.value-card__svg { width: 24px; height: 24px; }
.value-card__title {
  margin-top: 12px;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 20px;
  line-height: 28px;
  color: var(--color-heading);
}
.value-card__text {
  margin-top: 6px;
  font-family: var(--font-dm-sans);
  font-size: 16px;
  line-height: 26px;
  color: var(--color-body);
}

.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.mv-card {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 249px;
  padding: 40px;
  border-radius: 8px;
  background: #F5F6FF;
}
.mv-card__icon {
  display: grid;
  place-items: center;
  flex: 0 0 96px;
  height: 96px;
  border-radius: 12px;
  background: #E4EEFD;
  color: var(--color-primary);
}
.mv-card__svg { width: 40px; height: 40px; }
.mv-card__title {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: #0F172A;
}
.mv-card__text {
  margin-top: 8px;
  font-family: var(--font-dm-sans);
  font-size: 16px;
  line-height: 26px;
  color: var(--color-body);
}

/* ---------- Milestones slider ---------- */
.about-journey { padding: var(--section-space) 0; background: var(--color-soft-bg); }
.about-journey .about-heading { color: #0F172A; }
.about-journey__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }

.journey-nav { display: flex; gap: 4px; flex-shrink: 0; }
.journey-nav__btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #ECEDF5;
  border-radius: 4px;
  background: var(--color-white);
  color: #0F172A;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.journey-nav__btn:hover:not(:disabled) { background: var(--color-primary); color: var(--color-white); }
.journey-nav__btn:disabled { opacity: .4; cursor: default; }

.journey-slider { margin-top: var(--head-gap); overflow: hidden; cursor: grab; touch-action: pan-y; }
.journey-slider.is-dragging { cursor: grabbing; }
/* Cards share rows, so every year, label, title and paragraph starts at
   the same height in all cards (a 2-line title pushes all paragraphs down) */
.journey-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 380px;
  grid-template-rows: repeat(4, auto);
  column-gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform .5s ease;
  user-select: none;
}
.journey-slider.is-dragging .journey-track { transition: none; }

.milestone {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  row-gap: 0;
  align-content: start;
  padding: 24px 24px 62px;          /* 414px tall, as in the design */
  border-radius: 8px;
  background: var(--color-white);
}
.milestone__year {
  display: block;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 42px;
  line-height: 52px;
  color: var(--color-primary);
}
.milestone__label {
  display: block;
  margin-top: 16px;
  font-family: var(--font-poppins);
  font-style: italic;
  font-weight: 700;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #5B6170;
}
.milestone__title {
  margin-top: 10px;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: #0F172A;
}
.milestone__text {
  margin-top: 12px;
  font-family: var(--font-dm-sans);
  font-size: 16px;
  line-height: 26px;
  color: #6B7280;
}

/* ---------- A Personal Note ---------- */
.ceo-note { padding: var(--section-space) 0; background: var(--color-white); }
.ceo-note__inner { display: flex; justify-content: space-between; align-items: center; gap: 60px; }
.ceo-note__body { width: 736px; padding-left: 3px; }
.ceo-note__text {
  margin-top: 20px;
  font-family: var(--font-dm-sans);
  font-size: 16px;
  line-height: 30px;
  color: #1F2937;
}
.ceo-note__text + .ceo-note__text { margin-top: 16px; }
.ceo-note__sign {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
  padding-left: 18px;
  border-left: 3px solid var(--color-primary);
}
.ceo-note__sign strong {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  color: #0F172A;
}
.ceo-note__sign span {
  font-family: var(--font-poppins);
  font-weight: 500;
  font-size: 12px;
  line-height: 18px;
  color: var(--color-primary);
}

.ceo-note__photo { position: relative; flex: 0 0 470px; height: 537px; margin: 0; overflow: hidden; background: #E9ECF5; }
.ceo-note__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.ceo-note__ph { width: 100%; height: 100%; place-items: start center; padding-top: 40%; }
.ceo-note__photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .7) 100%);
}
.ceo-note__photo figcaption {
  position: absolute;
  left: 17px;
  bottom: 22px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  color: var(--color-white);
}
.ceo-note__photo figcaption span {
  font-weight: 700;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2D8CFF;
}

/* ---------- Team (homepage block) on this page ---------- */
.about-page .team-section { padding-top: var(--section-space); background: var(--color-soft-bg); }

/* ---------- Media coverage ---------- */
.about-media { padding: var(--section-space) 0; background: var(--color-white); }
.about-media__inner { width: var(--container-width); margin: 0 auto; }
.about-media__text { width: 900px; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.media-card {
  display: grid;
  place-items: center;
  height: 96px;
  border-radius: 8px;
  background: #F7F8FC;
}
.media-card img {
  width: 140px;
  height: 44px;
  object-fit: contain;
  filter: brightness(0);           /* the logo files are white (made for the dark strip) */
  opacity: .55;
}

/* Awards card follows straight after the media section */
.about-page .awards { padding-top: 0; }

/* ==========================================================================
   Smaller screens
   ========================================================================== */
@media (max-width: 1199.98px) {
  .about-wrap, .about-media__inner { width: auto; padding: 0 16px; }
  .about-heading { font-size: 32px; line-height: 40px; }
  .about-subtitle--center, .about-media__text { width: auto; }

  .about-hero__title { width: auto; font-size: 40px; line-height: 50px; }
  .about-hero__text { width: auto; max-width: 760px; margin-top: 24px; font-size: 17px; line-height: 28px; }

  .about-purpose__body { width: auto; }
  .value-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 40px; }
  .value-card { min-height: 0; }
  .mv-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
  .mv-card { min-height: 0; padding: 24px; }

  .journey-slider { margin-top: 40px; }
  .journey-track { grid-auto-columns: 320px; }
  .milestone { min-height: 0; }

  .ceo-note__inner { flex-direction: column-reverse; align-items: stretch; gap: 40px; }
  .ceo-note__body { width: auto; padding-left: 0; }   /* text lines up with the page edge like every other section */
  .ceo-note__photo { flex-basis: auto; width: 100%; max-width: 470px; height: auto; aspect-ratio: 470 / 537; }

  .media-grid { grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
}

@media (max-width: 575.98px) {
  .about-hero__title { font-size: 30px; line-height: 38px; }
  .about-hero__title br { display: none; }
  .value-grid { grid-template-columns: 1fr; }
  .mv-card { flex-direction: column; align-items: flex-start; }
  .mv-card__icon { flex-basis: auto; width: 72px; height: 72px; }
  .about-journey__head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .journey-track { grid-auto-columns: 85vw; }
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Visible spacing: 85px from a section's edge to the top of its heading's
   letters, and from the last line of text / last card to the section's edge
   (same rule as the homepage).
   ========================================================================== */
@media (min-width: 1200px) {
  .about-heading { margin-top: -12px; }
  .about-purpose { padding-bottom: calc(var(--section-space) - 9px); }
  .about-page .team-section { padding-top: calc(var(--section-space) - 4px); }
  .about-page .cta-needs { margin-top: -10px; padding-top: 0; }   /* follows the awards card directly */
}
