.about-section {
  scroll-margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 40%, rgba(49, 92, 146, 0.13), transparent 30rem),
    var(--navy-900);
  color: var(--white-soft);
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: rgba(248, 250, 252, 0.1);
}

.about-inner {
  width: 100%;
  max-width: var(--content-width);
  margin-inline: auto;
  padding: clamp(4.5rem, 11vw, 7.5rem) max(var(--page-gutter), env(safe-area-inset-right)) clamp(5.5rem, 12vw, 8rem) max(var(--page-gutter), env(safe-area-inset-left));
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.2rem, 7vw, 4.5rem);
}

/*
 * A seção Sobre segue a mesma leitura das demais seções: conteúdo começa à esquerda.
 * No desktop, o retrato funciona como elemento editorial complementar à direita.
 * Em telas estreitas, o texto permanece primeiro e a imagem vem depois.
 */
.about-copy {
  order: 1;
  align-self: center;
  min-width: 0;
}

.about-portrait-wrap {
  order: 2;
  position: relative;
  width: min(100%, 28rem);
  margin-inline: auto;
}

.about-portrait-wrap::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -0.65rem;
  right: -0.65rem;
  width: 36%;
  height: 36%;
  border-top: 1px solid rgba(29, 123, 114, 0.72);
  border-right: 1px solid rgba(29, 123, 114, 0.72);
}

.about-portrait {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  display: block;
  object-fit: contain;
  object-position: center bottom;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 24px 34px rgba(2, 8, 18, 0.24));
}

.about-caption {
  position: relative;
  z-index: 2;
  width: calc(100% - 2rem);
  margin: -1rem auto 0;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(248, 250, 252, 0.1);
  border-left: 0.22rem solid var(--petrol-600);
  border-radius: 0.45rem;
  background: rgba(11, 20, 35, 0.93);
  box-shadow: 0 14px 32px rgba(2, 8, 18, 0.22);
}

.about-caption strong,
.about-caption span {
  display: block;
}

.about-caption strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.15;
}

.about-caption span {
  margin-top: 0.2rem;
  color: var(--petrol-500);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-section .section-clause {
  color: rgba(248, 250, 252, 0.55);
}

.about-section .section-clause-line {
  background: rgba(248, 250, 252, 0.2);
}

.about-section .section-clause-number {
  color: var(--petrol-600);
}

.about-title {
  max-width: 14ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.45rem, 8vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--white-soft);
  text-wrap: balance;
}

.about-oab {
  margin: 1rem 0 0;
  color: var(--petrol-500);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.about-lead {
  max-width: 43rem;
  margin: clamp(1.5rem, 4vw, 2rem) 0 0;
  color: rgba(248, 250, 252, 0.9);
  font-size: clamp(1.05rem, 3vw, 1.22rem);
  line-height: 1.58;
  text-wrap: pretty;
}

.about-text,
.about-closing {
  max-width: 43rem;
  margin: 1rem 0 0;
  color: rgba(248, 250, 252, 0.68);
  font-size: 0.93rem;
  line-height: 1.68;
  text-wrap: pretty;
}

.about-facts {
  max-width: 45rem;
  margin-top: clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid rgba(248, 250, 252, 0.12);
}

.about-fact {
  display: grid;
  grid-template-columns: 2.2rem 1fr;
  gap: 0.85rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(248, 250, 252, 0.1);
}

.about-fact-number {
  color: var(--petrol-500);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.about-fact strong {
  display: block;
  color: var(--white-soft);
  font-size: 0.88rem;
  line-height: 1.35;
}

.about-fact p {
  margin: 0.28rem 0 0;
  color: rgba(248, 250, 252, 0.62);
  font-size: 0.82rem;
  line-height: 1.5;
}

.about-closing {
  margin-top: 1.15rem;
}

.about-actions {
  margin-top: clamp(1.6rem, 4vw, 2.1rem);
}

.about-actions .button {
  width: 100%;
}

.about-pending {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(248, 250, 252, 0.1);
  color: rgba(248, 250, 252, 0.43);
  font-size: 0.72rem;
  line-height: 1.5;
}

@media (min-width: 36rem) {
  .about-actions .button {
    width: auto;
  }
}

@media (min-width: 58rem) {
  .about-inner {
    grid-template-columns: minmax(32rem, 1.28fr) minmax(19rem, 0.72fr);
    align-items: center;
    gap: clamp(4rem, 6vw, 6rem);
    padding-top: clamp(6rem, 7vw, 7.5rem);
    padding-bottom: clamp(6rem, 7vw, 7.5rem);
  }

  .about-copy {
    justify-self: stretch;
  }

  .about-portrait-wrap {
    width: 100%;
    max-width: 28rem;
    margin-inline: 0;
    justify-self: end;
  }

  .about-title {
    max-width: 12ch;
  }
}

@media (max-width: 57.99rem) and (orientation: landscape) and (max-height: 36rem) {
  .about-inner {
    grid-template-columns: minmax(24rem, 1.38fr) minmax(11rem, 0.62fr);
    align-items: start;
    gap: 2rem;
    padding-top: 1.9rem;
    padding-right: max(2rem, env(safe-area-inset-right));
    padding-bottom: calc(var(--mobile-nav-height) + 2rem + env(safe-area-inset-bottom));
    padding-left: max(2rem, env(safe-area-inset-left));
  }

  .about-portrait-wrap {
    width: min(100%, 13rem);
    margin-inline: 0;
    justify-self: end;
  }

  .about-caption {
    display: none;
  }

  .about-section .section-clause {
    margin-bottom: 0.6rem;
    font-size: 0.56rem;
  }

  .about-title {
    font-size: clamp(1.85rem, 4.4vw, 2.45rem);
    max-width: 15ch;
  }

  .about-oab {
    margin-top: 0.5rem;
    font-size: 0.62rem;
  }

  .about-lead {
    margin-top: 0.75rem;
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .about-text,
  .about-closing {
    margin-top: 0.48rem;
    font-size: 0.72rem;
    line-height: 1.38;
  }

  .about-facts {
    margin-top: 0.75rem;
  }

  .about-fact {
    grid-template-columns: 1.6rem 1fr;
    gap: 0.55rem;
    padding: 0.55rem 0;
  }

  .about-fact-number {
    font-size: 0.54rem;
  }

  .about-fact strong {
    font-size: 0.7rem;
  }

  .about-fact p {
    margin-top: 0.15rem;
    font-size: 0.64rem;
    line-height: 1.32;
  }

  .about-actions {
    margin-top: 0.7rem;
  }

  .about-pending {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-portrait,
  .about-actions .button {
    transition: none;
  }
}
