/* ==========================================================================
   07 · QUEM SOU EU
   Fundo de papel, entre "Para quem é" e "Vamos conversar". Ar de tecnologia:
   foto com cantos de mira e três blocos de vidro grafite (01 Apresentação ·
   02 Minha trajetória · 03 Minha visão), mais a linha de perfis do Instagram
   no mesmo vidro.
   Mobile: foto no alto, blocos em coluna e perfis no fim.
   Desktop (>= 64em): foto fixa (sticky) à esquerda e blocos à direita; o
   bloco 02 avança sobre a foto. Perfis em 3 colunas abaixo de tudo.
   Vidro: o desfoque precisa de algo atrás. A camada .about__deco tem duas
   manchas ácidas desfocadas, com parallax leve.
   Emendas: a .paper-edge cobre a fenda de "Para quem é"; o rasgo de baixo é
   a fenda grafite onde entra a folha ácida de "Vamos conversar".
   Sem JS próprio: entrada (data-reveal) e parallax vêm de js/core/.
   ========================================================================== */

.about {
  --glass-line: rgb(245 245 245 / 0.14);
  --text-soft: rgb(245 245 245 / 0.75);
  position: relative;
  z-index: 1;
  padding-top: var(--section-space);
  padding-bottom: calc(var(--section-space) * 0.8 + var(--tear-h) * 1.6);
}

/* Camada decorativa (atrás do vidro) ------------------------------------- */
.about__deco {
  position: absolute;
  inset: 0;
  overflow: clip;
  pointer-events: none;
}

.about__glow {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(215 255 56 / 0.85), rgb(215 255 56 / 0.3) 55%, rgb(215 255 56 / 0));
}

.about__glow--1 {
  top: 42%;
  right: -32%;
  width: clamp(18rem, 80vw, 40rem);
  scale: 1 0.7;
  rotate: -24deg;
}

.about__glow--2 {
  bottom: 16%;
  left: -36%;
  width: clamp(16rem, 70vw, 30rem);
  scale: 1 0.8;
  rotate: 18deg;
}

/* Conteúdo --------------------------------------------------------------- */
.about__inner {
  position: relative;
  z-index: 1;
}

.about__kicker {
  margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 3.5rem);
}

.about__grid {
  display: grid;
  gap: var(--sp-7);
}

/* Foto com cantos de mira em tinta */
.about__figure {
  position: relative;
  /* Desconta os cantos de mira (0,6rem de cada lado) para não vazar da tela. */
  width: min(100% - 1.2rem, 26rem);
  margin-left: 0.6rem;
}

.about__photo img {
  width: 100%;
  height: auto;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-paper);
}

.about__corners {
  --l: clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --t: 2px;
  --g: linear-gradient(var(--c-ink), var(--c-ink));
  position: absolute;
  inset: -0.6rem;
  background:
    var(--g) left top / var(--l) var(--t),
    var(--g) left top / var(--t) var(--l),
    var(--g) right top / var(--l) var(--t),
    var(--g) right top / var(--t) var(--l),
    var(--g) left bottom / var(--l) var(--t),
    var(--g) left bottom / var(--t) var(--l),
    var(--g) right bottom / var(--l) var(--t),
    var(--g) right bottom / var(--t) var(--l);
  background-repeat: no-repeat;
  pointer-events: none;
}

/* Blocos de vidro grafite ------------------------------------------------ */
.about__cards {
  display: grid;
  gap: var(--sp-4);
}

.glass,
.profile {
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-m);
  /* Sem backdrop-filter: fundo quase opaco. */
  background-color: rgb(38 38 38 / 0.97);
  background-image: var(--tex-grain-light);
  color: var(--c-paper);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.06),
    0 24px 48px -28px rgb(17 17 17 / 0.7);
}

.glass {
  position: relative;
  padding: clamp(1.25rem, 0.9rem + 1.6vw, 2.25rem);
}

@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  :is(.glass, .profile) {
    background-color: rgb(38 38 38 / 0.88);
    /* Desfoque menor no celular (desempenho). */
    -webkit-backdrop-filter: blur(10px) saturate(1.3);
    backdrop-filter: blur(10px) saturate(1.3);
  }

  @media (min-width: 40em) {
    :is(.glass, .profile) {
      -webkit-backdrop-filter: blur(22px) saturate(1.3);
      backdrop-filter: blur(22px) saturate(1.3);
    }
  }
}

/* Rótulo: 01 / APRESENTAÇÃO ———— */
.glass__label {
  display: flex;
  align-items: center;
  gap: 0.55em;
  margin-bottom: var(--sp-5);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-wrap: nowrap;
}

.glass__label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--glass-line);
}

.glass__num {
  color: var(--c-acid);
}

.glass__hello {
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 1.4rem + 3.4vw, 3.75rem);
  font-weight: 900;
  font-stretch: var(--stretch-condensed);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

.glass__hello .hl {
  padding: 0 0.12em;
  color: var(--c-ink);
}

.glass__note {
  margin-top: var(--sp-4);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: var(--fs-s);
  line-height: 1.6;
}

.glass__text {
  max-width: 62ch;
  color: var(--text-soft);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1875rem);
  line-height: 1.6;
}

/* Frase de fechamento em destaque */
.glass__close {
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--glass-line);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  font-weight: 800;
  font-stretch: 85%;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.glass__close .hl {
  color: var(--c-ink);
}

/* Perfis do Instagram ---------------------------------------------------- */
.about__social {
  margin-top: clamp(3rem, 2rem + 4vw, 5.5rem);
}

.about__social-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about__profiles {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding: 0;
  list-style: none;
}

.profile {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  height: 100%;
  min-height: 3.75rem;
  padding: var(--sp-3) var(--sp-4);
  transition:
    border-color var(--dur-fast) var(--ease-out),
    translate var(--dur-fast) var(--ease-out);
}

.profile__icon {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  transition: color var(--dur-fast) var(--ease-out);
}

.profile__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.profile__handle {
  font-family: var(--font-mono);
  font-size: var(--fs-s);
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.profile__caption {
  color: var(--text-soft);
  font-size: var(--fs-s);
  line-height: 1.3;
}

.profile > .arrow-swap {
  margin-left: auto;
  width: 0.9rem;
  height: 0.9rem;
  transition: color var(--dur-fast) var(--ease-out);
}

@media (hover: hover) {
  .profile:hover {
    border-color: var(--c-acid);
    translate: 0 -2px;
  }

  .profile:hover :is(.profile__icon, .arrow-swap) {
    color: var(--c-acid);
  }
}

.profile:focus-visible {
  border-color: var(--c-acid);
}

.profile:focus-visible :is(.profile__icon, .arrow-swap) {
  color: var(--c-acid);
}

/* Rasgo na base: fenda grafite onde entra a folha de "Vamos conversar" ---- */
.about__tear {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: -1px;
  left: 0;
  height: var(--tear-h);
  pointer-events: none;
}

/* ==========================================================================
   Tablet e desktop
   ========================================================================== */
@media (min-width: 40em) {
  .about__figure {
    width: min(62%, 26rem);
  }


  .glass--2 {
    margin-left: 8%;
  }

  .glass--3 {
    margin-right: 8%;
  }
}

@media (min-width: 64em) {
  .about__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    column-gap: clamp(2.5rem, 1rem + 3vw, 5rem);
  }

  /* A foto acompanha a leitura dos blocos e o vidro passa sobre ela. */
  .about__figure {
    position: sticky;
    top: calc(var(--header-h-scrolled) + 2.5rem);
    width: auto;
    max-width: 34rem;
    margin: 0.6rem 0 0 0.6rem;
  }

  .about__cards {
    gap: var(--sp-5);
    padding-top: var(--sp-6);
  }

  .glass--1 {
    margin-right: 10%;
  }

  .glass--2 {
    z-index: 1;
    margin-left: clamp(-7rem, -2rem - 4vw, -4rem);
  }

  .glass--3 {
    margin-right: 0;
    margin-left: 14%;
  }


  .about__glow--1 {
    top: 10%;
    right: -8%;
  }

  .about__glow--2 {
    bottom: 22%;
    left: 22%;
  }

  .about__profiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ==========================================================================
   Entrada (ver css/motion.css)
   ========================================================================== */
@media (min-width: 64em) {
  .glass--2 {
    --reveal-delay: 120ms;
  }

  .glass--3 {
    --reveal-delay: 240ms;
  }
}
