/* One bounded frame and one navigation for all interior scenes. */
.c-home .unified-showcase {
  width: 100%;
  min-width: 0;
  margin: 0 auto 48px;
  scroll-margin-top: 110px;
}

.showcase-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 480px;
  min-height: max(480px, calc(88svh - 208px));
  overflow: hidden;
  background: var(--ink);
}

.showcase-scene {
  position: relative;
  isolation: isolate;
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-width: 0;
}

/* Keep the stage tall enough for every caption to avoid jumps on auto-advance. */
.showcase-scene[hidden] {
  display: grid !important;
  visibility: hidden;
  pointer-events: none;
}

.showcase-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--ink);
}

.showcase-media img,
.showcase-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.showcase-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, oklch(0.19 0.025 150 / .95) 0%,
    oklch(0.19 0.025 150 / .78) 54%, oklch(0.19 0.025 150 / .23) 73%, transparent 91%);
}

.showcase-copy {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: min(58%, 44rem);
  padding: clamp(24px, 4vw, 72px);
  min-width: 0;
  color: white;
}

.showcase-copy h2 {
  max-width: 17ch;
  margin: 0 0 18px;
  color: inherit;
  font-size: clamp(34px, 3.6vw, 64px);
  line-height: 1.12;
  text-wrap: balance;
}

.showcase-copy p:not(.eyebrow) {
  max-width: 38ch;
  margin-bottom: 20px;
  color: inherit;
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.55;
  text-wrap: pretty;
}

.showcase-copy .eyebrow {
  margin-bottom: 14px;
  color: inherit;
  font-size: 11px;
}

.showcase-copy .showcase-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--surface);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.showcase-copy .showcase-cta:focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}

.showcase-controls {
  border-bottom: 1px solid var(--line);
  padding: 16px var(--gutter) 12px;
}

.showcase-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 10px;
}

.showcase-controls button {
  min-height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.showcase-toolbar button { padding: 8px 16px; }
.showcase-arrows { display: flex; gap: 8px; margin-left: auto; }
.showcase-arrows button { min-width: 48px; font-size: 22px; line-height: 1; }

.showcase-pickers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.showcase-pickers button { max-width: 100%; border-color: transparent; padding: 8px 10px; }
.showcase-pickers button[aria-pressed="true"] {
  background: var(--soft);
  border-bottom-color: var(--accent);
}

.showcase-controls button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.showcase-in-view .selection-link { display: none !important; }

@media (max-width: 800px) {
  .c-home .unified-showcase { margin-bottom: 32px; }
  .showcase-stage { min-height: 0; }
  .showcase-scene {
    grid-template-rows: auto 1fr;
    align-items: start;
  }
  .showcase-media {
    position: relative;
    grid-row: 1;
    aspect-ratio: 16 / 9;
  }
  .showcase-media img,
  .showcase-media video {
    position: absolute;
    inset: 0;
    object-fit: contain;
  }
  .showcase-media::after { display: none; }
  .showcase-copy {
    grid-row: 2;
    width: 100%;
    padding: clamp(20px, 4vw, 32px);
  }
  .showcase-copy h2 { max-width: 22ch; font-size: clamp(28px, 5vw, 38px); }
  .showcase-copy p:not(.eyebrow) { margin-bottom: 16px; }
  .showcase-controls { padding: 12px 16px; }
}
