/* ==========================================================================
   CVR — about.css
   "About us". Loads after base.css, which carries the tokens, the shared
   chrome and the page banner.

   This page runs at a larger type scale than the rest of the site: the lead
   copy is set at 50px and the mission copy at 30px, both measured off the
   mockup. Neither size exists in the base scale, so both are declared here.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Banner
   The title block sits higher off the bottom edge than on the president page.
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
  .about-banner {
    padding-bottom: var(--space-12);
  }
}

/* --------------------------------------------------------------------------
   Who are we
   -------------------------------------------------------------------------- */

.who {
  background: var(--color-ink);
  padding-block: var(--space-11);
}

.who__body {
  grid-column: 1 / -1;
}

.who__title {
  color: var(--color-lime);
  margin-block: -0.22em var(--space-8);
}

.who__body p {
  color: var(--color-white);
  font-size: var(--size-body-01);
  line-height: var(--leading-tight);
}

.who__body p + p {
  margin-top: 1em;
}

/* The mockup highlights a phrase in each paragraph. <em> carries the emphasis
   semantically; the italics are turned off because the mark here is colour. */
.who__body em {
  color: var(--color-green);
  font-style: normal;
}

@media (min-width: 768px) {
  .who {
    padding-block: var(--space-13);
  }
}

@media (min-width: 1024px) {
  .who {
    padding-block: calc(var(--space-12) * 2);
  }
  .who__body {
    grid-column: 1 / 9;
  }
  .who__title {
    margin-bottom: var(--space-9);
  }
  .who__body p {
    /* 50px at 1920, scaled by width so it never outgrows the column between
       1024 and 1920. The mockup only specifies the 1920 end. */
    font-size: clamp(22px, 2.6vw, 50px);
    font-weight: var(--weight-medium);
    line-height: 1.16;
  }
}

/* --------------------------------------------------------------------------
   Our values
   Three pills, each at its own angle and type scale — a composed graphic
   rather than a repeating component, so each one is styled individually.
   -------------------------------------------------------------------------- */

.values {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: var(--space-8);
  padding-block: var(--space-11);
  padding-inline: var(--grid-margin);
  isolation: isolate;
  overflow: hidden;
  background: var(--color-grey-200);
}

.values__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.values__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The label is white on a pale image — 1.4:1 where the bubbles are brightest.
   A soft scrim behind just that line lifts it past AA without touching the
   rest of the picture. */
.values__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    30% 16% at 50% 24%,
    rgba(1, 43, 38, 0.72) 0%,
    rgba(1, 43, 38, 0.4) 45%,
    rgba(1, 43, 38, 0) 78%
  );
}

/* A real <h2> for document structure, but the mockup sets it in body type,
   sentence case — so the display defaults from base.css are undone here. */
.values__label {
  color: var(--color-white);
  margin: 0;
  text-align: center;
  font-family: var(--font-body);
  font-size: var(--size-body-01);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  letter-spacing: var(--tracking-body);
  text-transform: none;
}

.values__list {
  display: grid;
  justify-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0;
  padding: 0;
}

.value {
  display: grid;
  place-items: center;
  width: fit-content;
  max-width: 100%;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  /* Boldonse's caps are 1.19em; anything tighter clips them, so the line box
     is set to exactly the cap height and the pill is padded from there. */
  line-height: 1.19;
  text-transform: uppercase;
  text-align: center;
  text-wrap: balance;
}

.value > span {
  display: block;
}

.value--cooperation {
  background: var(--color-white);
  color: var(--color-forest);
  font-size: var(--size-h04);
}

.value--innovation {
  background: var(--color-orange);
  color: var(--color-forest);
  border-radius: var(--radius-lg);
  font-size: var(--size-h02);
}

.value--responsibility {
  background: var(--color-forest);
  color: var(--color-lime);
  font-size: var(--size-h02);
}

@media (min-width: 1024px) {
  .values {
    gap: var(--space-11);
    padding-block: calc(var(--space-12) * 2.9);
  }
  .values__label {
    font-size: clamp(20px, 1.88vw, 36px);
  }
  .values__list {
    /* Layout gaps; the rotations then overlap the pills' painted boxes, which
       is what the mockup shows. */
    gap: var(--space-5);
  }
  /* One padding for all three; only the type size changes. That lands the
     pills at the mockup's 142 / 200 / 200 heights on its own. */
  /* One padding for all three; only the type size changes. That lands the
     pills at the mockup's 142 / 200 / 200 heights at 1920 on its own. Sizes
     are width-relative so the widest pill always clears the viewport. */
  .value {
    padding: clamp(16px, 2.08vw, 40px) clamp(24px, 3.33vw, 64px);
  }
  .value--cooperation {
    font-size: clamp(22px, 2.71vw, 52px);
  }
  .value--innovation {
    font-size: clamp(34px, 5.21vw, 100px);
    border-radius: 32px;
    transform: rotate(-5.75deg);
    z-index: 1;
  }
  .value--responsibility {
    font-size: clamp(34px, 5.21vw, 100px);
    margin-top: var(--space-9);
    transform: rotate(4.03deg);
    z-index: 2;
  }
}

/* --------------------------------------------------------------------------
   Dark band — mission/vision and the numbers wheel share one ground and the
   green corner glow, the same way the homepage's news and projects do.
   -------------------------------------------------------------------------- */

.about-dark {
  position: relative;
  background-color: var(--color-ink-deep);
  background-image: radial-gradient(
    82% 88% at -6% -4%,
    rgba(24, 169, 93, 0.95) 0%,
    rgba(24, 169, 93, 0.34) 27%,
    rgba(24, 169, 93, 0) 60%
  );
  isolation: isolate;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Mission & vision
   -------------------------------------------------------------------------- */

.mission {
  padding-block: var(--space-11);
}

.mission__title {
  color: var(--color-lime);
  grid-column: 1 / -1;
  margin-block: -0.22em var(--space-8);
}

.mission__blocks {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--space-11);
}

.mission__label {
  color: rgba(255, 255, 255, 0.55);
  font-weight: var(--weight-regular);
  margin-bottom: var(--space-3);
}

.mission__block p {
  color: var(--color-white);
  font-size: var(--size-body-01);
  line-height: var(--leading-tight);
}

@media (min-width: 768px) {
  .mission {
    padding-block: var(--space-13);
  }
}

@media (min-width: 1024px) {
  .mission {
    padding-block: calc(var(--space-12) * 1.7);
  }
  .mission__title {
    grid-column: 1 / 6;
    margin-bottom: 0;
  }
  .mission__blocks {
    grid-column: 8 / -1;
    gap: var(--space-12);
  }
  .mission__block p {
    font-size: clamp(18px, 1.56vw, 30px);
    line-height: 1.26;
  }
}

/* --------------------------------------------------------------------------
   CVR in numbers
   A vertical wheel: the active statistic is sharp, its neighbours are blurred
   and clipped so the column reads as something you can move through.
   -------------------------------------------------------------------------- */

.numbers {
  padding-block: var(--space-11) var(--space-13);
  text-align: center;
}

.numbers__title {
  color: var(--color-lime);
  margin-block: -0.22em var(--space-9);
}

.numbers__stage {
  display: grid;
  justify-items: center;
  gap: var(--space-6);
}

.numbers__aside {
  color: var(--color-white);
  margin: 0;
}

.numbers__wheel {
  --stat-h: 150px;
  --window-h: 230px;
  position: relative;
  width: min(100%, 660px);
  max-width: 100%;
  height: var(--window-h);
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.03);
}

/* The window is taller than one stat, so the neighbours stay half-visible.
   The second term re-centres the active stat inside that taller window. */
.numbers__track {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform var(--duration-slow) var(--ease);
  transform: translateY(calc(
    var(--i, 0) * var(--stat-h) * -1 + (var(--window-h) - var(--stat-h)) / 2
  ));
}

.stat {
  display: grid;
  place-items: center;
  height: var(--stat-h);
}

.stat__value {
  font-size: clamp(64px, 17vw, 110px);
  font-weight: 800;
  line-height: 1;
  color: var(--color-white);
  letter-spacing: -0.02em;
  transition: filter var(--duration-slow) var(--ease),
              opacity var(--duration-slow) var(--ease);
}

/* Neighbours read as out-of-focus rather than simply faded */
.stat:not(.is-active) .stat__value {
  filter: blur(7px);
  opacity: 0.75;
}

.numbers__next {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: var(--space-9);
  border: 1px solid var(--color-lime);
  border-radius: 50%;
  color: var(--color-lime);
  background: transparent;
  transition: background-color var(--duration-base) var(--ease),
              color var(--duration-base) var(--ease);
}

.numbers__next svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.numbers__next:hover,
.numbers__next:focus-visible {
  background: var(--color-lime);
  color: var(--color-ink);
}

@media (min-width: 1024px) {
  .numbers {
    padding-block: calc(var(--space-12) * 1.45) calc(var(--space-12) * 1.75);
  }
  .numbers__title {
    margin-bottom: var(--space-12);
  }
  .numbers__next {
    margin-top: var(--space-10);
  }
  .numbers__stage {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--space-9);
  }
  .numbers__aside {
    font-size: clamp(20px, 2.6vw, 50px);
    line-height: 1.2;
  }
  .numbers__aside--left {
    justify-self: start;
    text-align: left;
  }
  .numbers__aside--right {
    justify-self: end;
    text-align: right;
  }
  .numbers__wheel {
    --stat-h: clamp(110px, 11.25vw, 216px);
    --window-h: clamp(170px, 17.7vw, 340px);
    /* A definite width: inside an auto-sized grid column, min(100%, …) has
       nothing to resolve against and collapses. */
    width: min(660px, 44vw);
  }
  .stat__value {
    /* The mockup's numerals are a condensed face the system doesn't carry, so
       this is sized to the cap height instead and kept clear of the window. */
    font-size: clamp(64px, 11.2vw, 215px);
  }
}
