/* /assets/css/main.css */
/* ==========================================================================
   Studio Artemis — main.css
   Figma: i23qiP70wQhTOjyhYLT9LM · Home desktop 8160:163
   ========================================================================== */

:root {
  /* Cores — variáveis do Figma (get_variable_defs 8160:163) */
  --gray-0: #ffffff;
  --gray-200: #cecece;
  --gray-300: #b5b5b5;
  --gray-400: #9d9d9d;
  --gray-500: #848485;
  --gray-800: #3a3a3c;
  --gray-900: #212123;
  --black-100: #111111;
  --black-200: #09090b;
  --blue-300: #87baff;
  --blue-400: #5499ff;
  --green-300: #93ffd0;
  --green-400: #5dffb8;
  --magenta-300: #e88fff;
  --orange-200: #ffd5c0;
  --orange-300: #ffb48e;
  --orange-400: #ff8c53;

  /* Tipografia */
  --font-display: "Exo", sans-serif;
  --font-body: "Cabin", sans-serif;
  --font-serif: "Instrument Serif", serif;

  /* Tokens estruturais — extraídos do Figma deste projeto (Fase 0.5) */
  --frame-w: 1440px;
  --content-w: 1376px;
  --section-px: clamp(16px, calc(32 / 1440 * 100vw), 32px); /* 32px exatos no frame 1440 */
  --section-py: 120px;
  --content-gap: 32px;

  /* Header fixo: 80px no topo (8165:2338), 60px após o scroll (8165:2339) */
  --header-h: 80px;
  --header-h-scrolled: 60px;
}

/* Mobile (frame 8635:1583, 375 de largura) — vale até 767px.
   Seções: respiro lateral 16 (o clamp de --section-px já dá 16) e vertical 60;
   header de 60 (8635:3579) também no estado inicial. */
@media (max-width: 767px) {
  :root {
    --section-py: 60px;
    --header-h: 60px;
  }
  .page-post { --header-h: 64px; } /* post: header com selo (8693:2102) */
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } } /* âncoras (#estudos, abas do Blog) */

body {
  margin: 0;
  background: var(--black-200);
  color: var(--gray-0);
  font-family: var(--font-body);
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty; /* sem palavra viúva no site todo (pedido do cliente); herdado por todo texto. Firefox: reforço no main.js */
}

main { padding-top: var(--header-h); overflow-x: clip; } /* altura do header fixo (estado inicial) · clip: rede contra rolagem lateral das entradas (não cria contêiner de rolagem, sticky continua) */
section[id] { scroll-margin-top: var(--header-h-scrolled); } /* âncoras (#estudos, abas do Blog) param logo abaixo do header fixo */
.is-preview main { padding-top: 0; } /* preview isolado de seção (tools/build.py --preview) */

p, h1, h2, h3 { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container {
  width: 100%;
  max-width: calc(var(--content-w) + 2 * var(--section-px));
  margin-inline: auto;
  padding-inline: var(--section-px);
}

:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Componentes de seção compartilhados (padrão recorrente no Figma)
   - .eyebrow       → Instrument Serif italic 20/1.3 (ex.: 8183:975, 8195:1067)
   - .section-title → Exo SemiBold 40/1.2, trecho em <em> cinza (ex.: 8183:309, 8294:503)
   - .section-head  → coluna eyebrow + título, gap 16 (ex.: 8213:369, 8195:1064)
   - .body-lg       → Cabin 18/1.5 gray-300 (ex.: 8294:505)
   -------------------------------------------------------------------------- */
.section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

.eyebrow {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  color: var(--gray-300);
}
.eyebrow--400 { color: var(--gray-400); }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
  color: var(--gray-0);
  text-wrap: pretty;
}
.section-title em { font-style: normal; color: var(--gray-500); }
.section-title--em-300 em { color: var(--gray-300); }
.section-title--em-400 em { color: var(--gray-400); }

.body-lg { font-size: 18px; line-height: 1.5; color: var(--gray-300); }

/* --------------------------------------------------------------------------
   Botão — componente (8160:172 / 8160:173)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 23px; /* 18/24 do Figma − 1px do stroke inside */
  border: 1px solid var(--gray-800);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--gray-0);
  background: transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { border-color: var(--gray-500); }
.btn--primary { background: var(--gray-0); color: var(--black-200); }
.btn--primary:hover { background: var(--gray-200); border-color: var(--gray-800); }

/* --------------------------------------------------------------------------
   Header (8165:2338) · versão scroll (8165:2339)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--black-200);
  box-shadow: inset 0 -1px 0 var(--gray-900); /* stroke inside 1px */
  transition: height .25s ease, box-shadow .25s ease;
}
/* Após o scroll: fixo, sem stroke, logo e padding menores (py 16, logo 120×28) */
.site-header.is-scrolled { height: var(--header-h-scrolled); box-shadow: none; }
/* Barra: container (8165:2315 / 8635:3289) + botão "Menu" do mobile (8635:3577) */
.site-header__bar { display: flex; align-items: center; }
.site-header__inner {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__logo img { width: 137px; height: 32px; transition: width .25s ease, height .25s ease; }
.site-header.is-scrolled .site-header__logo img { width: 120px; height: 28px; }
.site-header__actions { display: flex; align-items: center; gap: 24px; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a,
.site-header__cta {
  font-size: 16px;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--gray-0);
  transition: color .2s ease;
}
.site-nav a { font-weight: 400; }
.site-nav a:hover { color: var(--gray-300); }
.site-header__sep { width: 4px; height: 4px; background: var(--gray-500); }
.site-header__cta { font-weight: 600; }
.site-header__cta:hover { color: var(--gray-300); }

/* Variante Blog (8340:2124): logo sem ™ 125×32 + selo "BLOG" (8314:2527, gap 24); nav com "Início" */
.site-header__brand { display: flex; align-items: center; gap: 24px; }
.site-header__logo picture { display: block; }
.site-header--blog .site-header__logo img { width: 125px; height: 32px; }
.site-header--blog.is-scrolled .site-header__logo img { width: 109.375px; height: 28px; } /* mesma escala 32 → 28 da versão scroll (8165:2339) */
/* 8314:2542 · Tag: p 2/6, blue-300 · texto 8314:2526 Cabin Bold 12/1.3 maiúsculo black-200 */
.site-header__tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  background: var(--blue-300);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--black-200);
}
.site-header__tag span { display: block; }

/* 768–1023: com a MktOps no menu (5 links; 6 no Blog, com "Início") os gaps de 24 não cabem — 16 em todas as variantes */
@media (min-width: 768px) and (max-width: 1023px) {
  .site-header__brand,
  .site-header__actions,
  .site-nav { gap: 16px; }
  /* texto do botão editável (Dados do site): se não couber, encolhe com reticências em vez de passar da tela */
  .site-header__actions { min-width: 0; }
  .site-header__cta { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
/* 768–899 no Blog: logo + selo (192) + 6 links não cabem — o selo sai, como no celular */
@media (min-width: 768px) and (max-width: 899px) {
  .site-header--blog .site-header__tag { display: none; }
}
@media (min-width: 768px) and (max-width: 819px) {
  .site-header--blog .site-nav { gap: 12px; } /* 6 links: com 16 sobravam 5 px entre o logo e o menu em 768 */
}

/* Botão "Menu" e gaveta só existem no mobile (≤767) */
.site-header__toggle,
.site-header__drawer { display: none; }

/* Gaveta aberta: trava a rolagem da página */
html.has-menu-open,
html.has-menu-open body { overflow: hidden; }

/* --------------------------------------------------------------------------
   Header mobile (≤767) · 8635:3579 (375×60) · scroll 8662:2937 · menu 8662:2946
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  /* 8635:3579: p 16, logo 120×28 nos dois estados; stroke inferior só no topo (8662:2937 sem stroke) */
  .site-header__logo img,
  .site-header--blog .site-header__logo img,
  .site-header.is-scrolled .site-header__logo img { width: 120px; height: 28px; }
  .site-header__actions { display: none; } /* 8635:3291 (hidden) */
  /* Blog mobile 8673:4443 = instância do header da Home: logo com ™ (<source> do <picture>), sem selo */
  .site-header__tag { display: none; }

  /* Post mobile 8693:2102 "Header blog" (375×64): logo sem ™ 125×32 + selo, gap 16; rolando volta aos 60 do 8662:2937 */
  .site-header--tag-m .site-header__tag { display: flex; }
  .site-header--tag-m .site-header__brand { gap: 16px; }
  .site-header--tag-m:not(.is-scrolled) .site-header__logo img { width: 125px; height: 32px; }

  /* 8635:3577 / 8635:3568 · "Menu" Cabin Regular 18/1.5 */
  .site-header__toggle,
  .site-header__close {
    position: relative;
    display: block;
    flex: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-body);
    font-variation-settings: "wdth" 100;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    white-space: nowrap;
    color: var(--gray-0);
    cursor: pointer;
    transition: color .2s ease;
  }
  .site-header__toggle { min-width: 44px; text-align: right; transition: color .2s ease, opacity .3s ease; } /* caixa de texto 44×27 do Figma (texto à direita) */
  html.has-menu-open .site-header__toggle { opacity: 0; } /* com a gaveta aberta, "Fechar" substitui "Menu" (não vaza ao lado do painel) */
  .site-header__close { min-width: 51px; text-align: right; }  /* 8662:2952 · 51×27 */
  .site-header__toggle span { display: block; }
  .site-header__toggle::after,
  .site-header__close::after { content: ""; position: absolute; inset: -9px -8px; } /* área de toque ≥ 44px */
  .site-header__toggle:hover,
  .site-header__close:hover { color: var(--gray-300); }

  /* Gaveta (8662:2946): overlay cobrindo a altura da tela, entra da esquerda para a direita */
  .site-header__drawer {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: block;
    visibility: hidden;
    transition: visibility 0s linear .3s;
  }
  .site-header__drawer.is-open { visibility: visible; transition-delay: 0s; }
  .site-header__backdrop {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--black-200) 60%, transparent);
    opacity: 0;
    transition: opacity .3s ease;
  }
  .site-header__drawer.is-open .site-header__backdrop { opacity: 1; }
  .site-header__panel {
    position: absolute;
    inset: 0 auto 0 0;
    width: min(325px, calc(100% - 50px)); /* 325 no frame de 375 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--black-100);
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.2, .7, .2, 1);
  }
  .site-header__drawer.is-open .site-header__panel { transform: none; }

  /* 8662:2947 · Close Button 325×60: p 16 + stroke inferior de 1 (no layout), "Fechar" à direita (8662:2952) */
  .site-header__panel-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 16px;
    border-bottom: 1px solid var(--gray-900);
  }

  /* 8662:2938 / 8662:2939 · links Cabin 16/1.5, gap 24, à direita */
  .site-header__menu {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 16px;
  }
  .site-header__menu a {
    position: relative;
    display: block;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    text-align: right;
    color: var(--gray-0);
    transition: color .2s ease;
  }
  .site-header__menu a::after { content: ""; position: absolute; inset: -10px 0; } /* área de toque 44px */
  .site-header__menu a:hover { color: var(--gray-300); }

  /* 8662:2965 · Email and Description: p 16, gap 8, stroke superior inside */
  .site-header__contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    box-shadow: inset 0 1px 0 var(--gray-900);
    text-align: right;
  }
  .site-header__contact-label { /* 8662:2966 · Instrument Serif Italic 18/1.3 */
    height: 23px;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.3;
    color: var(--gray-300);
  }
  .site-header__contact-email { /* 8662:2967 · Exo SemiBold 16/1.2 — clique copia o e-mail */
    position: relative;
    display: block;
    min-height: 23px; /* 23 do Figma; e-mail longo do Customizer quebra em vez de estourar a gaveta (320 → 238 úteis) */
    overflow-wrap: anywhere;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
    color: var(--gray-0);
    transition: color .2s ease;
  }
  .site-header__contact-email::after { content: ""; position: absolute; inset: -11px 0; } /* área de toque 45px */
  .site-header__contact-email:hover { color: var(--gray-300); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header__logo img,
  .site-header__toggle,
  .site-header__drawer,
  .site-header__backdrop,
  .site-header__panel { transition: none; }
}

/* Formulários: campo isca anti-spam (server/forms.py) — fora da tela e da leitura, robô preenche */
.form-isca { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
/* /assets/css/motion.css */
/* Studio Artemis — motion.css: estados e animações da biblioteca assets/js/motion.js (catálogo em MODEL.md › Motion).
   Tudo que esconde fica atrás de html.motion-on (ligado no <head> só com prefers-reduced-motion: no-preference)
   e some com .is-done: em repouso, sem JS, com movimento reduzido e na impressão a página é a do Figma.
   Só transform-like (translate/scale), opacity e clip-path; nada muda o tamanho da caixa (sem CLS). */

:root { --motion-ease: cubic-bezier(.25, .6, .3, 1); }

/* --------------------------------------------------------------------------
   Entradas — data-reveal (estado inicial só enquanto não entrou)
   -------------------------------------------------------------------------- */
.motion-on [data-reveal]:not(.is-in):not(.is-done) { opacity: 0; }
.motion-on [data-reveal="rise"]:not(.is-in):not(.is-done) { opacity: 1; translate: 0 32px; }
.motion-on [data-reveal="grow-x"]:not(.is-in):not(.is-done) { opacity: 1; scale: 0 1; }
.motion-on [data-reveal="grow-y"]:not(.is-in):not(.is-done) { opacity: 1; scale: 1 0; }

.motion-on [data-reveal].is-in { animation: m-up .9s var(--motion-ease) var(--m-delay, 0ms) both; }
.motion-on [data-reveal="diag"].is-in { animation-name: m-diag; }
.motion-on [data-reveal="fade"].is-in { animation-name: m-fade; animation-duration: .7s; }
.motion-on [data-reveal="pop"].is-in { animation-name: m-pop; animation-duration: .8s; }
.motion-on [data-reveal="rise"].is-in { animation-name: m-rise; animation-duration: 1.1s; }
.motion-on [data-reveal="grow-x"].is-in { animation-name: m-grow-x; }
.motion-on [data-reveal="grow-y"].is-in { animation-name: m-grow-y; }

[data-reveal="grow-x"] { transform-origin: left center; }
[data-reveal="grow-x"][data-origin="right"] { transform-origin: right center; }
[data-reveal="grow-x"][data-origin="center"] { transform-origin: center; }
[data-reveal="grow-y"] { transform-origin: center top; }
[data-reveal="grow-y"][data-origin="bottom"] { transform-origin: center bottom; }
[data-reveal="grow-y"][data-origin="center"] { transform-origin: center; }

@keyframes m-up { from { opacity: 0; translate: 0 24px; } }
@keyframes m-diag { from { opacity: 0; translate: -32px 24px; } }
@keyframes m-fade { from { opacity: 0; } }
@keyframes m-pop { from { opacity: 0; scale: .9; } }
@keyframes m-rise { from { translate: 0 32px; } }
@keyframes m-grow-x { from { scale: 0 1; } }
@keyframes m-grow-y { from { scale: 1 0; } }

/* --------------------------------------------------------------------------
   Título por linhas — data-split="lines" (o JS fixa as quebras do repouso e devolve o HTML no fim)
   -------------------------------------------------------------------------- */
.motion-on [data-split]:not(.is-split):not(.is-done) { opacity: 0; }
.m-w {
  display: inline-block;
  vertical-align: top;
  overflow: clip;
  padding-bottom: .12em; /* respiro para os descendentes (g, p, ç) dentro da máscara */
  margin-bottom: -.12em;
}
.m-w__i { display: inline-block; }
.motion-on [data-split].is-split:not(.is-in) .m-w__i { translate: 0 110%; }
.motion-on [data-split].is-in .m-w__i {
  animation: m-line .9s var(--motion-ease) both;
  animation-delay: calc(var(--m-delay, 0ms) + var(--m-line, 0) * 80ms);
}
@keyframes m-line { from { translate: 0 110%; } }

/* --------------------------------------------------------------------------
   Topo da página — data-motion-start="load" sem esperar o motion.js
   O <head> liga html.motion-boot junto com o motion-on: a entrada do topo toca só com CSS desde a 1ª pintura.
   Antes, o topo ficava escondido até o motion.js (defer, depois de todo o HTML e CSS) e as fontes chegarem —
   3,5 a 4,5 s de tela preta numa 1ª visita. O motion.js marca esses itens como prontos e tira o motion-boot
   quando estas animações terminam; a repetição ao voltar à tela continua com o JS.
   Keyframes com "to" explícito: o estado escondido (opacity 0 etc.) é o valor de base durante a animação.
   -------------------------------------------------------------------------- */
.motion-boot [data-motion-start="load"] :is([data-reveal], [data-split]),
.motion-boot :is([data-reveal], [data-split])[data-motion-start="load"] {
  animation: m-load-up .8s var(--motion-ease) var(--m-load-delay, 120ms) both;
}
.motion-boot [data-motion-start="load"] [data-split],
.motion-boot [data-split][data-motion-start="load"] { --m-load-delay: 0ms; animation-duration: .9s; }
.motion-boot [data-motion-start="load"] [data-reveal="fade"],
.motion-boot [data-reveal="fade"][data-motion-start="load"] { --m-load-delay: 0ms; animation-name: m-load-fade; animation-duration: .7s; }
.motion-boot [data-motion-start="load"] [data-reveal="pop"],
.motion-boot [data-reveal="pop"][data-motion-start="load"] { animation-name: m-load-pop; }
.motion-boot [data-motion-start="load"] [data-reveal="rise"],
.motion-boot [data-reveal="rise"][data-motion-start="load"] { animation-name: m-load-rise; animation-duration: 1.1s; }
.motion-boot [data-motion-start="load"] [data-reveal="grow-x"],
.motion-boot [data-reveal="grow-x"][data-motion-start="load"] { animation-name: m-load-grow-x; }
.motion-boot [data-motion-start="load"] [data-reveal="grow-y"],
.motion-boot [data-reveal="grow-y"][data-motion-start="load"] { animation-name: m-load-grow-y; }
.motion-boot [data-motion-start="load"] [data-wipe],
.motion-boot [data-wipe][data-motion-start="load"] { animation: m-wipe 1s var(--motion-ease) var(--m-load-delay, 200ms) both; }

@keyframes m-load-up { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@keyframes m-load-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes m-load-pop { from { opacity: 0; scale: .9; } to { opacity: 1; scale: 1; } }
@keyframes m-load-rise { from { opacity: 1; translate: 0 32px; } to { opacity: 1; translate: 0 0; } }
@keyframes m-load-grow-x { from { opacity: 1; scale: 0 1; } to { opacity: 1; scale: 1 1; } }
@keyframes m-load-grow-y { from { opacity: 1; scale: 1 0; } to { opacity: 1; scale: 1 1; } }

/* --------------------------------------------------------------------------
   Cortina — data-wipe (máscara que abre na direção pedida) · data-wipe-zoom assenta a 1ª imagem
   Máscara, não clip-path: no Chrome a IntersectionObserver aplica o clip-path do próprio alvo — com o recorte
   fechado o elemento contava como fora da tela e, depois de voltar ao início (repetição), nunca mais tocava.
   -------------------------------------------------------------------------- */
.motion-on [data-wipe] { --m-mpos: 0 0; --m-mfrom: 0% 100%; }        /* right: abre da esquerda para a direita */
.motion-on [data-wipe="left"] { --m-mpos: 100% 0; }
.motion-on [data-wipe="up"] { --m-mpos: 0 100%; --m-mfrom: 100% 0%; } /* abre de baixo para cima */
.motion-on [data-wipe="down"] { --m-mfrom: 100% 0%; }
.motion-on [data-wipe="out"] { --m-mpos: 50% 0; }                    /* abre do centro para as bordas */
.motion-on [data-wipe]:not(.is-done) {
  -webkit-mask: linear-gradient(#000, #000) var(--m-mpos) / var(--m-mfrom) no-repeat;
  mask: linear-gradient(#000, #000) var(--m-mpos) / var(--m-mfrom) no-repeat;
}
.motion-on [data-wipe].is-in { animation: m-wipe 1s var(--motion-ease) var(--m-delay, 0ms) both; }
.motion-on [data-wipe-zoom].is-in img { animation: m-settle 1.3s var(--motion-ease) var(--m-delay, 0ms) both; }

@keyframes m-wipe { to { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; } }
@keyframes m-settle { from { scale: 1.06; } }

/* --------------------------------------------------------------------------
   Contador e digitação
   -------------------------------------------------------------------------- */
/* Contém o .m-sr (absolute): sem ancestral posicionado ele escapa do clip do main e alarga a página no celular */
[data-type], [data-count] { position: relative; }
.m-count { display: inline-block; text-align: right; }
.m-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.motion-on [data-type].is-typing-ready:not(.is-in) .m-c { opacity: 0; }
.motion-on [data-type].is-in .m-c {
  animation: m-fade .12s linear both;
  animation-delay: calc(var(--m-delay, 0ms) + var(--m-i, 0) * 18ms);
}

/* --------------------------------------------------------------------------
   Hover só em link e botão (Regra de hover)
   -------------------------------------------------------------------------- */
/* Botão: o rótulo sobe e a cópia (text-shadow) ocupa o lugar. A máscara tem a altura da linha do .btn (1,5em). */
.m-roll { display: inline-block; vertical-align: top; height: 1.5em; overflow: clip; }
.m-roll__in { display: block; text-shadow: 0 1.5em currentColor; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .m-roll__in { transition: translate .45s var(--motion-ease); }
  .btn:hover .m-roll__in,
  .btn:focus-visible .m-roll__in { translate: 0 -1.5em; }
}

/* Link de texto: sublinhado que cresce da esquerda (o link atual, aria-current, fica como no Figma) */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.site-nav a, .site-header__cta, .site-footer__legal-links a, [data-hover="line"]):not([aria-current]) {
    background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
    transition: background-size .35s var(--motion-ease), color .2s ease;
  }
  :is(.site-nav a, .site-header__cta, .site-footer__legal-links a, [data-hover="line"]):not([aria-current]):hover {
    background-size: 100% 1px;
  }
}

/* --------------------------------------------------------------------------
   Menu do celular: os links chegam um por vez ao abrir a gaveta
   -------------------------------------------------------------------------- */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .site-header__drawer.is-open .site-header__menu a,
  .site-header__drawer.is-open .site-header__contact {
    animation: m-drawer .3s var(--motion-ease) both;
  }
  .site-header__drawer.is-open .site-header__menu a:nth-child(1) { animation-delay: .12s; }
  .site-header__drawer.is-open .site-header__menu a:nth-child(2) { animation-delay: .16s; }
  .site-header__drawer.is-open .site-header__menu a:nth-child(3) { animation-delay: .2s; }
  .site-header__drawer.is-open .site-header__menu a:nth-child(4) { animation-delay: .24s; }
  .site-header__drawer.is-open .site-header__menu a:nth-child(5) { animation-delay: .28s; }
  .site-header__drawer.is-open .site-header__menu a:nth-child(6) { animation-delay: .32s; }
  .site-header__drawer.is-open .site-header__menu a:nth-child(7) { animation-delay: .36s; }
  .site-header__drawer.is-open .site-header__contact { animation-delay: .4s; }
}
@keyframes m-drawer { from { opacity: 0; translate: -12px 0; } }

/* --------------------------------------------------------------------------
   Loops com tempo (data-loop): as seções ligam a animação infinita só com .is-looping
   -------------------------------------------------------------------------- */
.cta__status:not(.is-looping) .cta__led,
.newsletter__status:not(.is-looping) .newsletter__led { animation: none; } /* LED aceso (quadro do Figma) fora do tempo */
.cta__pattern.is-live:not(.is-looping) .cta__dash-row path:not(.is-lit) { animation: none; }

/* --------------------------------------------------------------------------
   Transição entre páginas (View Transitions entre documentos) — header parado, conteúdo em fade curto
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: m-vt-out .18s ease both; }
  ::view-transition-new(root) { animation: m-vt-in .26s var(--motion-ease) both; }
}
@keyframes m-vt-out { to { opacity: 0; } }
@keyframes m-vt-in { from { opacity: 0; translate: 0 8px; } }

/* --------------------------------------------------------------------------
   Impressão: tudo no repouso
   -------------------------------------------------------------------------- */
@media print {
  .motion-on [data-reveal],
  .motion-on [data-split],
  .motion-on [data-wipe],
  .motion-on [data-wipe] img,
  .motion-on .m-w__i,
  .motion-on .m-c { opacity: 1 !important; translate: none !important; scale: none !important; clip-path: none !important; -webkit-mask: none !important; mask: none !important; animation: none !important; }
}
/* /assets/css/sections/portfolio-01-grid.css */
/* Portfólio · layout antigo (logos) — canvas "Portfólio Artemis — nova página" › Desktop-copia (1440) e Mobile-antigo (390).
   Valores literais do quadro. Cores fora da paleta do site (só desta página): fundo #000, linhas #2a2a2c,
   caixas #0c0c0e, marcado #1a73e8, WhatsApp #25d366. */

.pf {
  position: relative;
  display: grid;
  grid-template-columns: 415px minmax(0, 1fr);
  background: #000;
  border-top: 1px solid var(--gray-900);
}

.pf__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.pf button:focus-visible,
.pf a:focus-visible,
.pf-wa:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; }

/* Coluna "Navegue por aqui" */
.pf-side {
  padding: 100px 40px 100px 96px;
  border-right: 1px solid #2a2a2c;
}

.pf-side__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.3;
  color: var(--gray-0);
}

.pf-side__list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.pf-chk {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gray-0);
  font: 400 20px/1.3 var(--font-body);
  cursor: pointer;
}

.pf-chk__box {
  flex: none;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-800);
  border-radius: 2px;
  background: #000;
  color: transparent;
}
.pf-chk[aria-pressed="true"] .pf-chk__box { background: #1a73e8; border-color: #1a73e8; color: var(--gray-0); }

/* Lista suspensa "Categoria: …" — só no celular */
.pf-dd { display: none; }
.pf-dd__chev { transition: transform .2s ease; }

/* Grade de logos */
.pf-main { padding: 100px 50px 120px; }

.pf-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 33px 32px;
}

.pf-tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 283 / 237;
  overflow: hidden;
  background: #0c0c0e;
  border: 1px solid #2a2a2c;
  color: var(--gray-0);
}

.pf-tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}

.pf-tile__ph { /* projeto sem logo (tema WP): o nome no lugar, como no quadro */
  padding: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
  text-align: center;
  color: var(--gray-200);
}

.pf-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .75) 100%);
  opacity: 0;
  transition: opacity .3s ease;
}

.pf-tile__name {
  position: absolute;
  left: 32px;
  right: 32px; /* nome longo quebra dentro do logo, em linhas equilibradas (sem viúva) */
  bottom: 36px;
  z-index: 1;
  font: 400 22px/1.2 var(--font-body);
  text-wrap: balance;
  color: var(--gray-0);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}

a.pf-tile:hover::after,
a.pf-tile:focus-visible::after { opacity: 1; }
a.pf-tile:hover .pf-tile__name,
a.pf-tile:focus-visible .pf-tile__name { opacity: 1; transform: none; }
a.pf-tile:hover .pf-tile__img { transform: scale(1.04); }

/* Efeitos de hover só no logo com link (regra de hover). Cada logo é link: com o cursor (ou o foco do teclado) ele vem para frente — sobe, cresce e ganha sombra,
   como os arquivos da MktOps tinham antes da regra de hover — e passa por cima dos vizinhos.
   Só com mouse: no toque o tap não deixa o logo preso à frente. */
.pf-grid > li { position: relative; }
.pf-tile { transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease; }
@media (hover: hover) and (pointer: fine) {
  .pf-grid > li:hover { z-index: 2; }
  a.pf-tile:hover { transform: translateY(-10px) scale(1.06); box-shadow: 0 18px 22px rgb(0 0 0 / .55); }
}
.pf-grid > li:focus-within { z-index: 2; }
a.pf-tile:focus-visible { transform: translateY(-10px) scale(1.06); box-shadow: 0 18px 22px rgb(0 0 0 / .55); }

/* Botão flutuante do WhatsApp — símbolo oficial em branco sobre o verde da marca (#25d366), ocupando 59% do
   círculo como no botão do portfólio antigo (no quadro era um desenho aproximado) */
.pf-wa {
  position: fixed;
  right: 12px;
  bottom: 28px;
  z-index: 40;
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: var(--gray-0);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .2s ease;
}
.pf-wa:hover { transform: scale(1.06); }

/* Até 1100: coluna do filtro em cima (opções em linha) e grade de 2 */
@media (max-width: 1100px) {
  .pf { grid-template-columns: minmax(0, 1fr); }
  .pf-side { padding: 48px var(--section-px) 24px; border-right: 0; border-bottom: 1px solid #2a2a2c; }
  .pf-side__list { flex-direction: row; flex-wrap: wrap; gap: 4px 24px; margin-top: 20px; }
  .pf-main { padding: 40px var(--section-px) 80px; }
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .pf-tile__name { left: 16px; right: 16px; bottom: 16px; font-size: 18px; }
}

/* Celular (Mobile-antigo, 390): filtro vira lista suspensa */
@media (max-width: 767px) {
  .pf-side__title { font-size: 22px; }

  .pf-dd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    margin-top: 16px;
    padding: 0 16px;
    border: 1px solid var(--gray-800);
    border-radius: 4px;
    background: #0c0c0e;
    color: var(--gray-0);
    font: 400 16px/1.4 var(--font-body);
    text-align: left;
    cursor: pointer;
  }
  .pf-side.is-open .pf-dd { border-color: #1a73e8; }
  .pf-side.is-open .pf-dd__chev { transform: rotate(180deg); }

  /* a lista só aparece com a suspensa aberta (sem JS a grade mostra tudo, como com "Todos") */
  .pf-side__list { display: none; }
  .pf-side.is-open .pf-side__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 4px 0 0;
    padding: 6px 16px;
    border: 1px solid #2a2a2c;
    border-radius: 4px;
    background: #0c0c0e;
  }

  .pf-wa { width: 60px; height: 60px; right: 12px; bottom: 16px; }
  .pf-wa svg { width: 35px; height: 35px; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-tile, .pf-tile__img, .pf-tile::after, .pf-tile__name, .pf-dd__chev, .pf-wa { transition: none; }
  a.pf-tile:hover, a.pf-tile:focus-visible, a.pf-tile:hover .pf-tile__img { transform: none; }
}
/* /assets/css/sections/portfolio-header.css */
/* Header do Portfólio — layout antigo (canvas "Portfólio Artemis — nova página" › Desktop-copia).
   No fluxo da página (o header do site é fixo e por isso o <main> leva padding-top: aqui não). */

.page-portfolio main { padding-top: 0; }

.pf-header {
  height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--gray-900);
  background: #000;
}

.pf-header__in {
  width: 100%;
  max-width: var(--frame-w);
  margin-inline: auto;
  padding-inline: var(--section-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pf-start {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font: 400 20px/1.3 var(--font-body);
  color: var(--gray-0);
  white-space: nowrap;
}
.pf-start:hover { color: var(--gray-200); }

.pf-start__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #7ee19a;
  box-shadow: 0 0 0 5px rgba(126, 225, 154, .22);
}

.pf-header a:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; }

@media (max-width: 767px) {
  .pf-header { height: 60px; }
  .pf-start { font-size: 16px; }
}

/* Abaixo do quadro (390): logo + "Comece um projeto" não cabem em 320 com os espaços do quadro (335) */
@media (max-width: 359px) {
  .pf-header__in { gap: 12px; }
  .pf-start { gap: 8px; font-size: 15px; }
}
