:root {
  --black: #050505;
  --ink: #121012;
  --wine: #7e0540;
  --wine-light: #a31059;
  --white: #ffffff;
  --paper: #f7f5f6;
  --muted: #6e666a;
  --line: #ddd6d9;
  --shell: 1440px;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Montserrat, Manrope, Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

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

[hidden] {
  display: none !important;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--wine);
  border-radius: 999px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  color: var(--white);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid rgb(255 255 255 / 18%);
}

.brand-logo {
  width: 210px;
  height: auto;
}

.header-label {
  color: rgb(255 255 255 / 68%);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 52%, rgb(126 5 64 / 48%), transparent 34%),
    linear-gradient(115deg, #050505 0%, #090607 60%, #19040e 100%);
}

.hero::before {
  position: absolute;
  content: "";
  width: 520px;
  height: 520px;
  right: -170px;
  bottom: -270px;
  border: 1px solid rgb(255 255 255 / 13%);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgb(126 5 64 / 8%), 0 0 0 140px rgb(126 5 64 / 5%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 430px;
  padding-top: 112px;
  padding-bottom: 46px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: #d289ad;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: balance;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.1rem, 6vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.88;
}

h1 span {
  color: #ca4c89;
}

.hero-copy {
  max-width: 580px;
  margin: 22px 0 0;
  color: rgb(255 255 255 / 72%);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.6;
}

.hero-stats {
  display: flex;
  gap: 42px;
  margin: 28px 0 0;
}

.hero-stats div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 9px;
}

.hero-stats dt {
  font-size: 1.6rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 0;
  color: rgb(255 255 255 / 56%);
  font-size: 0.86rem;
}

.catalog {
  padding: 86px 0 110px;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--wine);
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.result-count {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.filters-wrap {
  position: sticky;
  z-index: 10;
  top: 0;
  margin: 0 calc(50% - 50vw) 64px;
  padding: 14px max(20px, calc((100vw - var(--shell)) / 2));
  background: rgb(247 245 246 / 94%);
  border-block: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.filters {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 1px;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-button {
  flex: 0 0 auto;
  padding: 11px 16px;
  color: #4d474a;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 750;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.filter-button:hover {
  color: var(--wine);
  border-color: #bc8da4;
  transform: translateY(-1px);
}

.filter-button[aria-pressed="true"] {
  color: var(--white);
  background: var(--wine);
  border-color: var(--wine);
}

.category-group + .category-group {
  margin-top: 92px;
}

.category-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.category-header h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  letter-spacing: -0.04em;
}

.category-number {
  color: var(--wine);
}

.category-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.creative-grid {
  columns: 1;
  column-gap: 18px;
}

.creative-card {
  position: relative;
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  overflow: hidden;
  background: #e9e5e7;
  border: 0;
  border-radius: var(--radius);
  break-inside: avoid;
  cursor: zoom-in;
  box-shadow: 0 0 0 1px rgb(13 5 9 / 8%);
}

.creative-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.creative-card.is-video {
  cursor: pointer;
}

.video-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  color: var(--white);
  background: rgb(5 5 5 / 78%);
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
}

.play-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--white);
}

.creative-card::after {
  position: absolute;
  content: "Ampliar";
  right: 12px;
  bottom: 12px;
  padding: 8px 11px;
  color: var(--white);
  background: rgb(5 5 5 / 74%);
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 999px;
  opacity: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  transform: translateY(5px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(8px);
}

.creative-card.is-video::after {
  content: "Reproduzir";
}

.creative-card:hover img {
  filter: brightness(0.92);
  transform: scale(1.018);
}

.creative-card:hover::after,
.creative-card:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.creative-card:focus-visible,
.filter-button:focus-visible,
.lightbox button:focus-visible {
  outline: 3px solid #d65c98;
  outline-offset: 3px;
}

.site-footer {
  color: var(--white);
  background: var(--black);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 150px;
}

.footer-inner img {
  width: 170px;
  height: auto;
}

.footer-inner p {
  margin: 0;
  color: rgb(255 255 255 / 55%);
  font-size: 0.78rem;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(50px, 1fr) minmax(0, 1100px) minmax(50px, 1fr);
  align-items: center;
  padding: 28px;
  color: var(--white);
  background: rgb(0 0 0 / 93%);
  backdrop-filter: blur(14px);
}

.lightbox figure {
  display: grid;
  justify-items: center;
  gap: 14px;
  grid-column: 2;
  margin: 0;
}

.lightbox figure img,
.lightbox figure video {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgb(0 0 0 / 55%);
}

.lightbox figure video {
  background: var(--black);
}

.lightbox figcaption {
  color: rgb(255 255 255 / 70%);
  font-size: 0.82rem;
  font-weight: 700;
}

.lightbox-source {
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 750;
  text-underline-offset: 3px;
}

.lightbox button {
  color: var(--white);
  background: rgb(255 255 255 / 10%);
  border: 1px solid rgb(255 255 255 / 16%);
  border-radius: 999px;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  font-size: 1.7rem;
  line-height: 1;
}

.lightbox-nav {
  width: 52px;
  height: 52px;
  justify-self: center;
  font-size: 2rem;
  line-height: 1;
}

.lightbox-prev {
  grid-column: 1;
}

.lightbox-next {
  grid-column: 3;
}

.lightbox-open {
  overflow: hidden;
}

@media (min-width: 600px) {
  .creative-grid {
    columns: 2;
  }
}

@media (min-width: 920px) {
  .creative-grid {
    columns: 3;
  }
}

@media (min-width: 1260px) {
  .creative-grid {
    columns: 4;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .header-inner {
    min-height: 76px;
  }

  .brand-logo {
    width: 155px;
  }

  .header-label {
    display: none;
  }

  .hero,
  .hero-inner {
    min-height: 450px;
  }

  .hero-inner {
    padding-top: 95px;
  }

  h1 {
    font-size: clamp(3.25rem, 16vw, 5rem);
  }

  .hero-stats {
    gap: 18px;
    margin-top: 34px;
  }

  .hero-stats div {
    display: block;
  }

  .hero-stats dd {
    margin-top: 3px;
  }

  .catalog {
    padding: 64px 0 80px;
  }

  .catalog-heading {
    display: block;
  }

  .result-count {
    margin-top: 13px;
  }

  .filters-wrap {
    margin-bottom: 46px;
    padding-inline: 14px;
  }

  .category-group + .category-group {
    margin-top: 65px;
  }

  .creative-card {
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .lightbox {
    display: block;
    padding: 76px 16px 66px;
  }

  .lightbox figure {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
  }

  .lightbox figure img,
  .lightbox figure video {
    max-height: calc(100vh - 155px);
  }

  .lightbox-nav {
    position: absolute;
    bottom: 16px;
  }

  .lightbox-prev {
    left: calc(50% - 62px);
  }

  .lightbox-next {
    right: calc(50% - 62px);
  }

  .lightbox-close {
    top: 16px;
    right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
