/*
 * About Us subpages — scoped to .about-subpage, layered on about-us.css.
 */

.about-subpage .subhero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 8vw, 104px) 0 clamp(56px, 7vw, 88px);
  background:
    radial-gradient(circle at 88% 12%, rgba(212, 240, 106, .16), transparent 32%),
    var(--forest);
  color: #fff;
}

.about-subpage .subhero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -240px;
  bottom: -320px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(255, 255, 255, .03);
  animation: subhero-drift 16s ease-in-out infinite alternate;
}

@keyframes subhero-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-30px, -22px, 0);
  }
}

.about-subpage .subhero .breadcrumb {
  position: relative;
  z-index: 1;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, .62);
}

.about-subpage .subhero .breadcrumb a:hover {
  color: var(--lime);
}

.about-subpage .subhero .eyebrow {
  position: relative;
  z-index: 1;
  color: var(--lime);
}

.about-subpage .subhero h1 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0;
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1.05;
}

.about-subpage .subhero-lead {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .76);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
}

.about-subpage .sub-section {
  padding: clamp(64px, 7vw, 96px) 0;
}

.about-subpage .sub-section--alt {
  background: var(--paper-2);
}

.about-subpage .sub-heading {
  max-width: 800px;
  margin-bottom: 44px;
}

.about-subpage .sub-heading h2,
.about-subpage .sub-split h2,
.about-subpage .sub-narrow h2 {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 46px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.about-subpage .sub-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.about-subpage .sub-split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.about-subpage .sub-split h2 {
  max-width: 520px;
}

.about-subpage .sub-split .eyebrow {
  margin-bottom: 12px;
}

.about-subpage .sub-copy p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.about-subpage .sub-copy p:last-child {
  margin-bottom: 0;
}

.about-subpage .sub-lead {
  margin: 0 0 20px;
  color: var(--ink);
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.65;
}

.about-subpage .sub-narrow {
  max-width: 880px;
}

.about-subpage .sub-narrow p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.about-subpage .sub-note {
  max-width: 860px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.about-subpage .sub-callout {
  margin: 26px 0 0;
  padding: 20px 22px;
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.65;
}

.about-subpage .sub-wide-media {
  margin-top: 48px;
}

.about-subpage .sub-wide-media figure {
  margin: 0;
}

.about-subpage .sub-wide-media img {
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--card);
}

.about-subpage .sub-wide-media figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

/* Timeline */
.about-subpage .timeline {
  position: relative;
  max-width: 1080px;
  margin: 0;
  padding: 8px 0 0;
  list-style: none;
}

.about-subpage .timeline::before,
.about-subpage .timeline::after {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: var(--line);
}

.about-subpage .timeline::before {
  left: 132px;
}

.about-subpage .timeline::after {
  left: 131px;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--green), var(--forest));
  transform: scaleY(var(--timeline-progress, 0));
  transform-origin: top;
  transition: transform .18s linear;
}

.about-subpage .timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 56px;
  padding-bottom: 34px;
}

.about-subpage .timeline-item:last-child {
  padding-bottom: 0;
}

.about-subpage .timeline-marker {
  position: relative;
  padding-top: 20px;
}

.about-subpage .timeline-marker::after {
  content: "";
  position: absolute;
  top: 33px;
  left: 128px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--paper);
}

.about-subpage .timeline-year {
  display: inline-flex;
  min-width: 84px;
  justify-content: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.about-subpage .timeline-card {
  display: grid;
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.about-subpage .timeline-card--media {
  grid-template-columns: minmax(0, 1fr) clamp(176px, 21vw, 256px);
  align-items: start;
}

.about-subpage .timeline-card:hover {
  transform: translateY(-3px);
  border-color: rgba(36, 122, 80, .26);
  box-shadow: 0 16px 40px rgba(20, 37, 28, .08);
}

.about-subpage .timeline-body h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.3;
}

.about-subpage .timeline-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.about-subpage .timeline-media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--paper-2);
}

.about-subpage .timeline-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.22, .61, .36, 1);
}

.about-subpage .timeline-card:hover .timeline-media img {
  transform: scale(1.045);
}

/* Scroll reveal — the class is added by about-subpage.js */
.about-subpage .timeline--animate .timeline-item {
  opacity: 0;
  transform: translateY(26px);
}

.about-subpage .timeline--animate .timeline-item.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.22, .61, .36, 1);
}

/* Tables */
.about-subpage .sub-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.about-subpage .sub-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.about-subpage .sub-table th,
.about-subpage .sub-table td {
  padding: 17px 22px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.55;
}

.about-subpage .sub-table thead th {
  background: var(--forest);
  color: #fff;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.about-subpage .sub-table tbody th {
  width: 24%;
  color: var(--ink);
  font-weight: 700;
}

.about-subpage .sub-table tbody td {
  color: var(--muted);
}

.about-subpage .sub-table tbody tr:last-child > * {
  border-bottom: 0;
}

.about-subpage .sub-table tbody tr:nth-child(even) > * {
  background: rgba(236, 239, 231, .4);
}

/* Numbered stage lists */
.about-subpage .qc-list,
.about-subpage .sub-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.about-subpage .qc-list li,
.about-subpage .sub-steps li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
}

.about-subpage .qc-list li > span,
.about-subpage .sub-steps li > span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.about-subpage .qc-list h3,
.about-subpage .sub-steps h3 {
  margin: 2px 0 6px;
  font-size: 16px;
  line-height: 1.35;
}

.about-subpage .qc-list p,
.about-subpage .sub-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Compliance cards */
.about-subpage .compliance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.about-subpage .compliance-card {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.about-subpage .compliance-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  object-fit: contain;
}

.about-subpage .compliance-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.about-subpage .compliance-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Galleries */
.about-subpage .sub-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.about-subpage .sub-gallery--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-subpage .sub-gallery--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.about-subpage .sub-gallery--stack {
  grid-template-columns: 1fr;
}

.about-subpage .sub-gallery.sub-gallery--stack img {
  aspect-ratio: auto;
  object-fit: contain;
  background: var(--card);
  border: 1px solid var(--line);
}

/* Breathing room when a gallery or media block sits above a table */
.about-subpage .sub-gallery + .sub-table-wrap,
.about-subpage .sub-wide-media + .sub-table-wrap {
  margin-top: 40px;
}

.about-subpage .sub-table-wrap + .sub-note {
  margin-top: 26px;
}

.about-subpage .sub-gallery figure {
  margin: 0;
}

.about-subpage .sub-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-md);
  background: var(--paper-2);
}

.about-subpage .sub-gallery figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Certificate carousel — four per row on desktop, scrollable track */
.about-subpage .cert-carousel {
  position: relative;
}

.about-subpage .cert-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 54px) / 4);
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.about-subpage .cert-track::-webkit-scrollbar {
  display: none;
}

.about-subpage .cert-track:focus-visible {
  outline: 3px solid #8ebf2f;
  outline-offset: 6px;
}

.about-subpage .cert-slide {
  margin: 0;
  scroll-snap-align: start;
}

.about-subpage .cert-slide img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}

.about-subpage .cert-slide figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.about-subpage .cert-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.about-subpage .cert-count {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.about-subpage .cert-nav {
  display: flex;
  gap: 8px;
}

.about-subpage .cert-nav button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease;
}

.about-subpage .cert-nav button:hover:not(:disabled) {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.about-subpage .cert-nav button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.about-subpage .cert-nav[hidden] {
  display: none;
}

.about-subpage .sub-gallery--four img {
  aspect-ratio: 1 / 1;
}

/* Mission, vision and values */
.about-subpage .mission-intro {
  max-width: 1120px;
}

.about-subpage .mission-intro .eyebrow {
  margin-bottom: 20px;
}

.about-subpage .mission-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.about-subpage .mission-lead {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.5;
  letter-spacing: -.02em;
}

.about-subpage .mission-note {
  margin: 0;
  padding-top: 6px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.about-subpage .mission-vision-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.about-subpage .mv-card {
  padding: clamp(28px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.about-subpage .mv-card h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.about-subpage .mv-card p:not(.eyebrow) {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.about-subpage .mv-card p:last-child {
  margin-bottom: 0;
}

/* Final CTA — stacked (text above, button below) */
.about-subpage .final-cta-inner--stack {
  display: block;
}

.about-subpage .final-cta-inner--stack .final-actions {
  margin-top: 30px;
}

@media (max-width: 1100px) {
  .about-subpage .sub-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-subpage .sub-split h2 {
    max-width: none;
  }

  .about-subpage .compliance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-subpage .sub-gallery,
  .about-subpage .sub-gallery--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-subpage .cert-track {
    grid-auto-columns: calc((100% - 36px) / 3);
  }
}
@media (max-width: 800px) {
  .about-subpage .timeline::before,
  .about-subpage .timeline::after {
    display: none;
  }

  .about-subpage .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-bottom: 26px;
  }

  .about-subpage .timeline-marker {
    padding-top: 0;
  }

  .about-subpage .timeline-marker::after {
    display: none;
  }

  .about-subpage .timeline-card {
    padding: 22px;
  }

  .about-subpage .timeline-card--media {
    grid-template-columns: 1fr;
  }

  .about-subpage .timeline-media img {
    aspect-ratio: 16 / 9;
  }

  .about-subpage .sub-gallery,
  .about-subpage .sub-gallery--three,
  .about-subpage .sub-gallery--four,
  .about-subpage .compliance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-subpage .cert-track {
    grid-auto-columns: calc((100% - 14px) / 2);
    gap: 14px;
  }

  .about-subpage .sub-gallery--stack {
    grid-template-columns: 1fr;
  }

  .about-subpage .sub-heading {
    margin-bottom: 32px;
  }

  .about-subpage .sub-table {
    min-width: 600px;
  }
  .about-subpage .mission-intro-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .about-subpage .mission-note {
    padding-top: 0;
  }

  .about-subpage .mission-vision-grid {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {
  .about-subpage .timeline--animate .timeline-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .about-subpage .timeline::after {
    display: none;
  }

  .about-subpage .timeline-card,
  .about-subpage .timeline-media img,
  .about-subpage .subhero::after {
    animation: none;
    transition: none;
  }
}
