.showcase { padding: 0 0 var(--space-8); position: relative; }
@media (min-width: 900px) { .showcase { padding-bottom: var(--space-9); } }

/* Tabs: quiet text with a moving underline instead of pills. */
.showcase__chips {
  display: flex; justify-content: safe center; gap: clamp(18px, 3.2vw, 36px);
  width: fit-content; max-width: 100%;
  margin: 0 auto 20px;
  padding: 0 8px;
  overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}
.showcase__chips::-webkit-scrollbar { display: none; }
.chip {
  position: relative; flex: none;
  padding: 0 2px 13px; margin-bottom: -1px;
  background: none; border: 0;
  color: var(--muted); font-size: 0.92rem; font-weight: 500; letter-spacing: -0.005em;
  transition: color 0.3s;
}
.chip::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--text); transform: scaleX(0); transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.chip:hover { color: var(--text-2); }
.chip.is-active { color: var(--text); }
.chip.is-active::after { transform: scaleX(1); }

/* The product shot sits in a thin glass bezel with a soft floor reflection. */
.showcase__frame { position: relative; max-width: 1140px; margin-inline: auto; perspective: 2000px; }
.device {
  position: relative;
  padding: clamp(5px, 0.9vw, 10px);
  border-radius: calc(var(--radius-lg) + 6px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 35%, rgba(255, 255, 255, 0.06));
  box-shadow: 0 100px 160px -70px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform-origin: 50% 100%;
}
.js .showcase .reveal { opacity: 1; filter: none; transform: none; }
.js .device { transform: none; filter: none; transition: transform 1.5s var(--ease), opacity 1.2s var(--ease); }
.js .device.is-visible { transform: none; }
.showcase__frame::after {
  content: ""; position: absolute; left: 6%; right: 6%; bottom: -70px; height: 120px; z-index: -1;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07), transparent 75%);
  filter: blur(20px);
}

.device__screen {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  background: #050506;
}
.shot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transform: scale(1.02);
  transition: opacity 0.7s var(--ease), transform 1.2s var(--ease);
}
.shot.is-active { opacity: 1; transform: scale(1.004); } /* a hair of zoom hides the screenshot's own 1px edge */

.showcase__caption {
  max-width: 60ch; margin: var(--space-5) auto 0;
  text-align: center; color: var(--muted); font-size: 0.96rem; min-height: 3em; text-wrap: balance;
}

/* Before / after */
.cmp { position: absolute; inset: 0; --pos: 50%; touch-action: pan-y; }
.cmp[hidden] { display: none; }
.cmp__after { position: absolute; inset: 0; }
.cmp__after img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.004); }
.cmp__before {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  background: #f0f0f0;
}
.cmp__label {
  position: absolute; bottom: 4%; z-index: 4;
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: rgba(10, 10, 11, 0.78); border: 1px solid var(--line-strong);
  color: var(--text); font-family: var(--mono); font-size: clamp(9px, 1.05vw, 12px); letter-spacing: 0.12em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.cmp__label--before { left: 2.4%; }
.cmp__label--after { right: 2.4%; }

.cmp__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 5;
  width: 48px; margin-left: -24px;
  display: grid; place-items: center;
  cursor: ew-resize; touch-action: none; outline: none;
}
.cmp__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -0.5px; background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25); }
.cmp__handle span {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(10, 10, 11, 0.82); border: 1px solid rgba(255, 255, 255, 0.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.cmp__handle span::before, .cmp__handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -5px;
  border: 5px solid transparent;
}
.cmp__handle span::before { left: 9px; border-right: 7px solid #fff; }
.cmp__handle span::after { right: 9px; border-left: 7px solid #fff; }
.cmp__handle:focus-visible span { outline: 2px solid #fff; outline-offset: 4px; }

/* "Before": a generic desktop media player with an unsorted playlist. */
.vlc { height: 100%; display: flex; flex-direction: column; background: #f0f0f0; color: #1b1b1b; font-family: "Segoe UI", system-ui, sans-serif; font-size: clamp(8px, 1.05vw, 13px); user-select: none; }
.vlc__title { display: flex; align-items: center; gap: 0.7em; height: 2.5em; padding: 0 0.9em; background: #fff; border-bottom: 1px solid #dcdcdc; }
.vlc__icon { width: 1.3em; height: 1.3em; border-radius: 50%; background: #f28c1f; position: relative; flex: none; }
.vlc__icon::after { content: ""; position: absolute; left: 0.45em; top: 0.3em; border: 0.35em solid transparent; border-left: 0.55em solid #fff; }
.vlc__wc { margin-left: auto; display: flex; gap: 1.6em; color: #555; font-weight: 400; }
.vlc__wc b { font-weight: 400; }
.vlc__menu { display: flex; gap: 1.1em; padding: 0.35em 0.9em; background: #f0f0f0; border-bottom: 1px solid #d6d6d6; }
.vlc__body { flex: 1; min-height: 0; display: grid; grid-template-columns: 16% 1fr; background: #fff; }
.vlc__side { padding: 0.5em 0; background: #f7f7f7; border-right: 1px solid #dcdcdc; overflow: hidden; }
.vlc__side div { padding: 0.5em 0.9em 0.2em; font-weight: 600; color: #444; }
.vlc__side li { padding: 0.25em 0.9em 0.25em 1.6em; color: #333; }
.vlc__side li.on { background: #cfe3f7; }
.vlc__list { overflow: hidden; }
.vlc__head, .vlc__row { display: grid; grid-template-columns: 52% 12% 1fr; padding: 0 0.8em; align-items: center; }
.vlc__head { height: 2em; background: #fafafa; border-bottom: 1px solid #dcdcdc; color: #444; }
.vlc__row { height: 1.95em; border-bottom: 1px solid #f1f1f1; white-space: nowrap; overflow: hidden; }
.vlc__row span { overflow: hidden; text-overflow: ellipsis; padding-right: 0.8em; }
.vlc__row:nth-child(even) { background: #fafafa; }
.vlc__row.on { background: #cfe3f7; }
.vlc__row i { font-style: normal; color: #888; }
.vlc__seek { display: flex; align-items: center; gap: 0.8em; padding: 0.55em 0.9em; background: #f0f0f0; border-top: 1px solid #d6d6d6; color: #555; }
.vlc__seek em { flex: 1; height: 0.4em; border-radius: 0.2em; background: #cfcfcf; font-style: normal; }
.vlc__ctl { display: flex; align-items: center; gap: 0.9em; padding: 0.4em 0.9em 0.7em; background: #f0f0f0; }
.vlc__ctl b { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 50%; background: #fff; border: 1px solid #c9c9c9; font-weight: 400; font-size: 0.9em; }
.vlc__vol { margin-left: auto; display: flex; align-items: center; gap: 0.6em; color: #555; }
.vlc__vol em { width: 7em; height: 0.35em; border-radius: 0.2em; background: #f28c1f; font-style: normal; }

/* Phones: the screenshot keeps a readable size and pans sideways inside its bezel (the page itself never scrolls). */
@media (max-width: 700px) {
  .device__screen { overflow-x: auto; scrollbar-width: none; aspect-ratio: auto; min-height: 437px; }
  .device__screen::-webkit-scrollbar { display: none; }
  .shot { position: static; display: none; width: 700px; max-width: none; height: auto; opacity: 1; transform: none; }
  .shot.is-active { transform: none; }
  .shot.is-active { display: block; }
}
