/* ==========================================================================
   Magengrim — about
   Carries the home page's language onto the interior page: the same
   near-black ground and grain, the same section head (title + mark, note and
   pill opposite), and the mission and vision as cards in the rail's idiom.
   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 shell ------------------------------------------------------ */

.mg-ab {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 7vw, 104px) 0;
  background: #09080f;
  color: #ffffff;
}

.mg-ab::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../../images/hero-noise.png?v=2") repeat center top / 154px auto;
  opacity: 0.5;
  pointer-events: none;
}

.mg-ab .mg-ab__inner {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Section head ------------------------------------------------------- */

/* Same construction as the What We Build 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: #ffffff;
}

.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.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  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 rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: transparent;
  font-family: var(--mg-body);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1;
  color: #ffffff;
  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: #ffffff;
  border-color: #ffffff;
  color: var(--mg-ink);
}

.mg-ab .mg-ab__pill:hover svg,
.mg-ab .mg-ab__pill:focus-visible svg {
  transform: translate(2px, -2px);
}

/* --- Card grid ---------------------------------------------------------- */

.mg-ab .mg-ab__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* the rail's card: hairline border, dark fill, lifting on hover */
.mg-ab .mg-ab__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #100e17;
  transition:
    border-color 260ms var(--mg-ease),
    transform 260ms var(--mg-ease);
}

.mg-ab .mg-ab__card:hover {
  border-color: rgba(154, 124, 245, 0.45);
  transform: translateY(-3px);
}

.mg-ab .mg-ab__cardtitle {
  margin: 0;
  font-family: var(--mg-display);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* the short keyline, in lilac on the dark ground */
.mg-ab .mg-ab__rule {
  width: 26px;
  height: 0;
  margin: 18px 0;
  border: 0;
  border-top: 2px solid #9a7cf5;
}

.mg-ab .mg-ab__cardtext {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.66);
}

/* --- 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);
  }
}

@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;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mg-ab .mg-ab__card,
  .mg-ab .mg-ab__pill,
  .mg-ab .mg-ab__pill svg {
    transition: none;
  }

  .mg-ab .mg-ab__card:hover {
    transform: none;
  }
}

/* ==========================================================================
   Founders
   Set in the home page's language: the same near-black ground as What We
   Build, a display heading with the arrow mark, and
   the two founders as cards in the rail's idiom, portrait beside name and
   biography.
   ========================================================================== */

.mg-fnd {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 7vw, 104px) 0 clamp(56px, 7vw, 96px);
  background: #09080f;
  color: #ffffff;
}

.mg-fnd::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../../images/hero-noise.png?v=2") repeat center top / 154px auto;
  opacity: 0.5;
  pointer-events: none;
}

.mg-fnd .mg-fnd__inner {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Heading ------------------------------------------------------------ */

.mg-fnd .mg-fnd__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: end;
  margin-bottom: clamp(30px, 4vw, 52px);
}

.mg-fnd .mg-fnd__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: #ffffff;
}

.mg-fnd .mg-fnd__mark {
  flex: none;
  width: 0.62em;
  height: 0.62em;
  stroke-width: 2.2;
  transform: rotate(-45deg);
}

.mg-fnd .mg-fnd__note {
  margin: 0;
  max-width: 44ch;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

/* --- Cards -------------------------------------------------------------- */

.mg-fnd .mg-fnd__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.mg-fnd .mg-fnd__person {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(18px, 2.4vw, 32px);
  align-items: center;
  padding: clamp(16px, 1.8vw, 22px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #100e17;
  transition: border-color 260ms var(--mg-ease), transform 260ms var(--mg-ease);
}

.mg-fnd .mg-fnd__person:hover {
  border-color: rgba(154, 124, 245, 0.45);
  transform: translateY(-3px);
}

.mg-fnd .mg-fnd__photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: #14121f;
}

.mg-fnd .mg-fnd__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.mg-fnd .mg-fnd__body {
  min-width: 0;
  padding-right: clamp(0px, 1vw, 10px);
}

.mg-fnd .mg-fnd__role {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a7cf5;
}

.mg-fnd .mg-fnd__name {
  margin: 0 0 14px;
  font-family: var(--mg-display);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.mg-fnd .mg-fnd__bio {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.66);
}

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

@media (max-width: 1024px) {
  .mg-fnd .mg-fnd__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .mg-fnd .mg-fnd__person {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  }
}

@media (max-width: 767px) {
  .mg-fnd .mg-fnd__head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .mg-fnd .mg-fnd__person {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .mg-fnd .mg-fnd__photo {
    aspect-ratio: 4 / 4.2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mg-fnd .mg-fnd__person {
    transition: none;
  }

  .mg-fnd .mg-fnd__person:hover {
    transform: none;
  }
}
