/* ==========================================================================
   /showcase/ — 2026 stack (layout: _layouts/showcase.html)
   Loaded after tokens.css and base.css. Scoped under .sc-.
   Page-level alias (documented per CLAUDE.md rule 10): --sc-fade is the colour
   the hero gradient ends in (the bottom of gradient-purple), so the carousel
   fade melts into the section. It is the only surface that must not follow
   the section theme.
   ========================================================================== */

.sc-hero {
  --sc-fade: var(--js-color-purple-light);
  padding-top: 24px;
  padding-bottom: 0;
  overflow: hidden;
}

.sc-hero__copy {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 48px 0 56px;
}

.sc-eyebrow {
  margin: 0;
}

.sc-eyebrow--icon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sc-eyebrow--icon i {
  font-size: 1.4em;
  letter-spacing: 0;
}

.sc-hero__title {
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
}

.sc-hero__accent {
  color: var(--color-accent);
}

.sc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

/* Carousel: two rows moving in opposite directions, second row cut off below */
.sc-marquee {
  --sc-gap: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sc-gap);
  height: 400px;
  margin: 0 calc(var(--js-padding) * -1);
  overflow: hidden;
}

.sc-marquee__row {
  flex: none;
  overflow: hidden;
}

/* No flex gap here: each card carries its own right margin, so one copy of the
   list is exactly half of the track and the loop can end at -50% at any width.
   A gap (and a hard-coded "-50% - gap/2") drifted when the gap changed on
   phones and made the loop jump. */
.sc-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.sc-marquee__track--left {
  animation: sc-slide-left 70s linear infinite;
}

.sc-marquee__track--right {
  animation: sc-slide-right 70s linear infinite;
}

@keyframes sc-slide-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes sc-slide-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.sc-shot {
  flex: none;
  display: block;
  margin-right: var(--sc-gap);
  width: 340px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--js-radius-lg);
  background: var(--color-main-op1);
  box-shadow: 0 0 0 1px var(--color-main-op1);
}

.sc-shot img,
.sc-card__shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.sc-marquee__fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 60%;
  pointer-events: none;
  background: linear-gradient(0deg, var(--sc-fade) 0%, transparent 100%);
}

/* Edges: the stores nearest the left and right edge fade out. A mask (not an
   overlay) lets the real hero background show through, so there is no seam
   against the vertical gradient of the section. */
.sc-marquee__row {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 clamp(72px, 16vw, 280px), #000 calc(100% - clamp(72px, 16vw, 280px)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 clamp(72px, 16vw, 280px), #000 calc(100% - clamp(72px, 16vw, 280px)), transparent 100%);
}

@media (prefers-reduced-motion: reduce) {
  .sc-marquee__track--left,
  .sc-marquee__track--right {
    animation: none;
  }
}

/* Explore stores */
.sc-grid {
  padding-top: 96px;
  padding-bottom: 96px;
}

.sc-grid__title {
  margin: 0 0 48px;
}

.sc-grid__list {
  list-style: none;
  margin: 0;
  padding: 0;
  /* Flex, not grid: the last row (18 stores = 4 + 4 + 4 + 4 + 2) stays centred
     instead of leaving two cards on the left. Four columns, two on tablet,
     one on phones. */
  --sc-cols: 4;
  --sc-col-gap: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px var(--sc-col-gap);
  max-width: 1296px;
  margin-inline: auto;
}

.sc-grid__list > li {
  flex: 0 0 calc((100% - (var(--sc-cols) - 1) * var(--sc-col-gap)) / var(--sc-cols));
  min-width: 0;
}

.sc-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--color-main);
  text-decoration: none;
}

.sc-card__shot {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--js-radius-lg);
  background: var(--color-main-op1);
  box-shadow: 0 0 0 1px var(--color-main-op1);
  transition: var(--js-transition);
}

.sc-card:is(:hover, :focus-visible) .sc-card__shot {
  transform: translateY(-4px);
}

.sc-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--js-radius-lg);
}

.sc-card__info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.sc-card__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.sc-card__name {
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.sc-card__caption {
  font-size: 14px;
  line-height: 1.35;
  color: var(--color-secondary-op7);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sc-card__go {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px var(--color-main-op3);
  transition: var(--js-transition);
}

.sc-card:is(:hover, :focus-visible) .sc-card__go {
  background: var(--color-main);
  color: var(--color-background);
}

/* Theme gallery invitation: dark card inside the bright section */
.sc-themes {
  padding-top: 0;
  padding-bottom: 96px;
}

.sc-themes__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 32px;
  max-width: 1296px;
  margin: 0 auto;
  min-height: 420px;
  padding: 64px 0 0 64px;
  overflow: hidden;
  border-radius: var(--js-radius-xl);
  background: var(--color-background);
  color: var(--color-main);
}

.sc-themes__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 64px;
}

.sc-themes__title {
  margin: 0;
  max-width: 12ch;
  text-wrap: balance;
}

.sc-themes__visual {
  position: relative;
  align-self: stretch;
  min-height: 320px;
}

.sc-themes__window,
.sc-themes__phone {
  position: absolute;
  overflow: hidden;
  border-radius: var(--js-radius-lg) var(--js-radius-lg) 0 0;
  box-shadow: 0 0 0 1px var(--color-main-op2);
}

.sc-themes__window img,
.sc-themes__phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.sc-themes__window--back {
  top: 0;
  left: 6%;
  width: 52%;
  bottom: -12%;
}

.sc-themes__window--front {
  top: 18%;
  right: 0;
  width: 52%;
  bottom: -20%;
}

.sc-themes__phone {
  top: 36%;
  left: 0;
  width: 22%;
  bottom: -30%;
}

/* Tablet */
@media (max-width: 1199px) {
  .sc-grid__list {
    --sc-cols: 2;
  }

  .sc-themes__card {
    padding: 48px 0 0 48px;
  }
}

/* The theme card stacks: everything centred (guideline 8) */
@media (max-width: 991px) {
  .sc-themes__card {
    grid-template-columns: minmax(0, 1fr);
    padding: 48px 24px 0;
    text-align: center;
  }

  .sc-themes__copy {
    align-items: center;
    padding-bottom: 0;
  }

  .sc-themes__visual {
    min-height: 300px;
  }
}

/* Phones */
@media (max-width: 767px) {
  .sc-hero__copy {
    padding: 32px 0 40px;
  }

  .sc-marquee {
    --sc-gap: 16px;
    height: 300px;
  }

  .sc-shot {
    width: 240px;
  }

  .sc-grid {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .sc-grid__title {
    margin-bottom: 32px;
  }

  .sc-themes {
    padding-bottom: 64px;
  }
}

@media (max-width: 575px) {
  .sc-grid__list {
    --sc-cols: 1;
  }

  .sc-themes__title {
    font-size: calc(var(--font-base-size) * 2) !important;
  }
}
