/* About page: shorter intro, School Lunch NeRD sticker, and a compact team grid. */

.header-about.about-intro {
  padding-top: 9.5rem;
}

.about-intro .internal-page-header-about {
  grid-row-gap: 1.25rem;
  max-width: 860px;
  margin: 0 auto;
}

.about-intro .about-page-header {
  font-size: clamp(2.25rem, 3.6vw, 3rem);
  text-wrap: balance;
}

.about-lede {
  max-width: 760px;
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* Sticker slapped on the top-right of the intro. */
.about-sticker {
  position: absolute;
  top: -1.5rem;
  right: -9rem;
  width: 130px;
  height: auto;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .2)) drop-shadow(0 1px 1px rgba(0, 0, 0, .15));
  transform: rotate(12deg);
  pointer-events: none;
}

.about-facts {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  margin: .75rem 0 0;
  padding: 0;
  list-style: none;
}

.about-facts li {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  text-align: left;
}

.about-facts strong {
  color: var(--la-orange-text);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.about-facts span {
  max-width: 9rem;
  font-size: .9375rem;
  line-height: 1.3;
}

/* Team grid: six smaller cards per row instead of four big ones. */
.header-about.about-intro + .section-content {
  padding-top: 3.5rem;
}

.about-team-head {
  margin-bottom: 2rem;
  text-align: center;
}

.about-team-head .heading-4 {
  margin: 0 0 .35rem;
}

.about-team-head p {
  margin: 0;
  color: #6b6560;
}

#team .staff-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.75rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

#team .staff-member {
  width: auto;
}

#team .link-block {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

#team .staff-image-wrap {
  height: auto;
  aspect-ratio: 1 / 1.1;
  margin-bottom: .25rem;
}

#team .flex-0 {
  flex-wrap: wrap;
  gap: 0 .3rem;
}

#team .staff-name {
  font-size: 1rem;
  line-height: 1.3;
}

#team .staff-com {
  font-size: 1rem;
}

#team .staff-title {
  font-size: .875rem;
  line-height: 1.35;
  color: #6b6560;
}

@media screen and (max-width: 1279px) {
  .about-sticker {
    right: -1rem;
    top: -3rem;
    width: 110px;
  }

  .about-intro .internal-page-header-about {
    padding-right: 6rem;
    padding-left: 6rem;
  }
}

@media screen and (max-width: 1199px) {
  #team .staff-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media screen and (max-width: 991px) {
  #team .staff-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media screen and (max-width: 767px) {
  .header-about.about-intro {
    padding-top: 7.5rem;
  }

  .about-intro .internal-page-header-about {
    padding-right: 0;
    padding-left: 0;
  }

  .about-sticker {
    position: static;
    order: -1;
    width: 72px;
    margin-bottom: .75rem;
    transform: rotate(8deg);
  }

  .about-lede {
    font-size: 1rem;
  }

  .about-facts {
    flex-direction: column;
    align-items: center;
    gap: .75rem;
  }

  .about-facts li {
    width: 15rem;
  }

  .about-facts span {
    max-width: none;
  }

  #team .staff-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem .75rem;
  }
}

@media screen and (max-width: 479px) {
  #team .staff-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem .6rem;
  }

  #team .staff-name,
  #team .staff-com {
    font-size: .8125rem;
  }

  #team .staff-title {
    font-size: .75rem;
  }

  #team .staff-image-wrap {
    border-radius: .6rem;
  }

  #team .staff-image {
    border-radius: .6rem;
  }
}

/* Name and credentials read as one line of text that wraps naturally. */
#team .staff-name {
  margin-left: 0;
  font-weight: 700;
}

#team .staff-creds {
  font-weight: 500;
  color: #6b6560;
}

.about-team-head .heading-4 {
  font-size: clamp(1.875rem, 2.6vw, 2.25rem);
}

/* Hiring call-out: a short closing band rather than a full screen. */
.about-hiring {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.about-hiring .heading-4 {
  font-size: clamp(1.875rem, 2.6vw, 2.25rem);
}

.about-hiring .section-head-v {
  grid-row-gap: 1rem;
  row-gap: 1rem;
}

/* Intro spacing: label hugs the heading, story paragraphs grouped, facts set apart. */
.about-intro .internal-page-header-about {
  grid-row-gap: 0;
  row-gap: 0;
}

.about-intro .page-title {
  height: auto;
  margin-bottom: .6rem;
}

.about-intro .about-page-header {
  margin-bottom: 1.75rem;
}

.about-lede {
  text-wrap: pretty;
}

.about-lede + .about-lede {
  margin-top: 1rem;
}

.about-facts {
  gap: 0;
  margin-top: 2.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid #e2e2e2;
  border-bottom: 1px solid #e2e2e2;
  width: 100%;
  max-width: 760px;
}

.about-facts li {
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  text-align: center;
  border-left: 1px solid #e2e2e2;
}

.about-facts li:first-child {
  border-left: 0;
}

.about-facts strong {
  font-size: 2.25rem;
}

.about-facts span {
  max-width: none;
}

.header-about.about-intro + .section-content {
  padding-top: 4.5rem;
}

@media screen and (max-width: 767px) {
  .about-facts {
    flex-direction: row;
    align-items: flex-start;
  }

  .about-facts li {
    width: auto;
    padding: 0 .5rem;
  }

  .about-facts strong {
    font-size: 1.75rem;
  }

  .about-facts span {
    font-size: .8125rem;
  }

  .header-about.about-intro + .section-content {
    padding-top: 3rem;
  }
}

/* Four facts: one row on laptops, two by two on phones. */
@media screen and (max-width: 767px) {
  .about-facts {
    flex-wrap: wrap;
    row-gap: 1rem;
  }

  .about-facts li {
    flex: 0 0 50%;
  }

  .about-facts li:nth-child(3) {
    border-left: 0;
  }
}

@media screen and (min-width: 768px) {
  .about-facts {
    max-width: 900px;
  }

  .about-facts span {
    white-space: nowrap;
  }
}

@media screen and (min-width: 768px) {
  .about-facts {
    max-width: 980px;
  }

  .about-facts li {
    padding: 0 1rem;
  }
}

/* About intro, take two: same two-column layout as the home page team section. */
.about-intro .centered-content {
  width: 100%;
}

.about-team-intro {
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

.about-team-intro h1.home-eyebrow {
  margin-top: 0;
  line-height: 1.3;
}

.about-team-intro .home-team-title {
  margin: 0 0 .5rem;
}

.about-team-intro .home-lede + .home-lede {
  margin-top: 1rem;
}

.about-points {
  position: relative;
}

/* Sticker on the top-right corner of the cards. */
.about-points .about-sticker {
  position: absolute;
  top: auto;
  bottom: calc(100% - 1.5rem);
  right: -1rem;
  width: 120px;
  margin: 0;
  transform: rotate(12deg);
}

@media screen and (max-width: 991px) {
  .about-points {
    padding-top: 0;
  }

  .about-points .about-sticker {
    right: .5rem;
    width: 96px;
  }
}

@media screen and (max-width: 767px) {
  .about-points .about-sticker {
    position: absolute;
    order: 0;
    width: 72px;
    bottom: calc(100% - 1rem);
    right: .25rem;
    transform: rotate(10deg);
  }
}

/* Stacked layout: sticker sits on the first card's top-right corner, clear of the story text. */
@media screen and (max-width: 991px) {
  .about-points .about-sticker {
    position: relative;
    bottom: auto;
    right: auto;
    z-index: 1;
    align-self: flex-end;
    width: 84px;
    margin: 0 .5rem -3.25rem 0;
  }

  .about-points .home-point:first-of-type {
    padding-right: 5.5rem;
  }
}

/* Shorter story: cards line up with the bottom of the text, leaving room above for the sticker. */
@media screen and (min-width: 992px) {
  .about-team-intro {
    align-items: end;
  }

  .header-about.about-intro {
    padding-top: 10.5rem;
  }
}

@media screen and (min-width: 992px) and (max-width: 1199px) {
  .about-points .about-sticker {
    width: 92px;
    right: -.5rem;
    bottom: calc(100% - .75rem);
  }
}

/* Four cards: the sticker sits on the right end of the short "22" card. */
@media screen and (min-width: 992px) {
  .about-points .about-sticker {
    top: -2.25rem;
    bottom: auto;
    right: -1rem;
    width: 88px;
  }

  .about-points .home-point:first-of-type {
    padding-right: 6rem;
  }
}


/* Orange heart cursor over the team headshots (desktop only; phones have no cursor). */
#team .staff-image-wrap,
#team .staff-image {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-9.6-9.3C.9 8.3 3 4.5 6.7 4.5c2.1 0 3.6 1.2 4.4 2.5.8-1.3 2.3-2.5 4.4-2.5 3.7 0 5.8 3.8 4.3 7.2C19.5 16.4 12 21 12 21z' fill='%23f08a2c' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 16 16, pointer;
}

/* "Built by School Lunch NeRDs." on one line, same size as the Software/Consulting headlines. */
.about-team-intro .home-team-title {
  font-size: clamp(1.875rem, 2.8vw, 2.5rem);
  line-height: 1.15;
}

@media screen and (min-width: 992px) {
  .about-team-intro .home-team-title {
    white-space: nowrap;
  }
}
