/* About: the opening art bleeds to the left edge, the two people get equal
   weight with the second set a little lower, then how we work and two
   closing panels: what you'll find here, and a black "Get in touch". */

/* Opening */
.about-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 6vw;
  padding: 0 var(--bl-side) clamp(64px, 6vw, 112px) 0;
}

.about-hero__art {
  position: relative;
  flex: 1.7 1 560px;
  min-width: 0;
  /* the screen under the open header, as site-shell.css sizes it */
  max-height: calc(100svh - max(64px, min(5.25vw + 12px, 7.55vw - 21px, 128px)));
  /* never wider than 1.6:1, so the frame keeps most of the picture's height */
  max-width: calc((100svh - max(64px, min(5.25vw + 12px, 7.55vw - 21px, 128px))) * 1.6);
  aspect-ratio: 4 / 3;
}

.about-hero__art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The column grows with the heading past 1440px, so it breaks as it does there. */
.about-hero__text {
  flex: 1 1 300px;
  min-width: 0;
  max-width: max(24em, min(26.67vw, 560px));
}

.about-hero h1 {
  max-width: 11em;
  margin-top: 22px;
  font-size: clamp(28px, 2.474vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.01em;
  text-wrap: pretty;
}

.about-hero__line {
  max-width: 21em;
  margin-top: 1.4em;
  font-size: clamp(17px, 1.302vw, 27px);
  line-height: 1.4;
  text-wrap: pretty;
}

@media (max-width: 1009px) {
  .about-hero {
    padding: 0 0 clamp(64px, 6vw, 112px);
  }

  .about-hero__text {
    padding: 0 max(20px, 5.5%);
  }
}

/* Who runs BLURSOR */
.about-people {
  padding: clamp(128px, 12vw, 216px) var(--bl-side) 0;
}

.about-people__grid {
  display: grid;
  gap: 36px;
  margin-top: clamp(40px, 4.4vw, 80px);
}

.about-people__details {
  display: grid;
  gap: clamp(56px, 6vw, 96px);
  min-width: 0;
}

.about-person {
  min-width: 0;
}

/* One mark on the left, with both people's details beside it. */
@media (min-width: 900px) {
  .about-people__grid {
    --person-gap: clamp(48px, 8vw, 144px);
    --mark-width: calc((100% - var(--person-gap)) / 2);
    /* The first column is the mark's own width, so the details follow it at
       the same gap. On short screens the heading and the whole mark still fit. */
    grid-template-columns: min(var(--mark-width), calc((100svh - 173px) * 150 / 180)) minmax(0, 1fr);
    column-gap: var(--person-gap);
    align-items: start;
  }
}

/* With room for it, the mark, Alex and Kristina share one row. */
@media (min-width: 1100px) {
  .about-people__grid {
    --person-gap: clamp(40px, 4.4vw, 88px);
    --mark-width: calc((100% - 2 * var(--person-gap)) / 3);
  }

  .about-people__details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--person-gap);
  }

  /* The bios differ in length, so each one fills its card and the links
     below them stay level across the two people. */
  .about-person,
  .about-person__details {
    display: flex;
    flex-direction: column;
  }

  .about-person__details {
    flex: 1;
  }

  .about-person__bio {
    flex: 1;
  }

  .about-person__more {
    align-self: flex-start;
  }
}

.about-person__photo {
  position: relative;
  aspect-ratio: 4 / 5;
}

/* The BLURSOR mark, tiled, with Alex's photo in its upper dot and Kristina's
   in the lower one. */
.about-person__mark {
  aspect-ratio: 150 / 180;
}

.about-person__mark svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.about-person__portrait {
  position: absolute;
  top: 16.667%;
  left: 66.667%;
  width: 26.667%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
}

.about-person__portrait--lower {
  top: 61.111%;
}

@media (max-width: 899px) {
  .about-person__mark {
    width: 50%;
  }
}

.about-person__photo--pending {
  display: grid;
  place-items: center;
  background: var(--bl-sand);
}

.about-person__photo--pending span {
  color: var(--bl-muted);
  font-size: 14px;
  letter-spacing: .04em;
}

.about-person h3 {
  margin-top: 0;
  font-size: clamp(24px, 2.1vw, 36px);
  font-weight: 300;
  line-height: 1.15;
}

.about-person__status {
  margin-top: 10px;
}

.about-person__details {
  max-width: 32em;
  margin-top: clamp(24px, 2.2vw, 36px);
  padding-top: 16px;
  border-top: 1px solid var(--bl-rule);
}

.about-person__label {
  color: var(--bl-muted);
}

.about-person__role {
  margin-top: 10px;
  font-size: clamp(17px, 1.302vw, 24px);
  line-height: 1.4;
  text-wrap: pretty;
}

.about-person__role.to-confirm {
  font-size: clamp(17px, 1.302vw, 24px);
}

.about-person__bio {
  margin-top: 20px;
  color: var(--bl-muted);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.about-person__bio .to-confirm {
  font-size: inherit;
}

.about-person__links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 28px;
  margin-top: 16px;
  font-size: 15px;
  font-weight: 500;
}

.about-person__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--bl-underline);
  text-underline-offset: .25em;
}

/* What you'll find here, and Get in touch */
.about-panels {
  display: flex;
  flex-wrap: wrap;
  margin-top: clamp(128px, 12vw, 216px);
}

.about-find {
  flex: 1 1 64.6%;
  min-width: 0;
  padding: clamp(32px, 4.4vw, 80px) var(--bl-side) clamp(40px, 4.4vw, 80px);
  background: var(--bl-panel);
}

.about-find__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 40px clamp(24px, 3vw, 48px);
  margin-top: clamp(36px, 4vw, 64px);
}

.about-find__item {
  display: flex;
  flex-direction: column;
  padding-top: 16px;
  border-top: 1px solid var(--bl-rule);
}

.about-find__item h3 {
  font-size: clamp(20px, 1.56vw, 26px);
  font-weight: 400;
  line-height: 1.25;
}

.about-find__item p {
  flex: 1 1 auto;
  margin-top: 12px;
  color: var(--bl-muted);
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}

.about-find__item .arrow-link {
  align-self: flex-start;
  margin-top: 14px;
}

.about-touch {
  display: flex;
  flex: 1 1 35.4%;
  flex-direction: column;
  min-width: min(300px, 100%);
  padding: clamp(32px, 4.4vw, 80px) clamp(24px, 4vw, 72px) clamp(40px, 4.4vw, 80px);
  background: var(--bl-black);
  color: var(--bl-black-text);
}

.about-touch__line {
  max-width: 20em;
  margin: 20px 0 32px;
  color: var(--bl-black-muted);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

.about-touch__email {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  margin-top: 28px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--bl-muted);
  color: var(--bl-black-text);
  font-size: clamp(22px, 1.9vw, 32px);
  font-weight: 300;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.about-touch__email:hover {
  border-bottom-color: var(--bl-black-text);
  color: var(--bl-black-text);
  text-decoration: none;
}

.about-touch :focus-visible {
  outline-color: var(--bl-black-text);
}

.about-person__more {
  margin-top: 4px;
}

.about-touch {
  scroll-margin-top: 100px;
}

.about-contact {
  display: grid;
  gap: 20px;
  width: 100%;
  min-width: 0;
}

.about-contact[hidden] {
  display: none !important;
}

.about-contact__field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.about-contact label {
  font-size: 15px;
  line-height: 1.45;
}

.about-contact input,
.about-contact select,
.about-contact textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--bl-black-muted);
  border-radius: 0;
  background: transparent;
  color: var(--bl-black-text);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
}

.about-contact option {
  background: var(--bl-black);
  color: var(--bl-black-text);
}

.about-contact textarea {
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--bl-black-muted) 60%, var(--bl-black));
  resize: vertical;
}

.about-contact__privacy,
.about-contact__status {
  margin: 0;
  color: var(--bl-black-muted);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.about-contact__privacy a {
  color: var(--bl-black-text);
  text-decoration: underline;
  text-underline-offset: .2em;
}

.about-contact .about-contact__submit {
  justify-self: start;
  min-height: 44px;
  border-color: var(--bl-black-text);
  color: var(--bl-black-text);
}

.about-contact__submit:hover {
  background: var(--bl-black-text);
  color: var(--bl-black);
}

.about-contact__submit:disabled {
  opacity: .6;
  cursor: progress;
}

.about-contact__status:empty {
  display: none;
}

.about-contact__status[data-state="error"] {
  color: var(--bl-black-text);
}

.about-contact__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
