/**
 * Composition + art direction layer — cinematic heroes, container breaks, rhythm, promo retail.
 */
body[data-sg-render-mode="generated"] .sg-gen-page {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

/* Generated footers: page has no side padding — never use negative margin break-out (clips on mobile). */
body[data-sg-render-mode="generated"] .sg-gen-footer {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
}

body[data-sg-render-mode="generated"] .sg-gen-node--cta-footer-editorial,
body[data-sg-render-mode="generated"] .sg-gen-node--cta-footer_editorial {
  overflow: visible;
  max-width: 100%;
}

/* —— Hero Creative Director: layout + overlay + height —— */
.sg-gen-node--focal[style*="--sg-hero-min-height"] > .sg-gen-hero,
.sg-gen-node--focal[style*="--sg-hero-min-height"] > .sg-gen-hero--cinematic,
.sg-gen-node--focal[style*="--sg-hero-min-height"] > .sg-gen-hero--beauty {
  min-height: var(--sg-hero-min-height, min(88vh, 860px));
}

[data-sg-hero-align="center"] .sg-gen-hero-copy,
[data-sg-hero-align="center"] .sg-gen-hero-grid > .sg-gen-hero-copy {
  text-align: center;
  margin-inline: auto;
}

[data-sg-hero-align="right"] .sg-gen-hero-copy {
  text-align: right;
  margin-left: auto;
}

[data-sg-hero-overlay="0.68"] .sg-gen-hero-stage-veil,
[data-sg-hero-overlay="0.65"] .sg-gen-hero-stage-veil,
[data-sg-hero-overlay="0.62"] .sg-gen-hero-stage-veil,
[data-sg-hero-overlay="0.58"] .sg-gen-hero-stage-veil {
  opacity: 0.62;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.28));
}

[data-sg-hero-overlay="0.52"] .sg-gen-hero-stage-veil,
[data-sg-hero-overlay="0.42"] .sg-gen-hero-stage-veil,
[data-sg-hero-overlay="0.32"] .sg-gen-hero-stage-veil {
  opacity: 0.38;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.12));
}

@media (max-width: 767px) {
  [data-sg-hero-align="center"] .sg-gen-hero-actions,
  [data-sg-hero-align="left"] .sg-gen-hero-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

.sg-gen-hero--director {
  position: relative;
  min-height: var(--sg-hero-min-height, min(88vh, 860px));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sg-gen-hero--director .sg-gen-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.sg-gen-hero--director .sg-gen-hero-copy {
  max-width: min(42rem, 100%);
}

.sg-gen-hero-trust {
  margin: 0 0 1rem;
  font-size: var(--sg-type-small, 0.8125rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--sg-muted) 88%, var(--sg-ink));
}

.sg-gen-hero--director .sg-gen-btn--primary {
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  font-weight: 650;
  box-shadow: 0 12px 40px color-mix(in srgb, var(--sg-accent) 42%, transparent);
  border: 1px solid color-mix(in srgb, var(--sg-accent) 45%, transparent);
}

body[data-sg-render-mode="generated"] .sg-gen-cta-primary.sg-gen-btn--large {
  font-weight: 650;
  letter-spacing: 0.05em;
  padding: 1rem 2rem;
  min-width: min(100%, 16rem);
  box-shadow: 0 12px 40px color-mix(in srgb, var(--sg-accent) 42%, transparent);
  border: 1px solid color-mix(in srgb, var(--sg-accent) 50%, transparent);
}

body[data-sg-render-mode="generated"] .sg-gen-hero--director .sg-gen-hero-inner,
body[data-sg-render-mode="generated"] .sg-gen-hero--editorial-split .sg-gen-hero-inner {
  min-height: min(78vh, 820px);
}

/* Universal cinematic stage — all universes (not only luxury_cinematic) */
body[data-sg-render-mode="generated"] .sg-gen-hero--cinematic,
body[data-sg-render-mode="generated"] .sg-gen-hero--cinematic-glass,
body[data-sg-render-mode="generated"] .sg-gen-hero--immersive,
body[data-sg-render-mode="generated"] .sg-gen-hero--director.sg-gen-hero--editorial-split {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body[data-sg-render-mode="generated"] .sg-gen-hero--cinematic .sg-gen-hero-stage,
body[data-sg-render-mode="generated"] .sg-gen-hero--cinematic-glass .sg-gen-hero-stage,
body[data-sg-render-mode="generated"] .sg-gen-hero--immersive .sg-gen-hero-stage,
body[data-sg-render-mode="generated"] .sg-gen-hero--director .sg-gen-hero-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

body[data-sg-render-mode="generated"] .sg-gen-hero-stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body[data-sg-render-mode="generated"] .sg-gen-hero-stage-img--ghost {
  display: none;
}

body[data-sg-render-mode="generated"] .sg-gen-hero-stage-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.12) 0%,
    rgba(0, 0, 0, 0.38) 55%,
    rgba(0, 0, 0, 0.62) 100%
  );
  z-index: 1;
}

body[data-sg-render-mode="generated"] .sg-gen-hero--immersive .sg-gen-hero-inner,
body[data-sg-render-mode="generated"] .sg-gen-hero--director.sg-gen-hero--cinematic .sg-gen-hero-inner,
body[data-sg-render-mode="generated"] .sg-gen-hero--director.sg-gen-hero--cinematic-glass .sg-gen-hero-inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(1.5rem, 5vw, 3rem);
}

body[data-sg-render-mode="generated"] .sg-gen-hero--immersive .sg-gen-hero-copy,
body[data-sg-render-mode="generated"] .sg-gen-hero--director.sg-gen-hero--cinematic .sg-gen-hero-copy {
  color: #fff;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}

body[data-sg-render-mode="generated"] .sg-gen-hero--immersive .sg-gen-hero-lede,
body[data-sg-render-mode="generated"] .sg-gen-hero--director.sg-gen-hero--cinematic .sg-gen-hero-lede {
  color: rgba(255, 255, 255, 0.88);
}

body[data-sg-render-mode="generated"] .sg-gen-hero--immersive .sg-gen-kicker,
body[data-sg-render-mode="generated"] .sg-gen-hero--director.sg-gen-hero--cinematic .sg-gen-kicker {
  color: rgba(255, 255, 255, 0.72);
}

body[data-sg-render-mode="generated"] .sg-gen-hero--immersive .sg-gen-hero-visual--float,
body[data-sg-render-mode="generated"] .sg-gen-hero--director .sg-gen-hero-visual--float {
  display: none;
}

@media (max-width: 767px) {
  body[data-sg-render-mode="generated"] .sg-gen-hero--cinematic,
  body[data-sg-render-mode="generated"] .sg-gen-hero--cinematic-glass,
  body[data-sg-render-mode="generated"] .sg-gen-hero--director {
    min-height: min(78vh, 720px);
  }

  body[data-sg-render-mode="generated"] .sg-gen-hero--director .sg-gen-hero-title {
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.06;
  }

  body[data-sg-render-mode="generated"] .sg-gen-hero--director .sg-gen-hero-lede {
    font-size: 1rem;
    max-width: 36ch;
  }

  body[data-sg-render-mode="generated"] .sg-gen-hero--director .sg-gen-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  body[data-sg-render-mode="generated"] .sg-gen-hero--director .sg-gen-btn--primary,
  body[data-sg-render-mode="generated"] .sg-gen-hero--director .sg-gen-btn--ghost {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  body[data-sg-render-mode="generated"] .sg-gen-hero--editorial-split.sg-gen-hero--director .sg-gen-hero-grid--editorial {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: min(72vh, 640px);
  }
}

body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-container-break="1"] {
  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));
}

/* Min-height on inner hero only — never on the section wrapper (caused empty white viewport) */
body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-cinema="1"],
body[data-sg-render-mode="generated"] .sg-gen-node--focal {
  min-height: 0;
  overflow: visible;
}

body[data-sg-render-mode="generated"] .sg-gen-node--focal > .tv-hero,
body[data-sg-render-mode="generated"] .sg-gen-node--focal > .sg-gen-hero--cinematic,
body[data-sg-render-mode="generated"] .sg-gen-node--focal > .sg-gen-hero--promo,
body[data-sg-render-mode="generated"] .sg-gen-node--focal > .sg-gen-hero--watch-buy {
  min-height: var(--sg-hero-min-height, min(85vh, 820px));
}

body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-rhythm="spacious"],
body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-rhythm="editorial"] {
  margin-bottom: calc(var(--sg-section-gap, 4rem) * 1.25);
}

body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-rhythm="dense"],
body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-rhythm="commerce"] {
  margin-bottom: calc(var(--sg-section-gap, 4rem) * 0.75);
}

/* Promo cinematic hero (sale / retail banners) */
.sg-gen-hero--promo {
  min-height: min(88vh, 760px);
  position: relative;
  display: grid;
  align-items: stretch;
  color: var(--sg-ink, #fff);
}

.sg-gen-hero-promo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--sg-hero-gradient, linear-gradient(125deg, var(--sg-surface) 0%, var(--sg-page-bg) 50%, color-mix(in srgb, var(--sg-accent) 35%, var(--sg-page-bg)) 100%));
}

.sg-gen-hero-promo-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mix-blend-mode: luminosity;
}

.sg-gen-hero-promo-wave {
  position: absolute;
  bottom: -2px;
  left: -10%;
  right: -10%;
  height: 42%;
  background: var(--sg-accent-secondary, var(--sg-accent));
  opacity: 0.22;
  border-radius: 60% 60% 0 0;
  transform: rotate(-2deg);
}

.sg-gen-hero-promo-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, color-mix(in srgb, var(--sg-page-bg) 88%, transparent) 0%, transparent 55%);
}

.sg-gen-hero-promo-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.85fr);
  gap: clamp(20px, 5vw, 48px);
  align-items: center;
  padding: clamp(48px, 10vw, 96px) var(--sg-container-pad, 1.5rem);
  max-width: var(--sg-container-max, 76rem);
  margin: 0 auto;
}

.sg-gen-hero--right_heavy .sg-gen-hero-promo-inner,
.sg-gen-hero--asymmetric_right .sg-gen-hero-promo-inner {
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.1fr);
}

.sg-gen-hero--right_heavy .sg-gen-hero-promo-copy,
.sg-gen-hero--asymmetric_right .sg-gen-hero-promo-copy {
  order: 2;
}

.sg-gen-hero-title--promo {
  font-family: var(--sg-font-display, "Bebas Neue", sans-serif);
  font-size: var(--sg-type-display, clamp(2.75rem, 9vw, 5.25rem));
  line-height: 0.95;
  letter-spacing: var(--sg-tracking-display, -0.02em);
  text-transform: uppercase;
  margin: 0.25rem 0 0;
}

.sg-gen-kicker--promo {
  color: color-mix(in srgb, var(--sg-accent) 90%, var(--sg-ink));
}

.sg-gen-btn--promo.sg-gen-btn--primary {
  background: var(--sg-accent);
  color: color-mix(in srgb, var(--sg-page-bg) 92%, #000);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--sg-accent) 45%, transparent);
  font-weight: 800;
  min-height: 52px;
  padding: 0 28px;
}

.sg-gen-hero-promo-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
}

.sg-gen-hero-promo-badge {
  position: absolute;
  top: 8%;
  right: 8%;
  z-index: 3;
  width: clamp(72px, 14vw, 108px);
  height: clamp(72px, 14vw, 108px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  font-size: clamp(0.65rem, 2vw, 0.85rem);
  line-height: 1.1;
  background: var(--sg-accent);
  color: color-mix(in srgb, var(--sg-page-bg) 90%, #000);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  transform: rotate(-8deg);
}

.sg-gen-hero-promo-product {
  margin: 0;
  filter: drop-shadow(0 28px 48px rgba(0, 0, 0, 0.22));
}

.sg-gen-hero-promo-product img {
  max-height: min(52vh, 420px);
  width: auto;
  margin: 0 auto;
  object-fit: contain;
}

.sg-gen-hero-price-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sg-surface) 88%, transparent);
  border: 1px solid var(--sg-border);
  font-weight: 700;
}

/* Universal cinematic hero (all universes when data-sg-cinema) */
body[data-sg-render-mode="generated"] .sg-gen-hero--cinematic,
body[data-sg-render-mode="generated"] .sg-gen-hero--promo {
  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));
}

body[data-sg-render-mode="generated"] .sg-gen-hero--cinematic {
  min-height: var(--sg-hero-min-height, min(92vh, 900px));
}

body[data-sg-render-mode="generated"] .sg-gen-layout--asymmetric_left .sg-gen-hero-grid,
body[data-sg-render-mode="generated"] .sg-gen-layout--asymmetric_right .sg-gen-hero-grid {
  display: grid;
  gap: clamp(24px, 5vw, 48px);
  align-items: center;
}

body[data-sg-render-mode="generated"] .sg-gen-layout--asymmetric_left .sg-gen-hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.8fr);
}

body[data-sg-render-mode="generated"] .sg-gen-layout--asymmetric_right .sg-gen-hero-grid {
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.05fr);
}

body[data-sg-render-mode="generated"] .sg-gen-layout--broken_grid .sg-gen-product-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body[data-sg-render-mode="generated"] .sg-gen-layout--broken_grid .sg-gen-product-card:nth-child(1) {
  grid-column: span 3;
}

body[data-sg-render-mode="generated"] .sg-gen-layout--broken_grid .sg-gen-product-card:nth-child(2) {
  grid-column: span 2;
  margin-top: 2.5rem;
}

body[data-sg-render-mode="generated"] .sg-gen-layout--broken_grid .sg-gen-product-card:nth-child(3) {
  grid-column: span 2;
}

body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-asymmetry="offset_split"] {
  transform: translateY(calc(var(--sg-stagger, 0px)));
}

body[data-sg-render-mode="generated"] .sg-gen-reels--premium {
  padding: clamp(40px, 8vw, 72px) 0;
}

@media (max-width: 768px) {
  .sg-gen-hero-promo-inner {
    grid-template-columns: 1fr;
  }
  body[data-sg-render-mode="generated"] .sg-gen-layout--broken_grid .sg-gen-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body[data-sg-render-mode="generated"] .sg-gen-layout--broken_grid .sg-gen-product-card:nth-child(n) {
    grid-column: span 1;
    margin-top: 0;
  }
}

/* Whitespace rhythm from taste engines */
body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-gap-scale] {
  margin-bottom: calc(var(--sg-section-gap, 3rem) * var(--sg-gap-mult, 1));
}

body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-gap-scale="0"] {
  --sg-gap-mult: 0.35;
}

body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-gap-scale="0.65"] {
  --sg-gap-mult: 0.65;
}

body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-gap-scale="0.72"],
body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-gap-scale="0.78"] {
  --sg-gap-mult: 0.75;
}

body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-gap-scale="0.82"] {
  --sg-gap-mult: 0.82;
}

body[data-sg-render-mode="generated"] .sg-gen-node--focal + .sg-gen-node {
  margin-top: 0;
}

body[data-sg-render-mode="generated"] .sg-gen-section-head--tight {
  margin-bottom: 1.25rem;
}

/* Section headers: centered premium (global — overrides flex split layout) */
body[data-sg-render-mode="generated"] .sg-gen-section-head,
body[data-sg-render-mode="generated"] .sg-gen-section-head--tight,
body[data-sg-render-mode="generated"] .sg-gen-section-head--editorial,
body[data-sg-render-mode="generated"] .sg-gen-section-head--center {
  display: block;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: min(42rem, 100%);
  padding-inline: clamp(1.15rem, 5vw, 2rem);
  box-sizing: border-box;
}

body[data-sg-render-mode="generated"] .sg-gen-section-head .sg-gen-kicker,
body[data-sg-render-mode="generated"] .sg-gen-section-head .sg-gen-h2,
body[data-sg-render-mode="generated"] .sg-gen-section-head h2,
body[data-sg-render-mode="generated"] .sg-gen-section-head-text {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

body[data-sg-render-mode="generated"] .sg-gen-section-head--editorial {
  align-items: center;
}

/* Dark hero CTA contrast (desktop + mobile) */
body[data-sg-surface-dark="1"] .sg-gen-hero-actions .sg-gen-btn--primary,
body[data-sg-surface-dark="1"] .sg-gen-hero-actions .sg-gen-btn--solid_gold,
body[data-sg-surface-dark="1"] .sg-gen-hero-actions .sg-gen-btn--luxury,
body[data-sg-surface-dark="1"] .sg-gen-hero-actions .sg-gen-btn--solid-gold {
  color: #111111 !important;
  background: var(--sg-accent) !important;
  border: 1px solid color-mix(in srgb, var(--sg-accent) 80%, #fff) !important;
}

body[data-sg-surface-dark="1"] .sg-gen-hero-actions .sg-gen-btn--ghost,
body[data-sg-surface-dark="1"] .sg-gen-hero-actions .sg-gen-btn--ghost-warm {
  color: var(--sg-ink) !important;
  background: color-mix(in srgb, var(--sg-ink) 12%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--sg-ink) 40%, transparent) !important;
}

/* Editorial bento — no four equal cards */
body[data-sg-render-mode="generated"] .sg-gen-product-grid--luxury_bento,
body[data-sg-render-mode="generated"] .sg-gen-product-grid--editorial_bento,
body[data-sg-render-mode="generated"] .sg-gen-product-grid--promo_bento {
  display: grid;
  gap: clamp(12px, 2vw, 20px);
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

body[data-sg-render-mode="generated"] .sg-gen-product-card--hero_tall {
  grid-column: span 3;
  grid-row: span 2;
}

body[data-sg-render-mode="generated"] .sg-gen-product-card--hero_tall .sg-gen-product-card__media {
  aspect-ratio: 3/4;
}

body[data-sg-render-mode="generated"] .sg-gen-product-card--wide {
  grid-column: span 3;
}

body[data-sg-render-mode="generated"] .sg-gen-product-card--wide .sg-gen-product-card__media {
  aspect-ratio: 16/10;
}

body[data-sg-render-mode="generated"] .sg-gen-product-card--tall .sg-gen-product-card__media,
body[data-sg-render-mode="generated"] .sg-gen-product-card--portrait .sg-gen-product-card__media {
  aspect-ratio: 3/4;
}

body[data-sg-render-mode="generated"] .sg-gen-product-card--featured {
  box-shadow: 0 24px 56px color-mix(in srgb, var(--sg-accent) 18%, transparent);
}

/* Reel tiles — poster fallback */
.sg-gen-reel-tile--poster .tv-reel-tile-media {
  background: linear-gradient(145deg, var(--sg-surface), var(--sg-page-bg));
}

.sg-gen-reel-tile-media img.sg-gen-reel-img--broken {
  opacity: 0;
}

.sg-gen-reel-tile-media:has(.sg-gen-reel-img--broken) {
  background: linear-gradient(160deg, color-mix(in srgb, var(--sg-accent) 40%, #111), #0a0a0a);
}

.sg-gen-reel-tile-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.tv-reel-tile-media {
  min-height: 220px;
  background: #111;
}

.tv-reel-tile-media img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

@media (max-width: 768px) {
  body[data-sg-render-mode="generated"] .sg-gen-product-grid--luxury_bento,
  body[data-sg-render-mode="generated"] .sg-gen-product-grid--editorial_bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--sg-catalog-gap-mobile, 10px);
  }
  body[data-sg-render-mode="generated"] .sg-gen-product-card--hero_tall,
  body[data-sg-render-mode="generated"] .sg-gen-product-card--wide {
    grid-column: span 2;
    grid-row: span 1;
  }
  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-catalog-mobile-cols="1"] .sg-gen-product-grid {
    grid-template-columns: 1fr;
  }
  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-component^="catalog."] .sg-gen-product-card__link,
  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-component^="catalog."] .sg-gen-product-card a {
    min-height: 44px;
    padding: var(--sg-catalog-card-pad, 10px);
  }
  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-catalog-layout="showcase_spotlight"] .sg-gen-product-grid {
    gap: var(--sg-catalog-gap-mobile, 14px);
  }
  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-catalog-layout="pin_discovery"] .sg-gen-product-grid {
    gap: var(--sg-catalog-gap-mobile, 8px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-cinema="1"] {
    animation: sgGenHeroReveal 0.9s var(--sg-motion-ease, ease) both;
  }
  @keyframes sgGenHeroReveal {
    from {
      opacity: 0;
      transform: translateY(12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Semantic editorial experience — manifesto, journal, atelier */
body[data-sg-render-mode="generated"][data-sg-experience="editorial_fashion"],
body[data-sg-render-mode="generated"][data-sg-experience="quiet_luxury"],
body[data-sg-render-mode="generated"][data-sg-experience="dark_editorial"] {
  --sg-section-gap: clamp(4.5rem, 11vw, 8rem);
}

body[data-sg-render-mode="generated"] .sg-gen-manifesto {
  padding: clamp(3rem, 10vw, 7rem) 0;
}

body[data-sg-render-mode="generated"] .sg-gen-manifesto-inner {
  max-width: min(52rem, 92vw);
  margin: 0 auto;
}

body[data-sg-render-mode="generated"] .sg-gen-manifesto-label {
  margin: 0 0 1.25rem;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sg-muted, #6b7280);
  font-weight: 600;
}

body[data-sg-render-mode="generated"] .sg-gen-manifesto-quote {
  margin: 0;
  font-family: var(--sg-font-display, Georgia, serif);
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--sg-ink, #111);
}

body[data-sg-render-mode="generated"] .sg-gen-manifesto-attr {
  margin: 1.5rem 0 0;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sg-muted, #6b7280);
}

body[data-sg-render-mode="generated"] .sg-gen-manifesto--cinematic {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}

body[data-sg-render-mode="generated"] .sg-gen-manifesto-cinematic-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  body[data-sg-render-mode="generated"] .sg-gen-manifesto-cinematic-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(2.5rem, 6vw, 4.5rem);
  }
}

body[data-sg-render-mode="generated"] .sg-gen-manifesto-cinematic-copy {
  max-width: 38rem;
}

body[data-sg-render-mode="generated"] .sg-gen-manifesto-headline {
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0.75rem;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

body[data-sg-render-mode="generated"] .sg-gen-manifesto-body {
  margin: 0;
  max-width: 34rem;
  color: var(--sg-muted, #4b5563);
  line-height: 1.65;
}

body[data-sg-render-mode="generated"] .sg-gen-manifesto-cinematic-visual {
  margin: 0;
  position: relative;
}

body[data-sg-render-mode="generated"] .sg-gen-manifesto-cinematic-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: clamp(0.35rem, 1vw, 0.75rem);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

body[data-sg-render-mode="generated"] .sg-gen-manifesto-cap {
  margin-top: 0.75rem;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sg-muted, #6b7280);
}

body[data-sg-render-mode="generated"] .sg-gen-editorial-split--story .sg-gen-editorial-split-grid,
body[data-sg-render-mode="generated"] .sg-gen-journal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

body[data-sg-render-mode="generated"] .sg-gen-editorial-visual img,
body[data-sg-render-mode="generated"] .sg-gen-journal-visual img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--sg-radius-md, 16px);
}

body[data-sg-render-mode="generated"] .sg-gen-editorial-cap,
body[data-sg-render-mode="generated"] .sg-gen-journal-cap {
  margin-top: 0.65rem;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sg-muted, #6b7280);
}

body[data-sg-render-mode="generated"] .sg-gen-link-editorial {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--sg-ink, #111);
  border-bottom: 1px solid currentColor;
}

body[data-sg-render-mode="generated"] .sg-gen-journal {
  padding: clamp(2.5rem, 8vw, 5rem) 0;
}

body[data-sg-render-mode="generated"] .sg-gen-journal-title {
  font-family: var(--sg-font-display, Georgia, serif);
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
}

body[data-sg-render-mode="generated"] .sg-gen-atelier {
  padding: clamp(2rem, 7vw, 4.5rem) 0;
}

body[data-sg-render-mode="generated"] .sg-gen-atelier-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}

body[data-sg-render-mode="generated"] .sg-gen-atelier-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--sg-border, rgba(0, 0, 0, 0.08));
}

body[data-sg-render-mode="generated"] .sg-gen-atelier-n {
  font-family: var(--sg-font-display, Georgia, serif);
  font-size: 1.25rem;
  color: var(--sg-muted, #6b7280);
}

body[data-sg-render-mode="generated"] .sg-gen-atelier-t {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
}

body[data-sg-render-mode="generated"] .sg-gen-hero--editorial-split .sg-gen-hero-title {
  font-family: var(--sg-font-display, Georgia, serif);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

/* Fold ownership — first viewport is the page identity */
body[data-sg-render-mode="generated"][data-sg-experience="editorial_fashion"] .sg-gen-node[data-sg-blend="fold_open"],
body[data-sg-render-mode="generated"][data-sg-experience="quiet_luxury"] .sg-gen-node[data-sg-blend="fold_open"] {
  margin-bottom: calc(var(--sg-section-gap, 4rem) * 0.65);
}

body[data-sg-render-mode="generated"] .sg-gen-node--hero-editorial-split.sg-gen-node--focal,
body[data-sg-render-mode="generated"] .sg-gen-node--hero-cinematic-glass.sg-gen-node--focal,
body[data-sg-render-mode="generated"] .sg-gen-page > .sg-gen-node--focal:first-child {
  min-height: var(--sg-hero-min-height, min(96vh, 920px));
}

body[data-sg-render-mode="generated"] .sg-gen-page > .sg-gen-node--focal:first-child .sg-gen-hero--editorial-split,
body[data-sg-render-mode="generated"] .sg-gen-page > .sg-gen-node--focal:first-child .sg-gen-hero--cinematic-glass {
  min-height: inherit;
}

body[data-sg-render-mode="generated"][data-sg-experience="editorial_fashion"] .sg-gen-hero--editorial-split,
body[data-sg-render-mode="generated"][data-sg-experience="quiet_luxury"] .sg-gen-hero--editorial-split {
  min-height: var(--sg-hero-min-height, min(96vh, 920px));
  display: flex;
  align-items: center;
}

body[data-sg-render-mode="generated"] .sg-gen-node--focal .sg-gen-hero--editorial-split {
  width: 100%;
}

body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-blend="editorial_flow"] + .sg-gen-node[data-sg-blend="editorial_flow"] {
  margin-top: calc(var(--sg-section-gap-tight, 2rem) * -0.35);
}

body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-blend="commerce_whisper"] {
  padding-top: clamp(1rem, 3vw, 2rem);
}

body[data-sg-render-mode="generated"] .sg-gen-reels--editorial {
  padding: clamp(3rem, 9vw, 6rem) 0;
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--sg-page-bg, #faf9f7) 92%, var(--sg-ink, #111) 8%) 100%);
}

body[data-sg-render-mode="generated"] .sg-gen-reels--editorial .tv-eyebrow,
body[data-sg-render-mode="generated"] .sg-gen-reels--editorial .tv-h2 {
  font-family: var(--sg-font-display, Georgia, serif);
  letter-spacing: -0.02em;
}

body[data-sg-render-mode="generated"] .sg-gen-reels--editorial .tv-h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 500;
}

body[data-sg-render-mode="generated"] .sg-gen-reels--editorial .tv-lead {
  max-width: 36rem;
  color: var(--sg-muted, #6b7280);
  font-size: 1.0625rem;
}

/* Design DNA — product card intelligence */
body[data-sg-render-mode="generated"] .sg-gen-product-card--tech {
  border: 1px solid color-mix(in srgb, var(--sg-accent, #00d4ff) 35%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--sg-accent, #00d4ff) 12%, transparent);
}

body[data-sg-render-mode="generated"] .sg-gen-product-card--tech.sg-gen-product-card--hover-glow_border:hover {
  box-shadow: 0 12px 40px color-mix(in srgb, var(--sg-accent, #00d4ff) 28%, transparent);
}

body[data-sg-render-mode="generated"] .sg-gen-product-card--glow .sg-gen-product-card__shine {
  opacity: 0.45;
  background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--sg-accent, #f4a8c1) 40%, transparent), transparent 55%);
}

body[data-sg-render-mode="generated"] .sg-gen-product-card--minimal .sg-gen-product-card__overlay {
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.55) 100%);
}

body[data-sg-render-mode="generated"] .sg-gen-product-card--editorial .sg-gen-product-card__title {
  font-family: var(--sg-font-display, Georgia, serif);
  font-weight: 500;
  letter-spacing: -0.02em;
}

body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-blend="editorial_flow"] + .sg-gen-node[data-sg-blend="paper_tone"],
body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-blend="fold_open"] + .sg-gen-node[data-sg-blend="editorial_flow"] {
  margin-top: calc(var(--sg-section-gap, 4rem) * -0.08);
}

@media (max-width: 768px) {
  body[data-sg-render-mode="generated"] .sg-gen-editorial-split--story .sg-gen-editorial-split-grid,
  body[data-sg-render-mode="generated"] .sg-gen-journal-grid {
    grid-template-columns: 1fr;
  }
}

/* Global mobile cohesion — device-safe defaults (SgMobileCohesionEngine v1) */
@media (max-width: 767px) {
  body[data-sg-render-mode="generated"] .sg-generated-root,
  body[data-sg-render-mode="generated"] .sg-gen-page {
    overflow-x: clip;
    max-width: 100%;
  }

  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-overflow-guard="1"] .sg-gen-product-grid,
  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-component^="catalog."] .sg-gen-product-grid {
    min-width: 0;
    width: 100%;
  }

  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-hero-mobile] .sg-gen-hero-grid,
  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-hero-mobile] .sg-gen-hero-grid--editorial,
  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-hero-mobile] .sg-gen-hero-grid--split {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
  }

  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-hero-mobile] .sg-gen-hero-actions .sg-gen-btn,
  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-component^="cta."]:not([data-sg-component="cta.footer_editorial"]) .sg-gen-btn {
    min-height: 44px;
    width: 100%;
    max-width: 22rem;
    justify-content: center;
  }

  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-mobile-stack="1"] .sg-gen-editorial-split-grid,
  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-mobile-stack="1"] .sg-gen-manifesto-inner {
    grid-template-columns: 1fr;
    gap: 1.35rem;
  }

  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-mobile-swipe="1"] .sg-gen-testimonials-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: var(--sg-proof-gap-mobile, 12px);
    padding-bottom: 0.35rem;
    margin-inline: calc(var(--sg-container-pad, 1rem) * -0.15);
    padding-inline: calc(var(--sg-container-pad, 1rem) * 0.15);
  }

  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-mobile-swipe="1"] .sg-gen-testimonials-grid::-webkit-scrollbar {
    display: none;
  }

  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-mobile-swipe="1"] .sg-gen-testimonial-card {
    flex: 0 0 min(82vw, 18rem);
    scroll-snap-align: start;
  }

  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-component^="catalog."] .sg-gen-product-card__link,
  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-component^="catalog."] .sg-gen-product-card a {
    min-height: 44px;
  }

  body[data-sg-render-mode="generated"] .sg-gen-h1,
  body[data-sg-render-mode="generated"] .sg-gen-h2 {
    text-wrap: balance;
  }

  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-overlay-style="cinematic_dark"] .sg-gen-hero-stage-veil,
  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-color-mood="noir"] .sg-gen-hero-stage-veil {
    background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.72));
  }

  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-overlay-style="soft_veil"] .sg-gen-hero-stage-veil,
  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-color-mood="cream"] .sg-gen-hero-stage-veil {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(0,0,0,0.35));
  }

  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-overlay-style="gold_veil"] .sg-gen-hero-stage-veil {
    background: linear-gradient(135deg, rgba(201,169,98,0.18), rgba(0,0,0,0.55));
  }

  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-overlay-style="neon_void"] .sg-gen-hero-stage-veil {
    background: radial-gradient(circle at 30% 20%, rgba(0,255,255,0.12), rgba(0,0,0,0.78));
  }

  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-overlay-style="heritage_veil"] .sg-gen-hero-stage-veil {
    background:
      linear-gradient(135deg, rgba(200,134,10,0.22) 0%, rgba(18,12,8,0.08) 40%, rgba(10,16,32,0.55) 100%),
      linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.62) 100%);
  }

  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-overlay-style="velvet_veil"] .sg-gen-hero-stage-veil {
    background: linear-gradient(165deg, rgba(20,14,18,0.12) 0%, rgba(92,61,74,0.55) 100%);
  }

  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-overlay-style="paper_veil"] .sg-gen-hero-stage-veil {
    background: linear-gradient(180deg, rgba(255,252,248,0.06) 0%, rgba(0,0,0,0.42) 100%);
  }

  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-overlay-style="tech_gradient"] .sg-gen-hero-stage-veil {
    background: linear-gradient(160deg, rgba(91,157,255,0.18) 0%, rgba(8,10,14,0.72) 100%);
  }

  body[data-sg-render-mode="generated"] .sg-gen-hero-stage-grain {
    opacity: 0.35;
    mix-blend-mode: overlay;
  }

  body[data-sg-render-mode="generated"] .sg-gen-hero--director .sg-gen-hero-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.45) 100%);
  }

  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-gap-scale] {
    margin-bottom: calc(var(--sg-section-gap, 3rem) * var(--sg-gap-scale, 1));
  }

  body[data-sg-render-mode="generated"] .sg-gen-btn--solid-gold {
    background: var(--sg-accent);
    color: #111;
    font-weight: 650;
    border: none;
  }

  body[data-sg-render-mode="generated"] .sg-gen-btn--ghost-warm {
    background: transparent;
    color: var(--sg-ink);
    border: 1px solid color-mix(in srgb, var(--sg-accent) 45%, transparent);
  }

  body[data-sg-render-mode="generated"] .sg-gen-kicker {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.72rem;
  }

  body[data-sg-render-mode="generated"] .sg-gen-hero-title {
    text-wrap: balance;
    line-height: 1.05;
  }

  body[data-sg-render-mode="generated"] .sg-gen-hero-lede {
    max-width: 42ch;
    opacity: 0.92;
  }

  body[data-sg-render-mode="generated"] .sg-gen-hero--image-first .sg-gen-hero-inner {
    align-items: flex-end;
    min-height: var(--sg-hero-min-height, min(92vh, 900px));
    display: flex;
  }

  body[data-sg-render-mode="generated"] .sg-gen-hero--image-first .sg-gen-hero-copy {
    margin-top: auto;
    padding-bottom: clamp(2rem, 6vw, 4rem);
    max-width: min(42rem, 92vw);
  }

  body[data-sg-render-mode="generated"] .sg-gen-hero--image-first .sg-gen-hero-stage {
    position: absolute;
    inset: 0;
  }

  body[data-sg-render-mode="generated"] .sg-gen-btn--outline_tech {
    background: transparent;
    border: 1px solid color-mix(in srgb, var(--sg-accent) 55%, transparent);
    color: var(--sg-ink);
  }

  body[data-sg-render-mode="generated"] .sg-gen-btn--editorial_link {
    background: none;
    border: none;
    color: var(--sg-ink);
    text-decoration: underline;
    text-underline-offset: 0.22em;
    padding: 0.35rem 0;
  }

  body[data-sg-render-mode="generated"] .sg-gen-sample-label {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.62;
    margin-top: 0.75rem;
  }

  body[data-sg-render-mode="generated"] .sg-gen-node[data-sg-surface="editorial_light"] {
    background: color-mix(in srgb, var(--sg-ink) 4%, var(--sg-page-bg));
  }

  /* —— Section headers: centered premium (not clipped in corners) —— */
  body[data-sg-render-mode="generated"] .sg-gen-section-head,
  body[data-sg-render-mode="generated"] .sg-gen-section-head--tight,
  body[data-sg-render-mode="generated"] .sg-gen-section-head--editorial {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: min(42rem, 100%);
    padding-inline: clamp(1.15rem, 5vw, 2rem);
    box-sizing: border-box;
  }

  body[data-sg-render-mode="generated"] .sg-gen-section-head .sg-gen-kicker,
  body[data-sg-render-mode="generated"] .sg-gen-section-head .sg-gen-h2,
  body[data-sg-render-mode="generated"] .sg-gen-section-head h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    text-wrap: balance;
  }

  /* —— Mobile hero: no clipped headlines or hidden CTA text —— */
  @media (max-width: 767px) {
    body[data-sg-render-mode="generated"] .sg-gen-node--focal,
    body[data-sg-render-mode="generated"] .sg-gen-hero--director,
    body[data-sg-render-mode="generated"] .sg-gen-hero--immersive {
      overflow: visible;
    }

    body[data-sg-render-mode="generated"] .sg-gen-hero--director .sg-gen-hero-inner,
    body[data-sg-render-mode="generated"] .sg-gen-hero--immersive .sg-gen-hero-inner,
    body[data-sg-render-mode="generated"] .sg-gen-hero--image-first .sg-gen-hero-inner {
      padding-inline: clamp(1.15rem, 5vw, 1.75rem);
      box-sizing: border-box;
    }

    body[data-sg-render-mode="generated"] .sg-gen-hero--director .sg-gen-hero-copy,
    body[data-sg-render-mode="generated"] .sg-gen-hero--immersive .sg-gen-hero-copy,
    body[data-sg-render-mode="generated"] .sg-gen-hero--image-first .sg-gen-hero-copy,
    body[data-sg-render-mode="generated"] .sg-gen-hero--editorial-split .sg-gen-hero-copy {
      text-align: center;
      margin-inline: auto;
      max-width: 100%;
      padding-inline: 0;
      box-sizing: border-box;
    }

    body[data-sg-render-mode="generated"] .sg-gen-hero-title {
      text-wrap: balance;
      overflow-wrap: break-word;
      word-break: normal;
      hyphens: none;
      max-width: 100%;
    }

    body[data-sg-render-mode="generated"] .sg-gen-hero-lede,
    body[data-sg-render-mode="generated"] .sg-gen-hero-trust {
      text-align: center;
      margin-inline: auto;
      max-width: 36ch;
    }

    body[data-sg-render-mode="generated"] .sg-gen-hero-actions {
      justify-content: center;
      align-items: center;
      width: 100%;
      gap: 0.75rem;
    }

    body[data-sg-render-mode="generated"] .sg-gen-hero-actions .sg-gen-btn {
      min-width: min(100%, 280px);
      justify-content: center;
      text-align: center;
    }

    body[data-sg-surface-dark="1"] .sg-gen-hero-actions .sg-gen-btn--primary,
    body[data-sg-surface-dark="1"] .sg-gen-hero-actions .sg-gen-btn--solid_gold,
    body[data-sg-surface-dark="1"] .sg-gen-hero-actions .sg-gen-btn--luxury {
      color: #111111;
      background: var(--sg-accent);
      border: 1px solid color-mix(in srgb, var(--sg-accent) 80%, #fff);
    }

    body[data-sg-surface-dark="1"] .sg-gen-hero-actions .sg-gen-btn--ghost,
    body[data-sg-surface-dark="1"] .sg-gen-hero-actions .sg-gen-btn--ghost-warm {
      color: var(--sg-ink);
      background: color-mix(in srgb, var(--sg-ink) 8%, transparent);
      border: 1px solid color-mix(in srgb, var(--sg-ink) 35%, transparent);
    }
  }
}

/* ═══ Global Layout Polish Engine v1 ═══════════════════════════════════════════ */

body[data-sg-layout-polish="1"] .sg-generated-root,
body[data-sg-layout-polish="1"] .sg-gen-page {
  --sg-safe-inline: clamp(1.15rem, 5vw, 2rem);
  --sg-safe-block: clamp(1rem, 4vw, 1.75rem);
  --sg-copy-max: min(42rem, 100%);
  --sg-prose-max-layout: min(38rem, 100%);
  --sg-headline-max: min(22ch, 100%);
  --sg-hero-copy-gap: clamp(0.75rem, 2vw, 1.25rem);
  --sg-cta-stack-gap: 0.75rem;
  --sg-btn-min-height: 48px;
  --sg-btn-min-width-mobile: min(100%, 280px);
}

body[data-sg-layout-polish="1"] .sg-generated-root {
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

/* Hero safe frame — copy and CTAs never touch screen edges */
[data-sg-safe-frame="1"] .sg-gen-hero-inner,
[data-sg-safe-frame="1"] .sg-gen-hero-runway-inner,
[data-sg-safe-frame="1"] .sg-gen-hero-promo-inner,
[data-sg-safe-frame="1"] .sg-gen-hero-grid,
[data-sg-safe-frame="1"] .sg-gen-hero-grid--editorial,
[data-sg-safe-frame="1"] .sg-gen-hero-grid--split {
  padding-inline: max(var(--sg-safe-inline, clamp(1.15rem, 5vw, 2rem)), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  padding-top: max(var(--sg-safe-block, 1rem), env(safe-area-inset-top, 0px));
  box-sizing: border-box;
  max-width: 100%;
}

[data-sg-safe-frame="1"] .sg-gen-hero-copy,
[data-sg-safe-frame="1"] .sg-gen-hero-runway-copy,
[data-sg-safe-frame="1"] .sg-gen-hero-promo-copy {
  max-width: var(--sg-copy-max, min(42rem, 100%));
  margin-inline: auto;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

[data-sg-safe-frame="1"] .sg-gen-hero-title,
[data-sg-safe-frame="1"] .sg-gen-hero-title--runway {
  max-width: var(--sg-headline-max, min(22ch, 100%));
  margin-inline: auto;
  line-height: 1.06;
}

[data-sg-safe-frame="1"] .sg-gen-hero-lede,
[data-sg-safe-frame="1"] .sg-gen-hero-trust,
[data-sg-safe-frame="1"] .sg-gen-prose {
  max-width: var(--sg-prose-max-layout, min(38rem, 100%));
  margin-inline: auto;
  text-align: center;
}

[data-sg-safe-frame="1"] .sg-gen-hero-actions,
[data-sg-layout-polish="1"] .sg-gen-node[data-sg-component^="cta."]:not([data-sg-component="cta.footer_editorial"]) .sg-gen-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--sg-cta-stack-gap, 0.75rem);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--sg-safe-inline, clamp(1.15rem, 5vw, 2rem));
  box-sizing: border-box;
}

/* Section titles — one alignment system */
[data-sg-layout-polish="1"][data-sg-section-align="center"] .sg-gen-section-head,
[data-sg-layout-polish="1"][data-sg-section-align="center"] .sg-gen-h2,
[data-sg-layout-polish="1"][data-sg-section-align="center"] h2.sg-gen-h2 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  text-wrap: balance;
}

[data-sg-layout-polish="1"] .sg-gen-section-head,
[data-sg-layout-polish="1"] .sg-gen-section-head--tight,
[data-sg-layout-polish="1"] .sg-gen-section-head--editorial {
  display: block;
  text-align: center;
  margin-inline: auto;
  max-width: var(--sg-copy-max, min(42rem, 100%));
  padding-inline: var(--sg-safe-inline, clamp(1.15rem, 5vw, 2rem));
  box-sizing: border-box;
}

[data-sg-layout-polish="1"] .sg-gen-prose,
[data-sg-layout-polish="1"] .sg-gen-prose--lede,
[data-sg-layout-polish="1"] .sg-gen-section-head + .sg-gen-prose {
  max-width: var(--sg-prose-max-layout, min(38rem, 100%));
  margin-inline: auto;
  text-align: center;
  text-wrap: pretty;
}

[data-sg-layout-polish="1"] .sg-gen-container {
  padding-inline: var(--sg-safe-inline, var(--sg-container-pad, clamp(1rem, 4vw, 2rem)));
  box-sizing: border-box;
}

/* Automatic button contrast */
[data-sg-btn-contrast="accent_on_dark"] .sg-gen-btn--primary,
[data-sg-btn-contrast="accent_on_dark"] .sg-gen-btn--solid_gold,
[data-sg-btn-contrast="accent_on_dark"] .sg-gen-btn--solid-gold,
[data-sg-btn-contrast="accent_on_dark"] .sg-gen-btn--luxury,
[data-sg-btn-contrast="accent_on_dark"] .sg-gen-btn--solid_luxury {
  color: #111111 !important;
  background: var(--sg-accent) !important;
  border: 1px solid color-mix(in srgb, var(--sg-accent) 82%, #ffffff) !important;
}

[data-sg-btn-contrast="accent_on_dark"] .sg-gen-btn--ghost,
[data-sg-btn-contrast="accent_on_dark"] .sg-gen-btn--ghost-warm,
[data-sg-btn-contrast="accent_on_dark"] .sg-gen-btn--ghost_editorial {
  color: var(--sg-ink, #f5f5f4) !important;
  background: color-mix(in srgb, var(--sg-ink, #fff) 10%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--sg-ink, #fff) 38%, transparent) !important;
}

[data-sg-btn-contrast="dark_on_accent"] .sg-gen-btn--primary,
[data-sg-btn-contrast="dark_on_accent"] .sg-gen-btn--solid_gold,
[data-sg-btn-contrast="dark_on_accent"] .sg-gen-btn--solid-gold,
[data-sg-btn-contrast="dark_on_accent"] .sg-gen-btn--luxury {
  color: #111111 !important;
  background: var(--sg-accent) !important;
  border: 1px solid color-mix(in srgb, var(--sg-accent) 75%, #111111) !important;
}

[data-sg-btn-contrast="light_on_accent"] .sg-gen-btn--primary,
[data-sg-btn-contrast="light_on_accent"] .sg-gen-btn--solid_luxury,
[data-sg-btn-contrast="light_on_accent"] .sg-gen-btn--solid_glow {
  color: #ffffff !important;
  background: color-mix(in srgb, var(--sg-accent) 88%, #111111) !important;
  border: 1px solid color-mix(in srgb, var(--sg-accent) 60%, #000000) !important;
}

[data-sg-layout-polish="1"] .sg-gen-btn,
[data-sg-layout-polish="1"] .sg-gen-hero-actions .sg-gen-btn {
  min-height: var(--sg-btn-min-height, 48px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  [data-sg-layout-polish="1"] .sg-gen-node--focal,
  [data-sg-safe-frame="1"] {
    overflow: visible;
  }

  [data-sg-safe-frame="1"] .sg-gen-hero-inner,
  [data-sg-safe-frame="1"] .sg-gen-hero-runway-inner {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  }

  [data-sg-layout-polish="1"] .sg-gen-hero-actions .sg-gen-btn,
  [data-sg-layout-polish="1"] .sg-gen-node[data-sg-component^="cta."] .sg-gen-btn {
    width: var(--sg-btn-min-width-mobile, min(100%, 280px));
    max-width: 100%;
  }

  [data-sg-layout-polish="1"] .sg-gen-node {
    margin-bottom: var(--sg-section-gap-mobile, clamp(2.25rem, 6vw, 3.5rem));
  }

  [data-sg-layout-polish="1"] .sg-gen-kicker,
  [data-sg-layout-polish="1"] .sg-gen-h2,
  [data-sg-layout-polish="1"] .sg-gen-hero-title {
    padding-inline: 0;
    max-width: 100%;
  }
}

/* ═══ Visual Balance + Review Composition + Image Fallback Surfaces ═══════════ */

[data-sg-safe-frame="1"] .sg-gen-hero-balance {
  position: relative;
  z-index: 3;
  margin-top: clamp(1rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-inline: var(--sg-safe-inline, clamp(1.15rem, 5vw, 2rem));
}

.sg-gen-hero-balance-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.sg-gen-hero-trust-badge {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border: 1px solid color-mix(in srgb, var(--sg-ink) 20%, transparent);
  border-radius: 999px;
}

.sg-gen-hero-balance-product {
  display: grid;
  gap: 0.5rem;
  max-width: 11rem;
  text-decoration: none;
  color: inherit;
}

.sg-gen-hero-balance-product--float {
  position: absolute;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: 1.5rem;
  max-width: 9rem;
}

.sg-gen-hero-balance-product img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--sg-radius-md, 16px);
  box-shadow: 0 18px 48px rgba(0,0,0,0.28);
}

.sg-gen-hero-balance-stats {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 0;
}

.sg-gen-hero-balance-stats dt {
  font-size: 1.35rem;
  font-weight: 650;
}

.sg-gen-hero-balance-stats dd {
  margin: 0;
  font-size: 0.78rem;
  opacity: 0.8;
}

.sg-gen-hero-scroll-indicator span {
  display: block;
  width: 1px;
  height: 2.5rem;
  margin-inline: auto;
  background: color-mix(in srgb, var(--sg-ink) 45%, transparent);
  animation: sg-gen-scroll-pulse 1.8s ease-in-out infinite;
}

@keyframes sg-gen-scroll-pulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.85); }
  50% { opacity: 1; transform: scaleY(1); }
}

.sg-gen-img--fallback-surface {
  background-size: cover;
  background-position: center;
}

.sg-gen-proof--balanced {
  margin-block: var(--sg-section-gap, clamp(2.5rem, 6vw, 4rem));
  overflow: visible;
}

.sg-gen-testimonials-grid--carousel {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 1rem;
  padding-bottom: 0.35rem;
}

.sg-gen-testimonials-grid--carousel .sg-gen-testimonial-card {
  flex: 0 0 min(82vw, 18rem);
  scroll-snap-align: start;
}

.sg-gen-testimonials-grid--single {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 36rem;
  margin-inline: auto;
}

.sg-gen-testimonials-grid--floating .sg-gen-testimonial-card--floating {
  max-width: 34rem;
  margin-inline: auto;
  box-shadow: 0 24px 64px color-mix(in srgb, var(--sg-accent) 16%, transparent);
}

.sg-gen-testimonials-grid--editorial {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

@media (max-width: 767px) {
  .sg-gen-hero-balance-product--float {
    position: static;
    margin-inline: auto;
  }

  [data-sg-proof-visible="1"] .sg-gen-proof {
    display: block;
    visibility: visible;
    opacity: 1;
  }
}
