/* ==========================================================================
   ACIOLI ESTÚDIO DE CRIAÇÃO — estilos (direção premium)
   Contenção: tipografia fina, linhas de 1px, muito espaço, fotos reais. Vermelho só em detalhes.
   Fonte: Zalando Sans SemiExpanded
   ========================================================================== */
@font-face { font-family: "Zalando"; font-weight: 200; font-style: normal; font-display: swap; src: url("../fonts/zalando-extralight.woff2") format("woff2"); }
@font-face { font-family: "Zalando"; font-weight: 300; font-style: normal; font-display: swap; src: url("../fonts/zalando-light.woff2") format("woff2"); }
@font-face { font-family: "Zalando"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/zalando-regular.woff2") format("woff2"); }
@font-face { font-family: "Zalando"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/zalando-medium.woff2") format("woff2"); }
@font-face { font-family: "Zalando"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/zalando-semibold.woff2") format("woff2"); }

:root {
  --navy: #0a1036;
  --navy-2: #0f1747;
  --brand: #14215f;
  --red: #d81f44;
  --red-hi: #ff5a78;
  --paper: #f5f3ee;
  --white: #ffffff;
  --ink: #0c1233;
  --muted: #5d6384;                    /* texto secundário sobre fundo claro */
  --on-dark: #eceefa;
  --on-dark-muted: rgba(236, 238, 250, .68);
  --line-dark: rgba(255, 255, 255, .16);
  --line: rgba(12, 18, 51, .16);
  --font: "Zalando", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 88px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --pat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Crect x='9' y='9' width='2' height='2' fill='%23ffffff' fill-opacity='.055'/%3E%3C/svg%3E");
  --pat-lit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Crect x='9' y='9' width='2' height='2' fill='%23ffffff' fill-opacity='.4'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 90%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--navy); color: var(--on-dark); font: 400 1rem/1.85 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font); margin: 0 0 .6em; font-weight: 300; letter-spacing: -.035em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.1vw, 4.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.2vw, 3.2rem); }
h3 { font-size: 1.2rem; font-weight: 400; letter-spacing: -.015em; line-height: 1.3; }
p { margin: 0 0 1.2em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 10px 16px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--red-hi); outline-offset: 4px; }
::selection { background: var(--red); color: #fff; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(24px, 4vw, 56px); }
.container--narrow { max-width: 860px; }
.ico { width: 20px; height: 20px; flex: none; }
.center { margin-top: 56px; }
.lead { font-size: clamp(1.02rem, 1.2vw, 1.15rem); color: var(--on-dark-muted); line-height: 1.8; font-weight: 300; }
.lead--strong { color: var(--on-dark); font-weight: 400; }
.eyebrow { margin: 0 0 18px; font: 500 .85rem/1.3 var(--font); color: var(--red-hi); }       /* só nos modelos de projeto e artigo */

/* ---------- Botões ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px; padding: 0 28px; border: 1.5px solid transparent; border-radius: 999px; cursor: pointer;
  font: 600 .96rem/1 var(--font); letter-spacing: -.005em; text-decoration: none;
  transition: transform .45s var(--ease), box-shadow .35s, border-color .3s, color .3s;
}
.btn:has(.btn__ic) { padding-right: 8px; }
.btn__t { position: relative; z-index: 2; }
.btn__ic { position: relative; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .22); transition: background .3s; }
.btn__ic .ico { grid-area: 1 / 1; width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn__ic .ico + .ico { transform: translateX(-170%); }
.btn:hover .btn__ic .ico:first-child { transform: translateX(170%); }
.btn:hover .btn__ic .ico + .ico { transform: none; }
/* preenchimento que varre o botão */
.btn::before { content: ""; position: absolute; z-index: 0; inset: 0; border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.btn:hover::before { transform: scaleX(1); }
/* brilho que cruza o botão */
.btn::after { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-22deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent); transition: left .8s var(--ease); pointer-events: none; }
.btn:hover::after { left: 130%; }
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary::before { background: #b01237; }
.btn--primary:hover { box-shadow: 0 18px 40px -14px rgba(216, 31, 68, .8); }
.btn--outline-light { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn--outline-light::before { background: #fff; }
.btn--outline-light:hover { color: var(--navy); border-color: #fff; }
.btn--ghost { border-color: var(--line-dark); color: #fff; }
.btn--ghost .btn__ic { background: var(--red); }
.btn--ghost::before { background: var(--red); }
.btn--ghost:hover { border-color: var(--red); }
.btn--ghost:hover .btn__ic { background: rgba(255, 255, 255, .22); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light .btn__ic { background: var(--red); color: #fff; }
.btn--light::before { background: #ffe3e9; }
.btn--wa { background: #1fa855; color: #fff; }
.btn--wa::before { background: #14883f; }
.section--light .btn--ghost, .section--light .btn--outline-light { color: var(--ink); border-color: var(--line); }
.section--light .btn--outline-light::before { background: var(--navy); }
.section--light .btn--outline-light:hover { color: #fff; border-color: var(--navy); }
.section--light .btn--ghost:hover { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; align-items: center; }
.textlink { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: .92rem; color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; transition: color .3s, gap .3s var(--ease); }
.textlink:hover { color: var(--red-hi); gap: 16px; }
.section--light .textlink:hover { color: var(--red); }
.textlink .ico { width: 16px; height: 16px; }
.ico-back { transform: rotate(180deg); }
.back { margin-bottom: 28px; }

/* ---------- Cabeçalho ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: var(--navy); border-bottom: 1px solid var(--line-dark); }
.site-header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav ul { display: flex; gap: 6px; }
.nav a:not(.btn) { display: block; padding: 10px 12px; text-decoration: none; font-weight: 400; font-size: .85rem; letter-spacing: .01em; color: var(--on-dark-muted); border-bottom: 1px solid transparent; transition: color .25s; }
.nav a:not(.btn):hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--red); }
.nav__cta { min-height: 44px; padding: 0 22px !important; font-size: .85rem; }
.roll { display: block; height: 1.5em; line-height: 1.5; overflow: hidden; text-align: center; -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent); }
.roll__strip { display: block; position: relative; }
.roll__strip > span { display: block; height: 1.5em; white-space: nowrap; }
.roll__strip > span + span { position: absolute; left: 0; right: 0; top: calc(var(--i) * 1.5em); overflow: hidden; }
.roll__strip.is-rolling { animation: roll .85s cubic-bezier(.33, .9, .3, 1) both; }
@keyframes roll { to { transform: translateY(calc(var(--n) * -1.5em)); } }
.burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line-dark); background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }
.burger[aria-expanded="true"] .burger__open { display: none; }
@media (max-width: 1240px) {
  .burger { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--navy); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px; padding: 32px clamp(24px, 4vw, 56px); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav.is-open { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a:not(.btn) { font-size: 1.3rem; font-weight: 300; padding: 18px 0; border-bottom: 1px solid var(--line-dark); color: var(--on-dark); }
  .roll { text-align: left; }
  .nav__cta { min-height: 56px; }
}

/* ---------- Seções ---------- */
.section { padding: clamp(80px, 9.5vw, 136px) 0; position: relative; }
.section--tight { padding: clamp(56px, 8vw, 112px) 0; }
.section--deep { background: var(--navy) var(--pat); }
.section--light { background: var(--paper); color: var(--ink); }
.section--light .lead, .section--light p { color: var(--muted); }
.section--light h1, .section--light h2, .section--light h3, .section--light .lead--strong { color: var(--ink); }
.section-head { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; margin: 0 0 clamp(44px, 5.5vw, 76px); }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head .lead { margin: 0; max-width: 46ch; }
.section-head--center { display: block; text-align: center; max-width: 820px; margin-inline: auto; }
.section-head--center h2 { max-width: none; margin-bottom: .5em; }
.section-head--center .lead { margin-inline: auto; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: 24px; } }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 7vw, 112px); align-items: start; }
.split h2 { margin: 0; max-width: 16ch; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { background: var(--navy) var(--pat); padding: clamp(64px, 7.5vw, 104px) 0 clamp(72px, 8.5vw, 120px); }
.hero h1 { margin-bottom: .5em; }
.hero__text .lead { max-width: 50ch; }
.hero--home .hero__in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 112px); align-items: center; }
.hero--home h1 { font-size: clamp(2.3rem, 3.9vw, 4.2rem); }
.hero--page { border-bottom: 1px solid var(--line-dark); padding-bottom: clamp(72px, 9vw, 128px); }
.hero--page h1 { font-size: clamp(2.2rem, 3.9vw, 4rem); max-width: 20ch; }
.hero--compact { padding-bottom: clamp(56px, 6vw, 88px); }
.hero--compact h1 { font-size: clamp(2rem, 3.6vw, 3rem); max-width: 24ch; }
.meta { color: var(--on-dark-muted); }
/* duas capturas reais, sem moldura de navegador */
.frames { position: relative; aspect-ratio: 1.1 / 1; }
.frame { position: absolute; margin: 0; }
.frame img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; object-position: top; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75); }
.frame figcaption { margin-top: 14px; font-size: .78rem; color: var(--on-dark-muted); letter-spacing: .02em; }
.frame--1 { top: 0; right: 0; width: 86%; }
.frame--2 { bottom: 0; left: 0; width: 56%; }
@media (max-width: 900px) { .hero--home .hero__in { grid-template-columns: 1fr; } .frames { max-width: 600px; } }

/* ---------- Listas com filete (no lugar de cards) ---------- */
.hl { display: grid; gap: clamp(32px, 4vw, 56px) clamp(32px, 4vw, 64px); }
.hl--2 { grid-template-columns: repeat(2, 1fr); }
.hl--3 { grid-template-columns: repeat(3, 1fr); }
.hl--4 { grid-template-columns: repeat(4, 1fr); }
.hl__item { border-top: 1px solid var(--line); padding-top: 28px; }
.section--deep .hl__item { border-top-color: var(--line-dark); }
.hl__item h3 { margin-bottom: .7em; font-size: 1.25rem; }
.hl__item p { margin: 0; font-size: .96rem; }
.hl__item .btn-row { margin-top: 28px; }
.hl__kind { display: block; margin-bottom: 20px; font-size: .82rem; color: var(--red); letter-spacing: .02em; }
.hl__item .indicated { margin-top: 18px; font-size: .9rem; }
.hl__item .indicated strong { font-weight: 500; color: var(--ink); }
.section--deep .hl__item .indicated strong { color: var(--on-dark); }
@media (max-width: 1100px) { .hl--3, .hl--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .hl--2, .hl--3, .hl--4 { grid-template-columns: 1fr; } }

/* ---------- Áreas de atuação (home): linhas grandes que levam à página ---------- */
.areas { border-top: 1px solid var(--line); }
.area { display: grid; grid-template-columns: 1.15fr 1fr auto; gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: padding .5s var(--ease); }
.area h3 { margin: 0; font: 300 clamp(1.7rem, 2.9vw, 2.8rem)/1.1 var(--font); letter-spacing: -.035em; transition: color .3s; }
.area p { margin: 0; color: var(--muted); max-width: 44ch; }
.area__go { width: 56px; height: 56px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: background .3s, color .3s, border-color .3s; }
.area:hover { padding-left: 14px; }
.area:hover h3 { color: var(--red); }
.area:hover .area__go { background: var(--red); border-color: var(--red); color: #fff; }
@media (max-width: 900px) { .area { grid-template-columns: 1fr auto; } .area p { grid-column: 1; grid-row: 2; } .area__go { grid-column: 2; grid-row: 1 / 3; } }

/* ---------- Passos ---------- */
.steps { display: grid; gap: clamp(32px, 4vw, 56px); }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.hl__item p, .step p, .lead, .split p { max-width: 54ch; }
.step { border-top: 1px solid var(--line); padding-top: 28px; }
.step__n { display: block; margin-bottom: 36px; font-size: .85rem; color: var(--red); font-weight: 500; letter-spacing: .06em; }
.step h3 { margin-bottom: .7em; color: var(--ink); }
.step p { margin: 0; font-size: .94rem; }
.section--deep .step { border-top-color: var(--line-dark); }
.section--deep .step h3 { color: var(--on-dark); }
@media (max-width: 1100px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .steps--4 { grid-template-columns: 1fr; } }

/* ---------- Lista em acordeão ---------- */
.rows { border-top: 1px solid var(--line); }
.row { border-bottom: 1px solid var(--line); }
.row summary { list-style: none; display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); padding: clamp(24px, 3vw, 36px) 0; cursor: pointer; }
.row summary::-webkit-details-marker { display: none; }
.row__n { font-size: .85rem; color: var(--red); font-weight: 500; letter-spacing: .06em; min-width: 2.4em; }
.row__t { flex: 1; font: 300 clamp(1.3rem, 2.3vw, 1.95rem)/1.2 var(--font); letter-spacing: -.03em; color: var(--ink); transition: color .3s; }
.row:hover .row__t { color: var(--red); }
.row__ic { position: relative; flex: none; width: 40px; height: 40px; border: 1px solid var(--line); transition: transform .4s var(--ease), background .3s, border-color .3s, color .3s; color: var(--ink); }
.row__ic::before, .row__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; margin: -.5px 0 0 -6px; background: currentColor; }
.row__ic::after { transform: rotate(90deg); }
.row[open] .row__ic { transform: rotate(45deg); background: var(--red); border-color: var(--red); color: #fff; }
.row__a { padding: 0 0 36px calc(2.4em + clamp(16px, 3vw, 40px)); max-width: 76ch; }
.row__a p { margin: 0; }
.section--deep .rows, .section--deep .row { border-color: var(--line-dark); }
.section--deep .row__t { color: var(--on-dark); }
.section--deep .row__ic { border-color: var(--line-dark); color: #fff; }
.section--deep .row__a p { color: var(--on-dark-muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 880px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; padding: 28px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center; font: 400 1.05rem/1.5 var(--font); color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__ico { width: 18px; height: 18px; transform: rotate(90deg); transition: transform .35s var(--ease), color .3s; flex: none; }
.faq__item[open] .faq__ico { transform: rotate(-90deg); color: var(--red); }
.faq__a { padding: 0 0 30px; max-width: 70ch; }
.faq__a p { margin: 0; }

/* ---------- Portfólio e blog ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-bottom: 48px; }
.chip { border: 0; border-bottom: 1px solid transparent; background: none; color: var(--muted); font: 400 .92rem/1 var(--font); padding: 8px 0; cursor: pointer; transition: color .25s, border-color .25s; }
.chip:hover { color: var(--ink); }
.chip[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--red); }
.section--deep .chip { color: var(--on-dark-muted); }
.section--deep .chip:hover, .section--deep .chip[aria-selected="true"] { color: #fff; }
.portfolio__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; }
.posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; }
.work { display: block; text-decoration: none; color: var(--ink); }
.work__img { position: relative; overflow: hidden; background: var(--brand); aspect-ratio: 4 / 3; border-radius: 8px; }
.work__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.work__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 54, .1), rgba(10, 16, 54, .62)); opacity: 0; transition: opacity .5s; }
.work__view { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -30%); opacity: 0; padding: 13px 22px; border-radius: 999px; background: #fff; color: var(--navy); font: 600 .84rem/1 var(--font); white-space: nowrap; transition: opacity .4s, transform .6s var(--ease); }
.work:hover .work__img img { transform: scale(1.05); }
.work:hover .work__img::after { opacity: 1; }
.work:hover .work__view { opacity: 1; transform: translate(-50%, -50%); }
.work__body { display: flex; flex-direction: column; gap: 3px; padding-top: 18px; }
.work h3 { margin: 0; font: 500 1.05rem/1.35 var(--font); letter-spacing: -.01em; color: var(--ink); transition: color .3s; }
.work:hover h3 { color: var(--red); }
.work__cat { order: 2; font-size: .82rem; color: var(--muted); }
.portfolio__grid .work p, .portfolio__grid .work .textlink { display: none; }
.posts__grid .work__cat { order: 0; margin-bottom: 6px; color: var(--red); }
.posts__grid .work__body { gap: 6px; }
.posts__grid .work p { margin: 4px 0 8px; font-size: .92rem; }
.posts__grid .work .textlink { align-self: flex-start; }
.work__date { color: var(--muted); font-size: .82rem; }
.section--deep .work, .section--deep .work h3 { color: #fff; }
.section--deep .work__cat { color: var(--on-dark-muted); }
.featured:not(:empty) { margin-bottom: 48px; }
.featured .work { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.featured .work__img { aspect-ratio: 16 / 10; }
.featured .work__body { padding: 0; }
.featured .work h3 { font-size: 1.8rem; font-weight: 300; }
.blog-tools { margin-bottom: 8px; }
.search { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 0 0 6px; max-width: 460px; margin-bottom: 40px; color: var(--muted); }
.search[hidden] { display: none; }
.search input { border: 0; background: transparent; font: inherit; padding: 12px 0; width: 100%; color: var(--ink); outline: none; }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.empty[hidden] { display: none; }
.empty p { margin: 0; max-width: 46ch; }
.empty__icon { display: none; }
.section--deep .empty { border-color: var(--line-dark); }
.section--deep .empty p { color: var(--on-dark-muted); }
@media (max-width: 1100px) { .portfolio__grid, .posts__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .portfolio__grid, .posts__grid { grid-template-columns: 1fr; gap: 40px; } .featured .work { grid-template-columns: 1fr; gap: 24px; } .work__view { opacity: 1; transform: translate(-50%, -50%); } .work__img::after { opacity: 1; } }

/* ---------- Página de projeto ---------- */
.hero--project { padding-bottom: clamp(56px, 6vw, 88px); }
.hero--project h1 { font-size: clamp(2rem, 3.8vw, 3.4rem); max-width: 22ch; }
.hero--project .lead { max-width: 58ch; }
.hero--project .eyebrow { margin-bottom: 20px; }
.meta-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 32px; margin: clamp(40px, 5vw, 64px) 0 0; border-top: 1px solid var(--line-dark); }
.meta-row { padding: 24px 0 0; }
.meta-row[hidden] { display: none; }
.meta-row dt { font-size: .78rem; color: var(--on-dark-muted); margin-bottom: 8px; letter-spacing: .03em; }
.meta-row dd { margin: 0; font: 400 1rem/1.4 var(--font); color: #fff; }
.section--showcase { background: #0d1442 var(--pat); padding: clamp(56px, 7vw, 104px) 0; }
.browser { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 60px 100px -40px rgba(0, 0, 0, .85); }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #eceef5; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #c8cce0; }
.browser__bar span { flex: 1; max-width: 340px; margin: 0 auto; padding: 5px 14px; border-radius: 999px; background: #fff; color: #6a7092; font-size: .72rem; text-align: center; letter-spacing: .01em; }
.browser img { width: 100%; height: auto; }
.cover { margin: 0; }
.cover[hidden] { display: none; }
.shots-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(20px, 3vw, 40px); }
.shots-grid[hidden] { display: none; }
.shots-grid .browser { box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.showcase__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin-top: clamp(32px, 4vw, 56px); padding-top: 28px; border-top: 1px solid var(--line-dark); }
.showcase__actions p { margin: 0; color: var(--on-dark-muted); font-size: .92rem; }
.showcase__actions .btn { margin: 0; }
.showcase__actions[hidden] { display: none; }
.case { display: grid; grid-template-columns: .5fr 1.5fr; gap: 48px; padding: 56px 0; border-top: 1px solid var(--line); }
.case:first-child { border-top: 0; padding-top: 0; }
.case[hidden] { display: none; }
.case__n { font-size: .82rem; color: var(--red); margin: 0; font-weight: 500; letter-spacing: .04em; }
.case__t h2 { max-width: 20ch; margin-bottom: .7em; }
.next-wrap[hidden] { display: none; }
.next-project { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; min-height: clamp(300px, 34vw, 440px); padding: clamp(32px, 5vw, 64px) clamp(24px, 4vw, 56px); overflow: hidden; color: #fff; text-decoration: none; background: var(--navy); }
.next-project__bg { position: absolute; inset: 0; z-index: 0; }
.next-project__bg img { width: 100%; height: 100%; object-fit: cover; object-position: top; transform: scale(1.02); transition: transform 1.4s var(--ease); }
.next-project::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 16, 54, .92), rgba(10, 16, 54, .55) 60%, rgba(10, 16, 54, .35)); }
.next-project__text, .next-project .ico-wrap { position: relative; z-index: 2; }
.next-project__text span { display: block; margin-bottom: 14px; font-size: .88rem; color: rgba(255, 255, 255, .75); }
.next-project__text strong { display: block; font: 300 clamp(1.8rem, 3.6vw, 3.2rem)/1.08 var(--font); letter-spacing: -.035em; max-width: 18ch; }
.next-project__text small { display: block; margin-top: 12px; font-size: .9rem; color: rgba(255, 255, 255, .7); }
.next-project .ico-wrap { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--red); transition: transform .5s var(--ease), background .3s; }
.next-project .ico-wrap .ico { width: 24px; height: 24px; }
.next-project:hover .next-project__bg img { transform: scale(1.08); }
.next-project:hover .ico-wrap { transform: rotate(-45deg) scale(1.08); }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; gap: 12px; padding: 40px 0; } .shots-grid { grid-template-columns: 1fr; } }
.article-cover { margin-bottom: 56px; }
.article-cover[hidden] { display: none; }
.article-cover img { width: 100%; border-radius: 8px; }
.prose { font-size: 1.04rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; color: var(--ink); }
.prose p, .prose li { line-height: 1.9; }
.prose ul { list-style: disc; padding-left: 1.3em; }
.prose a { color: var(--red); }

/* ---------- Chamada final ---------- */
.cta { text-align: left; }
.cta h2 { font-size: clamp(2rem, 4.1vw, 3.8rem); max-width: 18ch; margin-bottom: .5em; }
.cta .lead { max-width: 48ch; }
.cta .note { margin-top: 28px; font-size: .88rem; color: var(--on-dark-muted); }
.cta-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.cta-grid .btn-row { margin-top: 0; justify-content: flex-start; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; align-items: start; } .cta-grid .btn-row { margin-top: 24px; } }

/* ---------- Contato ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 96px; }
.tile { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .3s; }
.tile__l { font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
.tile strong { font: 400 1.05rem/1.4 var(--font); word-break: break-word; transition: color .3s; }
.tile em { font-style: normal; font-size: .9rem; color: var(--muted); }
.tile .ico { display: none; }
a.tile:hover { border-top-color: var(--red); }
a.tile:hover strong { color: var(--red); }
.contact { display: grid; grid-template-columns: 1.3fr .8fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.contact h2 { color: var(--ink); }
.contact__form .lead { margin-bottom: 48px; }
.field { display: grid; gap: 8px; margin-bottom: 28px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
label { font-weight: 400; font-size: .82rem; color: var(--muted); letter-spacing: .02em; }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 10px 0 14px; transition: border-color .25s; }
select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230c1233' stroke-width='1.5'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") right 4px center no-repeat; }
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-bottom-color: var(--ink); }
.field.has-error input, .field.has-error select { border-bottom-color: var(--red); }
.field__err { color: var(--red); font-size: .84rem; }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .85rem; }
.form-msg { margin-top: 20px; }
.form-msg:not(:empty) { padding: 18px 0; border-top: 1px solid var(--line); color: #11632f; }
.form-msg.is-error { color: var(--red); }
.contact__side { position: sticky; top: calc(var(--header-h) + 32px); border-top: 1px solid var(--line); padding-top: 28px; }
.contact__side h3 { color: var(--ink); }
.contact__side .btn { margin-top: 12px; }
.card--wa .card__icon--wa { display: none; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact__side { position: static; } }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr; margin-bottom: 64px; gap: 24px; } .field-row { grid-template-columns: 1fr; } }

/* ---------- Rodapé ---------- */
.site-footer { background: var(--navy) var(--pat); border-top: 1px solid var(--line-dark); padding: 96px 0 36px; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 56px; }
.footer__brand img { height: 38px; width: auto; margin-bottom: 24px; }
.footer__brand p { color: var(--on-dark-muted); max-width: 32ch; font-size: .92rem; font-weight: 300; }
.footer__col h3 { font-size: .82rem; font-weight: 500; letter-spacing: .04em; color: var(--on-dark-muted); margin-bottom: 20px; }
.footer__col li { padding: 6px 0; }
.footer__col a, .footer__col span { color: var(--on-dark); text-decoration: none; font-size: .92rem; font-weight: 300; transition: color .25s; }
.footer__col a:hover { color: var(--red-hi); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); font-size: .84rem; }
.footer__bottom p { margin: 0; }
.footer__bottom a { color: var(--on-dark-muted); }
.footer__bottom a:hover { color: #fff; }
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .5); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Entrada suave ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) { .footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .section { padding: 72px 0; }
  .brand img { height: 30px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; justify-content: space-between; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .wa-float { width: 50px; height: 50px; right: 16px; bottom: 16px; }
}
.section--flush { padding-top: 0; }

/* ---------- Hero da home com foto ---------- */
.hero--home { position: relative; display: flex; align-items: center; aspect-ratio: 1920 / 900; min-height: 480px; max-height: 900px; padding: 0; background: var(--navy) url("../img/hero-marlon.webp") no-repeat right center / cover; }
.hero--home::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 16, 54, .55) 0%, rgba(10, 16, 54, .25) 40%, rgba(10, 16, 54, 0) 62%); pointer-events: none; }
.hero--home .hero__in { position: relative; display: block; width: 100%; }
.hero--home .hero__text { max-width: 560px; }
@media (max-width: 900px) {
  /* celular/tablet: a foto vertical em cima (largura total) e o texto logo abaixo dela */
  .hero--home { --hh: calc(min(100vw, 650px) * 1080 / 650); aspect-ratio: auto; max-height: none; min-height: 0; align-items: flex-start; padding: calc(var(--hh) * .8) 0 56px; background: var(--navy) url("../img/hero-marlon-mobile.webp") no-repeat center top / min(100%, 650px) auto; }
  .hero--home::before { inset: 0 0 auto 0; height: var(--hh); background: linear-gradient(180deg, rgba(10, 16, 54, 0) 62%, var(--navy) 100%); }
}

/* ---------- Método: cartões que se empilham ao rolar ---------- */
.stack-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 112px); align-items: start; }
.stack-wrap__head { position: sticky; top: calc(var(--header-h) + 48px); }
.stack-wrap__head h2 { max-width: 12ch; }
.stack-wrap__head .lead { max-width: 34ch; }
.stack-steps { display: grid; gap: 28px; padding-bottom: 8px; }
.stack-step { position: sticky; top: calc(var(--header-h) + 32px + var(--i) * 22px); display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 3vw, 44px); align-items: start; min-height: 320px; padding: clamp(32px, 4vw, 52px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 -18px 50px -30px rgba(12, 18, 51, .35); transform-origin: 50% 0; will-change: transform; }
.stack-step__n { font: 300 clamp(2.6rem, 4.4vw, 4rem)/1 var(--font); letter-spacing: -.04em; color: var(--red); }
.stack-step h3 { margin: 6px 0 .7em; font: 300 clamp(1.5rem, 2.4vw, 2.1rem)/1.15 var(--font); letter-spacing: -.035em; color: var(--ink); }
.stack-step p { margin: 0; max-width: 40ch; }
.stack-step:last-child { background: var(--navy); border-color: var(--navy); }
.stack-step:last-child h3 { color: #fff; }
.stack-step:last-child p { color: var(--on-dark-muted); }
@media (max-width: 900px) {
  .stack-wrap { grid-template-columns: 1fr; }
  .stack-wrap__head { position: static; }
  .stack-step { min-height: 0; top: calc(var(--header-h) + 14px + var(--i) * 14px); }
}

/* ---------- Portfólio em bento grid (preto e branco, colorido ao passar o mouse) ---------- */
.portfolio__grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(190px, 17vw, 250px); grid-auto-flow: dense; gap: 14px; }
.portfolio__grid .work:nth-child(6n+1) { grid-column: span 7; grid-row: span 2; }
.portfolio__grid .work:nth-child(6n+2), .portfolio__grid .work:nth-child(6n+3) { grid-column: span 5; }
.portfolio__grid .work:nth-child(6n+4), .portfolio__grid .work:nth-child(6n+5), .portfolio__grid .work:nth-child(6n+6) { grid-column: span 4; }
.portfolio__grid .work { position: relative; overflow: hidden; border-radius: 12px; background: var(--brand); color: #fff; }
.portfolio__grid .work__img { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.portfolio__grid .work__img img { filter: grayscale(1) contrast(1.06) brightness(.78); transition: filter .8s var(--ease), transform 1.3s var(--ease); }
.portfolio__grid .work:hover .work__img img { filter: grayscale(0) contrast(1) brightness(.9); transform: scale(1.05); }
.portfolio__grid .work__img::after { opacity: 1; background: linear-gradient(180deg, rgba(10, 16, 54, .15) 20%, rgba(10, 16, 54, .93) 100%); }
.portfolio__grid .work:hover .work__img::after { opacity: 1; }
.portfolio__grid .work__view { display: none; }
.portfolio__grid .work__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 22px 26px; gap: 4px; }
.portfolio__grid .work h3 { color: #fff; font: 400 1.1rem/1.3 var(--font); }
.portfolio__grid .work:nth-child(6n+1) h3 { font: 300 clamp(1.6rem, 2.4vw, 2.3rem)/1.1 var(--font); letter-spacing: -.035em; }
.portfolio__grid .work:hover h3 { color: #fff; }
.portfolio__grid .work__cat { color: rgba(255, 255, 255, .72); font-size: .82rem; }
.work__go { position: absolute; z-index: 3; top: 18px; right: 18px; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; color: #fff; transition: background .35s, border-color .35s, transform .5s var(--ease); }
.work__go svg { width: 18px; height: 18px; }
.portfolio__grid .work:hover .work__go { background: var(--red); border-color: var(--red); transform: rotate(45deg); }
@media (max-width: 1100px) {
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(200px, 30vw, 280px); }
  .portfolio__grid .work:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .portfolio__grid .work:nth-child(5n+1) { grid-column: span 2; }
}
@media (max-width: 640px) {
  .portfolio__grid { grid-template-columns: 1fr; grid-auto-rows: 240px; gap: 12px; }
  .portfolio__grid .work:nth-child(n) { grid-column: span 1; }
  .portfolio__grid .work__img img { filter: grayscale(1) contrast(1.06) brightness(.78); }
}

/* ---------- Mural de posts (redes sociais) ---------- */
.wall, .shots-grid.posts-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.wall a { display: block; overflow: hidden; border-radius: 6px; background: var(--brand); }
.wall img, .posts-wall img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; transition: transform 1s var(--ease); }
.wall a:hover img { transform: scale(1.04); }
.shots-grid.posts-wall { margin-top: 0; }
@media (max-width: 900px) { .wall, .shots-grid.posts-wall { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ---------- Próximos projetos: 3 cards em preto e branco ---------- */
.related__grid.portfolio__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(220px, 20vw, 300px); }
.related__grid.portfolio__grid .work:nth-child(n) { grid-column: span 1; grid-row: span 1; }
.related__grid.portfolio__grid .work h3 { font: 400 1.1rem/1.3 var(--font); letter-spacing: -.01em; }
.next-wrap .section-head { margin-bottom: 40px; }
@media (max-width: 900px) { .related__grid.portfolio__grid { grid-template-columns: 1fr; grid-auto-rows: 240px; } }

/* ---------- Luz que acompanha o mouse (só nas áreas azuis) ---------- */
.section--deep, .hero, .site-footer, .section--showcase { position: relative; overflow: clip; }
.section--deep > .container, .site-footer > .container, .section--showcase > .container, .hero > .container { position: relative; z-index: 1; }
.section--deep::after, .hero::after, .site-footer::after, .section--showcase::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: radial-gradient(460px circle at var(--gx, 50%) var(--gy, 50%), rgba(120, 150, 255, .26), transparent 65%), var(--pat-lit);
  -webkit-mask-image: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), #000 0%, transparent 75%);
  mask-image: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), #000 0%, transparent 75%);
}
.is-lit::after { opacity: 1; }

/* ---------- Chamada final: painel mais estreito, centralizado ---------- */
.cta { max-width: 1040px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(28px, 5vw, 72px); background: var(--navy-2) var(--pat); border: 1px solid var(--line-dark); border-radius: 14px; }
.cta h2 { font-size: clamp(1.9rem, 3.5vw, 3.2rem); }
.cta-grid { gap: clamp(28px, 5vw, 72px); }
.cta-grid .btn-row { justify-content: flex-end; }
@media (max-width: 900px) { .cta-grid .btn-row { justify-content: flex-start; } }

/* ---------- Chamada final: o fundo segue a seção anterior; o retângulo é azul ---------- */
.section--light + .cta-section { background: var(--paper); }
.section--light + .cta-section::after { display: none; }
.section--light + .cta-section .cta { background: var(--navy) var(--pat); border-color: var(--navy); }

/* ---------- Chamada final: mais larga e botão centralizado na altura ---------- */
.cta { max-width: 1180px; }
.cta-grid { align-items: center; }
@media (max-width: 900px) { .cta-grid { align-items: start; } }

/* o hero da home (com a foto) fica sem padrão e sem luz */
.hero--home::after { display: none; }

/* ---------- Bento: último bloco incompleto preenche a linha ---------- */
.portfolio__grid .work:nth-child(6n+1):last-child { grid-column: span 12; grid-row: span 1; }
.portfolio__grid .work:nth-child(6n+2):last-child { grid-column: span 5; grid-row: span 2; }
.portfolio__grid .work:nth-child(6n+4):nth-last-child(2) { grid-column: span 6; }
.portfolio__grid .work:nth-child(6n+5):last-child { grid-column: span 6; }
.portfolio__grid .work:nth-child(6n+4):last-child { grid-column: span 12; }
@media (max-width: 1100px) { .portfolio__grid .work:nth-child(n):last-child { grid-column: span 2; } }
@media (max-width: 640px) { .portfolio__grid .work:nth-child(n):last-child { grid-column: span 1; } }

/* ---------- Artigos do blog ---------- */
.hero--article h1 { font-size: clamp(2rem, 3.6vw, 3.2rem); max-width: 24ch; }
.hero--article .cat { margin: 0 0 18px; font: 500 .88rem/1.3 var(--font); color: var(--red-hi); }
.hero--article .meta { margin: 18px 0 0; }
.prose h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); margin: 2.2em 0 .6em; }
.prose p, .prose li { font-size: 1.02rem; }
.prose ul { margin: 0 0 1.4em; padding-left: 1.2em; }
.prose li { margin-bottom: .5em; padding-left: .2em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { padding: 3px 8px; border-radius: 4px; background: rgba(12, 18, 51, .07); font-size: .92em; color: var(--ink); }
.callout { margin-top: 56px; padding: clamp(28px, 4vw, 44px); border-radius: 14px; background: var(--navy) var(--pat); color: #fff; }
.callout h3 { font: 300 clamp(1.4rem, 2.4vw, 1.9rem)/1.2 var(--font); letter-spacing: -.03em; color: #fff; margin-bottom: .5em; }
.prose .callout p { color: var(--on-dark-muted); }
.prose .callout .callout__cta { color: #fff; font-weight: 500; }
.callout .btn-row { margin-top: 24px; }
.prose a.btn { color: #fff; }

/* ---------- Imagem de destaque do artigo: larga, baixa, sem deformar ---------- */
.container--cover { max-width: 1060px; }
.article-cover { margin: 0 0 clamp(40px, 5vw, 64px); }
.article-cover img { display: block; width: 100%; height: auto; aspect-ratio: 2.2 / 1; object-fit: cover; border-radius: 10px; }
@media (max-width: 640px) { .article-cover img { aspect-ratio: 16 / 10; } }

/* ---------- Página de artigo: coluna principal + barra lateral ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 26px; font-size: .84rem; color: var(--on-dark-muted); }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; transition: color .25s; }
.crumbs a:hover { color: #fff; }
.crumbs span:last-child { color: var(--red-hi); }
.crumbs span { opacity: .8; }
.section--article { padding-top: clamp(48px, 6vw, 88px); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 5vw, 88px); align-items: start; }
.article-main .article-cover { margin-bottom: 44px; }
.article-main .article-cover img { aspect-ratio: 2 / 1; }
.article-main .prose h2 { scroll-margin-top: calc(var(--header-h) + 24px); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 48px 0 0; padding: 22px 0; border-block: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.share span { margin-right: 6px; }
.share a, .share button { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: none; font: 500 .85rem/1 var(--font); color: var(--ink); text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.share a:hover, .share button:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.authorbox { display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: center; margin-top: 40px; padding: 30px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.authorbox img { width: 120px; height: auto; }
.authorbox h3 { margin-bottom: .4em; color: var(--ink); }
.authorbox p { margin: 0 0 14px; font-size: .94rem; }
.postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.postnav__a { display: grid; gap: 8px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color .3s, background .3s; }
.postnav__a small { font-size: .78rem; color: var(--muted); letter-spacing: .03em; }
.postnav__a strong { font: 500 .98rem/1.35 var(--font); }
.postnav__a--next { text-align: right; }
.postnav__a:hover { border-color: var(--red); background: #fff; }
.sidebar { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 20px; }
.sb { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.sb h3 { margin: 0 0 16px; font: 600 .78rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sb--search { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 20px; border-radius: 999px; }
.sb--search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; font: inherit; font-size: .92rem; color: var(--ink); outline: none; }
.sb--search button { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--red); color: #fff; cursor: pointer; transition: background .25s, transform .3s var(--ease); }
.sb--search button:hover { background: #b01237; transform: scale(1.06); }
.sb--search:focus-within { border-color: var(--ink); }
.sb__toc { counter-reset: t; display: grid; gap: 2px; }
.sb__toc li { counter-increment: t; }
.sb__toc a { display: block; padding: 8px 0 8px 14px; border-left: 2px solid var(--line); font-size: .88rem; line-height: 1.4; color: var(--muted); text-decoration: none; transition: color .25s, border-color .25s; }
.sb__toc a:hover, .sb__toc a.is-active { color: var(--ink); border-left-color: var(--red); }
.sb--cta { background: var(--navy) var(--pat); border-color: var(--navy); color: #fff; }
.sb--cta h3 { font: 300 1.45rem/1.2 var(--font); letter-spacing: -.03em; text-transform: none; color: #fff; margin-bottom: 10px; }
.sb--cta p { color: var(--on-dark-muted); font-size: .92rem; }
.sb--cta .btn { width: 100%; margin-top: 4px; }
.sb__contact { display: grid; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.sb__contact li { display: flex; align-items: center; gap: 12px; font-size: .88rem; }
.sb__contact svg { width: 18px; height: 18px; color: var(--red-hi); flex: none; }
.sb__contact a { color: #fff; text-decoration: none; word-break: break-all; }
.sb__contact a:hover { color: var(--red-hi); }
.sb__cats { display: grid; gap: 4px; }
.sb__cats a { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: .92rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); transition: color .25s; }
.sb__cats a:hover { color: var(--red); }
.sb__cats em { font-style: normal; color: var(--muted); font-size: .84rem; }
.sb__recent { display: grid; gap: 14px; }
.sb__recent a { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); font-size: .88rem; line-height: 1.4; }
.sb__recent img { width: 84px; height: 56px; object-fit: cover; border-radius: 6px; }
.sb__recent a:hover span { color: var(--red); }
@media (max-width: 1000px) {
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .authorbox { grid-template-columns: 1fr; gap: 16px; }
  .postnav { grid-template-columns: 1fr; }
  .postnav__a--next { text-align: left; }
}

/* "Continue lendo" em fundo claro, para não empilhar três blocos azuis seguidos */
.section--more { border-top: 1px solid var(--line); }

/* ---------- Cartão do estúdio na barra lateral; menos espaço antes de "Continue lendo" ---------- */
.sb--about img { width: 130px; height: auto; margin-bottom: 16px; }
.sb--about p { font-size: .9rem; margin-bottom: 14px; }
.section--article { padding-bottom: clamp(40px, 5vw, 64px); }
.section--more { padding-top: clamp(48px, 5vw, 72px); }
.share { margin-bottom: 0; }

/* ---------- Movimento: navegação fluida e microinterações ---------- */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); }

/* entrada e saída de página */
.js body { animation: pageIn .7s var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
.js main, .js .site-footer { transition: opacity .28s ease, transform .28s ease; }
.js.is-leaving main, .js.is-leaving .site-footer { opacity: 0; transform: translateY(8px); }

/* barra de progresso de leitura */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; background: var(--red); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* cabeçalho recolhe ao rolar para baixo e volta ao subir */
.site-header { transition: transform .45s var(--ease-out), box-shadow .3s ease; }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }

/* hero: entrada em sequência */
.js .hero .eyebrow, .js .hero h1, .js .hero .lead, .js .hero .btn-row, .js .hero .crumbs, .js .hero .meta { opacity: 0; transform: translateY(22px); animation: rise .95s var(--ease-out) forwards; }
.js .hero h1 { animation-delay: .12s; }
.js .hero .lead, .js .hero .meta { animation-delay: .28s; }
.js .hero .btn-row { animation-delay: .42s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* imagens aparecem suavemente ao carregar */
.js img[loading="lazy"] { opacity: 0; transition: opacity .8s ease; }
.js img[loading="lazy"].is-loaded { opacity: 1; }

/* hover: cartões, listas e links */
.work { transition: transform .5s var(--ease-out); }
.work:hover { transform: translateY(-6px); }
.work__img img { transition: transform 1.1s var(--ease-out), filter .6s ease; }
.tile { transition: transform .4s var(--ease-out), border-color .3s ease; }
.tile:hover { transform: translateY(-4px); border-top-color: var(--red); }
.tile:hover strong { color: var(--red); }
.step { transition: border-color .4s ease, transform .5s var(--ease-out); }
.step:hover { border-top-color: var(--red); transform: translateY(-4px); }
.faq__item summary { transition: color .3s ease, padding-left .35s var(--ease-out); }
.faq__item summary:hover { color: var(--red); padding-left: 10px; }
.sb__cats a { transition: color .3s ease, padding-left .3s var(--ease-out); }
.sb__cats a:hover { padding-left: 8px; }
.sb { transition: box-shadow .4s ease; }
.sb:hover { box-shadow: 0 18px 40px -26px rgba(10, 16, 54, .35); }

/* sublinhado que desliza nos links do rodapé */
.footer__col a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease-out), color .25s ease; }
.footer__col a:hover { background-size: 100% 1px; }

/* botão com resposta ao clique, foco visível */
.btn:active { transform: scale(.97); }
.wa-float { transition: transform .35s var(--ease-out), box-shadow .3s ease; }
.wa-float:hover { transform: scale(1.08) translateY(-2px); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  .js body { animation: none; }
  .js .hero .eyebrow, .js .hero h1, .js .hero .lead, .js .hero .btn-row, .js .hero .crumbs, .js .hero .meta { opacity: 1; transform: none; animation: none; }
  .js img[loading="lazy"] { opacity: 1; }
  .js.is-leaving main, .js.is-leaving .site-footer { opacity: 1; transform: none; }
  .site-header.is-hidden { transform: none; }
  .work:hover, .tile:hover, .step:hover { transform: none; }
}

/* ---------- Rodapé: ícones, logo branca ---------- */
.footer__brand img { filter: brightness(0) invert(1); }
.footer__col a.ficon { display: inline-flex; align-items: center; gap: 10px; }
.footer__col a.ficon svg { width: 17px; height: 17px; flex: none; }

/* ---------- Celular: página mais curta ---------- */
@media (max-width: 720px) {
  .footer__col[aria-label="Serviços"] { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand img { margin-bottom: 16px; }
  .footer__bottom { margin-top: 40px; padding-top: 22px; }
  .site-footer { padding-top: 56px; padding-bottom: 28px; }
  .section--flush { padding-top: clamp(40px, 8vw, 56px); }
  .section { padding-top: clamp(52px, 12vw, 72px); padding-bottom: clamp(52px, 12vw, 72px); }
  /* foto grande com o título sobre ela (overlay) */
  .hero--home { padding: calc(var(--hh) * .6) 0 44px; }
  .hero--home::before { height: calc(var(--hh) + 30px); background: linear-gradient(180deg, rgba(10, 16, 54, 0) 28%, rgba(10, 16, 54, .72) 52%, rgba(10, 16, 54, .95) 68%, var(--navy) 82%); }
  .hero--home h1 { font-size: clamp(2rem, 8.4vw, 2.5rem); }
}

/* ---------- Luz neon sutil girando ao redor do botão ---------- */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.btn--primary { border: 2px solid transparent; background: linear-gradient(var(--red), var(--red)) padding-box, conic-gradient(from var(--ang), rgba(216, 31, 68, .5) 0deg, #ff7a93 38deg, #fff 52deg, #ff7a93 66deg, rgba(216, 31, 68, .5) 110deg, rgba(216, 31, 68, .5) 360deg) border-box; animation: neon 3.6s linear infinite; box-shadow: 0 0 22px -6px rgba(255, 90, 120, .55); }
@keyframes neon { to { --ang: 360deg; } }
@media (prefers-reduced-motion: reduce) { .btn--primary { animation: none; } }
