.about {
  --about-media-shift: 0px;

  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--color-text-light);
  background: var(--color-primary);
}

.about__container {
  width: min(100%, calc(var(--container-width) + var(--container-padding) * 2));
  margin-inline: auto;
  padding: clamp(4rem, 8vh, 7rem) var(--container-padding)
    clamp(3rem, 6vh, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(20rem, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.about__media {
  position: relative;
  min-width: 0;
}

.about__media::before {
  content: "";
  position: absolute;
  inset: -0.75rem;
  z-index: -1;
  border: 1px solid var(--color-border-light-soft);
  transform: rotate(-1.8deg);
}

.about__media::after {
  content: "";
  position: absolute;
  left: clamp(1rem, 4vw, 2rem);
  bottom: clamp(-1rem, -2vw, -1.4rem);
  width: clamp(5rem, 12vw, 9rem);
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: linear-gradient(
    90deg,
    var(--color-secondary),
    var(--color-white)
  );
  box-shadow: var(--shadow-accent);
  transform-origin: left center;
}

.about__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--color-border-light-soft);
  box-shadow: var(--shadow-soft);
  transform: translate3d(0, var(--about-media-shift), 0) scale(1.018);
  transform-origin: center;
  will-change: transform;
}

.about__content {
  min-width: 0;
}

.about__eyebrow {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1rem;
  padding: 0.54rem 0.9rem 0.46rem;
  border: 1px solid var(--color-border-light-soft);
  border-radius: var(--radius-full);
  color: var(--color-secondary);
  background: var(--color-glass-dark-soft);
  backdrop-filter: blur(12px);
  font-size: clamp(0.76rem, 1vw, 0.9rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about__title {
  max-width: 13ch;
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(2.7rem, 5.4vw, 5.2rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
  transform: skewX(-6deg);
  transform-origin: left center;
  color: var(--color-white);
  text-shadow: var(--shadow-title);
}

.about__body {
  width: min(100%, 620px);
  margin-top: clamp(1.5rem, 3vw, 2rem);
  display: grid;
  gap: 1rem;
}

.about__body p {
  margin: 0;
  color: var(--color-text-light-muted);
  font-size: clamp(1.02rem, 1.28vw, 1.16rem);
  font-weight: 500;
  line-height: 1.72;
}

.about__body strong {
  color: var(--color-secondary);
}

.about__logos {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  gap: clamp(1.35rem, 3vw, 2.5rem);
  flex-wrap: wrap;
}

.about__logos img {
  width: auto;
  max-width: min(42vw, 10rem);
  max-height: 5.8rem;
  object-fit: contain;
  filter: drop-shadow(var(--shadow-title));
}

.about__logos img:first-child {
  max-width: min(52vw, 13rem);
  max-height: 4.8rem;
}

/* Motion progresivo */

html.motion-enabled .about__media {
  opacity: 0;
  transform: translate3d(-24px, 14px, 0) scale(0.985);
  transition:
    opacity 850ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.motion-enabled .about__media::before {
  opacity: 0;
  transform: rotate(-3.3deg) scale(0.975);
  transition:
    opacity 800ms 90ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1000ms 90ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.motion-enabled .about__media::after {
  opacity: 0;
  transform: scaleX(0.45);
  transition:
    opacity 650ms 240ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 750ms 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.motion-enabled .about__eyebrow {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition:
    opacity 620ms 80ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 620ms 80ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.motion-enabled .about__title {
  opacity: 0;
  transform: translate3d(0, 18px, 0) skewX(-6deg);
  transition:
    opacity 780ms 140ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 780ms 140ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.motion-enabled .about__body p {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 680ms 230ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 680ms 230ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.motion-enabled .about__body p + p {
  transition-delay: 310ms;
}

html.motion-enabled .about__logos img {
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.96);
  transition:
    opacity 650ms 390ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 750ms 390ms cubic-bezier(0.22, 1, 0.36, 1);
}

html.motion-enabled .about__logos img + img {
  transition-delay: 470ms;
}

html.motion-enabled .about.is-visible .about__media {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

html.motion-enabled .about.is-visible .about__media::before {
  opacity: 1;
  transform: rotate(-1.8deg) scale(1);
}

html.motion-enabled .about.is-visible .about__media::after {
  opacity: 1;
  transform: scaleX(1);
}

html.motion-enabled .about.is-visible .about__eyebrow {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

html.motion-enabled .about.is-visible .about__title {
  opacity: 1;
  transform: translate3d(0, 0, 0) skewX(-6deg);
}

html.motion-enabled .about.is-visible .about__body p {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

html.motion-enabled .about.is-visible .about__logos img {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Responsive */

@media (max-width: 1100px) {
  .about__container {
    grid-template-columns: minmax(0, 0.96fr) minmax(19rem, 1.04fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }

  .about__title {
    font-size: clamp(2.7rem, 5vw, 4.8rem);
  }

  .about__body p {
    font-size: clamp(1rem, 1.2vw, 1.12rem);
  }
}

@media (max-width: 900px) {
  .about__container {
    grid-template-columns: 1fr;
    padding-top: clamp(4.5rem, 9vh, 6rem);
    padding-bottom: clamp(4rem, 8vh, 5rem);
    gap: clamp(3rem, 7vw, 4.5rem);
  }

  .about__media {
    width: min(100%, 650px);
    margin-inline: auto;
  }

  .about__content {
    width: min(100%, 680px);
    margin-inline: auto;
  }

  .about__title {
    max-width: 14ch;
    font-size: clamp(3rem, 8vw, 5rem);
  }

  .about__body {
    width: min(100%, 640px);
  }
}

@media (max-width: 760px) {
  .about__container {
    padding-top: clamp(4rem, 8vh, 5.5rem);
    padding-bottom: clamp(3.5rem, 7vh, 4.5rem);
  }

  .about__media {
    width: min(92%, 580px);
  }

  .about__title {
    max-width: 13ch;
    font-size: clamp(2.9rem, 10vw, 4.6rem);
  }

  .about__body p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .about__logos {
    gap: clamp(1.25rem, 5vw, 2rem);
  }
}

@media (max-width: 560px) {
  .about__container {
    padding-top: 4.5rem;
    padding-bottom: 3.75rem;
    gap: 2.75rem;
  }

  .about__media {
    width: calc(100% - 1rem);
  }

  .about__media::before {
    inset: -0.55rem;
  }

  .about__media::after {
    bottom: -0.75rem;
    height: 0.42rem;
  }

  .about__eyebrow {
    margin-bottom: 0.9rem;
    padding: 0.5rem 0.8rem 0.44rem;
    font-size: 0.74rem;
  }

  .about__title {
    max-width: 12ch;
    font-size: clamp(2.7rem, 13vw, 4.2rem);
    line-height: 0.92;
  }

  .about__body {
    margin-top: 1.35rem;
    gap: 0.9rem;
  }

  .about__body p {
    line-height: 1.68;
  }

  .about__logos {
    margin-top: 1.8rem;
    gap: 1.25rem;
  }

  .about__logos img {
    max-width: min(38vw, 9rem);
    max-height: 5rem;
  }

  .about__logos img:first-child {
    max-width: min(48vw, 11.5rem);
    max-height: 4.2rem;
  }
}

@media (max-width: 380px) {
  .about__container {
    gap: 2.5rem;
  }

  .about__title {
    font-size: clamp(2.55rem, 12.5vw, 3.7rem);
  }

  .about__body p {
    font-size: 0.97rem;
  }

  .about__logos {
    gap: 1rem;
  }

  .about__logos img {
    max-width: 36vw;
  }

  .about__logos img:first-child {
    max-width: 46vw;
  }
}

@media (max-height: 680px) and (min-width: 901px) {
  .about__container {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .about__title {
    font-size: clamp(2.7rem, 4.7vw, 4.5rem);
  }

  .about__body {
    margin-top: 1.25rem;
  }

  .about__logos {
    margin-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about__media,
  .about__media::before,
  .about__media::after,
  .about__eyebrow,
  .about__title,
  .about__body p,
  .about__logos img {
    opacity: 1;
    transition: none;
  }

  .about__media {
    transform: none;
  }

  .about__media::before {
    transform: rotate(-1.8deg);
  }

  .about__media::after {
    transform: none;
  }

  .about__media img {
    transform: scale(1.018);
    will-change: auto;
  }

  .about__eyebrow,
  .about__body p,
  .about__logos img {
    transform: none;
  }

  .about__title {
    transform: skewX(-6deg);
  }
}
