/* ==========================================================================
   Magengrim — about
   Carries the home page's language onto the interior page: the same section
   head (title + mark, note and pill opposite), the same white card with its
   short keyline, the same ink/purple palette from tokens.css.
   Everything is scoped under .mg-ab because the theme ships global rules for
   `button`, `a` and `hr` that out-specify a lone component class.
   ========================================================================== */

/* --- Section head ------------------------------------------------------- */

/* Same construction as the solutions head, so the two pages cadence alike. */
.mg-ab .mg-ab__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px 40px;
  margin-bottom: clamp(26px, 3.4vw, 44px);
}

.mg-ab .mg-ab__title {
  display: flex;
  align-items: center;
  gap: 0.32em;
  margin: 0;
  font-family: var(--mg-display);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--mg-ink);
}

.mg-ab .mg-ab__mark {
  flex: none;
  width: 0.62em;
  height: 0.62em;
  stroke-width: 2.2;
  transform: rotate(-45deg);
}

.mg-ab .mg-ab__meta {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-bottom: 6px;
}

.mg-ab .mg-ab__note {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--mg-faint);
  max-width: 30ch;
  text-align: right;
}

.mg-ab .mg-ab__pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 18px;
  border: 1px solid var(--mg-line);
  border-radius: 999px;
  background: transparent;
  font-family: var(--mg-body);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  color: var(--mg-ink);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 260ms var(--mg-ease),
    border-color 260ms var(--mg-ease),
    color 260ms var(--mg-ease);
}

.mg-ab .mg-ab__pill svg {
  flex: none;
  transition: transform 260ms var(--mg-ease);
}

.mg-ab .mg-ab__pill:hover,
.mg-ab .mg-ab__pill:focus-visible {
  background: var(--mg-ink);
  border-color: var(--mg-ink);
  color: #ffffff;
}

.mg-ab .mg-ab__pill:hover svg,
.mg-ab .mg-ab__pill:focus-visible svg {
  transform: translate(2px, -2px);
}

/* --- Section shell ------------------------------------------------------ */

.mg-ab {
  padding: clamp(56px, 7vw, 104px) 0;
}

.mg-ab--alt {
  background: var(--mg-bg-alt);
}

.mg-ab .mg-ab__inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Card grid ---------------------------------------------------------- */

.mg-ab .mg-ab__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: var(--mg-gap);
  align-items: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg-ab .mg-ab__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 30px 28px 26px;
  border-radius: var(--mg-radius);
  background: var(--mg-surface);
  box-shadow: 0 1px 2px rgba(13, 11, 26, 0.05);
  transition:
    box-shadow 320ms var(--mg-ease),
    transform 320ms var(--mg-ease);
}

.mg-ab .mg-ab__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -14px rgba(13, 11, 26, 0.28);
}

.mg-ab .mg-ab__cardtitle {
  margin: 0;
  font-family: var(--mg-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--mg-ink);
}

/* The same short keyline the solutions cards use. */
.mg-ab .mg-ab__rule {
  width: 26px;
  height: 0;
  margin: 18px 0;
  border: 0;
  border-top: 1px solid rgba(13, 11, 26, 0.32);
}

.mg-ab .mg-ab__cardtext {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.68;
  color: var(--mg-muted);
}

/* --- People ------------------------------------------------------------- */

.mg-ab .mg-ab__people {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--mg-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg-ab .mg-ab__person {
  display: flex;
  flex-direction: column;
  border-radius: var(--mg-radius);
  background: var(--mg-surface);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(13, 11, 26, 0.05);
  transition:
    box-shadow 320ms var(--mg-ease),
    transform 320ms var(--mg-ease);
}

.mg-ab .mg-ab__person:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -16px rgba(13, 11, 26, 0.3);
}

.mg-ab .mg-ab__portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    linear-gradient(160deg, var(--mg-purple) 0%, var(--mg-indigo) 100%);
}

.mg-ab .mg-ab__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.mg-ab .mg-ab__personbody {
  padding: 20px 22px 24px;
}

.mg-ab .mg-ab__personname {
  margin: 0;
  font-family: var(--mg-display);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--mg-ink);
}

.mg-ab .mg-ab__personrole {
  margin: 7px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--mg-faint);
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  .mg-ab .mg-ab__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .mg-ab .mg-ab__meta {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding-bottom: 0;
  }

  .mg-ab .mg-ab__note {
    text-align: left;
    max-width: 32ch;
  }

  .mg-ab .mg-ab__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mg-ab .mg-ab__people {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .mg-ab .mg-ab__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .mg-ab .mg-ab__note {
    max-width: 40ch;
  }

  .mg-ab .mg-ab__people {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mg-ab .mg-ab__card,
  .mg-ab .mg-ab__person,
  .mg-ab .mg-ab__pill,
  .mg-ab .mg-ab__pill svg {
    transition: none;
  }

  .mg-ab .mg-ab__card:hover,
  .mg-ab .mg-ab__person:hover {
    transform: none;
  }
}

/* ==========================================================================
   Founders
   A dark band: an oversized wordmark bled off both edges, the founders'
   photographs as one wide plate, a ring badge breaking its right edge, and
   the two biographies beneath.
   ========================================================================== */

.mg-fnd {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 7vw, 96px);
  background: #09080f;
  color: #ffffff;
}

.mg-fnd .mg-fnd__inner {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Wordmark ----------------------------------------------------------- */

/* Deliberately wider than the viewport: the word is cropped at both edges, so
   it reads as a graphic band rather than as a heading. `overflow: hidden` on
   the section does the cropping. */
.mg-fnd .mg-fnd__wordmark {
  margin: 0 0 clamp(26px, 3.5vw, 48px);
  font-family: var(--mg-display);
  font-size: 19.5vw;
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.045em;
  text-align: center;
  white-space: nowrap;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  user-select: none;
}

/* The visible wordmark is decorative, so the real heading is carried here for
   assistive technology and search. */
.mg-fnd .mg-fnd__srtitle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Photo plate -------------------------------------------------------- */

.mg-fnd .mg-fnd__stage {
  position: relative;
  max-width: 640px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

/* The reference runs a single group photograph. There are two separate
   portraits here, so they share one frame and read as one plate. */
.mg-fnd .mg-fnd__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 6px;
  overflow: hidden;
}

.mg-fnd .mg-fnd__photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #14121f;
}

.mg-fnd .mg-fnd__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* --- Ring badge --------------------------------------------------------- */

/* Breaks the plate's right edge, the way the reference's does. */
.mg-fnd .mg-fnd__badge {
  position: absolute;
  right: 0;
  bottom: 22%;
  transform: translateX(82%);
  text-align: center;
  pointer-events: none;
}

.mg-fnd .mg-fnd__badgetext {
  display: inline-block;
  padding: 0.62em 1.15em;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-family: var(--mg-display);
  font-size: clamp(0.95rem, 1.6vw, 1.35rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: #ffffff;
}

.mg-fnd .mg-fnd__tagline {
  margin: 9px 0 0;
  font-size: clamp(0.68rem, 1vw, 0.78rem);
  line-height: 1.4;
  color: #9a7cf5;
}

/* --- Biographies -------------------------------------------------------- */

.mg-fnd .mg-fnd__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 72px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg-fnd .mg-fnd__person {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.mg-fnd .mg-fnd__arrow {
  width: 32px;
  height: 12px;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.5);
}

.mg-fnd .mg-fnd__name {
  margin: 0;
  font-family: var(--mg-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #9a7cf5;
}

.mg-fnd .mg-fnd__role {
  margin: 6px 0 0;
  font-size: 0.66rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.mg-fnd .mg-fnd__bio {
  margin: 20px 0 0;
  font-size: 0.82rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.62);
  max-width: 46ch;
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  .mg-fnd .mg-fnd__stage {
    max-width: 100%;
  }

  .mg-fnd .mg-fnd__badge {
    position: static;
    transform: none;
    margin-top: 22px;
    text-align: left;
  }

  .mg-fnd .mg-fnd__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
}

@media (max-width: 560px) {
  .mg-fnd .mg-fnd__person {
    gap: 14px;
  }

  .mg-fnd .mg-fnd__arrow {
    width: 22px;
  }
}
