/*
 * Home section "Bienvenue dans l'univers de Thelmoi": text on the left, the Polaroid on the right.
 * The gradient ends on olive so the next section can continue on a plain olive background.
 */
.about {
  --about-cream-stop: 50%;

  display: grid;
  grid-template-columns: minmax(0, 620px) auto;
  justify-content: center;
  align-items: center;
  column-gap: clamp(48px, 8vw, 128px);
  padding: clamp(64px, 6.7vw, 96px) clamp(20px, 5.76vw, 83px) clamp(72px, 7.8vw, 112px);
  overflow-x: clip;
  background: linear-gradient(180deg, var(--color-cream) var(--about-cream-stop), var(--color-olive-deep) 100%);
  color: var(--color-brown);
}

.about__title {
  font-weight: 500;
}

.about__title-lead {
  display: block;
  font-size: clamp(1.75rem, 2.9vw, 2.625rem);
  line-height: 1.2;
}

/* Aston's loops rise far above its x-height: the generous line box keeps them clear of the first line. */
.about__title-name {
  display: block;
  margin-top: 0.08em;
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 6.4vw, 5.75rem);
  font-weight: 700;
  line-height: 1.45;
}

.about__text {
  max-width: 34em;
  margin-top: clamp(16px, 1.7vw, 24px);
  font-size: clamp(1.0625rem, 1.32vw, 1.1875rem);
  font-weight: 500;
  line-height: 1.7;
}

.about__text p + p {
  margin-top: 1em;
}

/* Polaroid: the frame image never moves; only the photos slide inside the window. */
.polaroid {
  position: relative;
  width: clamp(220px, 20.7vw, 298px);
  aspect-ratio: 947 / 1600;
  margin: 0;
  overflow: hidden;
  border-radius: 13.76% / 8.15%;
}

.polaroid__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Photo area of the source images (947 × 1600): x 48 → 898, y 62 → 1348. */
.polaroid__window {
  position: absolute;
  top: 3.875%;
  left: 5.0686%;
  width: 89.863%;
  height: 80.4375%;
  overflow: hidden;
}

.polaroid__track {
  display: flex;
  height: 100%;
  transition: transform 900ms cubic-bezier(0.65, 0, 0.35, 1);
}

.polaroid__slide {
  position: relative;
  flex: 0 0 100%;
  overflow: hidden;
}

.polaroid__slide img {
  position: absolute;
  top: -4.8174%;
  left: -5.6404%;
  width: 111.28%;
  height: 124.32%;
  max-width: none;
}

@media (max-width: 767.98px) {
  .about {
    --about-cream-stop: 45%;

    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    row-gap: 40px;
    padding: 56px 20px 64px;
  }

  .about__intro {
    width: 100%;
  }

  .about__title-lead {
    font-size: min(1.75rem, 6.5vw);
    text-wrap: balance;
  }

  .polaroid {
    width: min(260px, 72vw);
  }
}

/* Phones get a short studio introduction instead of the signature, the long text and the Polaroid. */
.about__mobile {
  display: none;
}

@media (max-width: 719.98px) {
  .about {
    --about-cream-stop: 78%;

    padding: 52px 24px 104px;
  }

  .about__intro,
  .polaroid {
    display: none;
  }

  .about__mobile {
    display: block;
    max-width: 30rem;
    text-align: center;
  }

  .about__eyebrow {
    color: var(--color-olive);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  .about__mobile-title {
    margin-top: 12px;
    font-family: var(--font-serif);
    font-size: clamp(1.875rem, 8.6vw, 2.375rem);
    font-weight: 500;
    line-height: 1.1;
    text-wrap: balance;
  }

  .about__mobile-title em {
    display: block;
    font-style: italic;
  }

  .about__mobile-text {
    margin-top: 16px;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 1.65;
  }

  .about__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 12px;
    color: var(--color-brown);
    font-weight: 700;
    text-decoration: none;
  }

  .about__link-text {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
  }

  .about__link-arrow {
    transition: transform var(--duration-base) var(--ease-out);
  }

  .about__link:hover .about__link-arrow {
    transform: translateX(4px);
  }
}
