/* ==========================================================================
   About page — hero (story + identity card) · vision & mission · strategic
                goals (four pillars) · closing impact banner
   Mobile-first. Built on tokens.css + the shared components.
   ========================================================================== */

/* ---- page tokens --------------------------------------------------------- */
/* scoped to main: the shared header and footer keep the site container */
.page-about main {
  --container: 74.5rem; /* the design's 1192px column */
}

/* ---- section eyebrow pills ---------------------------------------------- */
.about-pill { padding-inline: var(--sp-4); border-color: transparent; }
.about-pill--navy { color: var(--navy); background: var(--navy-tint); }
.about-pill--amber { color: var(--navy); background: var(--amber-soft); }
.about-lead { font-size: var(--fs-16); line-height: 1.5; text-wrap: balance; }

/* ---- Hero -------------------------------------------------------------- */
.about-hero {
  --about-fs-title: clamp(1.625rem, 1.05rem + 2.3vw, 2.375rem); /* 38px headline */
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: var(--sp-1) var(--sp-16);
  border-block-end: 1px solid var(--amber-soft);
  background:
    radial-gradient(circle 20rem at 35% 6rem, color-mix(in srgb, var(--amber) 13%, transparent), transparent 70%),
    radial-gradient(
      circle 17rem at calc(100% - 11rem) 32rem,
      color-mix(in srgb, var(--burgundy) 8%, transparent),
      transparent 70%
    ),
    linear-gradient(var(--tint-warm), var(--surface));
}
/* two dashed flow lines drawn across the hero */
.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("../../img/about-flow.svg") 50% 0 / max(100%, 60rem) auto no-repeat;
  opacity: .2;
}

.about-hero__inner { display: flex; flex-direction: column; gap: var(--sp-6); }
.about-hero__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-1) var(--sp-4);
}
@media (min-width: 30rem) {
  .about-hero__top {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}
.about-hero__tag {
  gap: var(--sp-2);
  align-items: flex-start;
  border-color: color-mix(in srgb, var(--burgundy) 15%, transparent);
  /* on phones the sentence wraps: a rounded block with the dot on the first line, not a stretched pill */
  border-radius: var(--r-16);
  text-wrap: balance;
  box-shadow: none;
}
.about-hero__tag .badge__dot {
  flex: none;
  margin-block-start: .5em;
}
@media (min-width: 40rem) {
  .about-hero__tag {
    align-items: center;
    border-radius: var(--r-full);
  }
  .about-hero__tag .badge__dot { margin-block-start: 0; }
}

.about-hero__grid { display: grid; gap: var(--sp-12); align-items: center; }
.about-hero__story {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-6);
}
.about-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: .25rem .75rem;
  font-size: var(--fs-12);
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
  background: var(--amber-soft);
  border-radius: var(--r-8);
}
.about-hero__eyebrow .icon { font-size: .875rem; color: var(--amber-deep); }
.about-hero__title {
  font-size: var(--about-fs-title);
  font-weight: 700;
  line-height: 1.36;
  letter-spacing: -.028em;
  color: var(--navy);
  text-wrap: balance;
}
.about-hero__mark {
  position: relative;
  display: inline-block;
  font-style: normal;
  color: var(--burgundy);
  background: linear-gradient(to left, var(--burgundy), var(--burgundy-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* hand-drawn amber stroke under the highlighted phrase */
.about-hero__mark::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -.5rem;
  height: .5rem;
  border-block-start: 4px solid var(--amber);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.about-hero__lead { font-size: var(--fs-16); line-height: 1.75; color: var(--text); }
.about-hero__lead strong { font-weight: 700; color: var(--navy); }

.about-hero__trust { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) .875rem;
  font-size: var(--fs-14);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--r-12);
  box-shadow: var(--sh-card);
}
.trust-pill__icon { width: 2rem; height: 2rem; }
.trust-pill__icon.icon-tile--amber { color: var(--amber-ink); }

/* identity card */
.id-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 24rem);
  margin-inline: auto;
  padding: 2.5rem 1.75rem 1.75rem;
  text-align: center;
  background:
    radial-gradient(circle 6rem at 0 0, color-mix(in srgb, var(--amber) 16%, transparent), transparent 80%),
    radial-gradient(circle 6rem at 100% 100%, color-mix(in srgb, var(--burgundy) 10%, transparent), transparent 80%),
    var(--surface);
  border: 1px solid var(--surface);
  border-radius: var(--r-24);
  /* the card shadow plus a soft tri-colour glow around it */
  box-shadow:
    var(--sh-xl),
    -2rem 1.5rem 4rem -1.5rem color-mix(in srgb, var(--burgundy) 20%, transparent),
    2rem -1.5rem 4rem -1.5rem color-mix(in srgb, var(--navy) 18%, transparent),
    0 0 4rem color-mix(in srgb, var(--amber) 20%, transparent);
}
.id-card__founded {
  position: absolute;
  inset-block-start: 1.25rem;
  inset-inline-end: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: .25rem .75rem;
  font-size: var(--fs-11);
  font-weight: 800;
  line-height: 1.5;
  color: var(--text-on-dark);
  background: var(--grad-burgundy);
  border-radius: var(--r-full);
  box-shadow: var(--sh-sm);
}
.id-card__founded .icon { font-size: .625rem; }
.id-card__emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 7rem;
  height: 7rem;
  margin-block-end: var(--sp-5);
  background: linear-gradient(135deg, var(--tint-cool), var(--tint-warm));
  border: 1px solid var(--line-cool);
  border-radius: var(--r-24);
  box-shadow: inset 0 2px 4px 1px rgb(0 0 0 / .05);
}
.id-card__emblem img { width: 4.9375rem; }
.id-card__seal {
  position: absolute;
  inset-block-end: -.5rem;
  inset-inline-start: .5rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  color: var(--navy);
  background: var(--amber);
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: var(--sh-sm);
}
.id-card__seal .icon { font-size: .75rem; }
.id-card__title {
  font-size: var(--fs-20);
  font-weight: 800;
  line-height: 1.4;
  color: var(--navy);
}
.id-card__place {
  margin-block: var(--sp-1) var(--sp-2);
  font-size: var(--fs-12);
  font-weight: 700;
  line-height: 1.5;
  color: var(--burgundy);
}
.id-card__motto {
  font-size: var(--fs-14);
  font-weight: 500;
  line-height: 1.6;
  color: var(--text);
  text-wrap: balance;
}
.id-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .625rem;
  width: 100%;
  margin-block-start: var(--sp-6);
  padding-block-start: var(--sp-5);
  border-block-start: 1px solid var(--line);
}
.id-card__fact {
  display: flex;
  flex-direction: column-reverse;
  gap: .375rem;
  padding: var(--sp-3);
  background: var(--tint-cool);
  border: 1px solid var(--line-cool);
  border-radius: var(--r-16);
}
.id-card__fact--warm { background: var(--tint-warm); border-color: var(--amber-soft); }
.id-card__fact-value {
  font-size: var(--fs-20);
  font-weight: 900;
  line-height: 1.4;
  color: var(--burgundy);
}
.id-card__fact--warm .id-card__fact-value { color: var(--navy); }
.id-card__fact-label {
  font-size: var(--fs-11);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-muted);
}
.id-card__stamp {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  margin-block-start: var(--sp-4);
  font-size: var(--fs-11);
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-muted);
}
.id-card__stamp .icon { font-size: .6875rem; color: var(--green); }

/* the hero enters once on load: the story line by line (120ms apart), the identity card in the middle of them */
@media (prefers-reduced-motion: no-preference) {
  .about-hero__story > *, .id-card { animation: rise-in var(--t-slow) var(--ease) both; }
  .about-hero__story > :nth-child(2) { animation-delay: 120ms; }
  .about-hero__story > :nth-child(3) { animation-delay: 240ms; }
  .about-hero__story > :nth-child(4) { animation-delay: 360ms; }
  .id-card { animation-delay: 240ms; }
}

/* ---- Vision & mission --------------------------------------------------- */
/* the cards slide in from the sides: clip them so the page never scrolls sideways */
.about-compass {
  overflow-x: clip;
  border-block-end: 1px solid var(--line);
}
.about-compass__inner { display: flex; flex-direction: column; gap: var(--sp-10); }
.about-compass__cards { display: grid; gap: var(--sp-6); }

.compass-card {
  --tone: var(--burgundy);
  --tone-end: var(--burgundy-deep);
  --tone-ground: var(--tint-warm);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.5rem, .9rem + 2.6vw, 2.5rem);
  background: linear-gradient(135deg, var(--surface), var(--tone-ground));
  border: 2px solid color-mix(in srgb, var(--tone) 20%, transparent);
  border-radius: var(--r-24);
  box-shadow: 0 20px 40px -15px color-mix(in srgb, var(--tone) 14%, transparent);
}
.compass-card--navy { --tone: var(--navy); --tone-end: var(--amber); --tone-ground: var(--tint-cool); }
/* accent bar hanging from the top edge */
.compass-card::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: 2rem;
  height: .375rem;
  border-radius: 0 0 var(--r-full) var(--r-full);
  background: linear-gradient(to left, var(--tone), var(--amber), var(--tone-end));
}
.compass-card--navy::before {
  background: linear-gradient(to left, var(--tone), var(--navy-soft), var(--tone-end));
}
.compass-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.compass-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 4rem;
  height: 4rem;
  color: var(--text-on-dark);
  background: var(--tone);
  border-radius: var(--r-16);
  box-shadow:
    0 4px 6px -4px color-mix(in srgb, var(--tone) 25%, transparent),
    0 10px 15px -3px color-mix(in srgb, var(--tone) 25%, transparent);
}
.compass-card__icon .icon { font-size: 1.875rem; }
.compass-card__tag {
  color: var(--tone);
  background: color-mix(in srgb, var(--tone) 10%, transparent);
  border-color: transparent;
}
.compass-card__title {
  margin-block: var(--sp-6) var(--sp-4);
  font-size: var(--fs-h3);
  font-weight: 800;
  line-height: 1.375;
  color: var(--navy);
}
.compass-card__text {
  margin-block-end: var(--sp-8);
  font-size: var(--fs-14);
  line-height: 1.72;
  color: var(--text);
}
.compass-card__note {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-block-start: auto;
  padding: var(--sp-4);
  font-size: var(--fs-12);
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone) 10%, transparent);
  border-radius: var(--r-16);
}
.compass-card__note-icon { width: 2.5rem; height: 2.5rem; }
.compass-card__note-icon.icon-tile--amber {
  color: var(--amber-ink);
  background: color-mix(in srgb, var(--amber) 20%, transparent);
}

@media (min-width: 60rem) {
  .about-compass__inner { gap: 3.5rem; }
  /* two cards side by side, the second one set slightly lower */
  .about-compass__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sp-10);
    padding-block-end: var(--sp-6);
  }
  /* a relative offset (not a translate) so the reveal can move the item freely */
  .about-compass__cards > :nth-child(2) {
    position: relative;
    inset-block-start: var(--sp-6);
  }
}

/* ---- Strategic goals ---------------------------------------------------- */
.about-goals {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-block-end: 1px solid var(--amber-soft);
  background:
    radial-gradient(
      circle 20rem at calc(100% - 14.5rem) 8rem,
      color-mix(in srgb, var(--amber) 10%, transparent),
      transparent 70%
    ),
    radial-gradient(
      circle 17rem at 10rem calc(100% - 10rem),
      color-mix(in srgb, var(--burgundy) 5%, transparent),
      transparent 70%
    ),
    var(--tint-warm);
}
.about-goals__inner { display: flex; flex-direction: column; gap: var(--sp-10); }
.about-goals__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-6);
}
.about-goals__intro { gap: var(--sp-3); max-width: 36rem; }

.plan-note {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--amber-line);
  border-radius: var(--r-16);
  box-shadow: var(--sh-card);
}
.plan-note__icon { width: 2.5rem; height: 2.5rem; }
.plan-note__icon .icon { font-size: 1rem; }
.plan-note__body { display: flex; flex-direction: column; gap: .125rem; }
.plan-note__title {
  font-size: var(--fs-14);
  font-weight: 800;
  line-height: 1.45;
  color: var(--navy);
}
.plan-note__sub {
  font-size: var(--fs-11);
  font-weight: 600;
  line-height: 1.5;
  color: var(--burgundy);
}

.about-goals__list { display: grid; gap: var(--sp-6); }

.pillar {
  --tone: var(--burgundy);
  --tone-ink: var(--burgundy);
  --tone-soft: var(--burgundy-soft);
  --tone-corner: var(--tint-warm);
  --tone-num: color-mix(in srgb, var(--burgundy) 15%, transparent);
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line-cool);
  border-radius: var(--r-24);
  box-shadow: var(--sh-card);
}
.pillar--navy {
  --tone: var(--navy);
  --tone-ink: var(--navy);
  --tone-soft: color-mix(in srgb, var(--navy) 10%, transparent);
  --tone-corner: var(--navy-tint);
  --tone-num: color-mix(in srgb, var(--navy) 15%, transparent);
}
.pillar--amber {
  --tone: var(--amber-deep);
  --tone-ink: var(--amber-ink);
  --tone-soft: var(--amber-soft);
  --tone-corner: color-mix(in srgb, var(--amber) 10%, transparent);
  --tone-num: var(--amber-line);
}
.pillar--slate {
  --tone: var(--text);
  --tone-ink: var(--text);
  --tone-soft: var(--sand-strong);
  --tone-corner: var(--sand);
  --tone-num: var(--line-cool);
}
/* tinted quarter-disc in the top start corner */
.pillar::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  z-index: -1;
  width: 6rem;
  height: 6rem;
  border-end-end-radius: var(--r-full);
  background: var(--tone-corner);
}
.pillar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.pillar__icon {
  display: grid;
  place-items: center;
  flex: none;
  padding: var(--sp-3);
  color: var(--tone);
  background: var(--tone-soft);
  border-radius: var(--r-16);
}
.pillar__icon .icon { font-size: 1.4375rem; }
.pillar__num {
  font-size: var(--fs-36);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.05em;
  color: var(--tone-num);
}
.pillar__label {
  margin-block: var(--sp-6) .375rem;
  font-size: var(--fs-12);
  font-weight: 800;
  line-height: 1.5;
  color: var(--tone-ink);
}
.pillar__title {
  margin-block-end: var(--sp-3);
  font-size: var(--fs-18);
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
  text-wrap: balance;
}
.pillar__text {
  margin-block-end: var(--sp-6);
  font-size: var(--fs-14);
  line-height: 1.7;
  color: var(--text);
}
.pillar__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 2.75rem;
  margin-block-start: auto;
  padding-block-start: var(--sp-4);
  font-size: var(--fs-12);
  font-weight: 700;
  line-height: 1.5;
  color: var(--tone-ink);
  border-block-start: 1px solid var(--line);
}
.pillar__link .icon { font-size: .6875rem; transition: translate var(--t-fast) var(--ease); }
@media (hover: hover) {
  .pillar__link:hover .icon { translate: calc(var(--dir) * 3px) 0; }
}

@media (min-width: 40rem) {
  .about-goals__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 75rem) {
  .about-goals__inner { gap: 3.5rem; }
  /* four in a row; every second card sits a step lower */
  .about-goals__list { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block-end: var(--sp-4); }
  .about-goals__item:nth-child(even) {
    position: relative;
    inset-block-start: var(--sp-4);
  }
  .pillar__text { font-size: var(--fs-12); line-height: 1.75; }
}

/* ---- Closing banner ----------------------------------------------------- */
.about-impact__card {
  position: relative;
  overflow: clip;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
  padding: clamp(1.75rem, .7rem + 4.4vw, 4rem);
  color: var(--text-on-dark);
  border-radius: var(--r-24);
  box-shadow: var(--sh-xl);
  background:
    radial-gradient(
      circle 13rem at calc(100% - 6rem) 6rem,
      color-mix(in srgb, var(--text-on-dark) 10%, transparent),
      transparent 75%
    ),
    radial-gradient(
      circle 14rem at 6rem calc(100% - 3rem),
      color-mix(in srgb, var(--amber) 20%, transparent),
      transparent 75%
    ),
    linear-gradient(to right, var(--burgundy-deep), var(--burgundy) 50%, var(--burgundy-deep) 130%);
}
.about-impact__body {
  flex: 1 1 26rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-4);
  max-width: 48rem;
}
.about-impact__tag {
  gap: var(--sp-2);
  padding: .375rem .875rem;
  font-weight: 800;
  color: var(--navy);
  background: var(--amber);
  border-color: transparent;
  box-shadow: var(--sh-xs);
}
.about-impact__tag .icon { font-size: .875rem; }
.about-impact__title { font-size: var(--fs-h2); font-weight: 800; line-height: 1.12; }
.about-impact__text { font-size: var(--fs-16); line-height: 1.5; color: var(--rose-pale); }
.about-impact__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding-block-start: var(--sp-2);
}
.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .375rem var(--sp-3);
  font-size: var(--fs-14);
  font-weight: 700;
  line-height: 1.45;
  background: var(--line-on-dark);
  border: 1px solid var(--on-dark-15);
  border-radius: var(--r-12);
}
.metric-pill .icon { font-size: 1rem; color: var(--amber); }
.about-impact__cta {
  --btn-bg: var(--navy);
  width: 100%;
  min-height: 3.5rem;
  padding-inline: var(--sp-8);
  font-weight: 800;
  box-shadow: var(--sh-xl);
}
@media (min-width: 40rem) {
  .about-impact__cta { width: auto; flex: none; }
}

/* ---- ≥ 960px: hero in two columns (672 : 464 in the design) ------------- */
@media (min-width: 60rem) {
  .about-hero { padding-block-end: var(--sp-24); }
  .about-hero__inner { gap: var(--sp-4); }
  .about-hero__grid {
    grid-template-columns: minmax(0, 672fr) minmax(0, 464fr);
    gap: var(--sp-10) 3.5rem;
    align-items: start;
  }
  .about-hero__line { display: block; }
}


/* ==========================================================================
   Motion (choreography of the scroll reveals; the shared system lives in components.css)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* pillars fall one after another and settle with alternating tilts */
  .about-goals__item:nth-child(odd) { --drop-tilt: -2.5deg; }
  .about-goals__item:nth-child(even) { --drop-tilt: 2.5deg; }
}

/* ---- English (LTR) fixes ---------------------------------------------
   The shared sprite has only a left-pointing arrow (the RTL "forward"); in LTR it is mirrored. */
[dir="ltr"] .icon:not(.icon--back):has(> use[href="#i-arrow-left"]) { scale: -1 1; }
