/* ==========================================================================
   About page — photo + copy (shares work-body chrome from work.css)
   ========================================================================== */

.about-body .about-stage,
.about-body .work-page__frost {
  opacity: 0;
}

.about-body.loaded .about-stage {
  animation: fadeIn 0.75s ease-out 1.65s both;
}

.about-body.loaded .work-page__frost {
  animation: fadeIn 0.75s ease-out 1.65s both;
}

.about-stage {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(36px, 5vw, 64px);
  width: min(720px, calc(100% - clamp(32px, 6vw, 80px)));
  margin: 0 auto;
  padding:
    var(--work-content-top)
    0
    clamp(120px, 16vh, 180px);
}

.about-photo {
  margin: 0;
  width: 250px;
  max-width: 250px;
  aspect-ratio: 1;
  overflow: hidden;
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 28px);
  width: 100%;
  max-width: 58ch;
}

.about-copy p {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.65;
  color: #2b3a36;
  text-wrap: pretty;
}

.about-experience {
  width: 100%;
  max-width: 58ch;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 3.5vw, 40px);
  padding-top: clamp(8px, 1.5vw, 16px);
}

.about-experience__title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #17917d;
}

.about-experience__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.about-experience__item {
  position: relative;
  display: grid;
  grid-template-columns: 12px minmax(110px, 132px) 1fr;
  column-gap: clamp(14px, 2vw, 22px);
  align-items: start;
  padding: clamp(18px, 2.2vw, 26px) 0;
}

.about-experience__track {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 12px;
  pointer-events: none;
}

/* Line fills the whole item so neighboring segments connect. */
.about-experience__track::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: rgba(23, 145, 125, 0.35);
}

.about-experience__item:first-child .about-experience__track::before {
  top: calc(clamp(18px, 2.2vw, 26px) + 0.35em + 4px);
}

.about-experience__item:last-child .about-experience__track::before {
  bottom: auto;
  top: 0;
  height: calc(clamp(18px, 2.2vw, 26px) + 0.35em + 4px);
}

/* Dot aligned with the year label. */
.about-experience__track::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(clamp(18px, 2.2vw, 26px) + 0.35em);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #17917d;
  transform: translateX(-50%);
  z-index: 1;
}

.about-experience__item:first-child .about-experience__track::after {
  box-shadow: 0 0 0 3px rgba(23, 145, 125, 0.18);
}

.about-experience__years {
  grid-column: 2;
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #17917d;
  white-space: nowrap;
}

.about-experience__body {
  grid-column: 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.about-experience__company {
  margin: 0;
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 800;
  line-height: 1.25;
  color: #04251f;
}

.about-experience__role {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #4a5c57;
}

.about-experience__summary {
  margin: 4px 0 0;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.55;
  color: #2b3a36;
  text-wrap: pretty;
}

@media (max-width: 860px) {
  .about-stage {
    width: 100%;
    box-sizing: border-box;
    padding-left: 36px;
    padding-right: 36px;
  }
}

@media (max-width: 560px) {
  .about-experience__item {
    grid-template-columns: 12px 1fr;
    column-gap: 14px;
  }

  .about-experience__years,
  .about-experience__body {
    grid-column: 2;
  }

  .about-experience__years {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-body .about-stage,
  .about-body .work-page__frost,
  .about-body.loaded .about-stage,
  .about-body.loaded .work-page__frost {
    opacity: 1;
    animation: none;
  }
}
