/* Figures, client logos, portfolios and projects (real-sections.js). Classes start with x-. */
.x-section { padding: 56px 0 46px; }
.x-section.dark { color: #fff; background: radial-gradient(ellipse at 88% 30%, rgba(142, 48, 214, .65), transparent 45%), linear-gradient(110deg, #2a0846, #1f0834 55%, #3a0f63); }
.x-section.dark .section-tag { color: #c687f5; }
.x-section .s-head { margin-bottom: 30px; }
.x-section .s-head .sub { padding: 0 16px; }

.x-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 40px; padding: 30px 10px; list-style: none; text-align: center; border-radius: 28px; color: #fff; background: radial-gradient(ellipse at 100% 40%, #9b35d4, transparent 45%), linear-gradient(90deg, #35104f, #290a43 55%, #571892); box-shadow: 0 18px 36px rgba(60, 15, 105, .28); }
.x-stats li + li { border-right: 1px solid rgba(190, 135, 240, .35); }
.x-stats b { display: block; font-size: 34px; font-weight: 800; }
.x-stats small { font-size: 12.5px; color: #e6d8f6; }

.x-logos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; margin: 22px 40px 0; list-style: none; }
.x-logos li { display: grid; place-items: center; height: 76px; padding: 12px; border-radius: 16px; background: #2a0846; transition: translate .3s, background .3s; }
.x-logos li:hover { translate: 0 -6px; background: #4a1375; }
.x-logos img { max-width: 100%; max-height: 46px; object-fit: contain; }

.x-covers { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 25px; max-width: 1060px; margin: 0 auto; }
.x-covers a { position: relative; display: block; width: 336px; overflow: hidden; height: 196px; border-radius: 20px; border: 4px solid #fff; background: #2b0a48; box-shadow: 0 14px 30px rgba(70, 20, 120, .18); transition: translate .3s, box-shadow .3s; }
.x-covers a:hover, .x-covers a:focus-visible { translate: 0 -7px; box-shadow: 0 24px 40px rgba(70, 20, 120, .3); }
.x-covers img { width: 100%; height: 100%; object-fit: cover; transition: scale .5s; }
.x-covers a:hover img { scale: 1.08; }
.x-covers span { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding: 36px 14px 10px; color: #fff; background: linear-gradient(transparent, rgba(25, 4, 44, .94)); }
.x-covers b { font-size: 13.5px; }
.x-covers small { font-size: 10.5px; color: #dcc2f5; white-space: nowrap; }

.x-projects { display: grid; grid-template-columns: repeat(2, 505px); justify-content: center; gap: 26px; }
.x-projects article { overflow: hidden; border-radius: 24px; color: var(--ink); background: #fff; box-shadow: 0 18px 38px rgba(80, 25, 135, .16); transition: transform .3s, box-shadow .3s; }
.x-projects article:hover { transform: translateY(-7px); box-shadow: 0 28px 46px rgba(80, 25, 135, .28); }
.x-shot { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #1d0731; }
.x-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .55s, scale 1.2s; }
.x-shot img + img { opacity: 0; }
.x-projects article:hover .x-shot img { scale: 1.05; }
.x-projects article:hover .x-shot img + img { opacity: 1; }
.x-body { padding: 18px 22px 22px; }
.x-body small { font-size: 11.5px; font-weight: 600; color: var(--violet); }
.x-body h3 { font-size: 19px; line-height: 1.8; }
.x-body p { font-size: 12.5px; line-height: 2.1; color: #4a2c66; }
.x-body ul { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; list-style: none; }
.x-body li { padding: 4px 11px; border-radius: 99px; font-size: 11px; background: #f1e6fb; }

@media (max-width: 899px) {
  .x-section { padding: 40px 0 30px; }
  .x-stats { grid-template-columns: 1fr 1fr; row-gap: 20px; margin: 0 16px; padding: 22px 6px; }
  .x-stats li:nth-child(3) { border-right: 0; }
  .x-stats b { font-size: 26px; }
  .x-logos { grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 16px 16px 0; }
  .x-logos li { height: 60px; padding: 8px; }
  .x-logos img { max-height: 32px; }
  .x-covers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 560px; padding: 0 14px; }
  .x-covers a { width: auto; }
  .x-covers a:last-child:nth-child(odd) { grid-column: 1 / -1; height: 180px; }
  .x-covers a { height: 112px; border-width: 3px; border-radius: 14px; }
  .x-covers span { flex-direction: column; align-items: flex-start; gap: 0; padding: 20px 9px 6px; }
  .x-covers b { font-size: 11px; }
  .x-covers small { font-size: 9px; }
  .x-projects { grid-template-columns: minmax(0, 440px); gap: 18px; padding: 0 16px; }
}
