/* =========================================================
   about.css — About Us page specific styles
   Reuses tokens from style.css + shared SP/SI/TP patterns
   ========================================================= */

/* -----------------------------------------------------
   SECTION: Why HyperBlox + Story cards (light bg)
   ----------------------------------------------------- */
.why-story {
  background: #fff;
  padding: 96px 0 0;
}

.why-story__top {
  display: grid;
  grid-template-columns: minmax(0, 499px) minmax(0, 1fr);
  gap: 80px;
  align-items: stretch;
}

.why-story__left {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.why-story__heading {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-story__title {
  font-size: 40px;
  line-height: 1.2;
  color: #000;
  font-weight: 400;
  margin: 0;
}

.why-story__title strong {
  font-weight: 600;
}

/* Quote sits inside the tall dark particle-network image (Figma 13025),
   anchored toward the lower portion of the image. */
.why-story__quote {
  position: relative;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #0a023b;
  flex: 1 1 auto;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
}

.why-story__quote-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}

.why-story__quote::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 0, 78, 0.15) 0%, rgba(20, 0, 78, 0.85) 100%);
}

.why-story__quote-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 56px 60px;
}

.why-story__quote-icon {
  width: 33px;
  height: 33px;
  flex-shrink: 0;
}

.why-story__quote-text {
  font-style: italic;
  font-size: 20px;
  line-height: 1.3;
  color: #fff;
  margin: 0;
}

.why-story__quote-author {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}

.why-story__quote-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.story-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.story-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 14px 41.25px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.story-card__icon {
  width: 40px;
  height: 40px;
  display: block;
  flex-shrink: 0;
}

.story-card__icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.story-card__title {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: #181819;
  margin: 0;
}

.story-card__body {
  font-size: 18px;
  line-height: 1.4;
  color: #181819;
  margin: 0;
}

/* Responsive: collapse the two-column grid so the testimonial stacks above
   the story cards instead of squeezing into a fixed 499px column. */
@media (max-width: 1024px) {
  .why-story {
    padding-top: 64px;
  }

  .why-story__top {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .why-story__left {
    gap: 32px;
  }

  .why-story__quote {
    min-height: 360px;
  }
}

@media (max-width: 600px) {
  .why-story__title {
    font-size: 30px;
  }

  .why-story__quote {
    min-height: 300px;
  }

  .why-story__quote-inner {
    padding: 36px 28px;
  }

  .why-story__quote-text {
    font-size: 18px;
  }
}

/* -----------------------------------------------------
   SECTION: Framework Principles (dark with bg image)
   ----------------------------------------------------- */
.principles {
  position: relative;
  margin-top: 88px;
  padding: 90px 0;
  overflow: hidden;
  isolation: isolate;
  background-color: #07093a;
}

/* Real dark network photo background (Figma 16800) with a darkening tint. */
.principles__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.principles::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: -1;
}

.principles__title {
  font-size: 40px;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  font-weight: 400;
  margin: 0 0 48px;
}

.principles__title strong {
  font-weight: 500;
}

.principles__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.principle-card {
  padding: 49px 32px;
  border: 0.5px solid #fff;
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  color: #fff;
}

.principle-card + .principle-card {
  border-left: none;
}

.principle-card__icon {
  width: 48px;
  height: 48px;
  display: block;
  flex-shrink: 0;
}

.principle-card__icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.principle-card__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.08;
  margin: 0;
  color: #fff;
}

.principle-card__body {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
  color: #fff;
}

/* -----------------------------------------------------
   SECTION: OUR MISSION (3 image cards)
   ----------------------------------------------------- */
.mission {
  background: #fff;
  padding: 73px 0 73px;
}

.mission__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 75px;
}

.mission__title {
  font-size: 40px;
  line-height: 1.2;
  color: #000;
  font-weight: 400;
  margin: 0;
  max-width: 1151px;
}

.mission__title strong {
  font-weight: 600;
}

.mission__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  align-items: start;
}

/* Mission cards reuse the home page "deliver-card" reveal effect
   (image shrinks on hover/tap, white body panel fades in). Only tweak
   here is rounded corners to match the About design. */
.mission__grid .deliver-card {
  border-radius: 8px;
}

/* Default-state title gets a circular arrow affordance to its right. */
.mission__grid .deliver-card__title--default {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mission-card__arrow {
  flex-shrink: 0;
  color: #fff;
}

/* Hide the repeated title in the hover body — the word already shows over
   the image in the default state (QC: remove titles on hover). */
.mission__grid .deliver-card__title--hover {
  display: none;
}

/* -----------------------------------------------------
   SECTION: OUR MODEL (text + circular logo image)
   ----------------------------------------------------- */
.model {
  background: #f6f6f6;
  padding: 73px 0;
}

.model__grid {
  display: grid;
  grid-template-columns: minmax(0, 640px) minmax(0, 510px);
  gap: 90px;
  align-items: stretch;
}

.model__left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.model__title {
  font-size: 40px;
  line-height: 1.2;
  color: #000;
  font-weight: 400;
  margin: 0;
  max-width: 640px;
}

.model__title strong {
  font-weight: 600;
}

.model__paragraphs {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 12px;
}

.model__paragraphs p {
  font-size: 18px;
  line-height: 1.4;
  color: #50505e;
  margin: 0;
}

.model__visual {
  position: relative;
  background: #0a023b;
  border-radius: 8px;
  overflow: hidden;
  min-height: 595px;
}

.model__visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -----------------------------------------------------
   SECTION: WHAT SETS US APART
   ----------------------------------------------------- */
.sets-apart {
  background: #fff;
  padding: 66px 0;
}

.sets-apart__grid {
  display: grid;
  grid-template-columns: minmax(0, 553px) minmax(0, 608px);
  gap: 80px;
  align-items: start;
}

.sets-apart__left {
  display: flex;
  flex-direction: column;
  gap: 59px;
}

.sets-apart__head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sets-apart__title {
  font-size: 40px;
  line-height: 1.2;
  color: #000;
  font-weight: 400;
  margin: 0;
}

.sets-apart__title strong {
  font-weight: 600;
}

.sets-apart__photo {
  border-radius: 8px;
  overflow: hidden;
  height: 367px;
}

.sets-apart__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sets-apart__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sets-item {
  border-bottom: 1px solid #c4c4c4;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sets-item__head {
  display: flex;
  gap: 18px;
  align-items: center;
}

.sets-item__icon {
  width: 48px;
  height: 48px;
  border-radius: 7.29px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sets-item__icon--cyan { background: #39cdd8; }
.sets-item__icon--green { background: #92d335; }
.sets-item__icon--dark { background: #303d48; }
.sets-item__icon--yellow { background: #ffde1f; }

.sets-item__icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.sets-item__num {
  font-size: 32px;
  font-weight: 600;
  color: #000;
  line-height: 1.2;
}

.sets-item__copy {
  font-size: 18px;
  line-height: 1.4;
  color: #50505e;
  margin: 0;
}

.sets-item__copy strong {
  color: #000;
  font-weight: 600;
}

/* -----------------------------------------------------
   SECTION: CTA #1 (Let's Build the Future...)
   ----------------------------------------------------- */
.cta-narrow {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #e9e9e9;
  min-height: 516px;
  display: flex;
  align-items: center;
}

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

.cta-narrow__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-narrow__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 9, 58, 0.85) 0%, rgba(7, 9, 58, 0.55) 60%, rgba(7, 9, 58, 0) 100%);
}

.cta-narrow__inner {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 80px 0;
  color: #fff;
}

.cta-narrow__title {
  font-size: 40px;
  line-height: 1.2;
  color: #fff;
  font-weight: 400;
  margin: 0;
}

.cta-narrow__title strong {
  font-weight: 600;
}

.cta-narrow__copy {
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

/* -----------------------------------------------------
   SECTION: Team
   ----------------------------------------------------- */
.team {
  background: #fff;
  padding: 75px 0 48px;
}

.team__head {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 80px;
}

.team__title {
  font-size: 40px;
  line-height: 1.2;
  color: #000;
  font-weight: 400;
  margin: 0;
}

.team__lede {
  font-size: 18px;
  line-height: 1.4;
  color: #181819;
  margin: 0;
  max-width: 1241px;
}

.team__group + .team__group {
  margin-top: 100px;
}

.team__group-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 41px;
  color: #42424d;
  font-size: 24px;
  font-weight: 500;
}

.team__group-label::before {
  content: "";
  width: 2px;
  height: 29px;
  background: #39CDD8;
  display: inline-block;
}

.team__cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.team-card {
  position: relative;
  width: 400px;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  background: #ebebeb;
  flex-shrink: 0;
}

.team-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__label {
  position: absolute;
  left: 0;
  bottom: 0;
  background: #f9f9f9;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 75.75%;
  border-top-right-radius: 26px;
}

.team-card__label::before {
  content: "";
  position: absolute;
  left: -17px;
  bottom: 100%;
  width: 17px;
  height: 50px;
  border-bottom-left-radius: 52px;
  border-bottom: 17px solid #f9f9f9;
  border-left: 17px solid #f9f9f9;
}

.team-card__name {
  font-size: 22px;
  font-weight: 600;
  color: #000;
  margin: 0;
  line-height: 1.4;
}

.team-card__role {
  font-size: 14px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.63);
  line-height: 1.4;
  margin: 0;
}

.team-card__linkedin {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}

.team-card__linkedin img {
  width: 100%;
  height: 100%;
}

/* Eyebrow on dark variant for principles section spacing */
.principles .eyebrow {
  margin: 0 auto 32px;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 30px;
  color: #fff;
}

.principles__head {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hero decorative line graphic (top-right rounded path, Figma vector) */
.sp-hero__deco {
  position: absolute;
  top: -29px;
  right: 0;
  width: 487px;
  height: 487px;
  pointer-events: none;
  opacity: 0.9;
}

/* -----------------------------------------------------
   SECTION: Careers CTA (Exceptional teams...)
   ----------------------------------------------------- */
.careers-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #e9e9e9;
  min-height: 516px;
  display: flex;
  align-items: center;
}

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

.careers-cta__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.careers-cta__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(9, 1, 54, 0.8) 0%, rgba(9, 1, 54, 0) 58%);
}

.careers-cta__inner {
  max-width: 482px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 80px 0;
  color: #fff;
}

.careers-cta__title {
  font-size: 40px;
  line-height: 1.2;
  color: #fff;
  font-weight: 400;
  margin: 0;
}

.careers-cta__title strong {
  font-weight: 600;
}

.careers-cta__copy {
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

.careers-cta__btn {
  display: inline-block;
  background: #39cdd8;
  color: #303d48;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  padding: 15px 20px 16px;
  border-radius: 8px;
  transition: background 160ms ease;
}

.careers-cta__btn:hover {
  background: #2fbac4;
}

/* -----------------------------------------------------
   SECTION: Final CTA banner (Let's Build the Future...)
   ----------------------------------------------------- */
.final-cta {
  background: #fff;
  padding: 72px 0 64px;
}

.final-cta__panel {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 446px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.final-cta__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(5.8px);
  transform: scale(1.05);
  z-index: -1;
}

.final-cta__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0.1) 95%);
  z-index: -1;
}

.final-cta__inner {
  max-width: 878px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 60px 24px;
  color: #fff;
}

.final-cta__title {
  font-size: 48px;
  line-height: 1.2;
  color: #fff;
  font-weight: 500;
  margin: 0;
}

.final-cta__copy {
  font-size: 18px;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

.final-cta__actions {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

/* Team cards are clickable (open profile modal) */
.team-card {
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.team-card:focus-visible {
  outline: 3px solid #1c62cb;
  outline-offset: 3px;
}

/* -----------------------------------------------------
   Team member profile modal (on click)
   ----------------------------------------------------- */
body.team-modal-open {
  overflow: hidden;
}

.team-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.team-modal[hidden] {
  display: none;
}

.team-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.team-modal__card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 8px;
  width: min(1088px, 100%);
  max-height: 88vh;
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  animation: team-modal-in 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

@keyframes team-modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.team-modal__media {
  position: relative;
  overflow: hidden;
  background: #ebebeb;
}

.team-modal__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.team-modal__body {
  position: relative;
  padding: 44px 56px 44px 36px;
  overflow-y: auto;
}

.team-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #181819;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 150ms ease;
}

.team-modal__close:hover {
  background: rgba(0, 0, 0, 0.07);
}

.team-modal__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}

.team-modal__name {
  font-size: 22px;
  font-weight: 600;
  color: #000;
  margin: 0;
  line-height: 1.4;
}

.team-modal__role {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.63);
  margin: 0;
  line-height: 1.4;
}

.team-modal__tag {
  font-style: italic;
  font-size: 14px;
  color: #181819;
  margin: 0 0 20px;
  line-height: 1.4;
}

.team-modal__bio {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.team-modal__bio p {
  font-size: 16px;
  line-height: 1.5;
  color: #181819;
  margin: 0;
}

@media (max-width: 760px) {
  .team-modal__card {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }
  .team-modal__media {
    height: 240px;
  }
  .team-modal__body {
    padding: 28px 24px;
  }
}

/* Breadcrumb strip sits flush under the sticky header (no image gap above it) */
.sp-breadcrumb {
  top: 0;
}

/* TP/SI hero re-use — about hero already styled by sp-hero */

/* =========================================================
   Mobile / responsive — stack the multi-column sections and
   scale headings down (layout only; content unchanged).
   Mirrors the breakpoints used on the other pages.
   ========================================================= */
@media (max-width: 1024px) {
  /* Collapse every two/three-column grid to a single column. */
  .mission__grid,
  .model__grid,
  .principles__grid,
  .sets-apart__grid {
    grid-template-columns: 1fr;
  }

  .mission { padding: 56px 0; }
  .mission__head { margin-bottom: 40px; }

  .model { padding: 56px 0; }
  .model__grid { gap: 40px; }
  /* Dark visual panel goes full-width below the text, at a sane height. */
  .model__visual { min-height: 280px; }

  .sets-apart__grid { gap: 48px; }
  .sets-apart__left { gap: 40px; }

  /* Stacked principle cards each get a full bordered box with spacing. */
  .principles { margin-top: 64px; padding: 64px 0; }
  .principles__grid { gap: 16px; }
  .principle-card { padding: 32px 24px; }
  .principle-card + .principle-card { border-left: 0.5px solid #fff; }
}

@media (max-width: 768px) {
  /* Team cards: fixed 400px boxes overflow narrow screens — make fluid. */
  .team { padding: 56px 0 40px; }
  .team__head { margin-bottom: 48px; }
  .team__group + .team__group { margin-top: 56px; }
  .team__cards { gap: 16px; }
  .team-card {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

@media (max-width: 600px) {
  .mission__title,
  .model__title,
  .sets-apart__title,
  .cta-narrow__title,
  .careers-cta__title,
  .team__title {
    font-size: 30px;
  }

  .final-cta__title { font-size: 32px; }
  .principles__title { font-size: 28px; margin-bottom: 32px; }
  .principle-card__title { font-size: 20px; }
  .principle-card { padding: 28px 22px; }

  .model__visual { min-height: 220px; }

  .cta-narrow,
  .careers-cta { min-height: 0; }
  .cta-narrow__inner,
  .careers-cta__inner { padding: 56px 0; }
}
