/**
 * Seções da home — enfileirado só em is_front_page() (functions.php).
 * Tokens: assets/src/tailwind.css. Direção: design/DIRECAO-v2.md (folhas, aurora, produto inteiro)
 * Ordem: hero · [clientes + produtos] · serviços · projetos · como trabalhamos · depoimentos · blog · contato
 */

/* ============================================================
   CLIENTES — marquee monocromático (abre a folha escura)
   ============================================================ */
.clients-strip {
    padding: clamp(32px, 4vw, 48px) 0 0;
}

.clients-title {
    margin: 0 0 20px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--ink-3);
}

.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px clamp(40px, 5vw, 72px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.marquee.is-animated .marquee-track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
}

.marquee-track li { flex: none; }

/* logos em branco (monocromáticas) sobre a folha escura, grandes o bastante
   para ler; sem placa, sem caixa */
.logo-chip {
    display: grid;
    place-items: center;
    height: 80px;
    padding: 0 8px;
}

/* os PNGs de cliente (300×200) têm muita margem interna: 72px de altura
   deixa a marca em si com ~40–50px */
.logo-chip img {
    display: block;
    height: 72px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
    filter: grayscale(1) brightness(0) invert(1);
    opacity: .8;
    transition: opacity .24s ease;
}

.logo-chip:hover img { opacity: 1; }

.clients-name {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--ink-2);
    white-space: nowrap;
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: no-preference) {
    .marquee.is-animated .marquee-track {
        animation: marquee 48s linear infinite;
    }
    .marquee.is-animated:hover .marquee-track {
        animation-play-state: paused;
    }
}

/* ============================================================
   SERVIÇOS — lista com réguas, desenhada pelo scroll
   Três camadas ligadas à rolagem (CSS animation-timeline, sem JS):
   1. cada linha entra da esquerda e a sua régua se desenha (scaleX 0→1);
   2. um traço vertical à esquerda da lista "enche" conforme a lista atravessa
      a tela (progresso), com um ponto na cabeça;
   3. o título fica preso (sticky) enquanto a lista rola ao lado.
   Sem suporte a animation-timeline, tudo aparece estático e completo.
   ============================================================ */
.service-list {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-item {
    position: relative;
}

/* a régua de cada item é um pseudo-elemento para poder ser "desenhada";
   a do topo (primeiro item) começa no mesmo recuo das demais, não gruda no traço */
.service-item::after,
.service-item:first-child::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: var(--line);
    transform-origin: left center;
}

.service-item:first-child::before { inset: 0 0 auto 0; }

/* progresso: trilho + traço que enche, 2px com pontas arredondadas — a
   sensação é de a lista estar "abraçada" pelo traço */
@media (min-width: 1024px) {
    .service-list {
        padding-left: 32px;
    }

    .service-list::before,
    .service-list::after {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 2px;
        height: 100%;
        border-radius: 2px;
    }

    .service-list::before { background: var(--line-soft); }

    .service-list::after {
        background: var(--ink);
        transform-origin: top center;
        transform: scaleY(1);
    }

    /* o título acompanha a lista enquanto ela rola */
    #services .section-head {
        position: sticky;
        top: 100px;
        align-self: start;
    }
}

@keyframes service-in {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: none; }
}

@keyframes service-rule {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes service-progress {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .service-item {
            animation: service-in linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 55%;
        }

        .service-item::after {
            animation: service-rule linear both;
            animation-timeline: view();
            animation-range: entry 10% entry 80%;
        }

        @media (min-width: 1024px) {
            .service-list::after {
                animation: service-progress linear both;
                animation-timeline: view();
                animation-range: entry 0% cover 65%;
            }
        }
    }
}

/* Fallback sem animation-timeline (Firefox): progresso em --sp/--sp2 (main.js) */
@supports not (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        :root.scroll-fallback .service-item {
            opacity: var(--sp, 1);
            transform: translateX(calc((1 - var(--sp, 1)) * -20px));
        }
        :root.scroll-fallback .service-item::after {
            transform: scaleX(var(--sp2, 1));
        }
        @media (min-width: 1024px) {
            :root.scroll-fallback .service-list::after {
                transform: scaleY(var(--sp, 1));
            }
        }
    }
}

.service-link {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px 32px;
    padding: 24px 0;
    transition: background-color .15s ease;
}

@media (min-width: 768px) {
    .service-link {
        grid-template-columns: 2.5rem 1fr 1.4fr;
        align-items: start;
        padding: 28px 12px;
        margin-inline: -12px;
        border-radius: var(--r-row);
    }

    .service-link:hover {
        background: var(--bg-alt);
    }
}

.service-icon {
    width: 2rem;
    height: 2rem;
    color: var(--ink-2);
}

.service-icon:empty {
    display: none;
}

@media (min-width: 768px) {
    .service-icon,
    .service-icon:empty {
        display: block;
    }
}

.service-icon svg,
.service-icon img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.service-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.service-desc {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.5;
    color: var(--ink-2);
    max-width: 44ch;
}

.service-link:hover .service-title {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
    text-decoration-color: var(--line);
}

/* ============================================================
   HERO — abre a folha preta; luz branca quente varrendo o preto;
   texto à esquerda; produto inteiro brilhando sobre o fundo
   ============================================================ */
.hero {
    padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px);
    overflow: hidden;   /* só o fundo é cortado; as janelas ficam dentro do palco */
}

/* Fundo animado — dois modelos, escolhidos no CPT (data-bg):
   glow  = manchas brancas quentes (--glow) sobre o preto, como um refletor
           de estúdio; sem filter: blur nos <span> (custo de paint zero).
   beams = linhas finas atravessando a folha com pulsos de luz correndo por
           elas (dados indo e vindo do banco) — só no canvas (home.js); o
           fallback estático é o mesmo do glow, mais fraco. */
.aurora {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.aurora span {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--c) 0%, transparent 100%);
    will-change: transform;
}

.aurora .a1 { --c: rgba(var(--glow), .16); width: 78vw; height: 78vw; right: -22vw; top: -22vw; }
.aurora .a2 { --c: rgba(var(--glow), .10); width: 56vw; height: 56vw; right: 6vw;   top: 18vw; }
.aurora .a3 { --c: rgba(var(--glow), .07); width: 48vw; height: 48vw; left: -20vw;  top: 34vw; }

/* Versão viva (home.js): canvas em baixa resolução, suavizado aqui.
   Quando ele existe, as manchas CSS somem. */
.aurora-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    filter: blur(28px);
}

/* feixes: linhas nítidas, sem blur; fallback estático mais discreto */
.aurora--beams .aurora-canvas { filter: none; }
.aurora--beams span { opacity: .5; }

.aurora.has-canvas span { display: none; }

/* véu: a luz some antes da base, onde entra o marquee de clientes */
.aurora::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 70%, var(--bg) 100%);
}

@keyframes aurora-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-8vw, 5vw, 0) scale(1.14); }
}

@media (prefers-reduced-motion: no-preference) {
    .aurora span { animation: aurora-drift 26s ease-in-out infinite alternate; }
    .aurora .a2 { animation-duration: 32s; animation-delay: -9s; }
    .aurora .a3 { animation-duration: 22s; animation-delay: -15s; }
}

.hero-grid {
    display: grid;
    gap: 40px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
        gap: 48px;
    }
}

.hero-copy {
    max-width: 62ch;
}

/* ---------- Painel "ao vivo" ao lado do título ----------
   Lista duplicada rolando para cima em loop (como o marquee, na vertical).
   Só desktop: no celular o hero fica compacto. */
.feed {
    display: none;
}

@media (min-width: 1024px) {
    .feed {
        display: block;
        justify-self: end;
        width: min(100%, 400px);
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--r-panel);
        box-shadow: 0 1px 2px rgba(27, 25, 23, .04), 0 24px 48px -24px rgba(27, 25, 23, .28);
        overflow: hidden;
    }
}

.feed-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line-soft);
    font-size: 0.8125rem;
    color: var(--ink-2);
}

.feed-live {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1F9D55;
}

.feed-live::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #1F9D55;
    opacity: 0;
}

.feed-body {
    --row: 64px;
    height: calc(var(--row) * 4);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}

.feed-track {
    margin: 0;
    padding: 0;
    list-style: none;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 14px;
    height: var(--row, 64px);
    padding: 0 16px;
    border-bottom: 1px solid var(--line-soft);
}

.feed-dot {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--ink-3);
}

/* cores de estado do próprio ERP (verde ok, âmbar dinheiro, azul envio) */
.feed-item--ok    .feed-dot { background: #2BB673; }
.feed-item--money .feed-dot { background: #E0A122; }
.feed-item--send  .feed-dot { background: #4A90E2; }
.feed-item--doc   .feed-dot { background: #8C867D; }

.feed-text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.feed-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--ink-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes feed-scroll {
    to { transform: translateY(-50%); }
}

@keyframes feed-ping {
    0%   { transform: scale(.6); opacity: .8; }
    100% { transform: scale(1.6); opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
    .feed-track { animation: feed-scroll 18s linear infinite; }
    .feed:hover .feed-track { animation-play-state: paused; }
    .feed-live::after { animation: feed-ping 1.8s ease-out infinite; }
}

.hero-kicker {
    margin: 0 0 12px;
    font-size: 0.9375rem;
    color: var(--ink-3);
}

.hero-title {
    margin: 0 0 24px;
    max-width: 16ch;
    font-size: clamp(2.625rem, 1.3rem + 3.6vw, 4.25rem);
    font-weight: 540;
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.hero-lead {
    margin: 0 0 32px;
    max-width: 44ch;
    font-size: 1.25rem;
    line-height: 1.45;
    color: var(--ink-2);
    text-wrap: pretty;
}

.hero-lead p { margin: 0; }
.hero-lead p + p { margin-top: 0.75em; }

.hero-cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Composição do produto: as janelas INTEIRAS, nada cortado ----------
   ERP ocupa 86% da largura; o EDI Agente encosta no canto inferior esquerdo e
   o app no canto inferior direito, ambos descendo um pouco abaixo do ERP.
   O padding-bottom do palco reserva esse espaço. */
.stage {
    position: relative;
    margin-top: clamp(40px, 5vw, 64px);
}

.stage--trio {
    padding-bottom: 12%;
}

/* sobre o preto, a janela ganha um fio de luz na borda e um halo branco
   fraco por baixo — é o produto que ilumina a folha */
.win {
    margin: 0;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-panel);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .06),
        0 24px 48px -24px rgba(0, 0, 0, .7),
        0 0 120px -30px rgba(var(--glow), .22);
}

.win img,
.win video {
    display: block;
    width: 100%;
    height: auto;
}

.win--erp {
    width: 86%;
}

.win--edi {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 34%;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .08),
        0 30px 60px -20px rgba(0, 0, 0, .8);
}

/* celular: moldura preta com um fio claro para não sumir no fundo */
.win--app {
    position: absolute;
    right: 2%;
    bottom: 0;
    width: 15%;
    border: 6px solid #1B1917;
    border-radius: clamp(18px, 2.4vw, 34px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .14),
        0 30px 60px -20px rgba(0, 0, 0, .8);
}

.win--single {
    width: 100%;
}

.win--single img,
.win--single video {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@media (max-width: 899px) {
    .stage--trio { padding-bottom: 14%; }
    .win--erp { width: 100%; }
    .win--edi { display: none; }
    .win--app { width: 30%; right: 0; }
}

/* ---------- Movimento: um único momento no load ---------- */
@keyframes hero-rise {
    to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-kicker,
    .hero-title,
    .hero-lead,
    .hero-cta,
    .feed,
    .win {
        opacity: 0;
        transform: translateY(18px);
        animation: hero-rise .7s var(--ease-out) forwards;
    }

    .hero-title  { animation-delay: .05s; }
    .hero-lead   { animation-delay: .13s; }
    .hero-cta    { animation-delay: .21s; }
    .feed        { animation-delay: .3s; }
    .win--erp,
    .win--single { animation-delay: .35s; }
    .win--edi    { animation-delay: .55s; }
    .win--app    { animation-delay: .7s; }
}

/* ---------- Mobile ---------- */
@media (max-width: 639px) {
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary { width: 100%; }
}

/* ============================================================
   PRODUTOS — cards na folha escura; print inteiro; cor só na barra
   ============================================================ */
.product-grid {
    display: grid;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    /* 2, 3 ou 4 por linha conforme couber (280px mínimo): 4 produtos = 4 colunas em 1200px */
    .product-grid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
}

.product {
    --p: var(--ink-3);   /* cor do produto; o template define por slug */
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-alt);
    border: 1px solid var(--line-soft);
    border-radius: var(--r-card);
    transition: border-color .24s ease;
}

.product:hover { border-color: var(--line); }

/* a cor do produto: uma barra de luz no topo, e só */
.product::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--p);
}

.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;             /* ocupa a altura toda: o rodapé (links) alinha entre os cards */
    gap: 8px;
    padding: 24px;
}

.product-mark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-2);
}

.product-mark i {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--p);
}

.product-title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 540;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.product-title a { color: var(--ink); }
.product-title a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; text-decoration-color: var(--line); }

.product-desc {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--ink-2);
}

/* rodapé do card: sempre na base, alinhado entre os cards */
.product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: auto;
    padding: 16px 24px;
    border-top: 1px solid var(--line-soft);
    font-size: 0.9375rem;
}

/* print do produto: inteiro (contain), com respiro, nunca cortado */
.product-media {
    display: grid;
    place-items: end center;
    padding: 0 24px;
}

.product-media img { border-bottom: 1px solid var(--line); border-radius: 10px 10px 0 0; }

.product-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: contain;
    object-position: bottom center;
    border-radius: 10px 10px 0 0;
    border: 1px solid var(--line);
    border-bottom: 0;
    background: #FFFFFF;
}

.section-more {
    margin: clamp(32px, 5vw, 48px) 0 0;
    font-size: 1.0625rem;
}

/* ============================================================
   PROJETOS — imagem + texto
   ============================================================ */
.project-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line);
}

.project {
    display: grid;
    gap: 24px 48px;
    padding: clamp(32px, 4vw, 48px) 0;
    border-bottom: 1px solid var(--line);
}

@media (min-width: 1024px) {
    .project {
        grid-template-columns: 5fr 6fr;
        align-items: center;
    }
    .project:nth-child(even) .project-window { order: 2; }
}

/* ---------- Janela do site: três camadas de movimento ----------
   .project-window  → entra deslizando do seu lado ao rolar (scroll-driven)
   .project-float   → flutua devagar, o tempo todo
   .project-media   → inclina em 3D seguindo o mouse (home.js) e volta */
.project-window {
    perspective: 1200px;
}

.project-media {
    --rx: 0deg;
    --ry: 0deg;
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    box-shadow: 0 1px 2px rgba(27, 25, 23, .04), 0 32px 64px -28px rgba(27, 25, 23, .35);
    transform: rotateX(var(--rx)) rotateY(var(--ry));
    transform-style: preserve-3d;
    transition: transform .5s var(--ease-out), box-shadow .5s ease;
    will-change: transform;
}

.project-media.is-tilting { transition: transform .08s linear; }

.project-media:hover {
    box-shadow: 0 1px 2px rgba(27, 25, 23, .04), 0 48px 80px -32px rgba(27, 25, 23, .45);
}

/* barra de navegador: três pontos, diz "isto é um site" */
.project-bar {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    border-bottom: 1px solid var(--line-soft);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* os três botões da janela do macOS (fechar, minimizar, ampliar), nas cores reais */
.project-bar i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--line);
    box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .12);
}

.project-bar i:nth-child(1) { background: #FF5F57; }
.project-bar i:nth-child(2) { background: #FEBC2E; }
.project-bar i:nth-child(3) { background: #28C840; }

/* a imagem é 12% mais alta que a moldura, alinhada pelo topo (o topo do site
   nunca é cortado); ao rolar, sobe devagar revelando a parte de baixo */
.project-media img {
    display: block;
    width: 100%;
    height: 112%;
    padding-top: 28px;
    object-fit: cover;
    object-position: top center;
}

@keyframes project-float {
    from { transform: translateY(0); }
    to   { transform: translateY(-10px); }
}

@keyframes project-slide-left {
    from { opacity: 0; transform: translateX(-56px); }
    to   { opacity: 1; transform: none; }
}

@keyframes project-slide-right {
    from { opacity: 0; transform: translateX(56px); }
    to   { opacity: 1; transform: none; }
}

@keyframes project-drift {
    from { transform: translateY(0); }
    to   { transform: translateY(-10.7%); }
}

@media (prefers-reduced-motion: no-preference) {
    .project-float {
        animation: project-float 6s ease-in-out infinite alternate;
    }
    .project:nth-child(even) .project-float { animation-delay: -3s; }

    @supports (animation-timeline: view()) {
        /* a janela só começa a entrar com 20% dela já na tela e termina com 80%:
           assim o movimento acontece com o card visível, não escondido na base */
        .project-window {
            animation: project-slide-left linear both;
            animation-timeline: view();
            animation-range: entry 20% entry 80%;
        }
        .project:nth-child(even) .project-window { animation-name: project-slide-right; }

        .project-media img {
            animation: project-drift linear both;
            animation-timeline: view();
            animation-range: entry 0% exit 100%;
        }
    }

    /* Fallback sem animation-timeline (Firefox): mesmos ranges, progresso em
       --sp vindo do main.js. O tilt (--rx/--ry) continua funcionando por cima. */
    @supports not (animation-timeline: view()) {
        :root.scroll-fallback .project-window {
            opacity: var(--sp, 1);
            transform: translateX(calc((1 - var(--sp, 1)) * -56px));
        }
        :root.scroll-fallback .project:nth-child(even) .project-window {
            transform: translateX(calc((1 - var(--sp, 1)) * 56px));
        }
        :root.scroll-fallback .project-media img {
            transform: translateY(calc(var(--sp, 0) * -10.7%));
        }
    }
}

.project-body > * + * { margin-top: 12px; }

.project-client {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--ink-3);
}

.project-title {
    margin: 0;
    font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.project-title a { color: var(--ink); }

.project-desc {
    max-width: 56ch;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--ink-2);
}

.project-stack {
    font-size: 0.8125rem;
    color: var(--ink-3);
    white-space: pre-wrap;
}

/* ============================================================
   COMO TRABALHAMOS — bloco escuro, três afirmações
   ============================================================ */
.pillars {
    display: grid;
    gap: 32px;
    margin: 0;
}

@media (min-width: 768px) {
    .pillars { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

.pillar {
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.pillar-title {
    margin: 0 0 10px;
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.pillar-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink-2);
}

/* ============================================================
   DEPOIMENTOS — citações
   ============================================================ */
.quote-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(85%, 360px);
    gap: 16px;
    margin: 0 calc(-1 * clamp(16px, 4vw, 40px));
    padding: 0 clamp(16px, 4vw, 40px) 8px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.quote-list::-webkit-scrollbar { display: none; }

@media (min-width: 1024px) {
    .quote-list {
        grid-auto-flow: row;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        margin: 0;
        padding: 0;
        overflow: visible;
    }
}

.quote {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    scroll-snap-align: start;
    background: var(--bg-alt);
    border-radius: var(--r-panel);
}

.quote-body { margin: 0; flex: 1; }

.quote-body p {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: var(--ink);
    text-wrap: pretty;
}

.quote-body p::before { content: "\201C"; }
.quote-body p::after  { content: "\201D"; }

.quote-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quote-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.quote-name { margin: 0; font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.quote-byline { margin: 0; font-size: 0.8125rem; color: var(--ink-3); }

