/* HERO SHOWCASE: recent work, each project's real homepage (a screenshot of its hero) in a small
   browser window inside a thin glass frame. Three on a gentle 3D curve: the front one flat, the
   ones either side leaning back and fading toward the bottom. js/hero.js turns it (data-pos) every
   5.5s; a side card comes forward when clicked. Everything scales with the frame (container units). */

.hshow { --w: min(52vw, 660px); position: relative; width: 100%; height: calc(var(--w) * 0.617 + 12px); margin-top: clamp(44px, 6vh, 72px); perspective: 1700px; }
.hshow__card {
  position: absolute;
  top: 0;
  left: 50%;
  width: var(--w);
  margin-left: calc(var(--w) / -2);
  padding: 6px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03) 55%, rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.7s var(--ease), filter 0.7s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
[data-theme="light"] .hshow__card { background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.5)); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(6, 30, 66, 0.1), 0 40px 80px -44px rgba(10, 40, 90, 0.55); }

/* the curve */
.hshow__card[data-pos="0"] { z-index: 3; }
.hshow__card[data-pos="-1"], .hshow__card[data-pos="1"] {
  z-index: 2;
  opacity: 0.8;
  filter: saturate(0.85);
  cursor: pointer;
  -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 96%);
  mask-image: linear-gradient(180deg, #000 35%, transparent 96%);
}
.hshow__card[data-pos="-1"] { transform: translateX(-76%) translateZ(-180px) rotateY(24deg); }
.hshow__card[data-pos="1"] { transform: translateX(76%) translateZ(-180px) rotateY(-24deg); }

/* the sticker on each card's top-right corner, overlapping the frame: "Just launched" (Zara & Kara)
   or "New project", as a dark glass tag with a blue icon, tilted a little like a sticker */
.hshow__new { position: absolute; top: -14px; right: -10px; z-index: 4; pointer-events: none; }
.hshow__new-in { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px 8px 10px; border-radius: 12px; background: rgba(4, 14, 32, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 12px 26px -10px rgba(0, 0, 0, 0.7); color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: 0.01em; line-height: 1; white-space: nowrap; transform: rotate(6deg); }
.hshow__new svg { flex: none; width: 13px; height: 13px; color: var(--accent); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hshow__new:not(.hshow__new--live) svg { fill: currentColor; stroke: none; }

/* ---------- each project: its real homepage in a small browser window ---------- */
.bw { position: relative; container-type: inline-size; display: block; overflow: hidden; border-radius: 14px; background: #0b1424; }
.bw__bar { display: flex; align-items: center; gap: 0.9cqw; height: 5.4cqw; padding: 0 2.2cqw; background: linear-gradient(180deg, #16243a, #0f1b2e); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.06); }
.bw__bar i { width: 1.25cqw; height: 1.25cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.22); }
.bw__bar i:nth-child(1) { background: #ff5f57; }
.bw__bar i:nth-child(2) { background: #febc2e; }
.bw__bar i:nth-child(3) { background: #28c840; }
.bw__url { display: inline-flex; align-items: center; gap: 0.8cqw; margin: 0 auto; padding: 0.8cqw 2.4cqw; border-radius: 1.2cqw; background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.72); font-size: 1.7cqw; font-weight: 500; letter-spacing: 0.01em; }
.bw__url svg { width: 1.6cqw; height: 1.6cqw; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: 0.7; }
/* the screenshot: the hero and the menu, the top 90% of the first screen (16:9) */
.bw__shot { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; object-position: top center; }
[data-theme="light"] .bw__bar { background: linear-gradient(180deg, #f6f9fd, #eaf0f8); box-shadow: inset 0 -1px 0 rgba(6, 30, 66, 0.08); }
[data-theme="light"] .bw__bar i { background: rgba(6, 30, 66, 0.15); }
[data-theme="light"] .bw__url { background: rgba(6, 30, 66, 0.06); color: var(--text-2); }

/* ---------- phones ---------- */
@media (max-width: 767px) {
  .hshow { --w: 80vw; margin-top: 40px; perspective: 1000px; }
  .hshow__card { padding: 5px; border-radius: 16px; }
  .bw { border-radius: 11px; }
  .hshow__new { top: -10px; right: -6px; }
  .hshow__new-in { gap: 5px; padding: 6px 9px 6px 8px; font-size: 11px; }
  .hshow__new svg { width: 11px; height: 11px; }
  .hshow__card[data-pos="-1"] { transform: translateX(-70%) translateZ(-160px) rotateY(28deg); }
  .hshow__card[data-pos="1"] { transform: translateX(70%) translateZ(-160px) rotateY(-28deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hshow__card { transition: none; }
}
