/* ========================================================================== 
   PORTFOLIO DIAMOND V1.85 — FASE 2.1 / SOBRE MOBILE
   Composição aprovada para "Quem está por trás dos projetos?".
   Mantém o fundo e a continuidade visual originais do site.
   ========================================================================== */

.about-mobile-ornament,
.about-mobile-name,
.about-mobile-stats { display: none; }

@media (max-width: 680px) {
  /* Mantém a seção integrada ao fundo do site, sem cartão externo isolado. */
  #sobre.sobre {
    position: relative !important;
    isolation: isolate;
    padding: 58px 0 72px !important;
    background:
      radial-gradient(circle at 78% 22%, rgba(112, 54, 244, .10), transparent 35%),
      radial-gradient(circle at 12% 64%, rgba(0, 153, 255, .08), transparent 32%),
      linear-gradient(180deg, #050b1b 0%, #061027 48%, #050b1d 100%) !important;
    overflow: hidden;
  }

  #sobre.sobre::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .32;
    background-image:
      linear-gradient(rgba(70, 111, 190, .055) 1px, transparent 1px),
      linear-gradient(90deg, rgba(70, 111, 190, .045) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(to bottom, transparent, #000 13%, #000 88%, transparent);
  }

  #sobre .about-premium {
    width: min(calc(100% - 30px), 430px) !important;
    max-width: 430px !important;
    margin-inline: auto !important;
    gap: 34px !important;
  }

  #sobre .about-premium__intro {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }

  /* Ordem visual aprovada: conteúdo → fotografia → indicadores. */
  #sobre .txt-sobre { order: 1 !important; }
  #sobre .img-sobre { order: 2 !important; }
  #sobre .about-mobile-stats { order: 3 !important; }

  #sobre .txt-sobre {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  #sobre .txt-sobre .system-kicker {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 0 15px !important;
    color: #f3ce58 !important;
    font-size: .66rem !important;
    line-height: 1 !important;
    letter-spacing: .085em !important;
  }

  #sobre .txt-sobre h2 {
    max-width: 390px !important;
    margin: 0 !important;
    color: #f8f9ff !important;
    font-family: "League Spartan", "Poppins", sans-serif !important;
    font-size: clamp(2.05rem, 10.1vw, 2.68rem) !important;
    font-weight: 800 !important;
    line-height: .99 !important;
    letter-spacing: -.045em !important;
    text-wrap: balance;
  }

  #sobre .txt-sobre h2 > span { display: none !important; }

  #sobre .about-mobile-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    margin: 24px 0 27px;
  }

  #sobre .about-mobile-ornament i {
    width: 58px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(132, 73, 255, .88));
  }

  #sobre .about-mobile-ornament i:last-child {
    transform: scaleX(-1);
  }

  #sobre .about-mobile-ornament span {
    width: 12px;
    height: 12px;
    border: 2px solid #8d5cff;
    transform: rotate(45deg);
    box-shadow: 0 0 16px rgba(129, 78, 255, .5);
  }

  #sobre .about-mobile-name {
    display: block;
    margin: 0 0 14px;
    color: #9c4cff;
    font-family: "League Spartan", "Poppins", sans-serif;
    font-size: clamp(1.55rem, 7.1vw, 1.95rem);
    font-weight: 750;
    line-height: 1.05;
    letter-spacing: -.028em;
  }

  #sobre .txt-sobre > p {
    max-width: 100% !important;
    margin: 0 !important;
    color: rgba(235, 239, 250, .88) !important;
    font-size: clamp(.9rem, 3.85vw, 1rem) !important;
    font-weight: 400 !important;
    line-height: 1.62 !important;
    text-align: left !important;
  }

  /* No mobile, o caminho vira o conjunto de chips da referência aprovada. */
  #sobre .about-path {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 7px !important;
    width: 100% !important;
    margin: 26px 0 30px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  #sobre .about-path span {
    flex: 0 0 auto;
    padding: 8px 11px !important;
    border: 1px solid rgba(139, 80, 255, .62);
    border-radius: 999px;
    background: rgba(7, 12, 33, .72);
    color: #f5f5fb !important;
    font-size: clamp(.55rem, 2.6vw, .67rem) !important;
    font-weight: 650 !important;
    letter-spacing: .025em !important;
    text-transform: uppercase;
    white-space: nowrap;
  }

  #sobre .about-path i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #9a5cff;
    color: transparent !important;
    font-size: 0 !important;
    flex: 0 0 auto;
  }

  #sobre .img-sobre {
    position: relative !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(128, 89, 255, .56) !important;
    border-radius: 19px !important;
    background: linear-gradient(145deg, rgba(54, 27, 119, .48), rgba(3, 14, 36, .96)) !important;
    box-shadow: 0 25px 65px rgba(0, 0, 0, .36), 0 0 30px rgba(98, 52, 210, .10) !important;
    overflow: hidden !important;
  }

  #sobre .img-sobre::after { display: none !important; }

  #sobre .img-sobre img {
    display: block;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1.28 / 1 !important;
    object-fit: cover !important;
    object-position: center 22% !important;
    border-radius: 18px !important;
    filter: contrast(1.04) saturate(.92) !important;
  }

  #sobre .about-image-label {
    top: 15px !important;
    left: 15px !important;
    padding: 7px 10px !important;
    border-color: rgba(232, 187, 55, .54) !important;
    background: rgba(4, 7, 18, .78) !important;
    color: #f0cf58 !important;
    font-size: .55rem !important;
    letter-spacing: .075em !important;
  }

  #sobre .about-image-signature { display: none !important; }

  #sobre .about-mobile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin-top: 20px;
    padding: 20px 8px;
    border: 1px solid rgba(73, 112, 197, .35);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(5, 13, 35, .94), rgba(4, 10, 27, .82));
    box-shadow: 0 18px 45px rgba(0, 0, 0, .24);
  }

  #sobre .about-mobile-stats article {
    position: relative;
    min-width: 0;
    padding: 0 7px;
    text-align: center;
  }

  #sobre .about-mobile-stats article + article::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5%;
    width: 1px;
    height: 90%;
    background: linear-gradient(180deg, transparent, rgba(79, 111, 180, .38), transparent);
  }

  #sobre .about-mobile-stats strong {
    display: block;
    color: #a34dff;
    font-family: "League Spartan", sans-serif;
    font-size: clamp(1.65rem, 7.5vw, 2.05rem);
    line-height: 1;
  }

  #sobre .about-mobile-stats span {
    display: block;
    margin-top: 9px;
    color: rgba(239, 242, 250, .9);
    font-size: clamp(.68rem, 3vw, .78rem);
    line-height: 1.42;
  }

  /* A timeline continua depois, mas separada da composição principal. */
  #sobre .professional-overview {
    margin-top: 8px !important;
  }
}

@media (max-width: 370px) {
  #sobre .about-premium { width: min(calc(100% - 22px), 350px) !important; }
  #sobre .about-path { gap: 4px !important; }
  #sobre .about-path span { padding-inline: 8px !important; font-size: .51rem !important; }
  #sobre .about-mobile-stats { padding-inline: 4px; }
}

/* ========================================================================== 
   V1.87 — CORREÇÃO DE ENQUADRAMENTO DA FOTO / SOBRE MOBILE
   Remove a altura herdada do desktop e exibe o retrato sem zoom ou corte.
   ========================================================================== */
@media (max-width: 680px) {
  #sobre .img-sobre {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: auto !important;
    align-self: auto !important;
    display: block !important;
    padding: 0 !important;
  }

  #sobre .img-sobre img {
    width: 100% !important;
    height: clamp(248px, 76vw, 318px) !important;
    min-height: 0 !important;
    max-height: 318px !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: linear-gradient(145deg, #150d31 0%, #05070d 68%, #020305 100%) !important;
  }
}

@media (max-width: 370px) {
  #sobre .img-sobre img {
    height: clamp(235px, 79vw, 285px) !important;
  }
}

/* ========================================================================== 
   V1.88 — FOTO COMPLETA E PROPORCIONAL / SOBRE MOBILE
   Exibe o arquivo inteiro em sua proporção original, reduzindo a presença
   visual do card sem aplicar zoom, corte ou altura artificial.
   ========================================================================== */
@media (max-width: 680px) {
  #sobre .img-sobre {
    width: min(86%, 340px) !important;
    max-width: 340px !important;
    min-height: 0 !important;
    height: fit-content !important;
    aspect-ratio: auto !important;
    margin: 0 auto !important;
    padding: 0 !important;
    align-self: center !important;
    line-height: 0 !important;
    overflow: hidden !important;
  }

  #sobre .img-sobre img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 18px !important;
  }

  #sobre .about-mobile-stats {
    margin-top: 18px !important;
  }
}

@media (max-width: 370px) {
  #sobre .img-sobre {
    width: 88% !important;
    max-width: 300px !important;
  }
}
