/* Homepage context stays beside each example; full card reading has one owner. */
.keepze-home .home-hero {
  min-height: 0;
  padding-block: clamp(40px, 6vw, 80px);
  gap: clamp(28px, 6vw, 80px);
}
.keepze-home .home-hero-copy h1 { max-width: 12ch; }
.keepze-home .home-lede { max-width: 36ch; }
.keepze-home .home-hero-object.home-hero-live { order: 0; min-height: 0; zoom: 1; }
.hero-card-preview--cover { max-width: 350px; }
.hero-card-sample-button {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: 100%;
  min-height: 44px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--bronze-deep);
  font: 500 14px/1.4 var(--font-body);
  cursor: pointer;
  touch-action: manipulation;
}
.hero-card-preview--cover .hero-card-fallback {
  position: static;
  display: grid;
  place-items: center;
  height: auto;
  width: 100%;
}
.hero-card-preview--cover .hero-card-fallback-cover {
  max-width: 100%;
  max-height: 350px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(5px 14px 14px #1c27332b);
}
.hero-card-sample-button:focus-visible,
.home-sample-cover:focus-visible { outline: 3px solid var(--bronze); outline-offset: 6px; border-radius: 4px; }
.hero-card-sample-button:disabled { cursor: default; }
.hero-card-preview--cover .hero-card-ambient-controls { display: none; }
.keepze-home .collection { padding-block: 64px; }
.keepze-home .studio-v2-catalogue-more { min-height: 44px; }
.keepze-home .home-story { border-top: 1px solid #a06c2c30; }
/* Both demonstrations keep the shared finished card inside their own stage. */
.keepze-home .home-hero-live .hero-card-mount { min-height: 0; height: 360px; }
.keepze-home .home-hero-live .hero-card-preview .card-presentation.card-presentation-inline {
  height: 100%; min-height: 0; grid-template-rows: minmax(0, 1fr); overflow: visible;
}
.keepze-home .home-hero-live .hero-card-preview .presentation-body,
.keepze-home .home-hero-live .hero-card-preview .presentation-stage { height: 100%; min-height: 0; padding: 0; }
.keepze-home .home-hero-live .hero-card-preview .presentation-body { grid-template-rows: minmax(0, 1fr); }
.keepze-home .home-hero-live .hero-card-preview .presentation-stage { grid-row: 1; }
.keepze-home .home-hero-live .hero-card-fallback { height: 360px; }
.keepze-home .home-hero-live .hero-card-preview:not(.hero-card-preview--cover) { max-width: 400px; }
.keepze-home .hero-card-open-hint { top: 0; left: 0; }
.keepze-home .hero-card-preview[data-renderer=unavailable] .card-presentation > footer { display: block !important; }
.group-signing-preview { min-width: 0; padding: 20px; background: #e4d9c24a; border: 1px solid #a06c2c30; border-radius: 12px; }
.group-signing-preview .group-demo-label { margin: 0 0 12px; color: var(--bronze-deep); font: 500 13px/1.4 var(--font-body); }
.group-signing-preview .group-demo-note { margin: 12px 0 0; color: var(--muted); font: 400 13px/1.5 var(--font-body); }
.keepze-home .home-group-card .card-presentation-inline { height: 450px; min-height: 0; grid-template-rows: minmax(0, 1fr) auto; background: transparent; border: 0; box-shadow: none; }
.keepze-home .home-group-card .card-presentation-inline .presentation-body { min-height: 0; height: auto; grid-template-rows: minmax(0, 1fr); }
.keepze-home .home-group-card .card-presentation-inline .presentation-stage { min-height: 0; padding: 0; grid-row: 1; }
.keepze-home .home-group-card .surface-media-controls { width: max-content; bottom: 40px !important; }
.keepze-home .home-group-card .presentation-sender { display: none; }
.keepze-home .home-group-card[data-ready=true] .card-presentation > footer > p { display: none; }
.home-shelf-showcase .shelf-visual-label { font-size: 13px; letter-spacing: .04em; }
.home-shelf-showcase figure.home-shelf-sample { margin: 0; transform: none; }
.home-shelf-showcase .home-shelf-sample figcaption { margin-top: 15px; font-size: 12px; color: #e6ddcd; }
.home-shelf-showcase .home-shelf-cover { display: block; height: 210px; }
.home-shelf-showcase .home-shelf-cover img { width: 100%; height: 100%; object-fit: contain; transform: none; }
.home-shelf-showcase .shelf-showcase-cards { padding-bottom: 18px; border-bottom: 8px solid #c6a677; }
.keepze-home .home-closing { margin-top: 0; }

@media (max-width: 800px) {
  .keepze-home .home-hero { padding-top: 32px; padding-bottom: 40px; gap: 20px; }
  .keepze-home .home-hero-copy h1 { max-width: 12ch; font-size: clamp(44px, 11vw, 65px); }
  .keepze-home .home-hero .eyebrow { margin-bottom: 14px; }
  .keepze-home .home-lede { margin-top: 18px; font-size: 16px; line-height: 1.5; }
  .keepze-home .home-actions { margin-top: 22px; }
  .hero-card-sample-button { gap: 14px; padding: 6px 16px; }
  .hero-card-preview--cover .hero-card-fallback-cover { max-height: min(32svh, 280px); }
  .keepze-home .home-feature-together { grid-template-columns: 1fr; gap: 24px; }
  .keepze-home .home-feature { padding-block: 44px; }
  .keepze-home .collection { padding-block: 48px; }
  .group-signing-preview { padding: 14px; }
  .keepze-home .home-hero-live .hero-card-mount, .keepze-home .home-hero-live .hero-card-fallback { height: 300px; }
  .keepze-home .home-group-card .card-presentation-inline { height: 400px; }
  .home-shelf-showcase .home-shelf-cover { height: 180px; }
}
@media (max-width: 430px) {
  .home-shelf-showcase .home-shelf-cover { height: 140px; }
  .home-shelf-showcase .home-shelf-sample figcaption { font-size: 11px; }
}
@media (max-width: 359px) {
  .hero-card-preview--cover .hero-card-fallback-cover { max-height: min(26svh, 230px); }
  .keepze-home .home-hero-live .hero-card-mount, .keepze-home .home-hero-live .hero-card-fallback { height: 260px; }
}
