/* The sculpture is a distinct object, never a darkened backdrop behind copy. */
body[data-page="home"] .showcases {
  background: var(--surface-0);
}

body[data-page="home"] .showcases__stories {
  display: block;
}

body[data-page="home"] .showcase,
body[data-page="home"] .showcase:first-child,
body[data-page="home"] .showcase:nth-child(n) {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  min-height: 510px;
  border-top: 1px solid var(--border);
  background: var(--surface-1);
  overflow: hidden;
}

body[data-page="home"] .showcase:nth-child(even) {
  background: var(--surface-2);
}

body[data-page="home"] .showcase__media--sculpture,
body[data-page="home"] .showcase--finance .showcase__media--sculpture {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 100%;
  height: 510px;
  aspect-ratio: auto;
  background: none;
  isolation: isolate;
}

body[data-page="home"] .showcase__media--sculpture::after {
  display: none;
}

body[data-page="home"] .showcase__media--sculpture img {
  width: min(82%, 540px);
  height: min(88%, 460px);
  min-height: 0;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: none;
  transform: none;
  transition: none;
}

body[data-page="home"] .showcase:hover .showcase__media--sculpture img {
  filter: none;
  transform: none;
}

body[data-page="home"] .showcase__content,
body[data-page="home"] .showcase--finance .showcase__content,
body[data-page="home"] .showcase--companies .showcase__content,
body[data-page="home"] .showcase--paperwork .showcase__content,
body[data-page="home"] .showcase--commerce .showcase__content {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: min(100%, 690px);
  min-height: 0;
  margin: 0 0 0 auto;
  padding: 60px clamp(32px, 5vw, 88px);
  background: none;
}

body[data-page="home"] .showcase__content h2,
body[data-page="home"] .showcase:nth-child(n+3) .showcase__content h2 {
  max-width: 14ch;
  margin: 16px 0 0;
  font-size: clamp(42px, 4.2vw, 64px);
  font-weight: 620;
  line-height: 1.03;
  letter-spacing: -.045em;
  text-transform: none;
}

body[data-page="home"] .showcase__content > p:not(.showcase__type):not(.showcase__facts) {
  max-width: 52ch;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.54;
}

body[data-page="home"] .showcase__facts {
  max-width: 52ch;
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  text-transform: none;
}

body[data-page="home"] .showcase__content > a,
body[data-page="home"] .showcase__actions a {
  min-height: 44px;
  font-size: 15px;
  font-weight: 650;
  text-transform: none;
}

body[data-page="home"] .showcase__content > a,
body[data-page="home"] .showcase__actions {
  margin-top: 30px;
}

.mobile-quick-start { display: none; }

@media (max-width: 760px) {
  :root { --container-wide: calc(100% - 40px); --container-content: calc(100% - 40px); }

  body[data-page="home"] .split-hero {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: clamp(175px, 23svh, 205px) auto;
    min-height: 0;
    padding-top: var(--header-height);
    overflow: visible;
  }

  body[data-page="home"] .hero-world {
    grid-row: 1;
    height: 100%;
    min-height: 0;
  }

  body[data-page="home"] .hero-world .scene-background,
  body[data-page="home"] .hero-world .scene-foreground {
    object-fit: cover;
    object-position: center 40%;
  }

  body[data-page="home"] .persona-entry,
  body[data-page="home"] .persona-entry--right {
    right: auto;
    bottom: 10px;
    left: 12px;
    justify-items: start;
    text-align: left;
  }

  body[data-page="home"] .persona-entry strong {
    font-size: 21px;
    line-height: 1;
  }

  body[data-page="home"] .persona-role,
  body[data-page="home"] .persona-link { display: none; }

  body[data-page="home"] .hero-message {
    position: relative;
    top: auto;
    left: auto;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding: 25px 20px 24px;
    text-align: left;
    text-shadow: none;
    background: var(--surface-0);
    transform: none;
    animation: none;
  }

  body[data-page="home"] .hero-message h1 {
    max-width: 100%;
    margin: 10px 0 14px;
    font-size: clamp(35px, 9.5vw, 43px);
    line-height: 1.02;
    text-wrap: pretty;
  }

  body[data-page="home"] .hero-lede {
    max-width: 42ch;
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.48;
    text-wrap: pretty;
  }

  body[data-page="home"] .funnel-hero-actions { margin-top: 18px; }
  body[data-page="home"] .funnel-hero-actions .funnel-secondary { display: none; }
  body[data-page="home"] .funnel-hero-actions .funnel-primary { min-height: 48px; }

  .mobile-quick-start {
    display: block;
    margin-top: 15px;
    padding-top: 17px;
    border-top: 1px solid var(--border-strong);
    text-align: left;
  }

  .mobile-quick-start > p {
    margin: 0 0 10px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 650;
  }

  .mobile-quick-start > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px 14px; }
  .mobile-quick-start button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    min-height: 48px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-strong);
    color: var(--text);
    background: none;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
  }
  .mobile-quick-start button span { color: var(--accent-hover); }
  .mobile-quick-start > a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 7px; color: var(--text-muted); font-size: 13px; }
  .mobile-quick-start > a span { color: var(--accent-hover); }
  .mobile-quick-start :focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

  body[data-page="home"] .cases-stage { padding: 56px 0 70px; }
  body[data-page="home"] .cases-grid { display: flex; flex-direction: column; gap: 0; width: var(--container-wide); }
  body[data-page="home"] .cases-intro { order: 0; width: 100%; padding: 0; }
  body[data-page="home"] .cases-intro h2 { margin: 0; font-size: clamp(36px, 9.3vw, 48px); line-height: 1.03; text-transform: none; }
  body[data-page="home"] .cases-intro > p:not(.cases-hint) { max-width: 46ch; margin: 16px 0 0; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
  body[data-page="home"] .cases-hint,
  body[data-page="home"] .monolith-scene { display: none; }

  body[data-page="home"] .monolith-index {
    order: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
    width: 100%;
    margin: 26px 0 0;
    padding: 0;
    overflow: visible;
    border-top: 1px solid var(--border-strong);
    scroll-snap-type: none;
  }

  body[data-page="home"] .monolith-index button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    color: var(--text-muted);
    background: none;
    text-align: left;
    scroll-snap-align: none;
  }

  body[data-page="home"] .monolith-index button span { flex: none; color: var(--accent-hover); font-size: 11px; }
  body[data-page="home"] .monolith-index button strong { min-width: 0; color: inherit; font-size: 14px; line-height: 1.2; white-space: normal; }
  body[data-page="home"] .monolith-index button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent-hover); }
  body[data-page="home"] .monolith-index button[aria-selected="true"] { background: none !important; }
  body[data-page="home"] .monolith-index button::before,
  body[data-page="home"] .monolith-index button::after { display: none; }

  body[data-page="home"] .case-detail {
    order: 2;
    width: 100%;
    margin: 28px 0 0;
    padding: 24px 0 0;
    border: 0;
    border-top: 1px solid var(--border-strong);
    background: none;
    scroll-margin-top: calc(var(--header-height) + 20px);
  }
  body[data-page="home"] .case-detail h3 { max-width: 19ch; margin: 8px 0 0; font-size: clamp(27px, 7vw, 34px); line-height: 1.1; text-transform: none; }
  body[data-page="home"] .case-detail > p:not(.case-number) { margin: 16px 0 0; color: var(--text-muted); font-size: 15px; line-height: 1.55; }
  body[data-page="home"] .case-detail-actions { display: flex; flex-wrap: wrap; gap: 9px 20px; margin-top: 24px; }
  body[data-page="home"] .case-detail-actions > a:first-child { display: inline-flex; align-items: center; justify-content: space-between; width: 100%; min-height: 50px; padding: 11px 15px; color: var(--text); background: var(--accent); text-decoration: none; }
  body[data-page="home"] .case-detail-actions > button,
  body[data-page="home"] .case-detail-actions > a:not(:first-child) { display: inline-flex; align-items: center; min-height: 44px; padding: 0; font-size: 13px; }

  body[data-page="home"] .showcases__intro { padding-top: 62px; padding-bottom: 35px; }
  body[data-page="home"] .showcases__intro h2 { font-size: clamp(42px, 10vw, 54px); line-height: 1.04; text-transform: none; }
  body[data-page="home"] .showcases__intro p { margin-top: 16px; font-size: 15px; line-height: 1.55; }
  body[data-page="home"] .showcases__stories { display: block; }
  body[data-page="home"] .showcase,
  body[data-page="home"] .showcase:first-child,
  body[data-page="home"] .showcase:nth-child(n) {
    display: flex;
    flex-direction: column;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--border);
  }
  body[data-page="home"] .showcase__media--sculpture,
  body[data-page="home"] .showcase--finance .showcase__media--sculpture {
    flex: none;
    width: 100%;
    height: clamp(220px, 58vw, 280px);
  }
  body[data-page="home"] .showcase__media--sculpture img { width: min(75%, 300px); height: 100%; min-height: 0; max-height: 100%; }
  body[data-page="home"] .showcase--finance .showcase__media--sculpture img,
  body[data-page="home"] .showcase--commerce .showcase__media--sculpture img { width: min(84%, 350px); }
  body[data-page="home"] .showcase__content,
  body[data-page="home"] .showcase--finance .showcase__content,
  body[data-page="home"] .showcase--companies .showcase__content,
  body[data-page="home"] .showcase--paperwork .showcase__content,
  body[data-page="home"] .showcase--commerce .showcase__content {
    align-self: stretch;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 14px 20px 44px;
  }
  body[data-page="home"] .showcase__content h2,
  body[data-page="home"] .showcase:nth-child(n+3) .showcase__content h2 { max-width: 17ch; margin-top: 10px; font-size: clamp(32px, 8.3vw, 41px); line-height: 1.08; }
  body[data-page="home"] .showcase__content > p:not(.showcase__type):not(.showcase__facts) { margin-top: 16px; font-size: 15px; line-height: 1.55; }
  body[data-page="home"] .showcase__facts { margin-top: 17px; font-size: 14px; }
  body[data-page="home"] .showcase__content > a,
  body[data-page="home"] .showcase__actions { margin-top: 22px; }

  body[data-page="home"] .evidence-stage,
  body[data-page="home"] .offer-stage,
  body[data-page="home"] .funnel-contact { padding-block: 66px; }
  body[data-page="home"] .evidence-stage h2,
  body[data-page="home"] .offer-stage h2,
  body[data-page="home"] .funnel-contact h2 { font-size: clamp(38px, 9vw, 49px); line-height: 1.05; text-transform: none; }
  body[data-page="home"] .evidence-stage__media img { max-height: 345px; width: auto; margin-inline: auto; object-fit: contain; }
  body[data-page="home"] .funnel-contact-form {
    gap: 25px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
  }
  body[data-page="home"] .funnel-contact-form label > span {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-size: 15px;
    font-weight: 620;
    line-height: 1.3;
    text-transform: none;
  }
  body[data-page="home"] .funnel-contact-form input:not([type="hidden"]),
  body[data-page="home"] .funnel-contact-form textarea {
    min-height: 52px;
    padding: 11px 0;
    border: 0;
    border-bottom: 1px solid var(--border-strong);
    border-radius: 0;
    background: none;
    font-size: 16px;
  }
  body[data-page="home"] .funnel-contact-form textarea { min-height: 112px; }
  body[data-page="home"] .funnel-contact-form__fields { gap: 22px; }
  body[data-page="home"] .funnel-contact-form__bottom { gap: 18px; }
  body[data-page="home"] .funnel-contact-form__bottom p { font-size: 13px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="home"] .showcase__media--sculpture img { transition: none; transform: none; }
}
