@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;
  --bg: #f5f5f3;
  --surface: #ffffff;
  --fg: #0d0d0d;
  --muted: #5e5e5a;
  --line: rgb(13 13 13 / 0.14);
  --signal: #d9381a;
  --ok: #1a7f45;

  --inv-bg: #0d0d0d;
  --inv-fg: #f5f5f3;
  --inv-muted: #a3a39e;
  --inv-line: rgb(245 245 243 / 0.18);
  --inv-signal: #ff5b38;

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1180px;
  --gutter: clamp(1.125rem, 4vw, 2.5rem);
  --radius: 12px;
  --header-h: 66px;
}

/* ---------- 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(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

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

a {
  color: inherit;
}

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

/* Evita que o parágrafo termine com uma palavra sozinha na última linha. */
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Seleção translúcida e sem trocar a cor do texto: com fundo sólido, as caixas de linhas vizinhas
   cobriam acentos e cedilhas nos títulos, que têm entrelinha apertada. */
::selection {
  background: color-mix(in srgb, var(--fg) 20%, transparent);
}

.about ::selection,
.cta__card ::selection,
.front--dark ::selection {
  background: color-mix(in srgb, var(--inv-fg) 32%, transparent);
}

.badge ::selection {
  background: color-mix(in srgb, var(--fg) 20%, transparent);
}

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--fg);
  color: var(--bg);
  border-radius: 8px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.4rem;
  border: 1.5px solid var(--fg);
  border-radius: 8px;
  font-weight: 550;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn--sm {
  min-height: 42px;
  padding: 0.58rem 0.95rem;
  font-size: 0.9rem;
}

.btn--lg {
  padding: 1.15rem 1.8rem;
  font-size: 1.0625rem;
}

.btn--primary {
  background: var(--fg);
  color: var(--bg);
}

.btn--ghost {
  background: transparent;
  color: var(--fg);
}

.btn--invert {
  background: var(--inv-fg);
  border-color: var(--inv-fg);
  color: var(--inv-bg);
}

@media (hover: hover) {
  .btn--primary:hover {
    background: #2c2c2a;
    border-color: #2c2c2a;
  }

  .btn--ghost:hover {
    background: color-mix(in srgb, var(--fg) 7%, transparent);
  }

  .btn--invert:hover {
    background: color-mix(in srgb, var(--inv-fg) 86%, var(--inv-bg));
    border-color: color-mix(in srgb, var(--inv-fg) 86%, var(--inv-bg));
  }

  .btn:hover .icon {
    transform: translate(2px, -2px);
  }
}

/* ---------- Cabeçalho ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.nav a {
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--fg);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(color-mix(in srgb, var(--fg) 20%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(115deg, transparent 45%, #000 100%);
  mask-image: linear-gradient(115deg, transparent 45%, #000 100%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero h1 {
  font-size: min(8vw, clamp(1.75rem, 3.6vw, 2.75rem));
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.hero h1 span {
  display: block;
}

.hero h1 .h1__a {
  font-weight: 400;
}

.hero h1 .h1__b {
  font-weight: 800;
}

.hero__lead {
  max-width: 44ch;
  margin-top: 1.5rem;
  font-size: clamp(1.075rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: var(--muted);
}

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

[data-rise] {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 80ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

/* Página de exemplo: visão do visitante e visão da revisão */

.lab {
  display: grid;
}

.lab__stage {
  position: relative;
  width: 100%;
}

.mock__window {
  position: relative;
  background: var(--surface);
  border: 1.5px solid var(--fg);
  border-radius: 12px;
  box-shadow: 0 28px 56px -38px rgb(13 13 13 / 0.4);
  overflow: hidden;
}

.mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.75rem 0.9rem;
  border-bottom: 1.5px solid var(--fg);
}

.mock__bar i {
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--fg);
  border-radius: 50%;
}

.mock__url {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.6rem;
  padding: 0.22rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.mock__url svg {
  width: 11px;
  height: 11px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
}

.mock__body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 3rem 1.1rem;
  padding: 2.6rem 1.3rem 2.9rem;
}

.mock__copy {
  display: grid;
  gap: 0.6rem;
  align-content: center;
}

.sk {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--fg) 15%, transparent);
}

.sk--title {
  height: 15px;
  background: var(--fg);
}

.sk--w90 {
  width: 90%;
  margin-top: 0.35rem;
}

.sk--w70 {
  width: 70%;
}

.sk--w60 {
  width: 60%;
}

.sk--btn {
  width: 88px;
  height: 28px;
  margin-top: 0.5rem;
  border-radius: 6px;
  background: var(--fg);
}

.mock__form {
  position: relative;
  display: grid;
  gap: 0.5rem;
  align-content: center;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.mock__input {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding-inline: 8px;
  border: 1px solid color-mix(in srgb, var(--fg) 34%, transparent);
  border-radius: 5px;
}

.mock__input em {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--fg);
}

.mock__submit {
  height: 24px;
  border-radius: 5px;
  background: var(--fg);
}

.mock__media {
  position: relative;
  grid-column: 1 / -1;
  height: 86px;
  border: 1.5px solid var(--fg);
  border-radius: 9px;
  background:
    radial-gradient(circle at 76% 40%, var(--fg) 0 19px, transparent 19.5px),
    linear-gradient(172deg, transparent 62%, var(--fg) 62.5%),
    color-mix(in srgb, var(--fg) 9%, var(--surface));
}

.flag {
  outline: 2px dashed transparent;
  outline-offset: 4px;
  transition: outline-color 0.3s ease;
}

/* Etiqueta de achado: fica logo abaixo do item marcado, no respiro que o layout da página de exemplo reserva
   (padding e gap do .mock__body), ligada ao contorno por um fio de altura --lead. */
.tag {
  position: absolute;
  z-index: 2;
  top: calc(100% + 4px + var(--lead, 8px));
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 3px 11px 3px 3px;
  background: var(--signal);
  border: 1px solid var(--signal);
  border-radius: 99px;
  color: #fff;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tag::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 12px;
  width: 1px;
  height: var(--lead, 8px);
  background: var(--signal);
}

.tag b {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding-top: 2px;
  border-radius: 50%;
  background: #fff;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
}

.tag--right {
  left: auto;
  right: 10px;
}

.tag--right::before {
  left: auto;
  right: 14px;
}

.lab:not([data-mode="visitante"]) .flag {
  outline-color: var(--signal);
  transition-delay: var(--d, 0s);
}

.lab:not([data-mode="visitante"]) .tag {
  opacity: 1;
  transform: none;
  transition-delay: var(--d, 0s);
}

/* Estado corrigido: o JS marca cada item com .is-fixed quando a varredura verde passa por ele. */
.tag svg,
.tag__ok {
  display: none;
}

.tag svg {
  width: 18px;
  height: 18px;
  padding: 4px;
  background: #fff;
  border-radius: 50%;
  fill: none;
  stroke: var(--ok);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lab .flag.is-fixed {
  outline-color: var(--ok);
  transition-delay: 0s;
}

.lab .is-fixed .tag {
  background: var(--ok);
  border-color: var(--ok);
  transition-delay: 0s;
}

.is-fixed .tag::before {
  background: var(--ok);
}

.is-fixed .tag b,
.is-fixed .tag__x {
  display: none;
}

.is-fixed .tag svg {
  display: block;
}

.is-fixed .tag__ok {
  display: inline;
}

.lock__closed,
.is-fixed .lock__open {
  display: none;
}

.is-fixed .lock__closed {
  display: inline;
}

.mock__url.is-fixed .lock {
  stroke: var(--ok);
}

.mock__page {
  position: relative;
  overflow: hidden;
}

.mock__scan {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: -70px;
  height: 70px;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--signal) 20%, transparent));
  border-bottom: 2px solid var(--signal);
  pointer-events: none;
}

/* Linear de propósito: os atrasos (--d) dos avisos são calculados pela posição de cada item na janela. */
.lab[data-mode="revisor"] .mock__scan {
  animation: scan 3.6s linear both;
}

@keyframes scan {
  to {
    top: 100%;
  }
}

/* Segunda varredura, em verde. Os quadros são iguais aos de "scan"; o nome diferente é o que faz a animação recomeçar na troca de modo. */
.lab[data-mode="correcao"] .mock__scan {
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--ok) 20%, transparent));
  border-bottom-color: var(--ok);
  animation: scan-ok 3.6s linear both;
}

@keyframes scan-ok {
  to {
    top: 100%;
  }
}

.sev {
  display: inline-block;
  padding: 0.12rem 0.42rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.sev--alto {
  background: var(--signal);
  color: #fff;
}

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

.section {
  padding-block: clamp(4rem, 9vw, 7rem);
}

.section__head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section__head h2,
.report h2,
.about h2 {
  font-size: clamp(2rem, 4.2vw, 3.3rem);
  line-height: 1.05;
}

.section__head p {
  max-width: 52ch;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Serviços ---------- */

.services {
  border-top: 1px solid var(--line);
}

.fronts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.front {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.front--dark {
  --fg: var(--inv-fg);
  --muted: var(--inv-muted);
  --line: var(--inv-line);
  background: var(--inv-bg);
  border-color: var(--inv-bg);
  color: var(--inv-fg);
}

.front h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.front__list {
  margin-top: 0.5rem;
}

.front__list a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 1rem;
  padding-block: 0.95rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.front__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: color-mix(in srgb, var(--fg) 6%, transparent);
  border-radius: 10px;
}

.front--dark .front__icon {
  background: color-mix(in srgb, var(--fg) 12%, transparent);
}

.front__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.front__text {
  display: grid;
  gap: 0.15rem;
  padding-top: 0.1rem;
}

.front__text b {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.25;
}

.front__text span {
  font-size: 0.93rem;
  line-height: 1.45;
  color: var(--muted);
}

.front__arrow {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.75rem;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease, stroke 0.25s ease;
}

.fronts__more {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.1rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.25s ease;
}

.fronts__more b {
  color: var(--fg);
  font-weight: 600;
}

.fronts__go .front__arrow {
  margin-top: 0;
}

.fronts__go {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--fg);
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

@media (hover: hover) {
  .front__list a:hover .front__arrow,
  .fronts__more:hover .front__arrow {
    stroke: var(--fg);
    transform: translate(2px, -2px);
  }

  .fronts__more:hover {
    border-color: color-mix(in srgb, var(--fg) 45%, transparent);
  }
}

@media (max-width: 760px) {
  .fronts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* No celular a seta sai e o texto ganha a largura dela; a linha inteira já é o link. */
@media (max-width: 480px) {
  .front__list a {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.85rem;
  }

  .front__list .front__arrow {
    display: none;
  }
}

/* ---------- Segurança: exemplo de achado ---------- */

.report {
  border-top: 1px solid var(--line);
}

.report__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.report__text > p {
  max-width: 50ch;
  margin-top: 1.4rem;
  color: var(--muted);
}

.report .btn {
  margin-top: 2rem;
}

.finding {
  background: var(--surface);
  border: 1.5px solid var(--fg);
  border-radius: var(--radius);
  box-shadow: 0 28px 56px -38px rgb(13 13 13 / 0.4);
  overflow: hidden;
}

.finding__top,
.finding__foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1.1rem, 2.4vw, 1.75rem);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.finding__top span {
  white-space: nowrap;
}

.finding__top {
  border-bottom: 1.5px solid var(--fg);
}

.finding__foot {
  border-top: 1px solid var(--line);
  text-transform: none;
  letter-spacing: 0.02em;
}

.finding__body {
  padding: clamp(1.25rem, 2.6vw, 1.9rem) clamp(1.1rem, 2.4vw, 1.75rem) 0.4rem;
}

.finding__sev {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.scale {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 3px;
}

.scale i {
  width: 22px;
  height: 6px;
  background: color-mix(in srgb, var(--fg) 14%, transparent);
}

.scale i.on {
  background: var(--signal);
}

.finding h3 {
  margin-top: 0.9rem;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.15;
}

.finding dl {
  margin-top: 1.4rem;
}

.finding dl > div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding-block: 0.85rem;
  border-top: 1px solid var(--line);
}

.finding dt {
  padding-top: 0.2rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.finding dd {
  font-size: 0.98rem;
  line-height: 1.5;
}

.finding code {
  font-family: var(--mono);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.finding mark {
  padding: 0.05rem 0.3rem;
  background: var(--signal);
  color: #fff;
  border-radius: 3px;
}

/* ---------- Sobre ---------- */

.about {
  background: var(--inv-bg);
  color: var(--inv-fg);
  overflow: hidden;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.badge-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 300px);
  transform: rotate(-3.5deg);
  transform-origin: 50% -420px;
  animation: sway 6s ease-in-out infinite alternate;
}

@keyframes sway {
  to {
    transform: rotate(-1.2deg);
  }
}

/* Fita do crachá: sobe além do topo da seção, que corta o excesso, e desce por cima do crachá até o meio do furo,
   onde o escurecimento da ponta sugere a fita entrando por ele. O elemento está girado 180°, então o topo dele é a ponta de baixo. */
.badge-wrap::before {
  content: "EDUARDO MACHADO · DESENVOLVIMENTO E SEGURANÇA DA INFORMAÇÃO · EDUARDO MACHADO · DESENVOLVIMENTO E SEGURANÇA DA INFORMAÇÃO · EDUARDO MACHADO";
  position: absolute;
  left: 50%;
  z-index: 2;
  bottom: calc(100% - 23px);
  width: 26px;
  height: 640px;
  margin-left: -13px;
  overflow: hidden;
  background:
    linear-gradient(to bottom, rgb(0 0 0 / 0.6), transparent 16px),
    color-mix(in srgb, var(--inv-fg) 24%, var(--inv-bg));
  color: var(--inv-fg);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.22em;
  line-height: 26px;
  white-space: nowrap;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.badge {
  position: relative;
  padding: 2.9rem 1rem 1.25rem;
  background: var(--bg);
  color: var(--fg);
  border-radius: 16px;
}

.badge::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 50%;
  width: 48px;
  height: 14px;
  margin-left: -24px;
  background: var(--inv-bg);
  border-radius: 99px;
}

.badge__photo {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 9px;
  background: color-mix(in srgb, var(--fg) 12%, var(--bg));
}

.badge__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 8%;
}

.badge__info {
  display: grid;
  padding: 0.8rem 0.3rem 0;
}

.badge__info strong {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.badge__role {
  margin-top: 0.15rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.about__text > p {
  max-width: 58ch;
  margin-top: 1.25rem;
  color: color-mix(in srgb, var(--inv-fg) 80%, var(--inv-bg));
}

.about h2 + p {
  margin-top: 1.75rem;
}

/* ---------- Portfólio ---------- */

.portfolio .section__head {
  margin-bottom: clamp(1.25rem, 2.6vw, 1.75rem);
}

.works {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.work {
  display: grid;
  gap: 0.9rem;
  cursor: pointer;
}

.work__frame {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.work__bar {
  display: flex;
  gap: 5px;
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid var(--line);
}

.work__bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fg) 26%, transparent);
}

.work__view {
  container-type: size;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

/* --dur e --back saem da altura de cada captura: velocidade igual em todas, e a volta mais rápida sem ser um salto. */
.work__view img {
  width: 100%;
  transition: transform var(--back, 1s) cubic-bezier(0.3, 0, 0.25, 1);
}

.work:hover .work__view img,
.work:focus .work__view img {
  transform: translateY(calc(-100% + 100cqh));
  transition: transform var(--dur, 8s) linear;
}

.work:hover .work__frame,
.work:focus-visible .work__frame {
  border-color: color-mix(in srgb, var(--fg) 45%, transparent);
}

.work:focus {
  outline: none;
}

.work figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.work__num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Contato ---------- */

.cta {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.cta__card {
  display: grid;
  justify-items: start;
  padding: clamp(2.25rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem);
  background: var(--inv-bg);
  color: var(--inv-fg);
  border-radius: clamp(14px, 2vw, 20px);
}

.cta__side {
  display: grid;
  justify-items: start;
  gap: 2rem;
  margin-top: 1.1rem;
}

@keyframes pulse {
  from {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--inv-fg) 60%, transparent);
  }

  to {
    box-shadow: 0 0 0 10px transparent;
  }
}

.cta h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.cta__lead {
  max-width: 42ch;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: color-mix(in srgb, var(--inv-fg) 80%, var(--inv-bg));
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.cta__note {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--inv-muted);
}

.cta__note .dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--inv-fg);
  animation: pulse 2.2s ease-out infinite;
}

/* ---------- Rodapé ---------- */

.site-footer {
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  padding-block: 1.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

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

@media (max-width: 1000px) {
  .works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .report__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }

  .badge-wrap {
    width: min(100%, 250px);
    transform-origin: 50% -160px;
  }
}

@media (max-width: 760px) {
  .hero__grid,
  .about__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .lab {
    width: min(100%, 500px);
  }

  .badge-wrap {
    justify-self: start;
    margin-left: 0.5rem;
  }
}

@media (max-width: 640px) {
  /* Sem cabeçalho no celular: a altura zerada mantém o destino das âncoras no lugar certo. */
  :root {
    --header-h: 0px;
  }

  .site-header {
    display: none;
  }

  /* Títulos de seção acompanham a largura, para "Como posso te ajudar?" caber em uma linha. */
  .section__head h2,
  .report h2,
  .about h2 {
    font-size: min(7.6vw, 2rem);
  }

  .finding__top {
    gap: 0.6rem;
    letter-spacing: 0.02em;
  }

  /* Serviços mais compactos no celular. */
  .front {
    gap: 0.6rem;
    padding: 1.25rem;
  }

  .front h3 {
    font-size: 1.4rem;
  }

  .front__list {
    margin-top: 0.4rem;
  }

  .front__list a {
    padding-block: 0.8rem;
  }

  .front__icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }

  .front__icon svg {
    width: 21px;
    height: 21px;
  }

  .front__text b {
    font-size: 1.02rem;
  }

  .front__text span {
    font-size: 0.9rem;
  }

  .fronts__more {
    padding: 1rem 1.25rem;
  }

  .cta__card {
    padding-block: 3.25rem;
  }

  .cta__note {
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .finding dl > div {
    grid-template-columns: minmax(0, 1fr);
  }

  .report .btn,
  .cta .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .works {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 340px) {
  .tag {
    gap: 0.35rem;
    padding-right: 8px;
    font-size: 0.66rem;
  }

  .mock__body {
    padding-inline: 1rem;
  }
}

@media (max-width: 400px) {
  .brand {
    gap: 0.5rem;
    font-size: 1rem;
  }

  .btn--sm {
    padding: 0.52rem 0.7rem;
    font-size: 0.84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .mock__scan {
    display: none;
  }
}
