/* ==========================================================================
   victoou.com — work.css   (escopo .page-work)
   Ordem vertical: hero · works · work-toghether · footer
   ========================================================================== */

/* ==================================================== HERO (810px) ====== */
.page-work .hero {
  position: relative;
  min-height: min(810px, 100svh);
  height: 92svh;
  max-height: 1000px;
  /* gradiente exato do Figma (node 164:245), convertido de 2560x1080 para
     percentuais: 1345.812x672px at 50% -3.61% → 52.57% x 62.22% */
  background-color: var(--bg);
  background-image: radial-gradient(52.57% 62.22% at 50% -3.61%,
    var(--accent-hero) 0%, var(--bg) 100%);
  display: flex;
  align-items: center;
}
/* pulso do vermelho: o próprio clarão do topo respira, ganhando e perdendo
   intensidade no lugar — sem deslocamento, para não virar uma faixa subindo */
.page-work .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(52.57% 62.22% at 50% -3.61%,
    var(--accent-hero) 0%, rgba(255, 29, 29, 0.55) 38%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0;
  transform-origin: 50% 0%;
  animation: hero-pulse 2.6s ease-in-out infinite;
}
.page-work .hero__inner { position: relative; z-index: 1; }
@keyframes hero-pulse {
  0%, 100% { opacity: 0.05; transform: scale(0.97); }
  50%      { opacity: 1;    transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .page-work .hero::after { animation-duration: 9s; }
}
.page-work .hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  min-height: 560px;
  text-align: center;
  padding-top: 120px;
}
.page-work .hero__note {
  font-weight: var(--w-bold);
  font-size: var(--fs-p-27);
  line-height: var(--lh-1);
  text-transform: uppercase;
  color: var(--text-bright);
}
.page-work .hero__title {
  /* node 164:246: Joyride 259.52 → 194.6px, lh 0.8203, tracking −0.110em */
  font-family: var(--font-display);
  font-weight: var(--w-regular);
  font-size: clamp(124px, 10.14vw, 195px);
  line-height: 0.8203;
  letter-spacing: var(--ls-wordmark);
  text-transform: uppercase;
  color: var(--text-bright);
}

/* =================================================== WORKS (1548px) ===== */
.page-work .works {
  position: relative;
  /* altura pelo conteúdo: com dois projetos a seção tem o tamanho de dois
     projetos (antes 1548px fixos deixavam um vazio enorme) */
  min-height: 0;
  background: var(--bg);
  padding: 40px 0 73px;
  overflow: hidden;
}

/* linhas de guia laterais: 1px cinza que nasce e morre em preto, enquadrando
   a coluna do grid (node "lines-background", 1840x2064 → 1380x1548) */
.page-work .works__guides {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 1380px;
  max-width: calc(100% - 48px);
  height: 100%;
  pointer-events: none;
}
.page-work .works__guides::before,
.page-work .works__guides::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    var(--bg) 0%,
    var(--stroke-line) 22%,
    var(--stroke-line) 78%,
    var(--bg) 100%);
}
.page-work .works__guides::before { left: 0; }
.page-work .works__guides::after  { right: 0; }

.page-work .works__inner { position: relative; }

/* ---- barra de filtros (inerte) ---- */
.page-work .works__filters {
  display: flex;
  align-items: center;
  gap: 17px;
  width: 1240px;
  max-width: 100%;
  margin-inline: auto;
  margin-bottom: 49px;   /* 247 − 54 − 81,5 no arquivo */
}

/* O campo de busca vive em components.css: /work e /blog usam o mesmo. */

.page-work .category-filter { position: relative; }
.page-work .category-filter__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 267px;
  height: 62px;
  padding: 0 26px;
  background: var(--surface-1);
  border: 0;
  border-radius: 0;
  font-weight: var(--w-medium);
  font-size: var(--fs-ui-18);
  color: var(--text-soft);
}
.page-work .category-filter__trigger .icon { color: var(--stroke-input); }

/* lista montada, oculta nesta fase */
.page-work .category-filter__list {
  display: flex;
  position: absolute;
  top: calc(100% + 8px); left: 0;
  z-index: 5;
  width: 267px;
  height: auto;
  padding: 18px 26px;
  background: var(--surface-filter);
  border: 0;
  border-radius: 0;
  flex-direction: column;
  justify-content: flex-start;
}
.page-work .category-filter__list {
  gap: 18px;
  top: calc(100% + 10px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.page-work .category-filter[data-open="true"] .category-filter__list {
  opacity: 1;
  visibility: visible;
  transform: none;
}
/* cada opção entra em cascata quando o painel abre */
.page-work .category-filter__row {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.page-work .category-filter[data-open="true"] .category-filter__row { opacity: 1; transform: none; }
.page-work .category-filter[data-open="true"] .category-filter__row:nth-child(2) { transition-delay: .07s; }
.page-work .category-filter[data-open="true"] .category-filter__row:nth-child(3) { transition-delay: .14s; }
/* o chevron gira ao abrir */
.page-work .category-filter__trigger .icon { transition: transform .35s var(--ease); }
.page-work .category-filter[data-open="true"] .category-filter__trigger .icon { transform: rotate(180deg); }

.page-work .category-filter__row {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  font-weight: var(--w-medium);
  font-size: var(--fs-ui-18);
  color: var(--text-soft);
}
.page-work .category-filter__row input {
  appearance: none;
  position: relative;
  width: 18px; height: 18px;
  flex: none;
  border: 1.5px solid var(--text-checkbox);
  border-radius: 50%;
  background: transparent;
  transition: border-color .3s var(--ease);
}
.page-work .category-filter__row input:checked { border-color: var(--accent); }
.page-work .category-filter__row input:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---- grid de projetos ---- */
.page-work .works__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 21px 27.4px;   /* 28 x 36.509 no arquivo */
  width: 1240px;
  max-width: 100%;
  margin-inline: auto;
}
.page-work .project-card--grid { width: 100%; height: var(--card-grid-h); }

.page-work .works__more {
  display: flex;
  justify-content: center;
  margin-top: 41px;
}
.page-work .works__more .btn {
  min-width: 290px;   /* 387 no arquivo */
  height: 49px;
  gap: 25px;
}

/* portfólio ainda sem projetos publicados */
.page-work .works__empty {
  grid-column: 1 / -1;
  padding: 80px 0;
  font-family: var(--font-util);
  font-size: var(--fs-ui-18);
  text-align: center;
  color: var(--text-dimmer);
}
