/*
 * About page ("За нас"): page-only refinements.
 * Loaded only on the Narrow About template, after narrow-custom.
 */

/* Team photos are portraits (4:5). The frame has the same ratio, so a photo
   is shown whole and is not cropped. The placeholder keeps the same frame. */
body.narrow-about-page .about-people-portrait {
  aspect-ratio: 4 / 5;
}

body.narrow-about-page .about-people-portrait .about-people-photo {
  object-fit: cover;
  object-position: center top;
}

/* Team cards: the LinkedIn button sits at the right end of the name row. */
body.narrow-about-page .about-people-name-row {
  justify-content: space-between;
}

body.narrow-about-page .about-people-name-row .about-people-linkedin {
  margin-left: auto;
}

/* Inside the button the text and the arrow sit lower, level with the bottom
   edge of the "in" icon (they used to float about 2px above it). */
body.narrow-about-page .about-people-name-row .about-people-linkedin > span:first-of-type {
  position: relative;
  top: 0.15em;
}

body.narrow-about-page .about-people-name-row .about-people-linkedin > span:last-of-type {
  position: relative;
  top: 0.28em;
}

/* BEGIN horizontal team layout trial (2026-10-20).
   The portrait occupies 35% and the profile text 65% of the available columns. */
body.narrow-about-page .about-people-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body.narrow-about-page .about-people-member {
  display: grid;
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  padding: 2.5rem 0;
}

body.narrow-about-page .about-people-member + .about-people-member {
  border-top: 1px solid rgba(255, 247, 236, 0.16);
}

body.narrow-about-page .about-people-member:first-child {
  padding-top: 0;
}

body.narrow-about-page .about-people-member:last-child {
  padding-bottom: 0;
}

body.narrow-about-page .about-people-overview {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1.25rem;
}

body.narrow-about-page .about-people-details {
  min-width: 0;
}

body.narrow-about-page .about-people-portrait {
  width: 100%;
  margin: 0;
}

body.narrow-about-page .about-people-member-heading {
  min-width: 0;
  min-height: 0;
  margin: 0 0 1.5rem;
}

body.narrow-about-page .about-people-name-row {
  justify-content: flex-start;
}

body.narrow-about-page .about-people-name-row .about-people-linkedin {
  margin-left: 0;
}

body.narrow-about-page .about-people-skills {
  margin: 0;
  padding-top: 0.5rem;
}

@media (max-width: 768px) {
  body.narrow-about-page .about-people-member {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
  }
}
/* END horizontal team layout trial. */

/* Selected work supports the studio introduction with concrete examples. */
body.narrow-about-page .about-project-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

body.narrow-about-page .about-project-proof > a {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  padding: 1.5rem;
  border: 1px solid var(--narrow-accent);
  border-radius: 1rem;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.25s ease;
}

body.narrow-about-page .about-project-proof > a:hover,
body.narrow-about-page .about-project-proof > a:focus-visible {
  background-color: rgba(255, 120, 79, 0.08);
}

body.narrow-about-page .about-project-proof strong {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.125rem;
}

body.narrow-about-page .about-project-proof strong span {
  color: var(--narrow-accent);
}

body.narrow-about-page .about-project-proof > a > span {
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  body.narrow-about-page .about-project-proof {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
  }
}

/* Decorative slash matching the site section accents. */
body.narrow-about-page .about-people-name-accent {
  display: inline-block;
  margin-right: 0.4em;
  color: var(--narrow-accent);
  font-size: 1.15em;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  rotate: 356deg;
}


/* Compact mobile story and a deliberate two-line invitation. */
@media (max-width: 768px) {
  body.narrow-about-page .about-snapshot-section,
  body.narrow-about-page .about-description-conclusion { display: none !important; }
  body.narrow-about-page .about-join-section .section-title {
    font-size: clamp(1.5rem, 8vw, 2rem) !important;
    line-height: 1.2;
  }
  body.narrow-about-page .about-join-ending { display: block; white-space: nowrap; }
}

