/**
 * Generation-first storefronts (page_schema v2) — premium composition layer.
 */
body[data-sg-render-mode="generated"] {
  overflow-x: clip;
}

body[data-sg-render-mode="generated"] .store-page-wrap {
  max-width: 100%;
  background: transparent !important;
}

body[data-sg-render-mode="generated"] .sg-generated-root,
body[data-sg-render-mode="generated"] .sg-generated-root a {
  text-decoration: none;
  color: inherit;
}

body[data-sg-render-mode="generated"] .sg-generated-root a:hover {
  opacity: 0.92;
}

body[data-sg-render-mode="generated"] .sg-generated-root img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sg-generated-root {
  width: 100%;
  min-height: 0;
  color: var(--sg-ink, inherit);
  background: var(--sg-page-bg, transparent);
  font-family: var(--sg-font-body, system-ui, sans-serif);
  font-size: var(--sg-type-body, 1rem);
  line-height: var(--sg-leading-body, 1.55);
  -webkit-font-smoothing: antialiased;
}

.sg-gen-page {
  width: 100%;
  margin: 0 auto;
  max-width: var(--sg-container-max, 72rem);
  padding-left: var(--sg-container-pad, 1.25rem);
  padding-right: var(--sg-container-pad, 1.25rem);
}

.sg-gen-container {
  width: 100%;
  max-width: var(--sg-container-max, 72rem);
  margin-left: auto;
  margin-right: auto;
}

.sg-gen-node {
  margin-bottom: calc(var(--sg-section-gap, clamp(2.25rem, 5vw, 3.75rem)) * var(--sg-gap-mult, 1));
}

.sg-gen-node:last-child {
  margin-bottom: var(--sg-section-gap-tight, 2rem);
}

.sg-gen-section-head {
  margin-bottom: var(--sg-space-lg, 2rem);
  max-width: var(--sg-prose-max, 38rem);
}

.sg-gen-prose {
  max-width: var(--sg-prose-max, 38rem);
  color: var(--sg-muted, inherit);
}

.sg-gen-kicker {
  font-family: var(--sg-font-accent, inherit);
  font-size: var(--sg-type-small, 0.75rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sg-muted, inherit);
  margin: 0 0 var(--sg-space-sm, 1rem);
}

.sg-gen-h2,
.sg-gen-hero-title {
  font-family: var(--sg-font-display, Georgia, serif);
  font-size: var(--sg-type-h2, clamp(1.5rem, 3.5vw, 2.25rem));
  letter-spacing: -0.03em;
  line-height: var(--sg-leading-tight, 1.08);
  margin: 0 0 var(--sg-space-sm, 0.75rem);
  color: var(--sg-ink, inherit);
}

.sg-gen-hero-title {
  font-size: var(--sg-type-display, clamp(2.25rem, 6vw, 4rem));
}

.sg-gen-hero-lede {
  margin: 0 0 var(--sg-space-md, 1.5rem);
}

/* —— Premium product cards —— */
.sg-gen-product-grid {
  display: grid;
  gap: var(--sg-space-md, 1rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 640px) {
  .sg-gen-product-grid--luxury,
  .sg-gen-product-grid--editorial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .sg-gen-product-grid--luxury,
  .sg-gen-product-grid--editorial {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sg-gen-product-grid--bento {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 8px;
}

.sg-gen-product-grid--bento .sg-gen-product-card--featured {
  grid-row: span 28;
}

.sg-gen-product-grid--bento .sg-gen-product-card:not(.sg-gen-product-card--featured) {
  grid-row: span 22;
}

.sg-gen-product-card {
  border-radius: var(--sg-radius-md, 16px);
  overflow: hidden;
  background: var(--sg-surface, #fff);
  border: 1px solid var(--sg-border, rgba(0, 0, 0, 0.08));
  box-shadow: var(--sg-shadow-sm, 0 8px 24px rgba(0, 0, 0, 0.08));
  transition: transform var(--sg-motion-duration, 0.4s) var(--sg-motion-ease, ease),
    box-shadow var(--sg-motion-duration, 0.4s) var(--sg-motion-ease, ease);
}

.sg-gen-product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.sg-gen-product-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--sg-card-media-ratio, 5 / 6);
  background: color-mix(in srgb, var(--sg-muted) 20%, transparent);
  border-radius: inherit;
}

.sg-gen-product-card--featured .sg-gen-product-card__media {
  aspect-ratio: 4 / 5;
}

.sg-gen-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--sg-motion-ease, ease);
}

.sg-gen-product-card:hover .sg-gen-product-card__media img {
  transform: scale(1.06);
}

.sg-gen-product-card__shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, transparent 40%, rgba(255, 255, 255, 0.14) 50%, transparent 60%);
  opacity: 0;
  transition: opacity var(--sg-motion-duration, 0.45s) var(--sg-motion-ease, ease);
  pointer-events: none;
}

.sg-gen-product-card:hover .sg-gen-product-card__shine {
  opacity: 1;
}

.sg-gen-product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--sg-accent) 88%, #000);
  color: #111;
}

.sg-gen-product-card__overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  backdrop-filter: blur(8px);
}

.sg-gen-product-card--luxury .sg-gen-product-card__overlay {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, #000 78%, transparent));
}

body[data-sg-universe="editorial_fashion"] .sg-gen-product-card__overlay,
body[data-sg-universe="saas_startup"] .sg-gen-product-card__overlay {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--sg-page-bg) 92%, transparent));
}

body[data-sg-universe="editorial_fashion"] .sg-gen-product-card__title,
body[data-sg-universe="saas_startup"] .sg-gen-product-card__title {
  color: var(--sg-ink);
}

.sg-gen-product-card__meta {
  min-width: 0;
}

.sg-gen-product-card__title {
  font-family: var(--sg-font-body, inherit);
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.25;
  color: #fff;
}

.sg-gen-product-card__price {
  margin: 0.2rem 0 0;
  font-size: var(--sg-type-small, 0.8125rem);
  color: color-mix(in srgb, #fff 72%, transparent);
  letter-spacing: 0.04em;
}

.sg-gen-product-card__cta {
  flex-shrink: 0;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--sg-accent) 92%, #fff);
  color: #111;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--sg-motion-duration, 0.4s) var(--sg-motion-ease, ease),
    transform var(--sg-motion-duration, 0.4s) var(--sg-motion-ease, ease);
}

.sg-gen-product-card:hover .sg-gen-product-card__cta {
  opacity: 1;
  transform: translateY(0);
}

.sg-gen-product-card--luxury {
  background: color-mix(in srgb, var(--sg-surface) 92%, transparent);
}

.sg-gen-product-card--playful {
  border-radius: var(--sg-radius-lg, 24px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.sg-gen-product-card--playful .sg-gen-product-card__media {
  aspect-ratio: 1;
}

@media (hover: hover) {
  .sg-gen-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sg-gen-product-card,
  .sg-gen-product-card__media img {
    transition: none;
  }
}

.sg-gen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

/* —— luxury_cinematic —— */
body[data-sg-universe="luxury_cinematic"] {
  --sg-page-bg: #0a0a0a;
  --sg-ink: #f5f5f4;
  --sg-muted: #a8a29e;
  --sg-accent: #c9a962;
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-hero--cinematic {
  min-height: var(--sg-hero-min-height, min(92vh, 900px));
  margin-left: calc(-1 * var(--sg-container-pad, 1.25rem));
  margin-right: calc(-1 * var(--sg-container-pad, 1.25rem));
  width: calc(100% + 2 * var(--sg-container-pad, 1.25rem));
  position: relative;
  overflow: hidden;
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-hero-stage-img {
  position: absolute;
  width: 110%;
  height: 110%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.05);
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-hero-stage-img--primary {
  inset: -5% auto auto -8%;
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-hero-stage-img--ghost {
  inset: auto -12% -8% auto;
  opacity: 0.35;
  transform: scale(1.08) rotate(2deg);
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-hero-stage-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 18% 22%, rgba(201, 169, 98, 0.22), transparent 55%),
    linear-gradient(105deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.35) 48%, rgba(0, 0, 0, 0.75) 100%);
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-hero-stage-grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-hero--cinematic .sg-gen-hero-inner {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(3rem, 10vw, 5.5rem);
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-hero-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

@media (min-width: 900px) {
  body[data-sg-universe="luxury_cinematic"] .sg-gen-hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-hero-copy {
  max-width: 36rem;
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--sg-space-md, 1.5rem);
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-btn--ghost {
  border: 1px solid color-mix(in srgb, #fff 28%, transparent);
  color: var(--sg-ink);
  background: transparent;
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-hero-stats {
  display: flex;
  gap: 1.5rem;
  margin: var(--sg-space-lg, 2rem) 0 0;
  padding: 0;
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-hero-stats dt {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sg-muted);
  margin: 0 0 0.2rem;
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-hero-stats dd {
  margin: 0;
  font-weight: 600;
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-hero-visual--float {
  margin: 0;
  position: relative;
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-hero-visual--float img {
  width: 100%;
  max-height: min(68vh, 620px);
  object-fit: cover;
  border-radius: var(--sg-radius-lg, 24px);
  box-shadow: var(--sg-shadow-lg, 0 32px 80px rgba(0, 0, 0, 0.55));
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-hero-visual-cap {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sg-muted);
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-hero-scroll {
  align-self: center;
  margin-top: 2rem;
  width: 28px;
  height: 44px;
  border: 1px solid color-mix(in srgb, #fff 25%, transparent);
  border-radius: 999px;
  display: grid;
  place-items: center;
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-hero-scroll span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--sg-accent);
  animation: sg-hero-scroll 1.8s ease-in-out infinite;
}

@keyframes sg-hero-scroll {
  0%, 100% { transform: translateY(-4px); opacity: 0.4; }
  50% { transform: translateY(4px); opacity: 1; }
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-btn--luxury {
  background: var(--sg-accent);
  color: #111;
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-reels-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 1rem;
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-reel {
  flex: 0 0 min(40vw, 200px);
  scroll-snap-align: start;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 9/16;
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-reel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-luxury-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 1rem;
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-luxury-tile--lead {
  grid-column: 1 / -1;
}

body[data-sg-universe="luxury_cinematic"] .sg-gen-luxury-tile img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 14px;
}

/* —— playful_genz_bookstore —— */
body[data-sg-universe="playful_genz_bookstore"] {
  --sg-page-bg: #fff7ed;
  --sg-ink: #1f2937;
  --sg-accent: #ff6b9d;
}

body[data-sg-universe="playful_genz_bookstore"] .sg-gen-hero--onboarding {
  padding: 2rem 1.25rem;
  text-align: center;
}

body[data-sg-universe="playful_genz_bookstore"] .sg-gen-pill {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #fde68a;
  font-weight: 700;
  font-size: 0.75rem;
}

body[data-sg-universe="playful_genz_bookstore"] .sg-gen-steps {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

body[data-sg-universe="playful_genz_bookstore"] .sg-gen-steps li {
  padding: 0.5rem 0.85rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(255, 107, 157, 0.2);
}

body[data-sg-universe="playful_genz_bookstore"] .sg-gen-chapter-stack {
  display: grid;
  gap: 10px;
  padding: 0 1rem;
}

body[data-sg-universe="playful_genz_bookstore"] .sg-gen-chapter {
  padding: 1rem 1.1rem;
  border-radius: 20px;
  background: hsl(var(--sg-chapter-hue, 200), 85%, 92%);
}

body[data-sg-universe="playful_genz_bookstore"] .sg-gen-app-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 1rem;
}

body[data-sg-universe="playful_genz_bookstore"] .sg-gen-app-card {
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
}

body[data-sg-universe="playful_genz_bookstore"] .sg-gen-app-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

body[data-sg-universe="playful_genz_bookstore"] .sg-gen-app-bar {
  position: sticky;
  bottom: 12px;
  padding: 0 1rem;
  z-index: 40;
}

body[data-sg-universe="playful_genz_bookstore"] .sg-gen-app-bar-btn {
  display: block;
  text-align: center;
  padding: 1rem;
  border-radius: 999px;
  background: var(--sg-accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

/* —— saas_startup —— */
body[data-sg-universe="saas_startup"] {
  --sg-page-bg: #f8fafc;
  --sg-ink: #0f172a;
  --sg-accent: #2563eb;
}

body[data-sg-universe="saas_startup"] .sg-gen-hero--saas {
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem 1.25rem;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

@media (min-width: 768px) {
  body[data-sg-universe="saas_startup"] .sg-gen-hero--saas {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

body[data-sg-universe="saas_startup"] .sg-gen-mock-ui {
  min-height: 220px;
  border-radius: 16px;
  background: linear-gradient(180deg, #dbeafe, #fff);
  border: 1px solid #cbd5e1;
}

body[data-sg-universe="saas_startup"] .sg-gen-saas-features {
  display: grid;
  gap: 12px;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  body[data-sg-universe="saas_startup"] .sg-gen-saas-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

body[data-sg-universe="saas_startup"] .sg-gen-saas-card {
  padding: 1.25rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

body[data-sg-universe="saas_startup"] .sg-gen-pricing {
  display: grid;
  gap: 10px;
  padding: 0 1rem 2rem;
}

@media (min-width: 768px) {
  body[data-sg-universe="saas_startup"] .sg-gen-pricing {
    grid-template-columns: repeat(3, 1fr);
  }
}

body[data-sg-universe="saas_startup"] .sg-gen-tier {
  padding: 1.25rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  text-align: center;
}

body[data-sg-universe="saas_startup"] .sg-gen-tier--featured {
  border-color: var(--sg-accent);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.15);
}

body[data-sg-universe="saas_startup"] .sg-gen-btn--saas {
  background: var(--sg-accent);
  color: #fff;
}

/* —— editorial_fashion —— */
body[data-sg-universe="editorial_fashion"] {
  --sg-page-bg: #faf9f7;
  --sg-ink: #111;
  --sg-accent: #c9a962;
}

body[data-sg-universe="editorial_fashion"] .sg-gen-hero--editorial-split {
  min-height: var(--sg-hero-min-height, min(80vh, 760px));
  padding: clamp(2rem, 6vw, 4rem) 0;
}

body[data-sg-universe="editorial_fashion"] .sg-gen-hero-grid--editorial {
  display: grid;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: end;
}

@media (min-width: 768px) {
  body[data-sg-universe="editorial_fashion"] .sg-gen-hero-grid--editorial {
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 4rem);
  }
}

body[data-sg-universe="editorial_fashion"] .sg-gen-hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

body[data-sg-universe="editorial_fashion"] .sg-gen-btn--editorial {
  background: var(--sg-ink);
  color: var(--sg-page-bg);
  border-radius: 2px;
  padding: 0.85rem 1.5rem;
}

body[data-sg-universe="editorial_fashion"] .sg-gen-link-muted {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sg-muted);
}

body[data-sg-universe="editorial_fashion"] .sg-gen-hero-visual--editorial img {
  width: 100%;
  border-radius: 2px;
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: var(--sg-shadow-md, 0 12px 32px rgba(0, 0, 0, 0.08));
}

body[data-sg-universe="editorial_fashion"] .sg-gen-logo-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 1rem;
  opacity: 0.55;
  font-family: Georgia, serif;
  letter-spacing: 0.08em;
}

/* —— corporate_consulting —— */
body[data-sg-universe="corporate_consulting"] {
  --sg-page-bg: #f1f5f9;
  --sg-ink: #0f172a;
  --sg-accent: #1e3a5f;
}

body[data-sg-universe="corporate_consulting"] .sg-gen-hero--corporate {
  padding: 2.5rem 1.25rem;
  max-width: 48rem;
}

body[data-sg-universe="corporate_consulting"] .sg-gen-corp-row {
  padding: 1rem 1.25rem;
  margin: 0 1rem 10px;
  background: #fff;
  border-radius: 8px;
  border-left: 4px solid var(--sg-accent);
}

body[data-sg-universe="corporate_consulting"] .sg-gen-btn--corp {
  background: var(--sg-accent);
  color: #fff;
}

/* —— app_onboarding —— */
body[data-sg-universe="app_onboarding"] {
  --sg-page-bg: #f5f3ff;
  --sg-ink: #111827;
  --sg-accent: #7c3aed;
}

body[data-sg-universe="app_onboarding"] .sg-gen-catalog--app .sg-gen-h2 {
  padding: 0 1rem;
}

/* —— futuristic_marketplace —— */
body[data-sg-universe="futuristic_marketplace"] {
  --sg-page-bg: #050510;
  --sg-ink: #f8fafc;
  --sg-accent: #22d3ee;
}

body[data-sg-universe="futuristic_marketplace"] .sg-gen-hero--holo {
  min-height: 60vh;
  padding: 2rem 1.25rem;
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.25), transparent 60%);
}

body[data-sg-universe="futuristic_marketplace"] .sg-gen-pin-grid {
  columns: 2;
  column-gap: 10px;
  padding: 0 1rem;
}

body[data-sg-universe="futuristic_marketplace"] .sg-gen-pin {
  break-inside: avoid;
  margin-bottom: 10px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.2);
  display: block;
}

body[data-sg-universe="futuristic_marketplace"] .sg-gen-pin img {
  width: 100%;
  display: block;
}

body[data-sg-universe="futuristic_marketplace"] .sg-gen-pin--tall img {
  aspect-ratio: 3/4;
}

body[data-sg-universe="futuristic_marketplace"] .sg-gen-pin--short img {
  aspect-ratio: 1;
}

/* Shared */
.sg-gen-metrics,
.sg-gen-proof-ugc {
  display: grid;
  gap: 10px;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .sg-gen-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sg-gen-metrics div {
  padding: 1rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--sg-accent, #333) 8%, transparent);
  text-align: center;
}

.sg-gen-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--sg-page-bg, #fff) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

.sg-gen-sticky-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  margin: 0 auto;
}

.sg-gen-sticky-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.sg-gen-sticky-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.sg-gen-sticky-btn {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--sg-accent, #111);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

body[data-sg-commerce-sticky="0"] .sg-gen-sticky {
  display: none;
}

/* —— Phase 3: editorial footers, empty states, mobile luxury —— */
.sg-gen-node--cta-footer-editorial,
.sg-gen-node--cta-footer_editorial {
  margin-bottom: 0;
}

.sg-gen-footer {
  margin-left: calc(-1 * var(--sg-container-pad, 1.25rem));
  margin-right: calc(-1 * var(--sg-container-pad, 1.25rem));
  width: calc(100% + 2 * var(--sg-container-pad, 1.25rem));
  padding: clamp(3rem, 8vw, 5rem) 0 calc(2rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--sg-border, rgba(255, 255, 255, 0.1));
}

.sg-gen-footer-inner {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .sg-gen-footer-inner {
    grid-template-columns: 1.2fr 0.8fr 1fr;
    align-items: start;
  }
}

.sg-gen-footer-title {
  font-family: var(--sg-font-display, Georgia, serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
  line-height: var(--sg-leading-tight, 1.08);
}

.sg-gen-footer-tagline {
  margin: 0;
  max-width: 28rem;
  color: var(--sg-muted);
  font-size: var(--sg-type-body, 1rem);
}

.sg-gen-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.sg-gen-footer-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--sg-muted);
  transition: color var(--sg-motion-duration, 0.35s) ease;
}

.sg-gen-footer-nav a:hover {
  color: var(--sg-ink);
}

.sg-gen-footer-cta-copy {
  margin: 0 0 1rem;
  color: var(--sg-muted);
  max-width: 22rem;
}

.sg-gen-btn--footer {
  background: var(--sg-accent);
  color: #111;
  font-weight: 700;
}

.sg-gen-footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--sg-border, rgba(255, 255, 255, 0.08));
  font-size: var(--sg-type-small, 0.8125rem);
  color: var(--sg-muted);
}

.sg-gen-footer--dark_luxe {
  background: color-mix(in srgb, var(--sg-page-bg) 96%, #000);
}

.sg-gen-footer--editorial_minimal,
.sg-gen-footer--saas_clean,
.sg-gen-footer--corporate_trust {
  background: var(--sg-page-bg);
}

.sg-gen-footer--playful_warm {
  background: color-mix(in srgb, var(--sg-accent) 8%, var(--sg-page-bg));
}

.sg-gen-footer--neon_void {
  background: linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.06));
}

.sg-gen-empty {
  padding: clamp(2.5rem, 8vw, 4rem) 1.5rem;
  text-align: center;
  border-radius: var(--sg-radius-lg, 24px);
  border: 1px dashed color-mix(in srgb, var(--sg-muted) 35%, transparent);
  background: color-mix(in srgb, var(--sg-surface) 60%, transparent);
}

.sg-gen-empty .sg-gen-h2 {
  margin-bottom: 0.5rem;
}

body.sg-gen-active {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

body.sg-gen-active[data-sg-commerce-sticky="1"] {
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

body.sg-gen-active .sg-gen-page {
  padding-bottom: var(--sg-space-md, 1.5rem);
}

/* Content stays visible — never opacity:0 (caused blank white “cover” until scroll) */
.sg-gen-node.sg-gen-reveal {
  opacity: 1;
  transform: translateY(14px);
  transition: transform 0.55s var(--sg-motion-ease, ease), opacity 0.55s var(--sg-motion-ease, ease);
}

.sg-gen-node.sg-gen-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 639px) {
  .sg-gen-node {
    margin-bottom: clamp(2.25rem, 10vw, 3.5rem);
  }

  .sg-gen-hero-actions .sg-gen-btn {
    min-height: 48px;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }

  .sg-gen-product-grid {
    gap: var(--sg-space-sm, 0.85rem);
  }

  .sg-gen-product-card__cta {
    opacity: 1;
    transform: none;
  }

  .sg-gen-sticky-inner {
    gap: 14px;
  }

  .sg-gen-sticky-btn {
    min-height: 44px;
    padding: 0.65rem 1.15rem;
  }
}

.sg-gen-sticky[data-sg-sticky-state="peek"] {
  transform: translateY(calc(100% - 12px));
  opacity: 0.92;
}

.sg-gen-sticky[data-sg-sticky-state="peek"] .sg-gen-sticky-inner {
  box-shadow: var(--sg-shadow-md, 0 12px 32px rgba(0, 0, 0, 0.2));
}

@media (prefers-reduced-motion: reduce) {
  .sg-gen-node.sg-gen-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  body[data-sg-universe="luxury_cinematic"] .sg-gen-hero-scroll span {
    animation: none;
  }
}

/* ─── New Hero Variants ──────────────────────────────────────────────────────── */

/* Beauty Ritual Hero */
.sg-gen-hero--beauty {
  position: relative;
  min-height: clamp(480px, 80vh, 860px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.sg-gen-hero-beauty-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.sg-gen-hero-beauty-bg-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.sg-gen-hero-beauty-veil {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, color-mix(in srgb, var(--sg-page-bg) 72%, transparent) 40%, transparent);
}
.sg-gen-hero-beauty-grid {
  position: relative; z-index: 1;
  display: grid; gap: clamp(2rem, 5vw, 3.5rem);
  width: 100%; max-width: var(--sg-container-max, 72rem);
  margin: 0 auto; padding: clamp(3rem, 8vw, 5rem) var(--sg-container-pad, 1.25rem);
}
@media (min-width: 768px) {
  .sg-gen-hero-beauty-grid { grid-template-columns: 1fr 1fr; align-items: center; }
}
.sg-gen-hero-beauty-copy { order: 1; }
.sg-gen-hero-beauty-visual { order: 2; position: relative; }
.sg-gen-hero-beauty-visual img {
  width: 100%; max-width: 520px; border-radius: var(--sg-radius-xl, 32px);
  object-fit: cover; aspect-ratio: 4/5; box-shadow: var(--sg-shadow-lg, 0 24px 64px rgba(0,0,0,0.25));
}
.sg-gen-hero-beauty-orb {
  position: absolute; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--sg-accent) 40%, transparent), transparent 70%);
  bottom: -40px; right: -40px; z-index: -1; pointer-events: none;
}
.sg-gen-hero-beauty-notes {
  display: flex; gap: 1rem; flex-wrap: wrap; list-style: none; padding: 0; margin: 1.5rem 0 0;
}
.sg-gen-hero-beauty-notes li {
  font-size: var(--sg-type-small, 0.8rem); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sg-muted); padding: 0.35rem 0.75rem;
  border: 1px solid color-mix(in srgb, var(--sg-muted) 25%, transparent);
  border-radius: var(--sg-radius-pill, 999px);
}
.sg-gen-hero-title--beauty {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: var(--sg-leading-tight, 1.08);
  margin: 0.5rem 0 1rem;
}
.sg-gen-btn--ritual {
  background: var(--sg-accent, #a07850);
  color: var(--sg-on-accent, #fff);
  border-radius: var(--sg-radius-pill, 999px);
  padding: 0.85rem 2rem;
  font-weight: 600;
  min-height: 48px;
  display: inline-flex; align-items: center; gap: 0.5rem;
}

/* Fashion Runway Hero */
.sg-gen-hero--runway {
  position: relative; min-height: clamp(520px, 88vh, 900px);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden; background: var(--sg-page-bg);
}
.sg-gen-hero-runway-stage { position: absolute; inset: 0; z-index: 0; }
.sg-gen-hero-runway-bg { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.sg-gen-hero-runway-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--sg-page-bg) 90%, transparent) 0%, color-mix(in srgb, var(--sg-page-bg) 30%, transparent) 55%, transparent 100%);
}
.sg-gen-hero-runway-inner {
  position: relative; z-index: 1;
  padding: clamp(2rem, 6vw, 4rem) var(--sg-container-pad, 1.25rem);
  display: grid; gap: 1.5rem;
}
@media (min-width: 768px) {
  .sg-gen-hero-runway-inner { grid-template-columns: 1fr 0.5fr; align-items: end; }
}
.sg-gen-hero-runway-meta { display: flex; gap: 1rem; align-items: center; }
.sg-gen-hero-runway-issue {
  font-size: var(--sg-type-small, 0.75rem); letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--sg-muted); border-right: 1px solid var(--sg-border); padding-right: 1rem;
}
.sg-gen-hero-title--runway {
  font-size: clamp(2.25rem, 7vw, 4.5rem);
  line-height: var(--sg-leading-tight, 1.05);
  margin: 0.75rem 0 1rem; max-width: 18ch;
}
.sg-gen-hero-runway-visual {
  position: absolute; right: 0; top: 0; bottom: 0; width: 40%;
}
@media (max-width: 767px) { .sg-gen-hero-runway-visual { display: none; } }
.sg-gen-hero-runway-visual img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.sg-gen-hero-runway-accent {
  position: absolute; bottom: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--sg-accent), transparent);
}
.sg-gen-hero-runway-ticker {
  position: absolute; bottom: 1rem; left: 0; right: 0;
  display: flex; gap: 2rem; justify-content: center; z-index: 2;
  font-size: var(--sg-type-small, 0.75rem); letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--sg-muted); overflow: hidden;
}
.sg-gen-btn--runway {
  background: transparent; border: 1px solid var(--sg-ink, #fff); color: var(--sg-ink, #fff);
  padding: 0.85rem 2rem; font-weight: 500; letter-spacing: 0.05em;
  min-height: 48px;
}

/* Creator Social Hero */
.sg-gen-hero--creator {
  min-height: clamp(420px, 75vh, 800px);
  display: flex; align-items: center;
  background: var(--sg-page-bg);
}
.sg-gen-hero-creator-inner { width: 100%; }
.sg-gen-hero-creator-grid {
  display: grid; gap: clamp(2rem, 5vw, 3rem);
  padding: clamp(3rem, 8vw, 5rem) var(--sg-container-pad, 1.25rem);
}
@media (min-width: 768px) {
  .sg-gen-hero-creator-grid { grid-template-columns: 1fr 0.85fr; align-items: center; }
}
.sg-gen-hero-title--creator {
  font-size: clamp(2rem, 6vw, 3.75rem);
  line-height: var(--sg-leading-tight, 1.08);
  margin: 0.5rem 0 1rem;
}
.sg-gen-hero-creator-proof {
  font-size: var(--sg-type-small, 0.8rem); letter-spacing: 0.08em;
  color: var(--sg-muted); margin: 1rem 0;
}
.sg-gen-hero-creator-visual-stack { position: relative; }
.sg-gen-hero-creator-card { border-radius: var(--sg-radius-xl, 24px); overflow: hidden; }
.sg-gen-hero-creator-card img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
}
.sg-gen-hero-creator-card--primary {
  box-shadow: var(--sg-shadow-lg, 0 24px 64px rgba(0,0,0,0.25));
}
.sg-gen-hero-creator-card--ghost {
  display: none;
}
@media (min-width: 768px) {
  .sg-gen-hero-creator-card--ghost {
    display: block; position: absolute; top: -1.5rem; right: -1.5rem; width: 48%;
    transform: rotate(3deg); opacity: 0.6; z-index: -1;
  }
}
.sg-gen-hero-creator-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--sg-accent); color: var(--sg-on-accent, #fff);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: var(--sg-radius-pill, 999px);
}
.sg-gen-hero-creator-price {
  background: color-mix(in srgb, var(--sg-on-accent, #fff) 15%, transparent);
  padding: 0.15rem 0.5rem; border-radius: var(--sg-radius-sm, 6px);
  font-size: 0.85rem; font-weight: 600;
}
.sg-gen-btn--creator {
  background: var(--sg-accent); color: var(--sg-on-accent, #fff);
  padding: 0.9rem 2rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 0.6rem;
  border-radius: var(--sg-radius-md, 12px);
  min-height: 48px;
}

/* Story-first Hero */
.sg-gen-hero--story {
  position: relative; min-height: clamp(460px, 80vh, 840px);
  display: flex; align-items: center; overflow: hidden;
}
.sg-gen-hero-story-backdrop {
  position: absolute; inset: 0; z-index: 0;
}
.sg-gen-hero-story-backdrop img { width: 100%; height: 100%; object-fit: cover; }
.sg-gen-hero-story-wash {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--sg-page-bg) 82%, transparent);
}
.sg-gen-hero-story-inner {
  position: relative; z-index: 1; width: 100%;
  padding: clamp(3.5rem, 9vw, 5.5rem) var(--sg-container-pad, 1.25rem);
  display: grid; gap: clamp(2rem, 5vw, 3rem);
}
@media (min-width: 900px) {
  .sg-gen-hero-story-inner { grid-template-columns: 1.2fr 0.7fr; align-items: start; }
}
.sg-gen-hero-story-label { display: flex; flex-direction: column; gap: 0.35rem; }
.sg-gen-hero-story-chapter {
  font-size: var(--sg-type-small, 0.7rem); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sg-accent);
}
.sg-gen-hero-title--story {
  font-size: clamp(2.25rem, 6vw, 4rem);
  line-height: 1.1; margin: 0.75rem 0 1.25rem;
  max-width: 22ch;
}
.sg-gen-hero-lede--story { max-width: 36ch; }
.sg-gen-hero-story-aside {
  display: none;
}
@media (min-width: 900px) {
  .sg-gen-hero-story-aside {
    display: block; border-radius: var(--sg-radius-xl, 28px); overflow: hidden;
    box-shadow: var(--sg-shadow-lg, 0 24px 64px rgba(0,0,0,0.22));
  }
  .sg-gen-hero-story-aside img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
}
.sg-gen-btn--story {
  background: var(--sg-ink); color: var(--sg-page-bg, #fff);
  padding: 0.9rem 2.25rem; font-weight: 600; letter-spacing: 0.04em;
  border-radius: var(--sg-radius-sm, 6px);
  min-height: 48px;
}

/* Luxury Minimal Hero */
.sg-gen-hero--luxury-minimal {
  min-height: clamp(440px, 75vh, 800px);
  display: flex; align-items: center; background: var(--sg-page-bg);
}
.sg-gen-hero-minimal-inner {
  display: grid; gap: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(4rem, 10vw, 6rem) var(--sg-container-pad, 1.25rem);
  align-items: center;
}
@media (min-width: 768px) {
  .sg-gen-hero-minimal-inner { grid-template-columns: 1fr 1fr; }
}
.sg-gen-hero-minimal-stage {
  border-radius: var(--sg-radius-xl, 28px); overflow: hidden;
  box-shadow: var(--sg-shadow-xl, 0 32px 80px rgba(0,0,0,0.2));
}
.sg-gen-hero-minimal-stage img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
@media (max-width: 767px) {
  .sg-gen-hero-minimal-stage { max-width: 340px; margin: 0 auto; }
}
.sg-gen-hero-minimal-copy { order: -1; }
@media (min-width: 768px) { .sg-gen-hero-minimal-copy { order: 1; } }
.sg-gen-hero-title--minimal {
  font-size: clamp(2.5rem, 6.5vw, 4.5rem);
  line-height: 1.06; margin: 0.5rem 0 1.25rem;
  max-width: 14ch;
}
.sg-gen-kicker--minimal {
  font-size: var(--sg-type-small, 0.7rem); letter-spacing: 0.18em; color: var(--sg-muted);
}
.sg-gen-hero-minimal-actions { margin-top: 2rem; }
.sg-gen-btn--minimal {
  background: var(--sg-ink); color: var(--sg-page-bg, #fff);
  padding: 1rem 2.5rem; font-weight: 600; letter-spacing: 0.04em;
  border-radius: var(--sg-radius-sm, 6px);
  display: inline-flex; align-items: center; gap: 0.75rem;
  min-height: 52px;
}
.sg-gen-hero-minimal-price {
  background: color-mix(in srgb, var(--sg-page-bg, #fff) 15%, transparent);
  padding: 0.2rem 0.6rem; border-radius: 4px;
  font-size: 0.9rem;
}

/* Futuristic Holo Hero */
.sg-gen-hero--futuristic { background: var(--sg-page-bg); }
.sg-gen-hero-holo-bg {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.sg-gen-hero-holo-bg-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.3; }
.sg-gen-hero-holo-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(color-mix(in srgb, var(--sg-accent) 8%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--sg-accent) 8%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
}
.sg-gen-hero-holo-neon {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.sg-gen-hero-holo-neon--a {
  width: 320px; height: 320px; top: -80px; right: -60px;
  background: radial-gradient(circle, color-mix(in srgb, var(--sg-accent) 45%, transparent), transparent 70%);
}
.sg-gen-hero-holo-neon--b {
  width: 200px; height: 200px; bottom: -40px; left: 20%;
  background: radial-gradient(circle, color-mix(in srgb, cyan 30%, transparent), transparent 70%);
}
.sg-gen-hero-holo-copy { position: relative; z-index: 1; }
.sg-gen-hero-title--holo {
  font-size: clamp(2rem, 6vw, 4rem); line-height: 1.08;
  background: linear-gradient(135deg, var(--sg-ink), var(--sg-accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0.5rem 0 1rem;
}
.sg-gen-btn--holo {
  background: linear-gradient(135deg, var(--sg-accent), color-mix(in srgb, var(--sg-accent) 60%, cyan));
  color: var(--sg-on-accent, #fff); padding: 0.9rem 2rem; font-weight: 700;
  border-radius: var(--sg-radius-md, 12px);
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 48px;
}
.sg-gen-hero-holo-ring {
  position: absolute; inset: -8px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--sg-accent) 40%, transparent);
  pointer-events: none;
}

/* ─── New Catalog Components ─────────────────────────────────────────────────── */

/* Bento Grid */
.sg-gen-bento-grid {
  display: grid;
  gap: var(--sg-space-sm, 0.75rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .sg-gen-bento-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .sg-gen-bento-grid { grid-template-columns: repeat(4, 1fr); }
  .sg-gen-bento-grid .sg-gen-product-card--bento-featured { grid-column: span 2; grid-row: span 2; }
  .sg-gen-bento-grid .sg-gen-product-card--bento-wide { grid-column: span 2; }
  .sg-gen-bento-grid .sg-gen-product-card--bento-tall { grid-row: span 2; }
}

/* Editorial Grid */
.sg-gen-product-grid--editorial {
  display: grid; gap: var(--sg-space-sm, 0.75rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .sg-gen-product-grid--editorial { grid-template-columns: repeat(3, 1fr); }
  .sg-gen-product-grid--editorial .sg-gen-product-card--editorial.sg-gen-product-card--featured {
    grid-column: span 2; grid-row: span 2;
  }
}
@media (min-width: 1024px) {
  .sg-gen-product-grid--editorial { grid-template-columns: repeat(4, 1fr); }
}

/* Showcase Layout */
.sg-gen-showcase {
  display: grid; gap: var(--sg-space-sm, 0.75rem);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .sg-gen-showcase { grid-template-columns: 1.4fr 0.6fr; align-items: start; }
}
.sg-gen-showcase-hero {
  display: block; position: relative; border-radius: var(--sg-radius-xl, 24px); overflow: hidden;
  text-decoration: none; color: inherit;
}
.sg-gen-showcase-hero-img img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
  transition: transform 0.55s ease;
}
.sg-gen-showcase-hero:hover .sg-gen-showcase-hero-img img { transform: scale(1.03); }
.sg-gen-showcase-hero-info {
  padding: 1rem; background: linear-gradient(to top, color-mix(in srgb, var(--sg-page-bg) 80%, transparent), transparent);
  position: absolute; bottom: 0; left: 0; right: 0;
}
.sg-gen-showcase-badge {
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  background: var(--sg-accent); color: var(--sg-on-accent, #fff);
  padding: 0.2rem 0.55rem; border-radius: var(--sg-radius-pill, 999px);
  display: inline-block; margin-bottom: 0.5rem;
}
.sg-gen-showcase-hero-name { font-size: 1.1rem; font-weight: 600; margin: 0; }
.sg-gen-showcase-hero-price { font-size: 1rem; margin: 0.25rem 0 0; color: var(--sg-muted); }
.sg-gen-showcase-supporting {
  display: grid; gap: var(--sg-space-sm, 0.5rem);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .sg-gen-showcase-supporting { grid-template-columns: 1fr; }
}
.sg-gen-catalog-footer { margin-top: 1.5rem; text-align: center; }
.sg-gen-see-all {
  font-size: var(--sg-type-small, 0.85rem); letter-spacing: 0.08em;
  color: var(--sg-muted); text-decoration: underline; text-underline-offset: 3px;
  transition: color 0.25s ease;
}
.sg-gen-see-all:hover { color: var(--sg-ink); }

/* ─── New Story / Content Sections ───────────────────────────────────────────── */

/* Founder Story */
.sg-gen-story--founder { padding: clamp(3rem, 8vw, 5rem) 0; }
.sg-gen-story-founder-inner {
  display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start;
  padding-left: var(--sg-container-pad, 1.25rem);
  padding-right: var(--sg-container-pad, 1.25rem);
}
@media (min-width: 768px) {
  .sg-gen-story-founder-inner { grid-template-columns: 0.8fr 1.2fr; }
}
.sg-gen-story-founder-portrait {
  border-radius: var(--sg-radius-xl, 24px); overflow: hidden;
  box-shadow: var(--sg-shadow-md, 0 12px 36px rgba(0,0,0,0.15));
}
.sg-gen-story-founder-portrait img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover;
}
.sg-gen-story-founder-quote {
  border-left: 3px solid var(--sg-accent, currentColor);
  padding-left: 1.25rem; margin: 1.5rem 0;
  font-style: italic; font-size: 1.1rem; line-height: 1.55;
}
.sg-gen-story-founder-quote cite {
  display: block; margin-top: 0.75rem;
  font-style: normal; font-size: var(--sg-type-small, 0.8rem);
  letter-spacing: 0.08em; color: var(--sg-muted);
}
.sg-gen-story-founder-sig {
  margin: 1.25rem 0 0; color: var(--sg-muted);
  font-size: var(--sg-type-small, 0.85rem); letter-spacing: 0.04em;
}

/* Product Journey */
.sg-gen-story--journey { padding: clamp(3rem, 8vw, 5rem) 0; }
.sg-gen-story-journey-inner {
  padding-left: var(--sg-container-pad, 1.25rem);
  padding-right: var(--sg-container-pad, 1.25rem);
}
.sg-gen-journey-steps {
  list-style: none; padding: 0; margin: 2.5rem 0 2rem;
  display: grid; gap: 1.75rem;
}
@media (min-width: 640px) {
  .sg-gen-journey-steps { grid-template-columns: repeat(3, 1fr); }
}
.sg-gen-journey-step { display: flex; gap: 1rem; align-items: flex-start; }
@media (min-width: 640px) { .sg-gen-journey-step { flex-direction: column; } }
.sg-gen-journey-step-num {
  font-family: var(--sg-font-display, inherit); font-size: 2rem; line-height: 1;
  color: var(--sg-accent, currentColor); opacity: 0.45; flex-shrink: 0; min-width: 2.5rem;
}
.sg-gen-journey-step-title {
  font-size: 1rem; font-weight: 600; margin: 0 0 0.4rem;
}
.sg-gen-story-journey-cta { margin-top: 2rem; }

/* Mission Band */
.sg-gen-story--mission {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: color-mix(in srgb, var(--sg-surface, var(--sg-page-bg)) 50%, var(--sg-page-bg));
}
.sg-gen-mission-inner {
  display: grid; gap: clamp(2.5rem, 6vw, 4rem);
  padding-left: var(--sg-container-pad, 1.25rem);
  padding-right: var(--sg-container-pad, 1.25rem);
}
@media (min-width: 768px) {
  .sg-gen-mission-inner { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
}
.sg-gen-h2--mission {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  max-width: 22ch;
}
.sg-gen-mission-pillars {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.sg-gen-mission-pillar {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.9rem; font-weight: 500;
}
.sg-gen-mission-pillar-icon { color: var(--sg-accent); font-size: 0.6rem; flex-shrink: 0; }

/* Ingredient Breakdown */
.sg-gen-story--ingredients { padding: clamp(3rem, 8vw, 5rem) 0; }
.sg-gen-ingredients-inner {
  padding-left: var(--sg-container-pad, 1.25rem);
  padding-right: var(--sg-container-pad, 1.25rem);
}
.sg-gen-ingredient-list {
  list-style: none; padding: 0; margin: 2rem 0;
  display: grid; gap: 1rem;
}
@media (min-width: 640px) {
  .sg-gen-ingredient-list { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .sg-gen-ingredient-list { grid-template-columns: repeat(3, 1fr); }
}
.sg-gen-ingredient-item {
  padding: 1.25rem; border-radius: var(--sg-radius-md, 12px);
  border: 1px solid color-mix(in srgb, var(--sg-muted) 20%, transparent);
  background: color-mix(in srgb, var(--sg-surface, var(--sg-page-bg)) 40%, transparent);
}
.sg-gen-ingredient-header {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.sg-gen-ingredient-name { font-weight: 600; font-size: 0.95rem; margin: 0; }
.sg-gen-ingredient-tag {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--sg-accent); white-space: nowrap;
}

/* Creator Showcase */
.sg-gen-story--creator { padding: clamp(3rem, 8vw, 5rem) 0; }
.sg-gen-creator-showcase-inner {
  padding-left: var(--sg-container-pad, 1.25rem);
  padding-right: var(--sg-container-pad, 1.25rem);
}
.sg-gen-creator-grid {
  display: grid; gap: var(--sg-space-sm, 0.75rem);
  grid-template-columns: repeat(2, 1fr);
  margin: 2rem 0;
}
@media (min-width: 640px) {
  .sg-gen-creator-grid { grid-template-columns: repeat(4, 1fr); }
}
.sg-gen-creator-card { display: flex; flex-direction: column; gap: 0.5rem; }
.sg-gen-creator-card-visual {
  position: relative; border-radius: var(--sg-radius-lg, 16px); overflow: hidden;
}
.sg-gen-creator-card-visual img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.sg-gen-creator-card-placeholder { aspect-ratio: 3/4; background: var(--sg-surface, rgba(128,128,128,0.1)); }
.sg-gen-creator-card-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
}
.sg-gen-creator-handle {
  font-size: 0.75rem; font-weight: 600; color: #fff; letter-spacing: 0.04em;
}
.sg-gen-creator-caption { font-size: 0.82rem; color: var(--sg-muted); line-height: 1.4; }
.sg-gen-creator-cta { text-align: center; margin-top: 1.5rem; }

/* ─── Proof: Testimonials ─────────────────────────────────────────────────────── */

.sg-gen-proof--testimonials { padding: clamp(3rem, 8vw, 5rem) 0; }
.sg-gen-testimonials-inner {
  padding-left: var(--sg-container-pad, 1.25rem);
  padding-right: var(--sg-container-pad, 1.25rem);
}
.sg-gen-section-head--center { text-align: center; max-width: 100%; margin-bottom: 2.5rem; }
.sg-gen-section-head--center .sg-gen-h2 { max-width: 28ch; margin: 0 auto; }
.sg-gen-testimonials-avg {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  margin: 0.75rem 0; font-size: 0.9rem; color: var(--sg-muted);
}
.sg-gen-testimonials-avg-stars { color: var(--sg-accent, #f5a623); font-size: 1rem; }
.sg-gen-testimonials-avg-num { font-weight: 700; font-size: 1rem; color: var(--sg-ink); }
.sg-gen-testimonials-grid {
  display: grid; gap: 1rem; grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .sg-gen-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .sg-gen-testimonials-grid { grid-template-columns: repeat(4, 1fr); }
}
.sg-gen-testimonial-card {
  padding: 1.5rem; border-radius: var(--sg-radius-lg, 16px);
  border: 1px solid color-mix(in srgb, var(--sg-muted) 18%, transparent);
  background: color-mix(in srgb, var(--sg-surface, var(--sg-page-bg)) 50%, transparent);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.sg-gen-testimonial-stars { display: flex; gap: 0.1rem; }
.sg-gen-star { color: color-mix(in srgb, var(--sg-muted) 40%, transparent); font-size: 0.85rem; }
.sg-gen-star--filled { color: var(--sg-accent, #f5a623); }
.sg-gen-testimonial-text { font-size: 0.9rem; line-height: 1.55; color: var(--sg-ink); flex: 1; }
.sg-gen-testimonial-footer { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.sg-gen-testimonial-name { font-size: 0.8rem; font-weight: 600; font-style: normal; }
.sg-gen-testimonial-badge {
  font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sg-accent); border: 1px solid color-mix(in srgb, var(--sg-accent) 40%, transparent);
  padding: 0.15rem 0.45rem; border-radius: var(--sg-radius-pill, 999px);
}

/* ─── Mobile-first: section-head variants ─────────────────────────────────────── */
.sg-gen-section-head {
  display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap;
  gap: 0.75rem;
}
.sg-gen-section-head--editorial {
  align-items: flex-end;
}
.sg-gen-prose--lede {
  font-size: clamp(0.95rem, 2vw, 1.1rem); line-height: 1.65; margin-top: 0.75rem;
}
.sg-gen-prose--sm { font-size: 0.85rem; line-height: 1.5; }
.sg-gen-btn--sm { font-size: 0.8rem; padding: 0.5rem 1rem; }

/* ─── Mobile improvements ─────────────────────────────────────────────────────── */
@media (max-width: 639px) {
  /* Hero copy improvements for all variants */
  .sg-gen-hero-title--beauty,
  .sg-gen-hero-title--runway,
  .sg-gen-hero-title--creator,
  .sg-gen-hero-title--story,
  .sg-gen-hero-title--minimal {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }
  /* Runway ticker hidden on small mobile */
  .sg-gen-hero-runway-ticker { display: none; }
  /* Creator card stack simplification */
  .sg-gen-hero-creator-visual-stack { max-width: 300px; margin: 0 auto; }
  /* Founder portrait constrain */
  .sg-gen-story-founder-portrait { max-width: 280px; }
  /* Journey steps single column */
  .sg-gen-journey-steps { grid-template-columns: 1fr; }
  /* Testimonials single column */
  .sg-gen-testimonials-grid { grid-template-columns: 1fr; }
  /* Creator grid 2 column */
  .sg-gen-creator-grid { grid-template-columns: repeat(2, 1fr); }
  /* Ingredient list single column */
  .sg-gen-ingredient-list { grid-template-columns: 1fr; }
  /* Showcase hero to vertical */
  .sg-gen-showcase { grid-template-columns: 1fr; }
  /* CTA buttons thumb zone */
  .sg-gen-btn--beauty,
  .sg-gen-btn--runway,
  .sg-gen-btn--creator,
  .sg-gen-btn--story,
  .sg-gen-btn--minimal,
  .sg-gen-btn--holo {
    min-height: 52px; font-size: 1rem;
  }
}

/* AI Studio workspace — tighter commerce pacing on mobile */
body.sg-ai-studio-workspace .sg-generated-root {
  --sg-section-gap: clamp(1.25rem, 3.5vw, 2rem);
  --sg-section-gap-tight: 1.15rem;
  --sg-space-lg: 1.35rem;
  --sg-space-md: 1rem;
  --sg-space-sm: 0.65rem;
}

@media (max-width: 767px) {
  body.sg-ai-studio-workspace .sg-gen-node {
    margin-bottom: clamp(0.9rem, 2.8vw, 1.35rem);
  }
  body.sg-ai-studio-workspace .sg-gen-section-head {
    margin-bottom: 0.85rem;
  }
  body.sg-ai-studio-workspace .sg-gen-hero-title {
    font-size: clamp(1.65rem, 7vw, 2.35rem);
    margin-bottom: 0.55rem;
  }
  body.sg-ai-studio-workspace .sg-gen-hero-lede {
    margin-bottom: 1rem;
  }
  body.sg-ai-studio-workspace .sg-gen-proof,
  body.sg-ai-studio-workspace .sg-gen-manifesto,
  body.sg-ai-studio-workspace .sg-gen-journey,
  body.sg-ai-studio-workspace .sg-gen-ingredients {
    padding-top: clamp(1.25rem, 4vw, 2rem);
    padding-bottom: clamp(1.25rem, 4vw, 2rem);
  }
}
