market-split-hero {
  --split-hero-muted: color-mix(in srgb, var(--background), var(--text) 62%);
  --media-radius: 10px;
  position: relative;
  width: 100%;
  padding: 30px;
  display: grid;
  grid-template-columns: 1.75fr 1fr;
  min-height: 550px;
  max-height: calc(100vh - var(--topbar-height));
  height: calc(100vh - var(--topbar-height));
  align-items: center;
}

market-split-hero[flipped] {
  direction: rtl;
}

@media (max-width: 1200px) {
  market-split-hero {
    display: flex;
    flex-direction: column;
    height: auto;
    padding: 15px;
  }
}

market-split-hero [media] {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  width: 100%;
  height: 100%;
}

market-split-hero [media]:empty {
  display: none;
}

market-split-hero [media] figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--media-radius);
  background: color-mix(in srgb, var(--background), var(--text) 8%);
}

@media (max-width: 1200px) {
  market-split-hero [media] figure {
    min-height: 420px;
    max-height: 420px;
  }
}

@media (max-width: 768px) {
  market-split-hero [media] figure {
    min-height: 320px;
    max-height: 320px;
  }
}

market-split-hero [media] figure :is(img, video) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

market-split-hero [media] figure:only-child {
  grid-column: span 2;
}

/* ---------------- CONTENT ---------------- */
market-split-hero [content] {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  max-width: 60rem;
  width: 100%;
  margin: 0 auto;
  padding: 15px;
}

@media (max-width: 768px) {
  market-split-hero [content] {
    padding: 30px 15px;
  }
}

market-split-hero [kicker] {
  margin: 0;
  font-size: clamp(0.75rem, 1vw, 0.875rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--split-hero-muted);
}

market-split-hero [kicker]:empty {
  display: none;
}

market-split-hero [headline] {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--text);
}

market-split-hero [headline]:empty {
  display: none;
}

market-split-hero [copy] {
  margin: 0;
  max-width: 44rem;
  font-size: 16px;
  line-height: 1.35;
  color: color-mix(in srgb, var(--background), var(--text) 82%);
}

market-split-hero [copy]:empty {
  display: none;
}

market-split-hero [rating] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

market-split-hero [rating]:empty {
  display: none;
}

market-split-hero [stars] {
  letter-spacing: 0.1em;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1;
  color: var(--text);
}

market-split-hero [count] {
  font-size: 0.875rem;
  color: var(--split-hero-muted);
}

/* ---------------- CTA ---------------- */
market-split-hero [cta] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 1rem 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--text);
  color: var(--background);
  transition: all ease 300ms;
  cursor: pointer;
}

market-split-hero [cta]:hover {
  background: color-mix(in srgb, var(--text), var(--background) 18%);
}

market-split-hero [cta]:empty {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  market-split-hero [cta] {
    transition: none;
  }
}
