/* ===================================================================
   RODRIGO SANCHES — PORTFÓLIO
   CSS único, escrito à mão. Ordem:
     01. Tokens
     02. Reset e base
     03. Utilitários (container, eyebrow, botões, reveal)
     04. Header + navegação
     05. Menu mobile
     06. Hero
     07. Quem é
     08. Trajetória
     09. Cases
     10. Portfólio + filtros
     11. Como posso ajudar
     12. Contato
     13. Footer
     14. Breakpoints
     15. prefers-reduced-motion
   =================================================================== */


/* ===================================================================
   01. TOKENS
   =================================================================== */
:root {
  /* --- Cores (paleta fechada) --- */
  --white:     #ffffff;
  --lime:      #cff827;
  --black:     #0b0b0a;
  --gray-100:  #f4f4f2;
  --gray-500:  #6b6b68;
  --lime-dark: #b5db1c;

  /* Derivadas de uso interno — apenas variações das três cores base */
  --gray-300:     #a8a8a4;  /* texto secundário SOBRE preto (AA: 8.2:1) */
  --black-soft:   #131312;  /* cartões sobre preto */
  --black-deep:   #060605;  /* footer */
  --line-light:   rgba(11, 11, 10, 0.12);
  --line-dark:    rgba(255, 255, 255, 0.14);
  --text-on-dark: rgba(255, 255, 255, 0.72);

  /* --- Tipografia --- */
  --font-display: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Escala reduzida. Os coeficientes fluidos mantêm o manifesto do hero em
     duas linhas por frase, da largura de celular até o container cheio. */
  --fs-h1:      clamp(2rem, 5vw, 4.5rem);
  --fs-h2:      clamp(1.3rem, 2.88vw, 2.2rem);
  --fs-h3:      clamp(0.9rem, 1.52vw, 1.1rem);
  --fs-body:    0.8rem;
  --fs-lead:    clamp(0.8rem, 1.04vw, 0.9rem);
  --fs-eyebrow: 0.55rem;

  /* --- Espaçamento e layout --- */
  --space-section: clamp(3.5rem, 7vw, 6rem);
  --container: 1200px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --radius: 4px;
  --header-h: 68px;
  --card-pad: clamp(1.25rem, 2.4vw, 1.75rem);

  /* --- Movimento --- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.4s;
}


/* ===================================================================
   02. RESET E BASE
   =================================================================== */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--black);
  color: var(--black);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

blockquote { margin: 0; }

/* Foco visível e consistente em tudo que é interativo */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}
/* Sobre fundo claro o contorno verde quase não aparece (1,2:1) —
   nesses blocos o foco é preto. */
.section--white :focus-visible,
.section--gray :focus-visible,
.section--lime :focus-visible { outline-color: var(--black); }

/* Texto acessível apenas a leitores de tela */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--lime);
  color: var(--black);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }
/* o próprio link é verde: o contorno precisa ser preto para aparecer */
.skip-link:focus-visible { outline-color: var(--black); }

::selection { background: var(--lime); color: var(--black); }


/* ===================================================================
   03. UTILITÁRIOS
   =================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* --- Blocos de seção --- */
.section { padding-block: var(--space-section); }

.section--black { background: var(--black); color: var(--white); }
.section--white { background: var(--white); color: var(--black); }
.section--gray  { background: var(--gray-100); color: var(--black); }
.section--lime  { background: var(--lime); color: var(--black); }

/* --- Eyebrow ---
   Regra de contraste do projeto: texto verde SÓ sobre preto (16:1).
   Em blocos claros o verde vira elemento gráfico (barra/preenchimento)
   e o texto fica preto — assim o acento continua verde e passa em AA. */
.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime);
}
.section--white .eyebrow,
.section--gray .eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--black);
}
.section--white .eyebrow::before,
.section--gray .eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 32px;
  height: 4px;
  background: var(--lime);
}
.eyebrow--on-lime { color: var(--black); }

/* --- Títulos de seção --- */
.section__title {
  max-width: 24ch;
  margin: 0 0 2rem;
  font-size: var(--fs-h2);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.section__title .accent { color: var(--lime); }
/* Em bloco claro: texto preto sobre marcação verde (destaque de marca-texto) */
.section--white .section__title .accent,
.section--gray .section__title .accent {
  color: var(--black);
  background-image: linear-gradient(var(--lime), var(--lime));
  background-repeat: no-repeat;
  background-size: 100% 0.24em;
  background-position: 0 92%;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
/* Sobre o verde, o destaque muda de estilo (não de cor) — contraste */
.section--lime .section__title .accent {
  color: var(--black);
  font-style: italic;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

.section__lead {
  max-width: 60ch;
  margin: -1rem 0 2rem;
  font-size: var(--fs-lead);
  color: var(--gray-500);
}

/* --- Botões --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease),
              color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              transform var(--dur) var(--ease);
}
.btn--primary {
  background: var(--lime);
  color: var(--black);
}
.btn--primary:hover { background: var(--lime-dark); transform: translateY(-2px); }

.btn--ghost {
  border: 1px solid var(--line-dark);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); transform: translateY(-2px); }

.btn--header { padding: 0.7rem 1.15rem; font-size: 0.875rem; }

/* --- Reveal on scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Tratamento das fotos: p&b + leve véu verde */
.img-duotone { filter: grayscale(1) contrast(1.06); }


/* ===================================================================
   04. HEADER
   =================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.site-header.is-stuck {
  background: var(--black);
  box-shadow: 0 1px 0 var(--line-dark), 0 10px 30px rgba(0, 0, 0, 0.45);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

/* --- Logo --- */
.brand { display: block; color: var(--white); }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand__dot { color: var(--lime); }
.brand__handle {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gray-300);
}

/* --- Navegação desktop --- */
.nav-desktop { display: none; }
.nav-desktop__list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}
.nav-desktop__list a {
  position: relative;
  display: block;
  padding-block: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-on-dark);
  transition: color var(--dur) var(--ease);
}
.nav-desktop__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-desktop__list a:hover { color: var(--white); }
.nav-desktop__list a:hover::after { transform: scaleX(1); }
.nav-desktop__list a.is-current { color: var(--lime); }
.nav-desktop__list a.is-current::after { transform: scaleX(1); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.btn--header { display: none; }

/* --- Botão hambúrguer --- */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--white);
}
.menu-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.menu-toggle.is-open .menu-toggle__bar:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle.is-open .menu-toggle__bar:last-child  { transform: translateY(-4px) rotate(-45deg); }


/* ===================================================================
   05. MENU MOBILE (overlay fullscreen)
   =================================================================== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
  background: var(--black);
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.menu-overlay[hidden] { display: none; }
.menu-overlay.is-open { opacity: 1; }

.menu-overlay__nav li {
  border-bottom: 1px solid var(--line-dark);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.menu-overlay.is-open .menu-overlay__nav li { opacity: 1; transform: none; }
.menu-overlay.is-open .menu-overlay__nav li:nth-child(1) { transition-delay: 0.05s; }
.menu-overlay.is-open .menu-overlay__nav li:nth-child(2) { transition-delay: 0.10s; }
.menu-overlay.is-open .menu-overlay__nav li:nth-child(3) { transition-delay: 0.15s; }
.menu-overlay.is-open .menu-overlay__nav li:nth-child(4) { transition-delay: 0.20s; }
.menu-overlay.is-open .menu-overlay__nav li:nth-child(5) { transition-delay: 0.25s; }
.menu-overlay.is-open .menu-overlay__nav li:nth-child(6) { transition-delay: 0.30s; }

.menu-overlay__nav a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-block: 0.75rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 6.5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  transition: color var(--dur) var(--ease);
}
.menu-overlay__nav a:hover { color: var(--lime); }
.menu-overlay__num {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--lime);
}

.menu-overlay__cta { align-self: flex-start; }
.menu-overlay__foot {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--gray-300);
}


/* ===================================================================
   06. HERO
   =================================================================== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  padding-block: calc(var(--header-h) + 2rem) 1.75rem;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  flex: 1;
  align-content: center;
}

.hero .eyebrow { color: var(--lime); }

.hero__title {
  margin: 0 0 1.25rem;
  font-size: var(--fs-h1);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__title .accent { color: var(--lime); }

.hero__lead {
  max-width: 40ch;
  margin: 0 0 2rem;
  font-size: var(--fs-lead);
  color: var(--text-on-dark);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* --- Foto do hero: retrato circular ao lado do texto --- */
.hero__figure {
  position: relative;
  margin: 0;
  width: clamp(200px, 46vw, 460px);
  aspect-ratio: 1 / 1;
  max-width: 100%;
  border-radius: 50%;
  overflow: hidden;
  justify-self: center;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* --- Rodapé do hero: indicador de scroll --- */
.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
  padding-top: 1.35rem;
  margin-top: 1.35rem;
  border-top: 1px solid var(--line-dark);
}

.scroll-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-300);
  transition: color var(--dur) var(--ease);
}
.scroll-hint:hover { color: var(--lime); }
.scroll-hint__line {
  display: block;
  width: 52px;
  height: 1px;
  background: var(--lime);
  transform-origin: left;
  animation: scroll-pulse 2.4s var(--ease) infinite;
}
@keyframes scroll-pulse {
  0%, 100% { transform: scaleX(0.35); opacity: 0.5; }
  50%      { transform: scaleX(1);    opacity: 1; }
}


/* ===================================================================
   07. QUEM É
   =================================================================== */
.about {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}
.about__text { max-width: 65ch; }
.about__text p { font-size: var(--fs-lead); }

.manifesto {
  margin-top: 1.5rem;
  padding: 0.3rem 0 0.3rem 1.25rem;
  border-left: 3px solid var(--lime);
}
.manifesto p {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 1.36vw, 1.05rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.about__aside { align-self: start; }
.about__figure {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--black);
}
.about__figure img { width: 100%; height: 100%; object-fit: cover; }

/* Carreira / Base / Formação em uma linha só, abaixo do manifesto. */
.facts {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-light);
}
.facts__item {
  flex: 0 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
}
.facts dt {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-500);
}
.facts dd {
  margin: 0.2rem 0 0;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.35;
}


/* ===================================================================
   08. TRAJETÓRIA
   =================================================================== */
.timeline {
  position: relative;
  padding-left: 1.75rem;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0.6rem; bottom: 0.6rem;
  left: 4px;
  width: 1px;
  background: var(--line-dark);
}

.timeline__item {
  position: relative;
  display: grid;
  gap: 0.2rem 2rem;
  padding-bottom: 2rem;
}
.timeline__item:last-child { padding-bottom: 0; }

/* Marcador */
.timeline__item::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: -1.75rem;
  width: 9px; height: 9px;
  margin-left: 0.5px;
  border-radius: 50%;
  background: var(--lime);
}
/* Passagens repetidas pela mesma organização ganham marcador de anel */
.timeline__item.is-recurring::before {
  background: var(--black);
  border: 2px solid var(--lime);
  box-shadow: 0 0 0 3px rgba(207, 248, 39, 0.18);
}

.timeline__year {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.76vw, 1.3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.timeline__org {
  margin: 0 0 0.4rem;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}
.timeline__body p {
  max-width: 62ch;
  margin: 0;
  color: var(--text-on-dark);
}


/* ===================================================================
   09. CASES
   =================================================================== */
.cases {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
}

.case {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.case:hover {
  transform: translateY(-4px);
  border-color: var(--lime);
  box-shadow: 0 18px 40px rgba(11, 11, 10, 0.10);
}

.case__media {
  overflow: hidden;
  background: var(--black);
  aspect-ratio: 4 / 3;
}
.case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.case:hover .case__media img { transform: scale(1.03); }

.case__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--card-pad);
}

/* Numeração: selo verde no canto superior da imagem (preto sobre verde) */
.case__num {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  margin: 0;
  padding: 0.35rem 0.7rem 0.4rem;
  background: var(--lime);
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.76vw, 1.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.case__tag {
  align-self: flex-start;
  margin: 0 0 0.8rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--lime);
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case__title {
  margin: 0 0 0.7rem;
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.case__text {
  max-width: 60ch;
  margin: 0 0 1.5rem;
  color: var(--gray-500);
}

/* Métrica em painel verde sangrando até a borda do card.
   Texto preto sobre verde: 16:1 de contraste.
   Altura fixa (min-height) reservada para o rótulo em até 2 linhas, para
   o painel ter sempre o mesmo tamanho — com rótulo de 1 ou 2 linhas, ou
   sem rótulo nenhum (cases 1 e 7, só a palavra-chave). */
.case__metric {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 6.25rem;
  margin: auto calc(-1 * var(--card-pad)) calc(-1 * var(--card-pad));
  padding: 1rem var(--card-pad) 1.1rem;
  background: var(--lime);
  color: var(--black);
}
.case__metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.56vw, 1.9rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--black);
  font-variant-numeric: tabular-nums;
}
.case__metric-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.6rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--black);
}
/* Cases sem número: palavra-chave em destaque, um pouco menor */
.case__metric--word .case__metric-value {
  font-size: clamp(0.9rem, 1.76vw, 1.2rem);
  letter-spacing: -0.02em;
}


/* ===================================================================
   10. PORTFÓLIO
   =================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.filter {
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: transparent;
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 500;
  transition: background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
.filter:hover { border-color: var(--black); }
.filter.is-active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--black);
  font-weight: 600;
}

.filters__status {
  margin: 0 0 2rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-500);
  min-height: 1.2em;
}

/* Grade — não é mais masonry (colunas de altura livre): é um grid de
   verdade, para que todo cartão comece exatamente na mesma altura em
   cada fileira (align-items: start). A altura da miniatura é fixa, então
   só a legenda pode variar — e mesmo assim o topo nunca desalinha. */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: clamp(0.75rem, 1.6vw, 1.25rem);
}

/* Cartão de post: miniatura (prévia local OU embed real encolhido) +
   selo do cliente + texto explicativo. Não é mais um link — quem cobre
   a miniatura inteira é .post-card__embed-link; o resto do cartão
   (legenda, selo) não é clicável. */
.post-card {
  display: block;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.post-card.is-hidden { display: none; }
.post-card.is-entering { opacity: 0; transform: scale(0.97); }

/* Sem rede + link cadastrados ainda: mostra a prévia local, esmaecida */
.post-card--pending .post-card__embed-inner img { filter: grayscale(0.15); opacity: 0.85; }

/* Caixa da miniatura: altura fixa e igual pra todo cartão — é o que
   garante que a fileira toda comece na mesma altura. Fundo claro (não
   preto), para não parecer uma caixa escura enquanto o embed carrega. */
.post-card__embed {
  position: relative;
  height: 220px;
  background: var(--white);
  overflow: hidden;
}

.post-card__embed-inner {
  position: relative;
  width: 100%;
  height: 100%;
}
.post-card__embed-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* O post embedado (blockquote → iframe processado pelo script da rede)
   é redimensionado via JS (transform: scale, ver initPostEmbeds) pra
   caber como miniatura dentro da caixa acima — aqui só travamos que ele
   nunca force a caixa a crescer além da altura fixa. */
.post-card__embed-inner iframe,
.post-card__embed-inner blockquote {
  max-width: none;
}

/* Cobre a miniatura inteira; é o único jeito de clicar no card — clicar
   leva pro post real, em nova aba. Sem href (pendente) = inerte. */
.post-card__embed-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.post-card__embed-status {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 3;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--lime);
  color: var(--black);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.post-card__body {
  display: block;
  padding: 0.9rem 1rem 1rem;
}

.post-card__tag {
  display: inline-block;
  margin: 0 0 0.5rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--lime);
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.post-card__caption {
  display: block;
  margin: 0;
  font-size: 0.7rem;
  line-height: 1.5;
  color: var(--gray-500);
}


/* ===================================================================
   11. COMO POSSO AJUDAR
   =================================================================== */
.services {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.service {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--black);
  color: var(--white);
  transition: transform var(--dur) var(--ease);
}
.service:hover { transform: translateY(-4px); }

.service__num {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--lime);
}
.service__title {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.service__text {
  margin: 0;
  font-size: 0.7rem;
  color: var(--text-on-dark);
}


/* ===================================================================
   12. CONTATO
   =================================================================== */
.contact-list { border-top: 1px solid var(--line-dark); }
.contact-item { border-bottom: 1px solid var(--line-dark); }

.contact-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: clamp(0.85rem, 1.8vw, 1.2rem) clamp(0.6rem, 1.6vw, 1.1rem);
  color: var(--white);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.contact-link:hover { background: var(--lime); color: var(--black); }

.contact-link__icon { display: flex; color: var(--lime); transition: color var(--dur) var(--ease); }
.contact-link:hover .contact-link__icon { color: var(--black); }

.contact-link__label {
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 1.92vw, 1.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.contact-link__handle {
  grid-column: 2;
  font-size: 0.65rem;
  color: var(--gray-300);
  transition: color var(--dur) var(--ease);
}
.contact-link:hover .contact-link__handle { color: var(--black); }

.contact-link__arrow {
  grid-row: 1 / -1;
  grid-column: 3;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  transition: transform var(--dur) var(--ease);
}
.contact-link:hover .contact-link__arrow { transform: translate(4px, -4px); }

/* Estado "e-mail em breve" */
.contact-link--disabled {
  cursor: default;
  opacity: 0.45;
}
.contact-link--disabled:hover { background: transparent; color: var(--white); }
.contact-link--disabled:hover .contact-link__icon { color: var(--lime); }
.contact-link--disabled:hover .contact-link__arrow { transform: none; }


/* ===================================================================
   13. FOOTER
   =================================================================== */
.site-footer {
  padding-block: 2rem;
  background: var(--black-deep);
  color: var(--white);
  border-top: 2px solid var(--lime);
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 2rem;
}
.site-footer__brand {
  margin: 0;
  margin-right: auto;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.site-footer__meta {
  margin: 0;
  font-size: 0.75rem;
  color: var(--gray-300);
}
.site-footer__handle { color: var(--lime); }


/* ===================================================================
   14. BREAKPOINTS (mobile-first)
   =================================================================== */

/* --- 480px --- */
@media (min-width: 480px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* --- 768px --- */
@media (min-width: 768px) {
  :root { --header-h: 76px; }

  .btn--header { display: inline-flex; }

  .gallery { grid-template-columns: repeat(3, 1fr); }

  /* O texto fica na coluna esquerda; o retrato circular fica na coluna
     direita, ao lado do texto, centralizado verticalmente. */
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) clamp(340px, 40vw, 560px);
    column-gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
  }
  .hero__content { grid-column: 1; }
  .hero__figure { grid-column: 2; }

  .about { grid-template-columns: 1.35fr 0.65fr; }

  .timeline { padding-left: 0; }
  .timeline::before { left: 96px; }
  .timeline__item {
    grid-template-columns: 96px 1fr;
    padding-left: 0;
  }
  .timeline__item::before { left: 92px; top: 0.75rem; }
  .timeline__body { padding-left: 2.5rem; }

  .cases { grid-template-columns: repeat(2, 1fr); }
  .case--feature { grid-column: 1 / -1; }
  .case--feature { flex-direction: row; }
  .case--feature .case__media { flex: 0 0 46%; aspect-ratio: auto; }
  .case--feature .case__content { justify-content: center; }

  .services { grid-template-columns: repeat(2, 1fr); }

  .contact-link { grid-template-columns: auto auto 1fr auto; }
  .contact-link__handle { grid-column: 3; justify-self: start; }
  .contact-link__arrow { grid-row: 1; grid-column: 4; }
}

/* --- 1024px --- */
@media (min-width: 1024px) {
  .nav-desktop { display: block; }
  .menu-toggle { display: none; }

  .gallery { grid-template-columns: repeat(4, 1fr); }

  /* Grade de 6 colunas com cada card ocupando 2 — matematicamente idêntica
     a uma grade de 3 colunas, mas permite centralizar o par 04/05 na
     segunda fileira em vez de deixá-lo alinhado à esquerda. */
  .services { grid-template-columns: repeat(6, 1fr); }
  .service { grid-column: span 2; }
  .service:nth-child(4) { grid-column: 2 / span 2; }
  .service:nth-child(5) { grid-column: 4 / span 2; }

  .timeline::before { left: 132px; }
  .timeline__item { grid-template-columns: 132px 1fr; }
  .timeline__item::before { left: 128px; }
}

/* --- 1280px --- */
@media (min-width: 1280px) {
  .gallery { grid-template-columns: repeat(5, 1fr); }
  .section__title { max-width: 22ch; }
}


/* ===================================================================
   15. PREFERS-REDUCED-MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .menu-overlay { opacity: 1; }
  .menu-overlay__nav li { opacity: 1; transform: none; }
  .scroll-hint__line { animation: none; transform: none; }
}
