/* =========================================================================
   Prace · visual claro e sóbrio: fundo branco, cinzas neutros, azul de acento,
   botões retangulares, cartões brancos com sombra suave. Muito espaço, uma ideia
   por seção, e blocos (bento) só onde há prova (diferenciais, projetos, experiência).
   - Claro é o padrão. Escuro: botão do topo (data-theme="dark") ou, sem escolha
     salva, o tema do sistema (prefers-color-scheme: dark).
   - Os componentes só usam as variáveis abaixo.
   ========================================================================= */

:root {
    --font-sans: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
    --font-serif: Georgia, "Times New Roman", serif; /* só o laboratório /brand */

    --red: #C42B1C;
    --r: 12px;         /* cartões */
    --r-sm: 8px;       /* faixas internas, ícones */
    --r-btn: 4px;      /* botões, chips, campos */
    --radius: 4px;     /* nome antigo (/brand) */
    --gap: 20px;
    --max: 1200px;
    --gutter: 32px;
    --header-h: 56px;
    --section: clamp(72px, 10vw, 128px);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Paletas de destaque ----------
   --a-l*  acento no tema claro: cor, fundo suave, borda suave, hover
   --a-d*  acento no tema escuro
   Ativa: <html data-palette="..."> (padrão em appsettings: Site:Palette). */
:root,
:root[data-palette="azul"] {
    --a-l: #0067B8; --a-l-hover: #005DA6; --a-l-bg: #EAF3FB; --a-l-bd: #B9D7F0;
    --a-d: #60A5FA; --a-d-hover: #8CC0FC; --a-d-bg: #102A43; --a-d-bd: #1F4D7A;
}
:root[data-palette="verde"] {
    --a-l: #1E7A44; --a-l-hover: #17633A; --a-l-bg: #E6F2EA; --a-l-bd: #A8D5B5;
    --a-d: #4ADE80; --a-d-hover: #7AE8A2; --a-d-bg: #0F2A1A; --a-d-bd: #1E5A36;
}
:root[data-palette="grafite"] {
    --a-l: #1B1B1B; --a-l-hover: #000000; --a-l-bg: #EDEDED; --a-l-bd: #C8C8C8;
    --a-d: #F3F4F6; --a-d-hover: #FFFFFF; --a-d-bg: #1F242B; --a-d-bd: #3A424D;
}

/* ---------- Tokens derivados (recalculados onde o tema muda) ---------- */
:root,
.tone-dark,
.tone-light {
    --prace-primary: var(--accent);
    --prace-text: var(--heading);
    --prace-muted: var(--muted);
    /* Nomes antigos, usados pelo laboratório /brand */
    --card: var(--tile);
    --line-soft: var(--line);
    --serif: var(--muted);
    --strong: var(--heading);
    --accent-text: var(--accent);
    --tag-bg: var(--accent-bg);
    --tag-border: var(--accent-bd);
    --tag-text: var(--accent);
    --hover: var(--tile-2);
    --grid-line: var(--line);
}

/* ---------- Tema claro (padrão) ---------- */
:root,
.tone-light {
    --bg: #FFFFFF;
    --bg-alt: #F2F2F2;       /* rodapé */
    --band: #EAF3FB;         /* faixa azul que separa uma seção */
    --tile: #FFFFFF;
    --tile-2: #F5F5F5;       /* bloco discreto (legado) */
    --chip: #F2F2F2;
    --line: #E1E1E1;
    --line-strong: #8A8A8A;
    --heading: #1B1B1B;
    --body: #3B3B3B;
    --muted: #616161;
    --accent: var(--a-l);
    --accent-hover: var(--a-l-hover);
    --accent-bg: var(--a-l-bg);
    --accent-bd: var(--a-l-bd);
    --on-accent: #FFFFFF;
    --input-bg: #FFFFFF;
    --header-bg: rgba(255, 255, 255, .82);
    --shadow: 0 1.6px 3.6px rgba(0, 0, 0, .10), 0 .3px .9px rgba(0, 0, 0, .08);
    --shadow-hover: 0 6.4px 14.4px rgba(0, 0, 0, .12), 0 1.2px 3.6px rgba(0, 0, 0, .09);
    --tile-border: transparent;
    --wash: radial-gradient(900px 420px at 50% -10%, #EAF3FB, transparent 70%);
    --prace-on-primary: #FFFFFF;
    color-scheme: light;
}

/* ---------- Tema escuro: escolhido no botão ou pelo sistema ---------- */
:root[data-theme="dark"],
.tone-dark {
    --bg: #0E1116;
    --bg-alt: #12161C;
    --band: #0F1B29;
    --tile: #161B22;
    --tile-2: #12161C;
    --chip: #222932;
    --line: #2A313B;
    --line-strong: #6B7480;
    --heading: #F3F4F6;
    --body: #C9CED6;
    --muted: #9AA3AE;
    --accent: var(--a-d);
    --accent-hover: var(--a-d-hover);
    --accent-bg: var(--a-d-bg);
    --accent-bd: var(--a-d-bd);
    --on-accent: #0E1116;
    --input-bg: #0E1116;
    --header-bg: rgba(14, 17, 22, .78);
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, .45);
    --tile-border: #2A313B;
    --wash: radial-gradient(900px 420px at 50% -10%, #0F2238, transparent 70%);
    --prace-on-primary: #0E1116;
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0E1116;
        --bg-alt: #12161C;
        --band: #0F1B29;
        --tile: #161B22;
        --tile-2: #12161C;
        --chip: #222932;
        --line: #2A313B;
        --line-strong: #6B7480;
        --heading: #F3F4F6;
        --body: #C9CED6;
        --muted: #9AA3AE;
        --accent: var(--a-d);
        --accent-hover: var(--a-d-hover);
        --accent-bg: var(--a-d-bg);
        --accent-bd: var(--a-d-bd);
        --on-accent: #0E1116;
        --input-bg: #0E1116;
        --header-bg: rgba(14, 17, 22, .78);
        --shadow: 0 1px 2px rgba(0, 0, 0, .4);
        --shadow-hover: 0 8px 24px rgba(0, 0, 0, .45);
        --tile-border: #2A313B;
        --wash: radial-gradient(900px 420px at 50% -10%, #0F2238, transparent 70%);
        --prace-on-primary: #0E1116;
        color-scheme: dark;
    }
}

.tone-dark,
.tone-light { background: var(--bg); color: var(--body); }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--body);
    font: 400 16px/1.6 var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--heading); font-weight: 600; }
h1:focus { outline: none; }
strong { color: var(--heading); font-weight: 600; }

/* *destaque* (site.json): cor de acento, sem itálico */
em { font-style: normal; font-weight: inherit; color: var(--accent); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 800px; }

.skip-link {
    position: absolute;
    left: -10000px;
    top: 12px;
    z-index: 100;
    padding: 8px 14px;
    border-radius: var(--r-btn);
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 600;
}
.skip-link:focus { left: 16px; }

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

/* ---------- Tipografia ---------- */

/* Rótulos pequenos em mono, discretos */
.mono,
.mono-label,
.sec-tag,
.breadcrumb {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--heading); text-decoration: underline; }

.display {
    margin: 16px auto 0;
    font: 600 clamp(44px, 7.6vw, 88px)/1.04 var(--font-sans);
    letter-spacing: -.025em;
    color: var(--heading);
}
.display-md { margin: 12px 0 0; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.08; max-width: 18ch; }

.title {
    margin: 6px 0 0;
    font: 600 clamp(28px, 3.6vw, 40px)/1.15 var(--font-sans);
    letter-spacing: -.015em;
    color: var(--heading);
}
.title-xl { font-size: clamp(32px, 5vw, 56px); line-height: 1.08; letter-spacing: -.02em; }

.lead {
    margin: 20px 0 0;
    max-width: 56ch;
    font-size: clamp(17px, 1.8vw, 20px);
    line-height: 1.55;
    color: var(--body);
}

.link {
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.link:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 4px; }

.arr { display: inline-block; transition: transform .2s ease; }
a:hover .arr, button:hover .arr { transform: translateX(3px); }

.badge {
    padding: 2px 8px;
    border-radius: var(--r-btn);
    background: rgba(196, 43, 28, .10);
    color: var(--red);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* ---------- Botões: retângulos de canto pequeno ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-btn);
    background: transparent;
    color: var(--heading);
    font: 600 15px/1.2 var(--font-sans);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { border-color: var(--heading); background: var(--bg-alt); }
.btn-lg { padding: 12px 24px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 14px; }

.btn-solid,
.btn-light { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-solid:hover,
.btn-light:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }

/* Nomes antigos, usados pelo laboratório /brand */
.btn-gray, .btn-ghost { background: transparent; color: var(--heading); }
.btn-green { background: var(--accent-bg); color: var(--accent); border-color: var(--accent-bd); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.actions-center { justify-content: center; }

/* ---------- Selos, pontos e chips ---------- */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 5px 12px;
    border: 1px solid var(--accent-bd);
    border-radius: 999px;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
    70%, 100% { box-shadow: 0 0 0 7px transparent; }
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent-bg);
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
.status-wip, .status-open { background: var(--chip); color: var(--body); }
.status-wip .dot { background: var(--accent); }
/* Em breve: ainda não começou. Contorno tracejado, sem pulso. */
.status-soon { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.status-soon .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); animation: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li,
.chip {
    padding: 4px 10px;
    border-radius: var(--r-btn);
    background: var(--chip);
    color: var(--heading);
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
}

.icon-box {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    background: var(--accent-bg);
    color: var(--accent);
}
.icon-box svg { width: 22px; height: 22px; }

/* ---------- Header: fixo e translúcido ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav-link { color: var(--body); font-size: 14px; text-decoration: none; }
.nav-link:hover { color: var(--heading); text-decoration: underline; text-underline-offset: 6px; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-switch {
    display: inline-grid;
    place-items: center;
    min-width: 36px;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--r-btn);
    color: var(--body);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.lang-switch:hover { background: var(--bg-alt); color: var(--heading); }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: var(--r-btn);
    background: transparent;
    color: var(--heading);
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}
.icon-btn:hover { background: var(--bg-alt); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Ícone do botão de tema: mostra o tema para o qual vai trocar (claro → lua, escuro → sol) */
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .icon-sun { display: block; }
    :root:not([data-theme="light"]) .icon-moon { display: none; }
}

.header-cta { margin-left: 8px; }

.mobile-menu { display: none; position: relative; }
.mobile-menu summary { list-style: none; }
.mobile-menu summary::-webkit-details-marker { display: none; }

.mobile-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    display: grid;
    gap: 2px;
    min-width: 220px;
    padding: 10px;
    border: 1px solid var(--tile-border);
    border-radius: var(--r);
    background: var(--tile);
    box-shadow: var(--shadow-hover);
}
.mobile-panel a:not(.btn) { padding: 10px 10px; border-radius: var(--r-btn); color: var(--heading); text-decoration: none; }
.mobile-panel a:not(.btn):hover { background: var(--bg-alt); }
.mobile-panel .btn { margin-top: 8px; }

/* ---------- Logo ---------- */

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -.02em;
    text-transform: uppercase;
    text-decoration: none;
}

.logo-dot { width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }

/* Logos (Shared/PraceLogo.razor). As cores vêm dos tokens --prace-*. */
.prace-logo { display: block; width: auto; height: 40px; overflow: visible; }
.logo-text { display: inline-flex; align-items: center; gap: 10px; }

/* BrandMark: mostra só a variante escolhida em <html data-logo="..."> */
.brand-mark { flex: none; }
.brand-mark > [data-v] { display: none; }
:root[data-logo="dot"] .brand-mark > [data-v="dot"] { display: inline-flex; }
:root[data-logo="horizontal"] .brand-mark > [data-v="horizontal"],
:root[data-logo="compact"] .brand-mark > [data-v="compact"],
:root[data-logo="bridge"] .brand-mark > [data-v="bridge"],
:root[data-logo="syne"] .brand-mark > [data-v="syne"],
:root[data-logo="stacked"] .brand-mark > [data-v="stacked"] { display: block; }
/* Produção: só uma variante é renderizada; sempre visível. */
.brand-mark-fixed > [data-v] { display: block; }
.brand-mark-fixed > [data-v="dot"] { display: inline-flex; }

.brand-mark [data-v="horizontal"] { height: 34px; }
.brand-mark [data-v="compact"] { height: 24px; }
.brand-mark [data-v="bridge"] { height: 32px; }
.brand-mark [data-v="syne"] { height: 22px; }
.brand-mark [data-v="stacked"] { height: 38px; }

/* ---------- Seções ---------- */

.sec { padding: var(--section) 0 0; }
main > .sec:last-child { padding-bottom: var(--section); }

/* Faixa azul clara de largura total (separa uma seção) */
.band {
    margin-top: var(--section);
    padding: clamp(56px, 7vw, 88px) 0;
    background: var(--band);
}
.band + .sec { padding-top: var(--section); }

.sec-head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}
.sec-label { margin-bottom: 4px; }

/* Topo da Home (e 404): grande, calmo, centralizado */
.hero-center {
    padding: clamp(80px, 13vw, 168px) 0 0;
    text-align: center;
    background: var(--wash);
}
.hero-center .display { max-width: 14ch; }
.hero-center .display em { display: block; }
.hero-center .lead { max-width: 44ch; margin-left: auto; margin-right: auto; }
.hero-eyebrow { margin-top: 24px; }
.not-found { padding-bottom: var(--section); }
.not-found .display { max-width: 16ch; font-size: clamp(36px, 6vw, 68px); }

/* Topo das páginas internas */
.page-hero { padding: clamp(56px, 9vw, 112px) 0 0; background: var(--wash); }
.page-hero-copy .pill { margin-top: 20px; }
.page-hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr);
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
}
.page-hero + .sec { padding-top: clamp(48px, 6vw, 72px); }

/* ---------- Cartões e grade (bento) ---------- */

.bento { display: grid; gap: var(--gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bento-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bento-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: clamp(22px, 2.6vw, 32px);
    overflow: hidden;
    border: 1px solid var(--tile-border);
    border-radius: var(--r);
    background: var(--tile);
    box-shadow: var(--shadow);
    transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.tile-link:hover,
.project-card:hover,
.edge-item:hover,
.experience-item:hover { box-shadow: var(--shadow-hover); }
.tile h2,
.tile h3 {
    margin: 0;
    font: 600 clamp(20px, 2vw, 24px)/1.25 var(--font-sans);
    letter-spacing: -.01em;
    color: var(--heading);
}
.tile p { margin: 0; }
.tile-foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.tile-note { font-size: 14px; color: var(--muted); }
.tile-dashed { background: transparent; border: 1.5px dashed var(--line-strong); box-shadow: none; }
.tile-link { color: inherit; text-decoration: none; }

/* Retrato: imagem em cima, legenda embaixo (fora da foto, sempre legível) */
.tile-portrait { padding: 0; gap: 0; }
.portrait-frame {
    position: relative;
    flex: 1;
    min-height: 300px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--accent-bg), var(--tile-2));
}
.portrait-frame .portrait {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 12%;
}
/* Avatar vazio enquanto a foto nova não chega: silhueta em cinza claro, sem rosto */
.portrait-frame .portrait-placeholder { top: 14%; height: 86%; fill: var(--line-strong); opacity: .7; }
.portrait-caption {
    display: grid;
    gap: 2px;
    padding: 16px 20px 18px;
    border-top: 1px solid var(--line);
}
.portrait-caption b { color: var(--heading); font-size: 16px; font-weight: 600; }
.tile-portrait-aside .portrait-frame { min-height: 0; aspect-ratio: 4 / 4.4; }

/* O que eu trago */
.bento-edge {
    grid-template-areas:
        "port core core next"
        "port core core next";
}
.bento-edge .tile-portrait { grid-area: port; }
/* 1: .NET moderno (a base, tile grande) · 2: LLMs (a direção, com o ponto pulsando de "em andamento") */
.edge-item-1 { grid-area: core; }
.edge-item-1 h3 { font-size: clamp(24px, 2.6vw, 32px); }
.edge-item-1 p:last-child { max-width: 46ch; margin-top: auto; font-size: 17px; }
.edge-item-2 { grid-area: next; }
.edge-item-2 .tile-note { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.edge-item-2 .tile-note::before {
    content: "";
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2.4s ease-out infinite;
}

/* Projetos */
.bento-work { align-items: start; }
.project-card { grid-column: span 3; gap: 16px; }
.project-next { grid-column: span 1; }
.project-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.tile .project-name { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -.02em; }
.project-tagline { max-width: 56ch; font-size: 17px; }
.project-ai-note { font-size: 14.5px; }
.project-next .tile-foot { margin-top: 4px; }

/* Faixa de etapas (pipeline): o número da etapa é automático */
.pipeline {
    display: grid;
    grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)) auto;
    gap: 10px;
    align-items: stretch;
    margin: 4px 0 0;
    padding: 14px;
    list-style: none;
    border-radius: var(--r-sm);
    background: var(--bg-alt);
    counter-reset: step;
}
.pipeline li {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: var(--r-btn);
    background: var(--tile);
    box-shadow: var(--shadow);
}
.pipeline b { color: var(--heading); font-size: 14px; font-weight: 600; line-height: 1.25; }
.pipeline-step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 11px;
}
.pipeline-step b::after { content: " \2713"; color: var(--accent); }
.pipeline-step:has(+ .pipeline-step)::after {
    content: "";
    position: absolute;
    right: -11px;
    top: 50%;
    width: 10px;
    height: 2px;
    background: var(--accent);
}
.pipeline-fallback { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--line-strong) !important; }
.pipeline-fallback .mono { font-size: 11px; }
.pipeline-fallback b { color: var(--body); }
.flow { position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent); }
.project-card:hover .flow { animation: flow 1.6s ease forwards; }
.project-card:hover .pipeline-step:nth-child(2) .flow { animation-delay: .25s; }
.project-card:hover .pipeline-step:nth-child(3) .flow { animation-delay: .5s; }
.project-card:hover .pipeline-step:nth-child(4) .flow { animation-delay: .75s; }
@keyframes flow { to { width: 100%; } }

.highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 15px;
}
.highlights li { position: relative; padding-left: 18px; }
.highlights li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .62em;
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background: var(--accent);
}

.metrics { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0; }
.metrics div { display: flex; flex-direction: column-reverse; gap: 4px; }
.metrics dd { margin: 0; color: var(--heading); font-size: 28px; font-weight: 600; letter-spacing: -.02em; }

/* Experiência */
.exp-org { display: flex; align-items: center; gap: 14px; }
.exp-org h3 { font-size: clamp(22px, 2.4vw, 28px); }
.exp-org .mono { margin-top: 2px; }
.exp-role { color: var(--accent); font-size: 14px; font-weight: 600; }
.experience-item > p:not(.exp-role) { font-size: 16px; }

/* Sobre */
.tile-prose { padding: clamp(26px, 4vw, 48px); }
.tile.principle h3 { font-size: clamp(18px, 1.7vw, 21px); }

/* Fechamento: uma ideia, centralizada */
.closing-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}
.closing .title { max-width: 18ch; margin-top: 8px; }
.closing .lead { max-width: 40ch; margin-top: 0; }
.closing .actions { margin-top: 16px; }

/* Depoimentos */
.quote-mark { color: var(--accent); font-family: var(--font-serif); font-size: 3rem; line-height: .6; }
.quote blockquote { margin: 12px 0 8px; color: var(--heading); font-size: 1.05rem; line-height: 1.6; }

/* Artigos */
.tile.article-card h2,
.tile.article-card h3 { font-size: clamp(19px, 1.8vw, 22px); }
.article-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.article-hero .display-md { max-width: 24ch; font-size: clamp(30px, 4.4vw, 48px); }
.article-back { margin: 48px 0 0; }

/* Texto corrido (Sobre, artigos): largura de leitura */
.prose { max-width: 68ch; }
.prose p { margin: 0 0 20px; color: var(--body); font-size: 17px; line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }
.prose em { color: var(--heading); font-style: italic; font-weight: 600; }

.article-body { max-width: 68ch; }
.article-body h2 { margin: 48px 0 14px; color: var(--heading); font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.01em; line-height: 1.2; }
.article-body h3 { margin: 32px 0 10px; font-size: 1.15rem; }
.article-body ul, .article-body ol { padding-left: 22px; color: var(--body); font-size: 17px; line-height: 1.75; }
.article-body a { color: var(--accent); text-underline-offset: 3px; }
.article-body blockquote { margin: 28px 0; padding: 18px 22px; border-left: 3px solid var(--accent); border-radius: var(--r-btn); background: var(--band); }
.article-body blockquote p { margin: 0; font-size: 16px; }
.article-body code { padding: 2px 6px; border-radius: var(--r-btn); background: var(--chip); font-family: var(--font-mono); font-size: .88em; }
.article-body pre { overflow-x: auto; padding: 20px 22px; border-radius: var(--r-sm); background: #1B1B1B; color: #F3F4F6; }
.article-body pre code { padding: 0; background: none; color: inherit; }
.article-body img { border-radius: var(--r-sm); }
.article-body .roadmap { list-style: none; margin: 28px 0 36px; padding: 0; border-left: 2px solid var(--line); }
.article-body .roadmap li { position: relative; padding: 0 0 28px 28px; }
.article-body .roadmap li:last-child { padding-bottom: 0; }
.article-body .roadmap li::before { content: ""; position: absolute; left: -6px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.article-body .roadmap li.next::before { background: var(--bg); box-shadow: inset 0 0 0 2px var(--line-strong); }
.article-body .roadmap h3 { margin: 6px 0; font-size: 1.1rem; }
.article-body .roadmap p { margin: 0; font-size: 16px; line-height: 1.7; }
.article-body .roadmap li.next p { color: var(--muted); }
.article-body table { display: block; width: 100%; overflow-x: auto; margin: 24px 0 28px; border-collapse: collapse; font-size: 15px; }
.article-body th, .article-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--body); text-align: left; vertical-align: top; }
.article-body th { color: var(--heading); font-weight: 600; }

/* Contato */
.contact { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.contact-form { display: grid; gap: 20px; }
.contact-form label { display: grid; gap: 6px; }
.contact-form label > span:first-child { color: var(--heading); font-size: 14px; font-weight: 600; }
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-btn);
    background: var(--input-bg);
    color: var(--heading);
    font: 16px/1.5 var(--font-sans);
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.contact-form button { justify-self: start; }

.field-error { color: var(--red); font-size: 14px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { margin: 0 0 20px; padding: 14px 18px; border-left: 3px solid; border-radius: var(--r-btn); font-weight: 600; }
.notice.success { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); }
.notice.error { border-color: var(--red); background: rgba(196, 43, 28, .08); color: var(--red); }

.form-note { margin: -4px 0 0; color: var(--muted); font-size: 14px; }
.form-note a { color: var(--accent); text-underline-offset: 3px; }

.direct ul { display: grid; gap: 14px; margin: 4px 0 0; padding: 0; list-style: none; }
.direct a { color: var(--accent); font-weight: 600; text-underline-offset: 4px; overflow-wrap: anywhere; }

/* Privacidade */
.privacy-updated { margin-top: 24px; }

/* ---------- Rodapé: cinza claro ---------- */

.site-footer { margin-top: 0; padding: 48px 0 32px; background: var(--bg-alt); color: var(--muted); font-size: 13px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--heading); text-decoration: underline; }

.footer-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}
.footer-logo { display: inline-block; margin-left: -4px; }
.footer-logo .prace-logo { height: 46px; max-width: 100%; }
.footer-tagline { margin: 8px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.footer-links a { color: var(--body); }

.footer-copy {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin: 28px 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

/* ---------- Entrada suave ---------- */

.reveal { animation: rise .7s var(--ease) both; }
.reveal.d1 { animation-delay: .06s; }
.reveal.d2 { animation-delay: .12s; }
.reveal.d3 { animation-delay: .18s; }
.reveal.d4 { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Responsivo ---------- */

@media (max-width: 1020px) {
    .bento-edge {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "port core"
            "port next";
    }
    .bento-work { grid-template-columns: minmax(0, 1fr); }
    .project-card, .project-next { grid-column: auto; }
    .bento-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pipeline-fallback { grid-column: 1 / -1; }
    .pipeline-step:has(+ .pipeline-step)::after { display: none; }
    .contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    :root { --gutter: 16px; --gap: 14px; --section: 64px; }

    .nav { display: none; }
    .mobile-menu { display: block; }
    .header-actions { margin-left: auto; }

    .bento-edge {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "port" "core" "next";
    }
    .bento-2, .bento-3 { grid-template-columns: minmax(0, 1fr); }
    .portrait-frame { min-height: 0; aspect-ratio: 4 / 3.6; }
    .highlights { grid-template-columns: minmax(0, 1fr); }
    .page-hero-split { grid-template-columns: minmax(0, 1fr); }
    .page-hero-aside { max-width: 360px; }
    .hero-center .actions .btn { flex: 1 1 auto; }
    .footer-top { align-items: flex-start; flex-direction: column; }
    .pipeline { gap: 8px; padding: 10px; }
    .pipeline li { padding: 8px 10px; }
}

@media (max-width: 560px) {
    .header-cta { display: none; }
}

@media (max-width: 380px) {
    .chips li { white-space: normal; }
    .pill { font-size: 12px; padding: 4px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .pipeline-step .flow { width: 100%; }
}

/* =========================================================================
   Laboratório de marca (/brand). Pode ser apagado quando a marca for definida.
   ========================================================================= */

/* Alturas fixas para os logos de exemplo */
.prace-logo.h-26 { height: 26px; } .prace-logo.h-28 { height: 28px; } .prace-logo.h-30 { height: 30px; }
.prace-logo.h-32 { height: 32px; } .prace-logo.h-34 { height: 34px; } .prace-logo.h-38 { height: 38px; }
.prace-logo.h-40 { height: 40px; } .prace-logo.h-44 { height: 44px; } .prace-logo.h-48 { height: 48px; }
.prace-logo.h-56 { height: 56px; } .prace-logo.h-64 { height: 64px; } .prace-logo.h-68 { height: 68px; }
.prace-logo.h-80 { height: 80px; }

/* Controles */
.lab-controls { display: grid; gap: 22px; margin-top: 44px; padding: 28px; border: 1px solid var(--line); background: var(--card); }
.lab-control { display: grid; gap: 10px; }
.lab-control-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.lab-options { display: flex; flex-wrap: wrap; gap: 8px; }

.lab-chip {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 14px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--bg); color: var(--heading);
    font: 500 0.88rem/1 var(--font-sans);
    cursor: pointer;
}
.lab-chip:hover { border-color: var(--muted); }
.lab-chip[aria-pressed="true"] { border-color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--accent-text); }

.lab-swatch { display: inline-flex; }
.lab-swatch i { width: 14px; height: 14px; border: 1px solid rgba(127, 127, 127, 0.4); }
.lab-swatch i + i { margin-left: -1px; }

/* Logos nos dois tons */
.lab-logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.lab-logo-card { margin: 0; border: 1px solid var(--line); background: var(--card); }
.lab-logo-card:first-child { grid-column: 1 / -1; }
.lab-logo-pair { display: grid; grid-template-columns: 1fr 1fr; }
.lab-logo-stage { display: grid; place-items: center; min-height: 190px; padding: 32px 20px; }
.lab-logo-stage .prace-logo { max-width: 100%; }
.lab-logo-card figcaption,
.lab-frame figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 16px 20px; border-top: 1px solid var(--line); }
.lab-logo-card figcaption strong,
.lab-frame figcaption strong { color: var(--heading); font-weight: 600; }
.lab-logo-card figcaption > span:last-child,
.lab-frame figcaption > span:last-child { color: var(--body); font-size: 0.92rem; }

/* Navbars de exemplo */
.lab-navs { display: grid; gap: 36px; }
.lab-frame { margin: 0; border: 1px solid var(--line); background: var(--card); }
.lab-frame figcaption { border-top: 0; border-bottom: 1px solid var(--line); }
.lab-frame-body { overflow: hidden; }

.mock-nav {
    display: flex; align-items: center; gap: 32px;
    min-height: 68px; padding: 0 28px;
    border-bottom: 1px solid var(--line);
}
.mock-tall { min-height: 84px; }
.mock-links { display: flex; align-items: center; gap: 24px; color: var(--heading); font-size: 0.93rem; font-weight: 500; white-space: nowrap; }
.mock-links small { font-size: 0.65rem; opacity: 0.7; }
.mock-mono { font: 500 0.72rem var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; }
.mock-right { margin-left: auto; }
.mock-right + .mock-actions { margin-left: 0; }
.mock-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.mock-link { color: var(--heading); font-size: 0.93rem; font-weight: 500; }
.mock-accent { color: var(--accent-text); }
.mock-nav .btn, .mock-nav .icon-btn { cursor: default; }

.mock-center { display: grid; grid-template-columns: 1fr auto 1fr; }
.mock-center .mock-actions { justify-self: end; }

.mock-masthead { border-bottom: 1px solid var(--line); }
.mock-masthead-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px 28px; }
.mock-right-text { justify-self: end; }
.mock-masthead-links {
    display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 36px;
    padding: 14px 28px; border-top: 1px solid var(--line);
    color: var(--heading); font: 500 0.72rem var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase;
}

.mock-block { padding-left: 0; }

.mock-strip {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 8px 16px; border-bottom: 1px solid var(--line-soft);
    color: var(--heading); font: 500 0.72rem var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
}

.mock-float-stage { position: relative; padding: 18px 18px 64px; }
.mock-float-stage::before {
    content: ""; position: absolute; inset: 0;
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 40px 40px;
}
.mock-float { position: relative; min-height: 58px; padding: 0 12px 0 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); }

.mock-solid {
    --bg: var(--a-l);
    --heading: #FAF9F6;
    --line: transparent;
    --prace-primary: #FAF9F6;
    --prace-on-primary: var(--a-l);
}
.mock-solid-btn { background: #FAF9F6; color: var(--a-l); border-color: #FAF9F6; }

.mock-person { display: inline-flex; align-items: center; gap: 12px; }
.mock-person > span { display: grid; gap: 2px; line-height: 1.2; }
.mock-person strong { color: var(--heading); font-size: 1rem; letter-spacing: -0.01em; }

/* Celular */
.lab-phones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.lab-phone { margin: 0; }
.lab-phone > figcaption { margin-top: 12px; }
.mock-phone-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 14px; border: 1px solid var(--line); }
.mock-phone-icons { display: flex; gap: 6px; }
.mock-phone-icons .icon-btn { min-width: 34px; height: 34px; cursor: default; }
.mock-phone-body { min-height: 220px; padding: 28px 14px; border: 1px solid var(--line); border-top: 0; }
.mock-phone-body .breadcrumb { font-size: 0.6rem; margin-bottom: 12px; }
.mock-phone-title { margin: 0; color: var(--heading); font-size: 1.5rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.mock-phone-title em { font-family: var(--font-serif); font-weight: 400; color: var(--serif); }

/* Aplicações */
.lab-apps { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.lab-app { margin: 0; display: grid; gap: 12px; }
.lab-avatars { display: flex; align-items: center; gap: 16px; padding: 28px; border: 1px solid var(--line); }
.lab-avatar { display: grid; place-items: center; width: 96px; height: 96px; background: var(--prace-primary); overflow: hidden; }
.lab-avatar .prace-logo { height: 100%; }
.lab-avatar-round { border-radius: 50%; }
.lab-avatar-round .prace-logo { height: 82%; }
.lab-avatar-sm { width: 40px; height: 40px; }
.lab-signature { padding: 24px; border: 1px solid var(--line); }
.lab-signature p { margin: 0; color: var(--body); }
.lab-signature hr { margin: 18px 0; border: 0; border-top: 1px solid var(--line-soft); }
.lab-signature .mono-label { margin-top: 10px; }
.lab-cover { display: grid; gap: 18px; padding: 36px 32px; border: 1px solid var(--line); }
.lab-cover p { margin: 0; color: var(--heading); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.lab-cover em { font-family: var(--font-serif); font-weight: 400; color: var(--serif); }

@media (max-width: 1080px) {
    .mock-links { display: none; }
    .mock-center { display: flex; }
    .lab-phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lab-apps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
    .lab-logos, .lab-logo-pair { grid-template-columns: minmax(0, 1fr); }
    .lab-phones { grid-template-columns: minmax(0, 1fr); }
    .mock-nav { gap: 16px; padding: 0 16px; }
    .mock-nav .btn { display: none; }
    .mock-masthead-top { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; }
    .mock-right-text { justify-self: center; }
    .lab-controls { padding: 18px; }
}
