/* Clerk-inspired component gallery, scoped to the preview showcase. */
.showcase-mosaic {
  padding: 5px;
  border-radius: 18px;
  background: var(--inset);
  box-shadow: 0 1px 3px #15203305, inset 0 1px 0 #ffffff70;
}
.showcase-mosaic .showcase-header { padding: 0; border: 0; }
.showcase-mosaic .view-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; width: 100%; }
.showcase-mosaic .view-tab {
  min-height: 48px;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 12px;
  transition: color .2s, background .2s, border-color .2s, box-shadow .2s;
}
.showcase-mosaic .view-tab::after { display: none; }
.showcase-mosaic .view-tab:hover { background: var(--surface); }
.showcase-mosaic .view-tab.is-active {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--border);
  box-shadow: 0 2px 3px #15203308;
}
.showcase-mosaic .view-tab.is-active .icon { color: var(--blue-ink); }
.tab-progress { position: absolute; bottom: 0; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; opacity: .65; }
.motion-ready .view-tab.is-active .tab-progress { animation: showcase-progress 12s linear both; }
.motion-paused .view-tab.is-active .tab-progress { animation-play-state: paused; }
.showcase-mosaic .showcase-stage {
  margin-top: 5px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.showcase-mosaic .showcase-stage::after { display: none; }
.mosaic-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  opacity: .56;
  mask-image: radial-gradient(ellipse 78% 77% at 50% 45%, #000 30%, #0009 66%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 78% 77% at 50% 45%, #000 30%, #0009 66%, transparent 100%);
}
.mosaic-camera {
  position: absolute;
  top: calc(50% - 430px);
  left: calc(50% - 740px);
  width: 1480px;
  height: 860px;
  transform: translate3d(-12px, 8px, 0);
  transition: transform 1.4s cubic-bezier(.22,1,.36,1);
}
[data-scene="stack"] .mosaic-camera { transform: translate3d(54px, -44px, 0); }
[data-scene="approach"] .mosaic-camera { transform: translate3d(-46px, 42px, 0); }
.mosaic-drift { position: absolute; inset: 0; will-change: transform; }
.mosaic-repeat { position: absolute; top: 960px; left: 0; right: 0; height: 100%; }
.mosaic-tile.component {
  /* Neutral colors directly, without a separate filter surface per card. */
  --blue-ink: var(--muted);
  --blue-tint: var(--inset);
  --purple: var(--muted);
  --purple-tint: var(--inset);
  position: absolute;
  width: 260px;
  margin: 0;
  box-shadow: 0 2px 3px #15203303, 0 12px 24px -10px #15203316;
}
.mosaic-tile .js-mark { color: var(--muted); background: var(--inset); border-color: var(--border); }
.mosaic-tile-1 { left: 48px; top: 24px; }
.mosaic-tile-2 { left: 360px; top: -130px; }
.mosaic-tile-3 { left: 800px; top: -10px; }
.mosaic-tile-4 { left: 1110px; top: -88px; }
.mosaic-tile-5 { left: -46px; top: 408px; }
.mosaic-tile-6 { left: 280px; top: 454px; }
.mosaic-tile-7 { left: 972px; top: 386px; }
.mosaic-tile-8 { left: 1290px; top: 340px; }
.mosaic-tile .profile-identity { padding: 22px 17px; gap: 10px; }
.mosaic-tile .profile-identity img { width: 42px; height: 42px; }
.mosaic-tile .profile-identity h2 { font-size: 16px; }
.mosaic-tile .profile-identity p { font-size: 9px; }
.mosaic-tile .profile-details { padding-inline: 17px; }
.mosaic-tile .profile-details > div { font-size: 9px; }
.mosaic-tile .profile-details dd > span { display: none; }
.mosaic-tile .profile-socials { justify-content: space-around; padding-block: 13px; font-size: 9px; color: var(--muted); }
.mosaic-tile .profile-socials > span { display: inline-flex; align-items: center; gap: 8px; }
.mosaic-tile .quiet-label { display: none; }
.mosaic-tile .technology-group li { font-size: 9px; }
.scene-stack { position: relative; display: grid; isolation: isolate; }
.showcase-mosaic .view-panel {
  display: grid;
  grid-area: 1 / 1;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  justify-items: center;
  gap: 0;
  min-height: 548px;
  padding: 40px 30px 80px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(72px, 12px, 0) scale(.96);
  transition: opacity .45s ease, transform .75s cubic-bezier(.22,1,.36,1), visibility 0s .75s;
  animation: none;
}
.showcase-mosaic .view-panel.is-before { transform: translate3d(-72px, -8px, 0) scale(.96); }
.showcase-mosaic .view-panel.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
  transition-delay: .07s, 0s, 0s;
}
.showcase-mosaic .scene-card {
  width: min(420px, 100%);
  max-width: none;
  margin: 0;
  border-radius: 13px;
  box-shadow: 0 0 0 6px #a8b5cc12, 0 2px 4px #1a2a4310, 0 14px 25px -12px #1a2a4329, 0 38px 60px -25px #1a2a4333;
}
.showcase-mosaic .profile-card { width: min(394px, 100%); }
.showcase-mosaic .profile-identity { padding: 26px 24px; gap: 15px; }
.showcase-mosaic .profile-identity img { width: 60px; height: 60px; }
.showcase-mosaic .profile-identity h2 { font-size: 22px; }
.showcase-mosaic .profile-identity p { font-size: 11px; }
.showcase-mosaic .profile-details { padding-inline: 24px; gap: 20px; }
.showcase-mosaic .profile-details > div { font-size: 11px; }
.showcase-mosaic .profile-details dd > span { display: inline; }
.showcase-mosaic .profile-about { margin-inline: 24px; min-height: 37px; }
.showcase-mosaic .technology-card { padding: 22px; }
.scene-card-heading { display: flex; align-items: center; gap: 12px; padding-bottom: 19px; border-bottom: 1px solid var(--border); }
.scene-card-heading .small-icon { width: 34px; height: 34px; }
.scene-card-heading .icon { width: 17px; height: 17px; }
.scene-card-heading h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.035em; }
.scene-card-heading p { margin: 5px 0 0; font-size: 10px; color: var(--muted); line-height: 1.5; }
.showcase-mosaic .technology-group h4 { font-size: 11px; }
.showcase-mosaic .technology-group li { padding: 7px 10px; font-size: 11px; }
.scene-card-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 39px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 11px; font-weight: 500; }
.scene-card-link:hover { color: var(--blue-ink); }
.scene-card-link .icon { width: 14px; height: 14px; flex-basis: 14px; }
.showcase-mosaic .principles-card { width: min(446px, 100%); padding: 0 24px; }
.principles-card .scene-card-heading { padding-block: 21px; }
.showcase-mosaic .principles-card > div { gap: 15px; padding-block: 16px; }
.showcase-mosaic .principles-card .scene-card-link { margin-top: 0; padding-block: 15px; }
.scene-toolbar { position: absolute; z-index: 3; bottom: 20px; left: 27px; right: 27px; display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 34px; }
.scene-counter { display: flex; gap: 8px; align-items: center; color: var(--subtle); font-size: 10px; font-variant-numeric: tabular-nums; }
.scene-counter [data-scene-number] { color: var(--ink); }
.counter-divider { opacity: .4; }
.scene-caption { position: absolute; left: 50%; transform: translateX(-50%); font-size: 10px; color: var(--muted); white-space: nowrap; }
.showcase-mosaic .showcase-footer { min-height: 38px; padding: 0 20px; border: 0; }
.showcase-mosaic .showcase-footer a { min-height: 32px; }
/* The background cards are deliberately smaller than the active component. */
.showcase-mosaic .mosaic-tile.component { width: 260px; }
.showcase-mosaic .mosaic-tile .profile-identity { padding: 22px 17px; gap: 10px; }
.showcase-mosaic .mosaic-tile .profile-identity img { width: 42px; height: 42px; }
.showcase-mosaic .mosaic-tile .profile-identity h2 { font-size: 16px; }
.showcase-mosaic .mosaic-tile .profile-identity p { font-size: 9px; }
.showcase-mosaic .mosaic-tile .profile-details { padding-inline: 17px; }
.showcase-mosaic .mosaic-tile .profile-details > div { font-size: 9px; }
.showcase-mosaic .mosaic-tile .profile-details dd > span { display: none; }
@keyframes showcase-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 850px) {
  .mosaic-backdrop { opacity: .43; }
  .showcase-mosaic .mosaic-tile.stack-preview, .showcase-mosaic .mosaic-tile.approach-preview { display: block; }
  .mosaic-camera { left: calc(50% - 740px); }
}
@media (max-width: 600px) {
  .showcase-mosaic { padding: 4px; border-radius: 14px; }
  .showcase-mosaic .view-tabs { gap: 3px; }
  .showcase-mosaic .view-tab { min-height: 47px; padding-inline: 4px; gap: 6px; border-radius: 9px; font-size: 10px; }
  .showcase-mosaic .view-tab .icon { width: 13px; height: 13px; flex-basis: 13px; }
  .showcase-mosaic .showcase-stage { margin-top: 4px; border-radius: 10px; }
  .mosaic-backdrop { opacity: .27; }
  .showcase-mosaic .view-panel { min-height: 490px; padding: 28px 19px 73px; transform: translate3d(35px, 6px, 0) scale(.97); }
  .showcase-mosaic .view-panel.is-before { transform: translate3d(-35px, -6px, 0) scale(.97); }
  .showcase-mosaic .view-panel.is-active { transform: none; }
  .showcase-mosaic .scene-card { box-shadow: 0 0 0 4px #a8b5cc12, 0 2px 4px #1a2a430c, 0 24px 40px -20px #1a2a4333; }
  .showcase-mosaic .profile-card-top { padding-inline: 17px; font-size: 9px; }
  .showcase-mosaic .profile-identity { padding: 23px 17px; gap: 12px; }
  .showcase-mosaic .profile-identity img { width: 48px; height: 48px; }
  .showcase-mosaic .profile-identity h2 { font-size: 18px; }
  .showcase-mosaic .profile-identity p { font-size: 10px; }
  .showcase-mosaic .profile-details { padding-inline: 17px; gap: 19px; }
  .showcase-mosaic .profile-details > div { font-size: 10px; }
  .showcase-mosaic .profile-details dd > span { display: none; }
  .showcase-mosaic .profile-about { margin-inline: 17px; }
  .showcase-mosaic .technology-card { padding: 18px; }
  .scene-card-heading { gap: 10px; padding-bottom: 16px; }
  .scene-card-heading .small-icon { width: 29px; height: 29px; }
  .scene-card-heading h2 { font-size: 13px; }
  .scene-card-heading p { font-size: 9px; }
  .showcase-mosaic .technology-group li { padding: 6px 8px; font-size: 10px; }
  .showcase-mosaic .technology-group h4 { font-size: 10px; }
  .showcase-mosaic .principles-card { padding-inline: 18px; }
  .showcase-mosaic .principles-card > div { gap: 10px; padding-block: 14px; }
  .showcase-mosaic .principles-card .principle-number { display: none; }
  .showcase-mosaic .principles-card h3 { font-size: 11px; }
  .showcase-mosaic .principles-card p { font-size: 10px; line-height: 1.65; }
  .scene-card-link { font-size: 10px; }
  .scene-toolbar { bottom: 18px; left: 17px; right: 17px; }
  .scene-caption { font-size: 9px; }
  .scene-counter { font-size: 9px; gap: 5px; }
  .showcase-mosaic .showcase-footer { padding: 4px 12px; font-size: 8px; }
}
@media (max-width: 360px) {
  .showcase-mosaic .view-tab { font-size: 9px; gap: 4px; }
  .showcase-mosaic .view-panel { padding-inline: 14px; }
  .showcase-mosaic .profile-identity { gap: 9px; }
  .showcase-mosaic .profile-identity img { width: 42px; height: 42px; }
  .showcase-mosaic .profile-identity h2 { font-size: 16px; }
  .showcase-mosaic .profile-identity p { font-size: 9px; }
  .showcase-mosaic .profile-details > div { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase-mosaic *, .showcase-mosaic *::before, .showcase-mosaic *::after { animation: none !important; transition: none !important; }
  .tab-progress { display: none; }
  .mosaic-drift { will-change: auto; }
  .mosaic-camera, [data-scene="stack"] .mosaic-camera, [data-scene="approach"] .mosaic-camera { transform: none; }
}
