#about-me {
  scroll-margin-top: var(--nav-offset, 80px);
}

.about-me {
  padding: 120px 0;
  background: #ffffff;
}

@media (max-width: 768px) {
  .about-me {
    padding: 96px 0;
  }
}

@media (max-width: 480px) {
  .about-me {
    padding: 72px 0;
  }
}

.about-me--page {
  padding: 0;
  min-height: auto;
}

.about-me--page::before {
  display: none;
}

.about-me--page .about-me__inner {
  width: 100%;
  max-width: none;
  padding: calc(var(--nav-offset, 80px) + 48px) calc(var(--page-gutter, clamp(20px, 5vw, 80px)) + var(--safe-left, 0px)) calc(120px + var(--safe-bottom, 0px)) calc(var(--page-gutter, clamp(20px, 5vw, 80px)) + var(--safe-right, 0px));
}

@media (max-width: 768px) {
  .about-me--page .about-me__inner {
    padding: calc(var(--nav-offset, 68px) + 40px) calc(clamp(24px, 5vw, 32px) + var(--safe-left, 0px)) calc(96px + var(--safe-bottom, 0px)) calc(clamp(24px, 5vw, 32px) + var(--safe-right, 0px));
  }
}

@media (max-width: 480px) {
  .about-me--page .about-me__inner {
    padding: calc(var(--nav-offset, 64px) + 32px) calc(20px + var(--safe-left, 0px)) calc(72px + var(--safe-bottom, 0px)) calc(20px + var(--safe-right, 0px));
  }
}

.about-me__inner {
  width: 100%;
  max-width: none;
  padding: 0 clamp(20px, 5vw, 80px);
}

.about-me__title {
  display: flex;
  justify-content: flex-start;
  align-items: baseline;
  gap: 0.35em;
  margin-bottom: clamp(36px, 4.5vw, 52px);
  text-align: left;
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: 2px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.9);
  text-transform: uppercase;
}

.about-me__title .title-line {
  display: inline;
}

.about-me--page .about-me__title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  width: fit-content;
  max-width: 100%;
  margin-bottom: clamp(24px, 3vw, 32px);
}

.about-me--page .about-me__title::after {
  content: '';
  flex-basis: 100%;
  width: 100%;
  height: 1px;
  margin-top: clamp(14px, 1.8vw, 20px);
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.18) 0%,
    rgba(0, 0, 0, 0.1) 45%,
    rgba(0, 0, 0, 0.04) 75%,
    transparent 100%
  );
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s;
}

.about-me--page .about-me__title.reveal--title.is-visible::after {
  transform: scaleX(1);
}

.about-me--page .about-me__layout {
  display: block;
  min-width: 0;
}

.about-me--page .about-me__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.about-me--page .about-me__media {
  flex-shrink: 0;
  order: -1;
  width: min(100%, 340px);
  margin: 0 auto clamp(28px, 4vw, 40px);
  border-radius: 8px;
  overflow: hidden;
}

.about-me__media {
  margin: 0;
}

.about-me__media.reveal.is-visible {
  opacity: 1;
}

.about-me__photo {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: top center;
}

.about-me__text {
  text-align: left;
}

.about-me__text p {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 1.15vw, 17px);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.78;
  margin: 0 0 1.3em;
  color: rgba(0, 0, 0, 0.62);
}

.about-me__text p:first-of-type {
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.76;
  color: rgba(0, 0, 0, 0.68);
  margin-bottom: 1.35em;
}

.about-me__text p:last-child {
  margin-bottom: 0;
}

.about-me__text .reveal--soft.is-visible {
  opacity: 1;
}

/* From tablet portrait up the photo floats beside the copy — without it the
   measure stretches to the full page width and lines get unreadably long. */
@media (min-width: 700px) {
  .about-me--page .about-me__text {
    display: block;
  }

  .about-me--page .about-me__media {
    float: right;
    order: unset;
    width: clamp(240px, 34%, 420px);
    margin: 0.2em 0 1.4em clamp(24px, 3vw, 48px);
  }
}

@media (min-width: 1041px) {
  .about-me--page .about-me__media {
    width: clamp(280px, 38%, 420px);
    margin: 0.2em 0 1.4em clamp(28px, 3.5vw, 48px);
  }
}

@media (max-width: 768px) {
  .about-me--page .about-me__text p,
  .about-me__text p {
    font-size: 16px;
    line-height: 1.72;
  }
}

@media (max-width: 480px) {
  .about-me--page .about-me__media {
    width: min(100%, 300px);
    margin-bottom: 28px;
  }

  .about-me--page .about-me__title {
    font-size: clamp(1.85rem, 9vw, 2.25rem);
    letter-spacing: 1.5px;
  }

  .about-me--page .about-me__text p,
  .about-me__text p {
    font-size: 16px;
    line-height: 1.75;
    margin-bottom: 1.25em;
  }

  .about-me--page .about-me__text p:first-of-type,
  .about-me__text p:first-of-type {
    font-size: 17px;
  }
}
