/* The homepage hero uses a wider frame than the rest of the site. */
body.redesign .market-hero {
  --hero-max: 1704px;
  --hero-panel-radius: 18px;
  display: grid;
  min-block-size: calc(100vh - var(--site-header-height));
  min-block-size: calc(100dvh - var(--site-header-height));
  padding-block: clamp(6px, .8vw, 12px) clamp(12px, 1vw, 18px);
  padding-inline: max(clamp(12px, 1.2vw, 22px), calc((100% - var(--hero-max)) / 2));
}

.market-hero__inner {
  --hero-stage: #0b1514;
  --hero-text: #f5fff8;
  --hero-muted: #ccddd4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(9px, 1vw, 16px);
  overflow: hidden;
  border-radius: var(--hero-panel-radius);
  background: var(--hero-stage);
  color: var(--hero-text);
}

.market-hero + .client-carousel {
  margin-block-start: clamp(32px, 4vw, 64px);
}

.market-hero__copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: clamp(12px, 1.15vw, 21px);
  padding: clamp(32px, 3.5vw, 66px) clamp(20px, calc((100vw - 1280px) * .13), 88px);
}

body.redesign .market-hero__copy h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.6rem, 4.65vw, 4.65rem);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.055em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.market-hero__description {
  max-width: 44ch;
  margin: 0;
  color: var(--hero-muted);
  font-size: clamp(1rem, 1.35vw, 1.1875rem);
}
.hero-goals {
  color-scheme: dark;
  width: min(100%, 32rem);
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.hero-goals legend {
  padding: 0;
  margin-block-end: 11px;
  font: 650 clamp(1rem, 1.2vw, 1.1875rem)/1.35 var(--font-heading);
}

.hero-goals__choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.hero-goals__choice {
  display: flex;
  min-block-size: 46px;
  align-items: center;
  gap: 9px;
  padding: 8px clamp(8px, 1vw, 12px);
  border: 1px solid #728b7d;
  border-radius: 10px;
  background: #162620;
  color: var(--hero-text);
  font-size: .875rem;
  font-weight: 550;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.hero-goals__choice:hover {
  border-color: #b0ceba;
  background: #1e3429;
}
.hero-goals__choice:has(input:checked) {
  border-color: #a1efbb;
  background: #284a39;
}

.hero-goals__choice input {
  flex: none;
  inline-size: 17px;
  block-size: 17px;
  margin: 0;
  accent-color: #a1efbb;
  cursor: inherit;
}

.hero-goals__choice span { min-width: 0; overflow-wrap: anywhere; }
body.redesign .market-hero__copy .market-hero__action {
  min-height: 48px;
  background: var(--hero-text);
  color: var(--hero-stage);
}

body.redesign .market-hero__copy .market-hero__action:hover { background: #d8f6e3; }

body.redesign .market-hero__copy :is(input, .market-hero__action):focus-visible {
  outline: 2px solid var(--hero-text);
  outline-offset: 3px;
}

.market-hero__art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(422px, 33.5vw, 640px);
  background: var(--hero-stage) url('/assets/emerald-fold-poster.webp?v=flat-stage') center / cover no-repeat;
}

.market-hero__art canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.market-hero__motion {
  position: absolute;
  z-index: 1;
  inset-inline-end: 14px;
  inset-block-end: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #bcebd34d;
  border-radius: 50%;
  background: #081a14cc;
  color: #edfff5;
  cursor: pointer;
}

.market-hero__motion[hidden] { display: none; }
.market-hero__motion:hover { background: #234c3d; }
body.redesign .market-hero__motion:focus-visible { outline: 2px solid #edfff5; outline-offset: 3px; }
.market-hero__motion span {
  box-sizing: border-box;
  width: 10px;
  height: 13px;
  border-inline: 2px solid currentColor;
}

.market-hero__motion[aria-pressed="true"] span {
  width: 11px;
  height: 14px;
  margin-inline-start: 2px;
  border: 0;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

@media (max-width: 720px) {
  body.redesign .market-hero { --hero-panel-radius: 14px; }
  .market-hero__inner { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .market-hero__art { min-block-size: clamp(178px, 57vw, 340px); }
  .market-hero__copy { padding-block: 28px 34px; padding-inline: clamp(16px, 4.5vw, 30px); }
  body.redesign .market-hero__copy h1 { font-size: clamp(2.4rem, 7.6vw, 3.8rem); }
  body.redesign .market-hero__copy .market-hero__action { min-height: 44px; }
}
