/* ==========================================
   About — two columns on desktop (text 444px + 700px photo), stacked on mobile.
   Base reset and body come from ../styles.css.
   ========================================== */
.about {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1344px; /* 1280 content + 32px gutters */
  margin: 0 auto;
  padding: 40px 32px 120px;
}

.back {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: 36px;
  height: 36px;
  border-radius: 28px;
  background-color: #2c2c2c;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s;
}

.back:hover {
  background-color: #3a3a3a;
}

.back img {
  width: 12.833px;
  height: 12.833px;
}

.about-layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 40px;
  flex-shrink: 0;
  width: 444px;
  padding: 20px 8px 0;
}

.about-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-labeled {
  gap: 8px;
}

.about-name {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 500;
  font-size: 36px;
  line-height: 1.1;
}

.about-title {
  max-width: 299px;
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.1;
}

.about-label {
  font-family: 'Kode Mono', monospace;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.5;
  color: #7b7b7b;
  text-transform: uppercase;
}

.about-body {
  font-family: 'Roboto Condensed', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
}

/* Paragraphs are separated by one blank line, as in the design */
.about-paragraphs p + p {
  margin-top: 1.5em;
}

.about-exp-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-exp-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.about-exp-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  width: 120px;
  padding-top: 4px;
}

.about-exp-name {
  font-weight: 500;
  font-size: 18px;
  line-height: 1.1;
}

.about-exp-role {
  font-size: 14px;
  line-height: 1;
  color: #7b7b7b;
}

.about-exp-desc {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  line-height: 1.5;
  color: #7b7b7b;
}

.about-photo {
  position: sticky;
  top: 40px;
  flex: 0 1 700px;
  min-width: 0;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
}

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

/* ==========================================
   Mobile — single column, photo after the intro
   ========================================== */
@media (max-width: 899px) {
  .about {
    padding: 20px 20px 80px;
  }

  .about-layout {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  /* Let the blocks and the photo be ordered as one list */
  .about-text {
    display: contents;
  }

  .about-intro { order: 0; }
  .about-photo { order: 1; position: static; flex: none; width: 100%; }
  .about-quote,
  .about-labeled { order: 2; }

  .about-name {
    font-size: 32px;
  }
}
