/* ===========================================================
   about.css — secao "Sobre" enxuta + cards dos artigos do blog.
   Substitui o layout antigo (3 paragrafos + 4 pilares). Escopo:
   #about. Carregado depois do index.css para vencer o #about base.
   =========================================================== */
#about {
    background: var(--bg, #08080a);
    padding: clamp(80px, 12vh, 140px) 48px;
    border-top: 1px solid var(--border, rgba(255, 255, 255, .07));
}

.about-wrap {
    max-width: 1180px;
    margin: 0 auto;
}

/* ---- intro ---- */
.about-head {
    max-width: 760px;
}

.about-head .section-title {
    margin: 14px 0 20px;
}

.about-lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    font-weight: 300;
    line-height: 1.7;
    color: var(--dim, #a1a1aa);
    max-width: 640px;
}

.about-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 44px;
    margin-top: 40px;
}

.about-highlight {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.about-highlight strong {
    font-family: var(--font-serif, 'Instrument Serif', serif);
    font-weight: 400;
    font-size: 1.7rem;
    color: var(--white, #f4f4f5);
}

.about-highlight span {
    font-size: .85rem;
    color: var(--dim, #71717a);
}

/* ---- artigos do blog ---- */
.about-articles {
    margin-top: clamp(56px, 8vh, 90px);
}

.about-articles-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border, rgba(255, 255, 255, .07));
}

.about-articles-head h3 {
    font-family: var(--font-serif, 'Instrument Serif', serif);
    font-weight: 400;
    font-size: 1.6rem;
    color: var(--white, #f4f4f5);
}

.about-all {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: .8rem;
    color: var(--dim, #71717a);
    white-space: nowrap;
    text-decoration: none;
    transition: color .2s ease;
}

.about-all:hover {
    color: var(--accent, #1864ff);
}

.about-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.about-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border, rgba(255, 255, 255, .08));
    background: linear-gradient(180deg, #0e0e13, #0a0a0e);
    text-decoration: none;
    color: inherit;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1), border-color .3s ease, box-shadow .35s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, .18);
    box-shadow: 0 24px 50px rgba(0, 0, 0, .45);
}

.about-card-media {
    aspect-ratio: 1.6 / 1;
    overflow: hidden;
}

.about-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.about-card:hover .about-card-media img {
    transform: scale(1.05);
}

.about-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 18px 20px 20px;
}

.about-card-tag {
    font-family: var(--font-mono, 'Space Mono', monospace);
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent, #1864ff);
}

.about-card-title {
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--white, #f4f4f5);
}

.about-card-link {
    margin-top: auto;
    font-size: .82rem;
    color: var(--dim, #71717a);
    transition: color .2s ease;
}

.about-card:hover .about-card-link {
    color: var(--accent, #1864ff);
}

/* ---- reveal ao rolar (armado via JS; limpo apos animar) ---- */
.about-reveal .about-head > *,
.about-reveal .about-articles-head,
.about-reveal .about-card {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
    transition: opacity .7s cubic-bezier(.22, 1, .36, 1), transform .7s cubic-bezier(.22, 1, .36, 1), filter .7s ease;
}

.about-reveal.in .about-head > *,
.about-reveal.in .about-articles-head,
.about-reveal.in .about-card {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

.about-reveal.in .about-head > *:nth-child(2) { transition-delay: .06s; }
.about-reveal.in .about-head > *:nth-child(3) { transition-delay: .12s; }
.about-reveal.in .about-head > *:nth-child(4) { transition-delay: .18s; }
.about-reveal.in .about-articles-head { transition-delay: .12s; }
.about-reveal.in .about-card:nth-child(1) { transition-delay: .18s; }
.about-reveal.in .about-card:nth-child(2) { transition-delay: .26s; }
.about-reveal.in .about-card:nth-child(3) { transition-delay: .34s; }

@media (prefers-reduced-motion: reduce) {
    .about-card,
    .about-card-media img { transition: none; }
}

/* ---- responsivo ---- */
@media (max-width: 860px) {
    .about-articles-grid { grid-template-columns: 1fr; }
    .about-highlights { gap: 30px; }
}

@media (max-width: 560px) {
    #about { padding: 64px 20px; }
}
