/* ==========================================================================
   About — "O nas"
   On its own raised panel, like the services. The approach in four short
   principles (numbered in the accent, like the capabilities), then the people
   behind it: only real, confirmed people, with marked placeholders until the
   name, role, bio and photo are provided (src/site.mjs).
   ========================================================================== */

.about {
  isolation: isolate;
  overflow: hidden;
}

/* the dot field again, this time from the lower left */
.about::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: -1;
  width: min(40rem, 70%);
  height: 28rem;
  background: radial-gradient(circle, rgb(255 255 255 / 0.09) 0 1px, transparent 1.5px) 0 100% / 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 0% 100%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 75% at 0% 100%, #000, transparent 70%);
  pointer-events: none;
}

.about__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.about__header .section-lead {
  margin-top: 0;
}

/* ---- Principles --------------------------------------------------------------------- */

.about__principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.5rem clamp(1.5rem, 3vw, 3rem);
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
}

.about__principle {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
}

.about__number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

.about__principle-title {
  margin-top: 0.75rem;
  font-size: 1.25rem;
  font-weight: 400;
  font-variation-settings: "opsz" 32;
  line-height: 1.25;
  text-wrap: balance;
}

.about__principle-text {
  margin-top: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  text-wrap: pretty;
}

/* ---- The people ----------------------------------------------------------------------- */

.about__team {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2rem clamp(2rem, 6vw, 6rem);
  align-items: start;
  margin-top: clamp(4rem, 3rem + 4vw, 7rem);
  padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  border-top: 1px solid var(--color-line-soft);
}

.about__team-title {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  font-weight: 400;
  font-variation-settings: "opsz" 32;
  line-height: 1.15;
}

.about__team-lead {
  max-width: 30rem;
  margin-top: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  text-wrap: pretty;
}

/* one card per person: the same surface as the example cards */
.person {
  display: grid;
  grid-template-columns: clamp(6.5rem, 5rem + 5vw, 9.5rem) minmax(0, 1fr);
  gap: 1.5rem clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border: 1px solid var(--color-line-soft);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, var(--color-surface-2), var(--color-surface-1) 70%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.07);
}

.person__photo {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.75rem;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--color-line-soft);
  border-radius: 1rem;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.05), rgb(255 255 255 / 0.01));
}

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

.person__icon {
  width: 46%;
  fill: rgb(255 255 255 / 0.55);
}

/* the placeholder's label, small enough to fit the tile */
.person__todo {
  padding-inline: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: center;
}

.person__name {
  font-size: 1.375rem;
  font-weight: 400;
  font-variation-settings: "opsz" 32;
  line-height: 1.2;
}

.person__role {
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: var(--color-text-subtle);
}

.person__bio {
  margin-top: 1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  text-wrap: pretty;
}

.person__bio p + p {
  margin-top: 0.75rem;
}

.person__link {
  margin-top: 1.25rem;
}

/* ---- Tablet and phone --------------------------------------------------------- */

@media (max-width: 1023.98px) {
  .about__header,
  .about__team {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639.98px) {
  .about__principles {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .person {
    grid-template-columns: minmax(0, 1fr);
  }

  .person__photo {
    width: min(9rem, 50%);
  }
}
