/* Páginas de conteúdo do portefólio: serviços, «Sobre mim» e blog.
   Só é carregado nessas páginas (a página inicial não o pede). Usa as variáveis e componentes de motion.css. */

/* ---------- cabeçalho de página ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px 10px; list-style: none; padding: 0; margin: 0 0 clamp(26px, 4vw, 54px); }
.crumbs li + li::before { content: '/'; margin-right: 10px; opacity: .5; }
.crumbs [aria-current] { opacity: .7; }
.pg-hero { padding: calc(var(--header-h) + clamp(50px, 7vw, 100px)) 0 clamp(50px, 7vw, 110px); }
.pg-eyebrow { margin-bottom: 22px; }
[data-theme='black'] .pg-eyebrow, [data-theme='black'] .post-meta { color: var(--lime); }
.pg-title { font-size: clamp(2.6rem, 8.4vw, 8.6rem); font-weight: 600; letter-spacing: -.055em; line-height: .88; text-transform: uppercase; text-wrap: balance; }
.pg-title .line { display: block; }
.pg-title .is-accent { color: var(--lime); }
.pg-title-sm { font-size: clamp(2.1rem, 5.2vw, 5.2rem); line-height: .95; letter-spacing: -.045em; text-transform: none; max-width: 22ch; }
.pg-lead { margin-top: clamp(22px, 3vw, 40px); max-width: 46ch; font-size: clamp(1.15rem, 1.9vw, 1.75rem); line-height: 1.25; letter-spacing: -.015em; font-weight: 500; }
[data-theme='black'] .pg-lead { color: #e9e9e9; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(26px, 3.4vw, 44px); }

/* ---------- secções ---------- */
.pg-sec { padding: clamp(70px, 9vw, 140px) 0; }
.pg-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 90px); align-items: start; }
.pg-h2 { font-size: clamp(1.9rem, 4vw, 3.8rem); font-weight: 600; letter-spacing: -.05em; line-height: .95; text-transform: uppercase; margin-bottom: clamp(22px, 3vw, 40px); }
.pg-split > .pg-h2 { margin-bottom: 0; position: sticky; top: 110px; }
.pg-h2-gap { margin-top: clamp(50px, 7vw, 100px); }
.pg-sub { max-width: 60ch; margin: -10px 0 clamp(26px, 3vw, 40px); color: var(--dim); }
[data-theme='black'] .pg-sub { color: var(--dim-on-dark); }
.pg-prose { display: grid; gap: 18px; max-width: 62ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.5; }
.pg-note { padding: 18px 20px; border-left: 3px solid var(--black); background: rgba(0, 0, 0, .05); border-radius: 0 12px 12px 0; font-size: 16px; }
.pg-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 22px); list-style: none; padding: 0; }
.pg-cards li { padding: clamp(22px, 2.4vw, 38px); border: 1.5px solid #2a2a2a; border-radius: var(--radius); background: #101010; display: grid; gap: 12px; align-content: start; }
.pg-cards h3 { font-size: clamp(1.25rem, 1.9vw, 1.8rem); letter-spacing: -.03em; line-height: 1.05; color: var(--lime); }
.pg-cards p { color: #d6d6d6; }
.pg-steps { list-style: none; padding: 0; display: grid; }
.pg-steps li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; padding: 22px 0; border-top: 1.5px solid var(--black); }
.pg-steps li:last-child { border-bottom: 1.5px solid var(--black); }
.pg-steps .label-n { font-size: 14px; padding-top: 4px; }
.pg-steps h3, .pg-faq h3 { font-size: clamp(1.15rem, 1.6vw, 1.5rem); letter-spacing: -.025em; line-height: 1.15; margin-bottom: 8px; }
.pg-steps p, .pg-faq p { max-width: 60ch; color: #2b2b2b; }
.pg-faq { display: grid; }
.pg-faq > div { padding: 24px 0; border-top: 1px solid #cfcfcf; }
.pg-faq > div:first-child { border-top: 1.5px solid var(--black); }
.pg-links { list-style: none; padding: 0; display: grid; }
.pg-links a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid currentColor; text-decoration: none; font-size: clamp(1.2rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -.035em; transition: padding .4s var(--ease), color .3s; }
.pg-links li:last-child a { border-bottom: 1px solid currentColor; }
.pg-links a:hover { padding-left: 14px; }
[data-theme='black'] .pg-links a:hover { color: var(--lime); }
.pg-markets { list-style: none; padding: 0; display: grid; gap: 14px; font-size: clamp(17px, 1.4vw, 21px); }
.pg-more { margin-top: 30px; font-weight: 600; }
.pg-plans .plan-grid { margin-top: 0; }
.about-h { margin-top: 26px; }
.about-tags { margin-top: 26px; }
.is-about .about { padding: clamp(60px, 8vw, 120px) 0; }

/* exemplos (projetos) */
.ex-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 26px); }
.ex-list a { display: grid; gap: 10px; text-decoration: none; }
.ex-media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--black); }
.ex-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.ex-media.is-portrait img { object-fit: contain; }
.ex-list a:hover img { transform: scale(1.04); }
.ex-title { font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.ex-meta { font-size: 14px; color: var(--dim); }

/* ---------- blog ---------- */
.blog-tools { display: grid; gap: 16px; margin-bottom: clamp(30px, 4vw, 54px); }
.blog-tools input { width: min(100%, 460px); font: inherit; font-size: 17px; padding: 14px 18px; border-radius: 999px; border: 1.5px solid var(--black); background: var(--white); color: var(--black); }
.blog-tools input:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
.blog-chips button { font: inherit; font-size: 14px; font-weight: 500; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--black); background: transparent; color: var(--black); cursor: pointer; }
.blog-chips button[aria-pressed='true'] { background: var(--black); color: var(--lime); }
.post-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 26px); }
.post-card a { height: 100%; display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.2vw, 34px); border-radius: var(--radius); background: var(--white); text-decoration: none; transition: transform .5s var(--ease), background-color .3s; }
[data-theme='white'] .post-card a { background: var(--grey); }
.post-card a:hover { transform: translateY(-4px); background: var(--lime); }
.post-card .label { color: var(--dim); }
.post-card a:hover .label { color: var(--black); }
.post-card-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: calc(var(--radius) * .6); }
.post-card-title { font-size: clamp(1.35rem, 2vw, 1.9rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.05; }
.post-card-sum { color: #333; font-size: 16px; }
.post-card .work-go { margin-top: auto; align-self: flex-start; }
.blog-none { margin-top: 20px; font-weight: 600; }
.blog-empty { display: grid; gap: 16px; justify-items: start; max-width: 52ch; padding: clamp(26px, 4vw, 54px); border-radius: var(--radius); background: var(--white); }
[data-theme='white'] .blog-empty { background: var(--grey); }
.blog-empty-title { font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 600; letter-spacing: -.045em; line-height: 1; }

/* artigo */
.post-preview { display: inline-block; margin-bottom: 22px; padding: 8px 14px; border-radius: 999px; background: var(--lime); color: var(--black); font-weight: 600; font-size: 14px; }
.post-meta { margin-bottom: 20px; }
.post-author { margin-top: 26px; font-size: 15px; color: var(--dim-on-dark); }
.post-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 90px); align-items: start; }
.post-toc { position: sticky; top: 110px; display: grid; gap: 14px; font-size: 15px; }
.post-toc ol { list-style: none; padding: 0; display: grid; gap: 10px; }
.post-body { grid-column: -2 / -1; max-width: 70ch; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.6; }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { font-size: clamp(1.6rem, 2.8vw, 2.5rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.05; margin-top: 1.9em; scroll-margin-top: 110px; }
.post-body h3 { font-size: clamp(1.25rem, 1.9vw, 1.6rem); letter-spacing: -.025em; line-height: 1.15; margin-top: 1.6em; scroll-margin-top: 110px; }
.post-body > :first-child { margin-top: 0; }
.post-body ul, .post-body ol { padding-left: 1.3em; display: grid; gap: .5em; }
.post-body blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--lime); font-size: 1.15em; font-weight: 500; letter-spacing: -.01em; }
.post-table { overflow-x: auto; margin-top: 1.4em; }
.post-table table { width: 100%; border-collapse: collapse; font-size: 16px; }
.post-table th, .post-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #d5d5d5; vertical-align: top; }
.post-table th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1.5px solid var(--black); }
.post-cover { width: 100%; height: auto; border-radius: var(--radius); }
.post-video, .post-refs { margin-top: 2.4em; display: grid; gap: 14px; }
.post-refs ul { padding-left: 1.2em; font-size: 16px; }
.post-cta { margin-top: 3em; padding: clamp(24px, 3.2vw, 44px); border-radius: var(--radius); background: var(--lime); display: grid; gap: 14px; }
.post-cta-title { font-size: clamp(1.5rem, 2.6vw, 2.3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin: 0; }

@media (max-width: 960px) {
  .pg-split, .post-grid { grid-template-columns: 1fr; }
  .pg-split > .pg-h2, .post-toc { position: static; }
  .post-body { grid-column: auto; }
  .post-list, .ex-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .post-list, .ex-list, .pg-cards { grid-template-columns: 1fr; }
  .pg-steps li { grid-template-columns: 38px minmax(0, 1fr); }
}
