/* About NESTA. Keep the page aligned with the shared shell and type scale. */
.about-network.about-v5 {
  --about-paper: #f3f0e9;
  --about-caption: #d4cfc5;
  --about-gap: clamp(1rem, 2vw, 1.75rem);
  --about-break: clamp(2rem, 4vw, 3.5rem);
  background: #fff;
  color: var(--nesta-ink);
  overflow-x: clip;
}

.ab5 { display: block; padding-block: 0; }
.ab5-block { position: relative; isolation: isolate; padding-block: var(--about-break); }
.ab5-block--history, .ab5-block--standards { box-shadow: 0 0 0 100vmax var(--about-paper); clip-path: inset(0 -100vmax); background: var(--about-paper); }
.ab5-block--dark {
  background: var(--nesta-ink);
  box-shadow: 0 0 0 100vmax var(--nesta-ink);
  clip-path: inset(0 -100vmax);
  color: #fff;
}

.ab5-head { margin-bottom: clamp(1.125rem, 2vw, 1.75rem); }
.ab5-eyebrow {
  margin: 0 0 .5rem;
  color: var(--nesta-text-bronze);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.5;
}
.locale-th .ab5-eyebrow { letter-spacing: .08em; }
.ab5-title {
  max-width: 29ch;
  margin: 0;
  font-size: var(--nesta-h2);
  font-weight: 600;
  line-height: 1.23;
  text-wrap: pretty;
}
.ab5-lead {
  max-width: 43rem;
  margin: .75rem 0 0;
  color: var(--nesta-body);
  font-size: 1rem;
  line-height: 1.65;
}
.ab5-block--standards .ab5-lead { max-width: 74ch; }
.ab5-block--dark .ab5-eyebrow { color: var(--nesta-champagne); }

.ab5-intro {
  display: grid;
  gap: 1.125rem;
  border-bottom: 1px solid var(--nesta-rule);
}
.ab5-intro .ab5-title {
  max-width: 22ch;
  font-size: clamp(1.875rem, 3.35vw, 3.25rem);
  text-wrap: balance;
}
.ab5-intro .ab5-lead:first-child { margin-top: 0; }
.ab5-intro__actions { margin-top: 1.125rem; }

.ab5-story {
  display: grid;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.ab5-story .ab5-head { margin: 0; }
.ab5-story .ab5-title { max-width: 24ch; }
.ab5-story .ab5-lead { max-width: 58ch; }
.ab5-story__photos, .ab5-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}
.ab5-story__photos figure, .ab5-gallery figure { margin: 0; }
.ab5-photo { aspect-ratio: 1.58; overflow: hidden; background: #e9e4da; }
.ab5-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ab5-story__photos figcaption, .ab5-gallery figcaption {
  margin-top: .45rem;
  color: var(--nesta-body);
  font-size: .8125rem;
  line-height: 1.45;
}
.ab5-block--dark .ab5-gallery figcaption { color: var(--about-caption); }
.ab5-block--dark .ab5-photo { background: #292929; }

.ab5-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: clamp(1.25rem, 2.5vw, 2.25rem) 0 0;
  padding: .875rem 0 0;
  border-top: 1px solid var(--nesta-rule);
}
.ab5-stats dt {
  color: var(--nesta-ink);
  font-size: clamp(1.4rem, 2.5vw, 2.125rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.ab5-stats dt small { margin-left: .35rem; font-size: .48em; font-weight: 500; }
.ab5-stats dd { margin: .25rem 0 0; color: var(--nesta-body); font-size: .875rem; line-height: 1.45; }

/* One chronological rail with the year and milestone on the same row. */
.ab5-block--history .ab5-title, .ab5-block--standards .ab5-title {
  max-width: 100%;
  font-size: var(--nesta-h2-sm);
  text-wrap: balance;
}
.ab5-timeline { margin: 0; padding: 0; list-style: none; }
.ab5-timeline li {
  display: grid;
  grid-template-columns: 3.35rem minmax(0, 1fr);
  align-items: baseline;
  gap: .75rem;
  position: relative;
  padding: .65rem 0 .65rem 1rem;
}
.ab5-timeline li::before {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: #c6b49c;
  content: "";
}
.ab5-timeline li:first-child::before { top: 1.3rem; }
.ab5-timeline li:last-child::before { bottom: auto; height: 1.3rem; }
.ab5-timeline li::after {
  position: absolute;
  left: -3px;
  top: calc(1.3rem - 3px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nesta-text-bronze);
  content: "";
}
.ab5-timeline li + li { border-top: 1px solid #e4ddd1; }
.ab5-timeline time {
  color: var(--nesta-text-bronze);
  font-size: 1.0625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.ab5-timeline span { color: var(--nesta-body); font-size: .9375rem; line-height: 1.55; }

/* Read the three capabilities as a single path from drawings to handover. */
.ab5-points {
  display: grid;
  margin: clamp(1rem, 2vw, 1.5rem) 0 0;
  padding: 0;
  list-style: none;
  background: var(--about-paper);
  border: 1px solid var(--nesta-rule);
}
.ab5-points li { position: relative; padding: .9rem 1.125rem; }
.ab5-points li + li { border-top: 1px solid #ded5c7; }
.ab5-points li + li::before {
  position: absolute;
  top: -5px;
  left: 1.25rem;
  width: 8px;
  height: 8px;
  border-bottom: 1px solid var(--nesta-text-bronze);
  border-right: 1px solid var(--nesta-text-bronze);
  background: var(--about-paper);
  transform: rotate(45deg);
  content: "";
}
.ab5-points h3 { margin: 0; color: var(--nesta-ink); font-size: 1rem; font-weight: 600; line-height: 1.4; }
.ab5-points p { margin: .3rem 0 0; color: var(--nesta-body); font-size: .875rem; line-height: 1.55; }

.ab5-certs {
  --mark-gap: clamp(.7rem, 1.3vw, 1.125rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--mark-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ab5-mark {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  flex: 0 1 calc((100% - 2 * var(--mark-gap)) / 3);
  min-width: 0;
  max-width: 8rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid #d7cfc1;
  border-radius: 50%;
  overflow: hidden;
}
.ab5-mark img {
  display: block;
  width: 68%;
  height: auto;
  mix-blend-mode: multiply;
}
.ab5-mark--iso img { width: 105%; max-width: none; }
.ab5-mark--sgs img { width: 84%; }
.ab5-mark--tisi img { width: 86%; }
.ab5-mark--asnzs img { width: 42%; mix-blend-mode: normal; }
#standards-and-testing { scroll-margin-top: 6rem; }

@media (min-width: 760px) {
  .ab5-story { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .ab5-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ab5-gallery { gap: 1.125rem var(--about-gap); }
  .ab5-certs { flex-wrap: nowrap; }
  .ab5-mark { flex: 1 1 0; }
  .ab5-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ab5-points li { padding: 1rem 1.375rem; }
  .ab5-points li + li { border-top: 0; border-left: 1px solid #ded5c7; }
  .ab5-points li + li::before {
    left: -4px;
    top: 1.35rem;
    border-top: 1px solid var(--nesta-text-bronze);
    border-bottom: 0;
  }
}

@media (min-width: 960px) {
  .ab5-intro {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
  }
  .ab5-block--history, .ab5-block--standards {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: clamp(2rem, 5vw, 5rem);
  }
  .ab5-block--history .ab5-head, .ab5-block--standards .ab5-head { align-self: center; margin: 0; }
  .ab5-block--standards .ab5-certs { align-self: center; justify-content: flex-end; }
  .ab5-gallery { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
