.motion-section {
  background: linear-gradient(180deg, #0d121c 0%, #111827 100%);
  color: #f8fafc;
  padding: 82px 24px 96px;
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 1200px;
}

.motion-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 10%, rgba(217, 192, 138, .13), transparent 30%),
    radial-gradient(circle at 86% 24%, rgba(125, 211, 199, .10), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,.045), transparent 38%);
}

.motion-shell {
  position: relative;
}

.motion-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.motion-kicker {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: #d9c08a;
  background: rgba(255, 255, 255, .06);
  font-size: 12px;
  font-weight: 600;
}

.motion-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin: 18px 0 18px;
}

.motion-heading-row h2 {
  max-width: 740px;
  font-size: clamp(34px, 6vw, 76px);
  line-height: .94;
  font-weight: 650;
  letter-spacing: 0;
  color: #f8fafc;
  text-wrap: balance;
}

@supports not (text-wrap: balance) {
  .motion-heading-row h2 {
    max-width: 12ch;
  }
}

.motion-heading-row p {
  max-width: 650px;
  margin-top: 18px;
  color: rgba(226, 232, 240, .68);
  font-size: 15px;
  line-height: 1.65;
}

.motion-showcase-note {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 24px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .24);
  backdrop-filter: blur(8px);
}

.motion-showcase-note strong {
  font-size: 14px;
  line-height: 1.2;
}

.motion-showcase-note span {
  color: rgba(226, 232, 240, .68);
  font-size: 13px;
  line-height: 1.45;
}

.motion-showcase-note a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(217, 192, 138, .30);
  background: linear-gradient(180deg, rgba(38, 34, 26, .96), rgba(7, 10, 15, .98));
  color: #f8fafc;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease;
}

.motion-showcase-note a:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, rgba(58, 50, 35, .98), rgba(7, 10, 15, .98));
}

.motion-heading-row span {
  flex: 0 0 auto;
  color: rgba(226, 232, 240, .62);
  font-size: 13px;
  font-weight: 600;
}

.motion-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 26px;
  scrollbar-width: none;
}

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

.motion-filter {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: rgba(226, 232, 240, .72);
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.motion-filter.is-active,
.motion-filter:hover {
  border-color: rgba(217, 192, 138, .48);
  background: rgba(217, 192, 138, .16);
  color: #f8fafc;
  transform: translateY(-1px);
}

.motion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  perspective: 1200px;
}

.motion-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translateZ(0) rotateX(0) rotateY(0);
  transform-style: preserve-3d;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s ease, border-color .28s ease;
  contain: layout paint;
}

.motion-card:hover {
  transform: translateY(-9px) rotateX(2deg) rotateY(-3deg);
  border-color: rgba(217, 192, 138, .32);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .40);
}

.motion-card:nth-child(3n + 2):hover {
  transform: translateY(-9px) rotateX(2deg) rotateY(3deg);
}

.motion-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.42 / 1;
  overflow: hidden;
  background: #111827;
}

.motion-card__media::after {
  content: attr(aria-label);
  position: absolute;
  top: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(17, 24, 39, .44);
  color: rgba(255, 255, 255, .88);
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.motion-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .6s ease;
}

.motion-card:hover .motion-card__media img {
  transform: scale(1.085) translateY(-2px);
  filter: saturate(1.14) contrast(1.05);
}

.motion-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.62));
}

.motion-card__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(8, 10, 15, .82);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  line-height: 26px;
}

.motion-card__body {
  display: grid;
  gap: 13px;
  padding: 17px;
  transform: translateZ(22px);
}

.motion-card__category {
  margin-bottom: 4px;
  color: #d9c08a;
  font-size: 12px;
  font-weight: 700;
}

.motion-card h3 {
  color: #f8fafc;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.motion-card__body > p {
  min-height: 66px;
  color: rgba(226, 232, 240, .68);
  font-size: 13px;
  line-height: 1.55;
}

.motion-card__actions {
  display: flex;
}

.motion-card__actions a,
.motion-card__actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(31, 36, 46, .96), rgba(8, 10, 15, .96));
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
  transition: background .18s ease, transform .18s ease;
}

.motion-card__actions a:hover,
.motion-card__actions button:hover {
  background: linear-gradient(180deg, rgba(217, 192, 138, .24), rgba(8, 10, 15, .96));
  transform: translateY(-1px);
}

@media (max-width: 980px) {
  .motion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .motion-showcase-note { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .motion-section { padding: 58px 16px 70px; }
  .motion-heading-row { display: block; }
  .motion-heading-row h2 { font-size: clamp(34px, 10vw, 42px); line-height: 1; }
  .motion-heading-row p { font-size: 14px; }
  .motion-heading-row span { display: inline-block; margin-top: 16px; }
  .motion-showcase-note a { width: 100%; }
  .motion-filters { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .motion-grid { grid-template-columns: 1fr; }
  .motion-card__body > p { min-height: auto; }
  .motion-card__media::after { display: none; }
  .motion-card:hover,
  .motion-card:hover .motion-card__media img,
  .motion-card__actions a:hover {
    transform: none;
    filter: none;
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .motion-showcase-note,
  .motion-filter,
  .motion-card,
  .motion-card__media::after {
    background: rgba(8, 10, 15, .94);
  }
}
