/* ==========================================================================
   Sonex Branding — About page
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared building blocks for the three story rows (Mission / Vision / Goal)
   -------------------------------------------------------------------------- */

.about-row {
  display: flex;
  gap: 48px;
  padding: 50px 0;
  max-width: var(--container);
  margin-inline: auto;
}

.about-row__media,
.about-row__body {
  flex: 1 1 50%;
  min-width: 0;
  padding: 10px;
}

.about-row__body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.about-row__media {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* The small green kicker above each story heading */
.about-kicker {
  margin: 0;
  font-family: var(--f-display);
  font-size: 37px;
  font-weight: var(--fw-bold);
  line-height: 1em;
  color: var(--c-green-brand);
  text-align: start;
}

.about-row__title {
  margin: 0;
  font-family: var(--f-display);
  font-size: 38px;
  font-weight: var(--fw-bold);
  line-height: 1em;
  color: var(--c-white);
  text-align: start;
}

.about-row__text {
  margin: 0;
  font-family: var(--f-body);
  font-size: 18px;
  font-weight: var(--fw-regular);
  line-height: 1.4em;
  color: var(--c-white);
}

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */

/* The two intro cells are sized in vw and allowed to shrink into the 1330
   track, which is how the original lays this row out. */
.about-intro {
  display: flex;
  gap: 48px;
  padding: 50px 0;
  max-width: var(--container);
  margin-inline: auto;
}

.about-intro__body {
  flex: 0 1 73vw;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  margin: -39px -46px 0 4px;
  padding-left: 9px;
}

.about-intro__title {
  font-family: var(--f-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: 1em;
  color: var(--c-white);
}

.about-intro__text {
  font-family: var(--f-body);
  font-size: 18px;
  font-weight: var(--fw-regular);
  line-height: 1.4em;
  color: var(--c-white);
}

.about-intro__media {
  flex: 0 1 57vw;
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  margin: -16px;
  padding-top: 66px;
}

.about-intro__media img {
  margin: -62px 0 106px;
}

/* Ghost button with a green outline */
.btn-ghost {
  align-self: flex-start;
  display: inline-block;
  font-family: var(--f-display);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  line-height: 1;
  color: var(--c-white);
  background-color: transparent;
  border: 2px solid var(--c-green-brand);
  border-radius: 12px;
  padding: 15px 50px;
  transition: background-color var(--t-fast), color var(--t-fast);
}

.btn-ghost:hover {
  background-color: var(--c-green-brand);
  color: var(--c-white);
}

/* --------------------------------------------------------------------------
   Lottie holders — sized to match the original widget widths
   -------------------------------------------------------------------------- */

.lottie {
  width: 100%;
  margin-inline: auto;
}

/* The trophy and eye are recoloured to green; the mission mark to violet */
.lottie--hue-green {
  filter: hue-rotate(61deg);
}

.lottie--hue-violet {
  filter: hue-rotate(232deg);
}

.lottie--eye {
  width: 53%;
  max-width: 51%;
}

.lottie--mission {
  width: 61%;
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   "Why choose us" — scrolls sideways as the page scrolls down
   -------------------------------------------------------------------------- */

/* The section is made tall so there is scroll distance to consume; the
   viewport inside it sticks while the track slides across. 5000px of scroll
   matches the original's ScrollTrigger end value. */
.horizontal {
  position: relative;
  height: calc(100vh + 5000px);
}

.horizontal__viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.horizontal__track {
  display: flex;
  flex-wrap: nowrap;
  height: 100%;
  will-change: transform;
}

.horizontal-child {
  flex: 1 0 100vw;
  width: 100vw;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Panel 1 — oversized wordmark */
.why-title {
  text-align: center;
  font-family: var(--f-display);
  font-size: 150px;
  font-weight: var(--fw-bold);
  line-height: 1em;
  color: var(--c-green-brand);
}

/* Panel 2 — copy beside three stat rings */
.why-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 0 50px;
  width: 100%;
}

.why-panel__copy {
  display: flex;
  flex-direction: column;
  gap: 30px;
  flex: 1 1 50%;
}

.why-panel__eyebrow {
  margin: 0;
  font-family: var(--f-body);
  font-size: 23px;
  font-weight: var(--fw-semibold);
  line-height: 14px;
  color: var(--c-white);
}

.why-panel__title {
  font-family: var(--f-display);
  font-size: 60px;
  font-weight: var(--fw-bold);
  line-height: 1em;
  color: var(--c-white);
}

.why-panel__text {
  margin: 0;
  font-family: var(--f-body);
  font-size: 20px;
  font-weight: var(--fw-regular);
  line-height: 1.2em;
  color: var(--c-white);
}

.why-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex: 1 1 50%;
}

.why-stat {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
  width: 100%;
}

.why-stat__ring {
  flex: 0 0 185px;
  width: 185px;
  min-height: 185px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: medium solid var(--c-green-brand);
  border-radius: 50%;
  font-family: var(--f-display);
  font-size: 60px;
  font-weight: var(--fw-bold);
  color: var(--c-white);
}

.why-stat__body {
  flex: 0 1 45%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-stat__title {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: var(--fw-bold);
  color: var(--c-green-brand);
}

.why-stat__text {
  margin: 0;
  font-family: var(--f-body);
  font-size: 20px;
  font-weight: var(--fw-regular);
  line-height: 1.2em;
  color: var(--c-white);
}

/* Panel 3 — 2×2 figures beside an image */
.why-figures {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72vh;
  padding: 0 50px;
  width: 100%;
}

.why-figures__grid {
  flex: 1 1 50%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 50px;
  justify-items: center;
}

.why-figure {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.why-figure--bottom {
  justify-content: flex-end;
}

.why-figure--top {
  justify-content: flex-start;
}

.why-figure__num {
  font-family: var(--f-display);
  font-size: 100px;
  font-weight: var(--fw-bold);
  color: var(--c-green-brand);
}

.why-figure__label {
  font-family: var(--f-display);
  font-size: 23px;
  font-weight: var(--fw-bold);
  color: var(--c-white);
}

.why-figures__media {
  flex: 1 1 50%;
}

/* Panel 4 — offset-shadow call to action */
.why-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 85px 150px;
  border: 1px solid var(--c-green-brand);
  border-radius: 25px;
  box-shadow: 5px 5px 0px 1px var(--c-green-brand);
}

.why-cta__eyebrow {
  margin: 0;
  text-align: center;
  font-family: var(--f-body);
  font-size: 20px;
  font-weight: var(--fw-regular);
  line-height: 1em;
  color: var(--c-white);
}

.why-cta__title {
  text-align: center;
  font-family: var(--f-display);
  font-size: 60px;
  font-weight: var(--fw-bold);
  color: var(--c-white);
}

.btn-pill {
  display: inline-block;
  font-family: var(--f-display);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  line-height: 1;
  color: var(--c-green-brand);
  background-color: transparent;
  border: 2px solid currentColor;
  border-radius: 25px;
  padding: 15px 25px;
  transition: background-color var(--t-fast), color var(--t-fast),
              border-color var(--t-fast);
}

.btn-pill:hover,
.btn-pill:focus {
  background-color: var(--c-green-brand);
  color: #FAFAD5;
  border-color: var(--c-green-brand);
}

/* --------------------------------------------------------------------------
   Closing three-up
   -------------------------------------------------------------------------- */

.about-close {
  display: flex;
  gap: 15px;
  padding: 90px 20px;
  max-width: var(--container);
  margin-inline: auto;
}

.about-close__col {
  flex: 1 1 33%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.about-close__col--center {
  justify-content: center;
}

.about-close__eyebrow {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  line-height: 8px;
  color: var(--c-white);
}

.about-close__title {
  font-family: var(--f-display);
  font-size: 60px;
  font-weight: var(--fw-bold);
  line-height: 1em;
  color: var(--c-white);
}

.about-close__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 25px;
}

.about-close__text {
  margin: 0;
  font-family: var(--f-body);
  font-size: 18px;
  font-weight: var(--fw-regular);
  line-height: 1.4em;
  color: var(--c-white);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .about-intro,
  .about-row {
    flex-direction: column-reverse;
  }

  .about-intro__media {
    flex: 1 1 auto;
    margin: 0;
    padding-top: 0;
    justify-content: center;
  }

  .about-intro__body {
    flex: 1 1 auto;
    margin: 0;
  }

  .about-intro__media img {
    width: 100%;
    height: 332px;
    object-fit: cover;
  }

  .about-kicker {
    font-size: 35px;
  }

  .about-row__title {
    font-size: 30px;
  }

  .lottie--eye,
  .lottie--mission {
    width: 79%;
    max-width: 79%;
  }

  .why-title {
    font-size: 96px;
  }

  .why-panel,
  .why-figures {
    flex-direction: column;
    gap: 40px;
    padding: 60px 30px;
  }

  .why-panel__title,
  .why-cta__title,
  .about-close__title {
    font-size: 35px;
    letter-spacing: -0.5px;
  }

  .why-cta {
    padding: 50px 40px;
  }

  .about-close {
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .about-intro,
  .about-row,
  .about-close {
    padding-block: 40px;
  }

  .about-intro__body {
    margin: 53px 0 0;
    padding-left: 0;
  }

  .about-intro__media img {
    margin: 0;
  }

  /* Below tablet the sideways scroll would fight the page, so the panels
     simply stack and scroll normally. */
  .horizontal {
    height: auto;
  }

  .horizontal__viewport {
    position: static;
    height: auto;
    overflow: visible;
  }

  .horizontal__track {
    flex-direction: column;
    transform: none !important;
  }

  .horizontal-child {
    flex: 1 1 auto;
    width: 100%;
    min-height: auto;
    padding-block: 60px;
  }

  .why-title {
    font-size: 53px;
    text-align: start;
  }

  .why-stat {
    flex-direction: column;
    text-align: center;
  }

  .why-stat__body {
    flex: 1 1 auto;
    align-items: center;
    text-align: center;
  }

  .why-figures__grid {
    grid-template-columns: repeat(1, 1fr);
    grid-template-rows: auto;
    gap: 30px;
  }

  .why-figure {
    align-items: center;
    text-align: center;
  }

  .why-figure__num {
    font-size: 64px;
  }

  .why-cta {
    padding: 40px 24px;
  }

  .lottie--eye,
  .lottie--mission {
    width: 73%;
    max-width: 100%;
  }
}
